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 [email protected] 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 642PYTHON_OBJ 643PYTHON_SRC 644PYTHON_CFLAGS 645PYTHON_GETPATH_CFLAGS 646PYTHON_LIBS 647PYTHON_CONFDIR 648vi_cv_path_python 649PERL_LIBS 650PERL_CFLAGS 651PERL_PRO 652PERL_OBJ 653PERL_SRC 654shrpenv 655vi_cv_perllib 656vi_cv_path_perl 657MZSCHEME_MZC 658MZSCHEME_EXTRA 659MZSCHEME_CFLAGS 660MZSCHEME_LIBS 661MZSCHEME_PRO 662MZSCHEME_OBJ 663MZSCHEME_SRC 664vi_cv_path_mzscheme 665compiledby 666dogvimdiff 667dovimdiff 668QUOTESED 669line_break 670VIEWNAME 671EXNAME 672VIMNAME 673OS_EXTRA_OBJ 674OS_EXTRA_SRC 675XCODE_SELECT 676CPP_MM 677STRIP 678AWK 679EGREP 680GREP 681CPP 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689SET_MAKE 690target_alias 691host_alias 692build_alias 693LIBS 694ECHO_T 695ECHO_N 696ECHO_C 697DEFS 698mandir 699localedir 700libdir 701psdir 702pdfdir 703dvidir 704htmldir 705infodir 706docdir 707oldincludedir 708includedir 709localstatedir 710sharedstatedir 711sysconfdir 712datadir 713datarootdir 714libexecdir 715sbindir 716bindir 717program_transform_name 718prefix 719exec_prefix 720PACKAGE_URL 721PACKAGE_BUGREPORT 722PACKAGE_STRING 723PACKAGE_VERSION 724PACKAGE_TARNAME 725PACKAGE_NAME 726PATH_SEPARATOR 727SHELL' 728ac_subst_files='' 729ac_user_opts=' 730enable_option_checking 731enable_darwin 732with_mac_arch 733with_developer_dir 734with_local_dir 735with_vim_name 736with_ex_name 737with_view_name 738with_global_runtime 739with_modified_by 740enable_selinux 741with_features 742with_compiledby 743enable_xsmp 744enable_xsmp_interact 745enable_mzschemeinterp 746with_plthome 747enable_perlinterp 748enable_pythoninterp 749with_python_config_dir 750enable_tclinterp 751with_tclsh 752enable_rubyinterp 753with_ruby_command 754enable_cscope 755enable_workshop 756enable_netbeans 757enable_sniff 758enable_multibyte 759enable_hangulinput 760enable_xim 761enable_fontset 762with_x 763enable_gui 764enable_gtk2_check 765enable_gnome_check 766enable_motif_check 767enable_athena_check 768enable_nextaw_check 769enable_carbon_check 770enable_gtktest 771with_gnome_includes 772with_gnome_libs 773with_gnome 774with_motif_lib 775with_tlib 776enable_largefile 777enable_acl 778enable_gpm 779enable_sysmouse 780enable_nls 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP 791XMKMF' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information." 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1247 If a cross compiler is detected then cross compile mode will be used." >&2 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251fi 1252 1253ac_tool_prefix= 1254test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256test "$silent" = yes && exec 6>/dev/null 1257 1258 1259ac_pwd=`pwd` && test -n "$ac_pwd" && 1260ac_ls_di=`ls -di .` && 1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 as_fn_error "working directory cannot be determined" 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 as_fn_error "pwd does not report name of working directory" 1265 1266 1267# Find the source files, if location was not specified. 1268if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276$as_echo X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298else 1299 ac_srcdir_defaulted=no 1300fi 1301if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1304fi 1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1308 pwd)` 1309# When building in place, set srcdir=. 1310if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312fi 1313# Remove unnecessary trailing slashes from srcdir. 1314# Double slashes in file names in object file debugging info 1315# mess up M-x gdb in Emacs. 1316case $srcdir in 1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318esac 1319for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324done 1325 1326# 1327# Report the --help message. 1328# 1329if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333\`configure' configures this package to adapt to many kinds of systems. 1334 1335Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340Defaults for the options are specified in brackets. 1341 1342Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print \`checking...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for \`--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1352 1353Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359By default, \`make install' will install all the files in 1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1361an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1362for instance \`--prefix=\$HOME'. 1363 1364For better control, use the options below. 1365 1366Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --libdir=DIR object code libraries [EPREFIX/lib] 1374 --includedir=DIR C header files [PREFIX/include] 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1378 --infodir=DIR info documentation [DATAROOTDIR/info] 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1380 --mandir=DIR man documentation [DATAROOTDIR/man] 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1382 --htmldir=DIR html documentation [DOCDIR] 1383 --dvidir=DIR dvi documentation [DOCDIR] 1384 --pdfdir=DIR pdf documentation [DOCDIR] 1385 --psdir=DIR ps documentation [DOCDIR] 1386_ACEOF 1387 1388 cat <<\_ACEOF 1389 1390X features: 1391 --x-includes=DIR X include files are in DIR 1392 --x-libraries=DIR X library files are in DIR 1393_ACEOF 1394fi 1395 1396if test -n "$ac_init_help"; then 1397 1398 cat <<\_ACEOF 1399 1400Optional Features: 1401 --disable-option-checking ignore unrecognized --enable/--with options 1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1404 --disable-darwin Disable Darwin (Mac OS X) support. 1405 --disable-selinux Don't check for SELinux support. 1406 --disable-xsmp Disable XSMP session management 1407 --disable-xsmp-interact Disable XSMP interaction 1408 --enable-mzschemeinterp Include MzScheme interpreter. 1409 --enable-perlinterp Include Perl interpreter. 1410 --enable-pythoninterp Include Python interpreter. 1411 --enable-tclinterp Include Tcl interpreter. 1412 --enable-rubyinterp Include Ruby interpreter. 1413 --enable-cscope Include cscope interface. 1414 --enable-workshop Include Sun Visual Workshop support. 1415 --disable-netbeans Disable NetBeans integration support. 1416 --enable-sniff Include Sniff interface. 1417 --enable-multibyte Include multibyte editing support. 1418 --enable-hangulinput Include Hangul input support. 1419 --enable-xim Include XIM input support. 1420 --enable-fontset Include X fontset output support. 1421 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon 1422 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1423 --enable-gnome-check If GTK GUI, check for GNOME default=no 1424 --enable-motif-check If auto-select GUI, check for Motif default=yes 1425 --enable-athena-check If auto-select GUI, check for Athena default=yes 1426 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1427 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1428 --disable-gtktest Do not try to compile and run a test GTK program 1429 --disable-largefile omit support for large files 1430 --disable-acl Don't check for ACL support. 1431 --disable-gpm Don't use gpm (Linux mouse daemon). 1432 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1433 --disable-nls Don't support NLS (gettext()). 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-mac-arch=ARCH current, intel, ppc or both 1439 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1440 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1441 --without-local-dir do not search /usr/local for local libraries. 1442 --with-vim-name=NAME what to call the Vim executable 1443 --with-ex-name=NAME what to call the Ex executable 1444 --with-view-name=NAME what to call the View executable 1445 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1446 --with-modified-by=NAME name of who modified a release version 1447 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1448 --with-compiledby=NAME name to show in :version message 1449 --with-plthome=PLTHOME Use PLTHOME. 1450 --with-python-config-dir=PATH Python's config directory 1451 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1452 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1453 --with-x use the X Window System 1454 --with-gnome-includes=DIR Specify location of GNOME headers 1455 --with-gnome-libs=DIR Specify location of GNOME libs 1456 --with-gnome Specify prefix for GNOME files 1457 --with-motif-lib=STRING Library for Motif 1458 --with-tlib=library terminal library to be used 1459 1460Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 CPP C preprocessor 1469 XMKMF Path to xmkmf, Makefile generator for X Window System 1470 1471Use these variables to override the choices made by `configure' or to help 1472it to find libraries and programs with nonstandard names/locations. 1473 1474Report bugs to the package provider. 1475_ACEOF 1476ac_status=$? 1477fi 1478 1479if test "$ac_init_help" = "recursive"; then 1480 # If there are subdirs, report their specific --help. 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1482 test -d "$ac_dir" || 1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1484 continue 1485 ac_builddir=. 1486 1487case "$ac_dir" in 1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489*) 1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1491 # A ".." for each directory in $ac_dir_suffix. 1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1493 case $ac_top_builddir_sub in 1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1496 esac ;; 1497esac 1498ac_abs_top_builddir=$ac_pwd 1499ac_abs_builddir=$ac_pwd$ac_dir_suffix 1500# for backward compatibility: 1501ac_top_builddir=$ac_top_build_prefix 1502 1503case $srcdir in 1504 .) # We are building in place. 1505 ac_srcdir=. 1506 ac_top_srcdir=$ac_top_builddir_sub 1507 ac_abs_top_srcdir=$ac_pwd ;; 1508 [\\/]* | ?:[\\/]* ) # Absolute name. 1509 ac_srcdir=$srcdir$ac_dir_suffix; 1510 ac_top_srcdir=$srcdir 1511 ac_abs_top_srcdir=$srcdir ;; 1512 *) # Relative name. 1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1514 ac_top_srcdir=$ac_top_build_prefix$srcdir 1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1516esac 1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1518 1519 cd "$ac_dir" || { ac_status=$?; continue; } 1520 # Check for guested configure. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537configure 1538generated by GNU Autoconf 2.65 1539 1540Copyright (C) 2009 Free Software Foundation, Inc. 1541This configure script is free software; the Free Software Foundation 1542gives unlimited permission to copy, distribute and modify it. 1543_ACEOF 1544 exit 1545fi 1546 1547## ------------------------ ## 1548## Autoconf initialization. ## 1549## ------------------------ ## 1550 1551# ac_fn_c_try_compile LINENO 1552# -------------------------- 1553# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext 1558 if { { ac_try="$ac_compile" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564$as_echo "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext; then : 1577 ac_retval=0 1578else 1579 $as_echo "$as_me: failed program was:" >&5 1580sed 's/^/| /' conftest.$ac_ext >&5 1581 1582 ac_retval=1 1583fi 1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1585 as_fn_set_status $ac_retval 1586 1587} # ac_fn_c_try_compile 1588 1589# ac_fn_c_try_cpp LINENO 1590# ---------------------- 1591# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1592ac_fn_c_try_cpp () 1593{ 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 if { { ac_try="$ac_cpp conftest.$ac_ext" 1596case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601$as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } >/dev/null && { 1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1612 test ! -s conftest.err 1613 }; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: failed program was:" >&5 1617sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620fi 1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_cpp 1625 1626# ac_fn_c_try_link LINENO 1627# ----------------------- 1628# Try to link conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_link () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext conftest$ac_exeext 1633 if { { ac_try="$ac_link" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_link") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest$ac_exeext && { 1652 test "$cross_compiling" = yes || 1653 $as_test_x conftest$ac_exeext 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1664 # interfere with the next link command; also delete a directory that is 1665 # left behind by Apple's compiler. We do this before executing the actions. 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_link 1671 1672# ac_fn_c_try_run LINENO 1673# ---------------------- 1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1675# that executables *can* be run. 1676ac_fn_c_try_run () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 if { { ac_try="$ac_link" 1680case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683esac 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685$as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_link") 2>&5 1687 ac_status=$? 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1690 { { case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_try") 2>&5 1697 ac_status=$? 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; }; }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: program exited with status $ac_status" >&5 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=$ac_status 1707fi 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_run 1713 1714# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1717# the include files in INCLUDES and setting the cache variable VAR 1718# accordingly. 1719ac_fn_c_check_header_mongrel () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724$as_echo_n "checking for $2... " >&6; } 1725if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1726 $as_echo_n "(cached) " >&6 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731else 1732 # Is the header compilable? 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1734$as_echo_n "checking $2 usability... " >&6; } 1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 ac_header_compiler=yes 1742else 1743 ac_header_compiler=no 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1747$as_echo "$ac_header_compiler" >&6; } 1748 1749# Is the header present? 1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1751$as_echo_n "checking $2 presence... " >&6; } 1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_cpp "$LINENO"; then : 1757 ac_header_preproc=yes 1758else 1759 ac_header_preproc=no 1760fi 1761rm -f conftest.err conftest.$ac_ext 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1763$as_echo "$ac_header_preproc" >&6; } 1764 1765# So? What about this header? 1766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1767 yes:no: ) 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1769$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1771$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1772 ;; 1773 no:yes:* ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1775$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1777$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1779$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1781$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1784 ;; 1785esac 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1789 $as_echo_n "(cached) " >&6 1790else 1791 eval "$3=\$ac_header_compiler" 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796fi 1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1798 1799} # ac_fn_c_check_header_mongrel 1800 1801# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1802# ------------------------------------------------------- 1803# Tests whether HEADER exists and can be compiled using the include files in 1804# INCLUDES, setting the cache variable VAR accordingly. 1805ac_fn_c_check_header_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816#include <$2> 1817_ACEOF 1818if ac_fn_c_try_compile "$LINENO"; then : 1819 eval "$3=yes" 1820else 1821 eval "$3=no" 1822fi 1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1824fi 1825eval ac_res=\$$3 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1827$as_echo "$ac_res" >&6; } 1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1829 1830} # ac_fn_c_check_header_compile 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1900# ------------------------------------------- 1901# Tests whether TYPE exists after having included INCLUDES, setting cache 1902# variable VAR accordingly. 1903ac_fn_c_check_type () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1907$as_echo_n "checking for $2... " >&6; } 1908if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1909 $as_echo_n "(cached) " >&6 1910else 1911 eval "$3=no" 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913/* end confdefs.h. */ 1914$4 1915int 1916main () 1917{ 1918if (sizeof ($2)) 1919 return 0; 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_compile "$LINENO"; then : 1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927$4 1928int 1929main () 1930{ 1931if (sizeof (($2))) 1932 return 0; 1933 ; 1934 return 0; 1935} 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 1939else 1940 eval "$3=yes" 1941fi 1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1943fi 1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1950 1951} # ac_fn_c_check_type 1952 1953# ac_fn_c_find_uintX_t LINENO BITS VAR 1954# ------------------------------------ 1955# Finds an unsigned integer type with width BITS, setting cache variable VAR 1956# accordingly. 1957ac_fn_c_find_uintX_t () 1958{ 1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1961$as_echo_n "checking for uint$2_t... " >&6; } 1962if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1963 $as_echo_n "(cached) " >&6 1964else 1965 eval "$3=no" 1966 # Order is important - never check a type that is potentially smaller 1967 # than half of the expected target width. 1968 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1969 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972$ac_includes_default 1973int 1974main () 1975{ 1976static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1977test_array [0] = 0 1978 1979 ; 1980 return 0; 1981} 1982_ACEOF 1983if ac_fn_c_try_compile "$LINENO"; then : 1984 case $ac_type in #( 1985 uint$2_t) : 1986 eval "$3=yes" ;; #( 1987 *) : 1988 eval "$3=\$ac_type" ;; 1989esac 1990fi 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1992 eval as_val=\$$3 1993 if test "x$as_val" = x""no; then : 1994 1995else 1996 break 1997fi 1998 done 1999fi 2000eval ac_res=\$$3 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2002$as_echo "$ac_res" >&6; } 2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2004 2005} # ac_fn_c_find_uintX_t 2006 2007# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2008# -------------------------------------------- 2009# Tries to find the compile-time value of EXPR in a program that includes 2010# INCLUDES, setting VAR accordingly. Returns whether the value could be 2011# computed 2012ac_fn_c_compute_int () 2013{ 2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2015 if test "$cross_compiling" = yes; then 2016 # Depending upon the size, compute the lo and hi bounds. 2017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023static int test_array [1 - 2 * !(($2) >= 0)]; 2024test_array [0] = 0 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 ac_lo=0 ac_mid=0 2032 while :; do 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2040test_array [0] = 0 2041 2042 ; 2043 return 0; 2044} 2045_ACEOF 2046if ac_fn_c_try_compile "$LINENO"; then : 2047 ac_hi=$ac_mid; break 2048else 2049 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2050 if test $ac_lo -le $ac_mid; then 2051 ac_lo= ac_hi= 2052 break 2053 fi 2054 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057 done 2058else 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$4 2062int 2063main () 2064{ 2065static int test_array [1 - 2 * !(($2) < 0)]; 2066test_array [0] = 0 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO"; then : 2073 ac_hi=-1 ac_mid=-1 2074 while :; do 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076/* end confdefs.h. */ 2077$4 2078int 2079main () 2080{ 2081static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2082test_array [0] = 0 2083 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_compile "$LINENO"; then : 2089 ac_lo=$ac_mid; break 2090else 2091 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2092 if test $ac_mid -le $ac_hi; then 2093 ac_lo= ac_hi= 2094 break 2095 fi 2096 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099 done 2100else 2101 ac_lo= ac_hi= 2102fi 2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2106# Binary search between lo and hi bounds. 2107while test "x$ac_lo" != "x$ac_hi"; do 2108 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2116test_array [0] = 0 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO"; then : 2123 ac_hi=$ac_mid 2124else 2125 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2126fi 2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128done 2129case $ac_lo in #(( 2130?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2131'') ac_retval=1 ;; 2132esac 2133 else 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137static long int longval () { return $2; } 2138static unsigned long int ulongval () { return $2; } 2139#include <stdio.h> 2140#include <stdlib.h> 2141int 2142main () 2143{ 2144 2145 FILE *f = fopen ("conftest.val", "w"); 2146 if (! f) 2147 return 1; 2148 if (($2) < 0) 2149 { 2150 long int i = longval (); 2151 if (i != ($2)) 2152 return 1; 2153 fprintf (f, "%ld", i); 2154 } 2155 else 2156 { 2157 unsigned long int i = ulongval (); 2158 if (i != ($2)) 2159 return 1; 2160 fprintf (f, "%lu", i); 2161 } 2162 /* Do not output a trailing newline, as this causes \r\n confusion 2163 on some platforms. */ 2164 return ferror (f) || fclose (f) != 0; 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if ac_fn_c_try_run "$LINENO"; then : 2171 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2172else 2173 ac_retval=1 2174fi 2175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2176 conftest.$ac_objext conftest.beam conftest.$ac_ext 2177rm -f conftest.val 2178 2179 fi 2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2181 as_fn_set_status $ac_retval 2182 2183} # ac_fn_c_compute_int 2184cat >auto/config.log <<_ACEOF 2185This file contains any messages produced by compilers while 2186running configure, to aid debugging if configure makes a mistake. 2187 2188It was created by $as_me, which was 2189generated by GNU Autoconf 2.65. Invocation command line was 2190 2191 $ $0 $@ 2192 2193_ACEOF 2194exec 5>>auto/config.log 2195{ 2196cat <<_ASUNAME 2197## --------- ## 2198## Platform. ## 2199## --------- ## 2200 2201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2202uname -m = `(uname -m) 2>/dev/null || echo unknown` 2203uname -r = `(uname -r) 2>/dev/null || echo unknown` 2204uname -s = `(uname -s) 2>/dev/null || echo unknown` 2205uname -v = `(uname -v) 2>/dev/null || echo unknown` 2206 2207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2209 2210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2213/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2217 2218_ASUNAME 2219 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 $as_echo "PATH: $as_dir" 2226 done 2227IFS=$as_save_IFS 2228 2229} >&5 2230 2231cat >&5 <<_ACEOF 2232 2233 2234## ----------- ## 2235## Core tests. ## 2236## ----------- ## 2237 2238_ACEOF 2239 2240 2241# Keep a trace of the command line. 2242# Strip out --no-create and --no-recursion so they do not pile up. 2243# Strip out --silent because we don't want to record it for future runs. 2244# Also quote any args containing shell meta-characters. 2245# Make two passes to allow for proper duplicate-argument suppression. 2246ac_configure_args= 2247ac_configure_args0= 2248ac_configure_args1= 2249ac_must_keep_next=false 2250for ac_pass in 1 2 2251do 2252 for ac_arg 2253 do 2254 case $ac_arg in 2255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2257 | -silent | --silent | --silen | --sile | --sil) 2258 continue ;; 2259 *\'*) 2260 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2261 esac 2262 case $ac_pass in 2263 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2264 2) 2265 as_fn_append ac_configure_args1 " '$ac_arg'" 2266 if test $ac_must_keep_next = true; then 2267 ac_must_keep_next=false # Got value, back to normal. 2268 else 2269 case $ac_arg in 2270 *=* | --config-cache | -C | -disable-* | --disable-* \ 2271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2273 | -with-* | --with-* | -without-* | --without-* | --x) 2274 case "$ac_configure_args0 " in 2275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2276 esac 2277 ;; 2278 -* ) ac_must_keep_next=true ;; 2279 esac 2280 fi 2281 as_fn_append ac_configure_args " '$ac_arg'" 2282 ;; 2283 esac 2284 done 2285done 2286{ ac_configure_args0=; unset ac_configure_args0;} 2287{ ac_configure_args1=; unset ac_configure_args1;} 2288 2289# When interrupted or exit'd, cleanup temporary files, and complete 2290# config.log. We remove comments because anyway the quotes in there 2291# would cause problems or look ugly. 2292# WARNING: Use '\'' to represent an apostrophe within the trap. 2293# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2294trap 'exit_status=$? 2295 # Save into config.log some information that might help in debugging. 2296 { 2297 echo 2298 2299 cat <<\_ASBOX 2300## ---------------- ## 2301## Cache variables. ## 2302## ---------------- ## 2303_ASBOX 2304 echo 2305 # The following way of writing the cache mishandles newlines in values, 2306( 2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2308 eval ac_val=\$$ac_var 2309 case $ac_val in #( 2310 *${as_nl}*) 2311 case $ac_var in #( 2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2314 esac 2315 case $ac_var in #( 2316 _ | IFS | as_nl) ;; #( 2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2318 *) { eval $ac_var=; unset $ac_var;} ;; 2319 esac ;; 2320 esac 2321 done 2322 (set) 2>&1 | 2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2324 *${as_nl}ac_space=\ *) 2325 sed -n \ 2326 "s/'\''/'\''\\\\'\'''\''/g; 2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2328 ;; #( 2329 *) 2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2331 ;; 2332 esac | 2333 sort 2334) 2335 echo 2336 2337 cat <<\_ASBOX 2338## ----------------- ## 2339## Output variables. ## 2340## ----------------- ## 2341_ASBOX 2342 echo 2343 for ac_var in $ac_subst_vars 2344 do 2345 eval ac_val=\$$ac_var 2346 case $ac_val in 2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2348 esac 2349 $as_echo "$ac_var='\''$ac_val'\''" 2350 done | sort 2351 echo 2352 2353 if test -n "$ac_subst_files"; then 2354 cat <<\_ASBOX 2355## ------------------- ## 2356## File substitutions. ## 2357## ------------------- ## 2358_ASBOX 2359 echo 2360 for ac_var in $ac_subst_files 2361 do 2362 eval ac_val=\$$ac_var 2363 case $ac_val in 2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2365 esac 2366 $as_echo "$ac_var='\''$ac_val'\''" 2367 done | sort 2368 echo 2369 fi 2370 2371 if test -s confdefs.h; then 2372 cat <<\_ASBOX 2373## ----------- ## 2374## confdefs.h. ## 2375## ----------- ## 2376_ASBOX 2377 echo 2378 cat confdefs.h 2379 echo 2380 fi 2381 test "$ac_signal" != 0 && 2382 $as_echo "$as_me: caught signal $ac_signal" 2383 $as_echo "$as_me: exit $exit_status" 2384 } >&5 2385 rm -f core *.core core.conftest.* && 2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2387 exit $exit_status 2388' 0 2389for ac_signal in 1 2 13 15; do 2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2391done 2392ac_signal=0 2393 2394# confdefs.h avoids OS command line length limits that DEFS can exceed. 2395rm -f -r conftest* confdefs.h 2396 2397$as_echo "/* confdefs.h */" > confdefs.h 2398 2399# Predefined preprocessor variables. 2400 2401cat >>confdefs.h <<_ACEOF 2402#define PACKAGE_NAME "$PACKAGE_NAME" 2403_ACEOF 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_VERSION "$PACKAGE_VERSION" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_STRING "$PACKAGE_STRING" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2419_ACEOF 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_URL "$PACKAGE_URL" 2423_ACEOF 2424 2425 2426# Let the site file select an alternate cache file if it wants to. 2427# Prefer an explicitly selected file to automatically selected ones. 2428ac_site_file1=NONE 2429ac_site_file2=NONE 2430if test -n "$CONFIG_SITE"; then 2431 ac_site_file1=$CONFIG_SITE 2432elif test "x$prefix" != xNONE; then 2433 ac_site_file1=$prefix/share/config.site 2434 ac_site_file2=$prefix/etc/config.site 2435else 2436 ac_site_file1=$ac_default_prefix/share/config.site 2437 ac_site_file2=$ac_default_prefix/etc/config.site 2438fi 2439for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2440do 2441 test "x$ac_site_file" = xNONE && continue 2442 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2444$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2445 sed 's/^/| /' "$ac_site_file" >&5 2446 . "$ac_site_file" 2447 fi 2448done 2449 2450if test -r "$cache_file"; then 2451 # Some versions of bash will fail to source /dev/null (special files 2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2455$as_echo "$as_me: loading cache $cache_file" >&6;} 2456 case $cache_file in 2457 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2458 *) . "./$cache_file";; 2459 esac 2460 fi 2461else 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2463$as_echo "$as_me: creating cache $cache_file" >&6;} 2464 >$cache_file 2465fi 2466 2467# Check that the precious variables saved in the cache have kept the same 2468# value. 2469ac_cache_corrupted=false 2470for ac_var in $ac_precious_vars; do 2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2472 eval ac_new_set=\$ac_env_${ac_var}_set 2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2474 eval ac_new_val=\$ac_env_${ac_var}_value 2475 case $ac_old_set,$ac_new_set in 2476 set,) 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2478$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2479 ac_cache_corrupted=: ;; 2480 ,set) 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2482$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2483 ac_cache_corrupted=: ;; 2484 ,);; 2485 *) 2486 if test "x$ac_old_val" != "x$ac_new_val"; then 2487 # differences in whitespace do not lead to failure. 2488 ac_old_val_w=`echo x $ac_old_val` 2489 ac_new_val_w=`echo x $ac_new_val` 2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2492$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2493 ac_cache_corrupted=: 2494 else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2496$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2497 eval $ac_var=\$ac_old_val 2498 fi 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2500$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2502$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2503 fi;; 2504 esac 2505 # Pass precious variables to config.status. 2506 if test "$ac_new_set" = set; then 2507 case $ac_new_val in 2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2509 *) ac_arg=$ac_var=$ac_new_val ;; 2510 esac 2511 case " $ac_configure_args " in 2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2514 esac 2515 fi 2516done 2517if $ac_cache_corrupted; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2521$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2522 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2523fi 2524## -------------------- ## 2525## Main body of script. ## 2526## -------------------- ## 2527 2528ac_ext=c 2529ac_cpp='$CPP $CPPFLAGS' 2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2532ac_compiler_gnu=$ac_cv_c_compiler_gnu 2533 2534 2535ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2536 2537 2538$as_echo "#define UNIX 1" >>confdefs.h 2539 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2541$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2542set x ${MAKE-make} 2543ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2544if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2545 $as_echo_n "(cached) " >&6 2546else 2547 cat >conftest.make <<\_ACEOF 2548SHELL = /bin/sh 2549all: 2550 @echo '@@@%%%=$(MAKE)=@@@%%%' 2551_ACEOF 2552# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2553case `${MAKE-make} -f conftest.make 2>/dev/null` in 2554 *@@@%%%=?*=@@@%%%*) 2555 eval ac_cv_prog_make_${ac_make}_set=yes;; 2556 *) 2557 eval ac_cv_prog_make_${ac_make}_set=no;; 2558esac 2559rm -f conftest.make 2560fi 2561if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2563$as_echo "yes" >&6; } 2564 SET_MAKE= 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2567$as_echo "no" >&6; } 2568 SET_MAKE="MAKE=${MAKE-make}" 2569fi 2570 2571 2572ac_ext=c 2573ac_cpp='$CPP $CPPFLAGS' 2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2576ac_compiler_gnu=$ac_cv_c_compiler_gnu 2577if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}gcc; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if test "${ac_cv_prog_CC+set}" = set; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2608$as_echo "$CC" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_CC"; then 2617 ac_ct_CC=$CC 2618 # Extract the first word of "gcc", so it can be a program name with args. 2619set dummy gcc; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$ac_ct_CC"; then 2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_ac_ct_CC="gcc" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645ac_ct_CC=$ac_cv_prog_ac_ct_CC 2646if test -n "$ac_ct_CC"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2648$as_echo "$ac_ct_CC" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 if test "x$ac_ct_CC" = x; then 2655 CC="" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658yes:) 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 CC=$ac_ct_CC 2664 fi 2665else 2666 CC="$ac_cv_prog_CC" 2667fi 2668 2669if test -z "$CC"; then 2670 if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}cc; ac_word=$2 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if test "${ac_cv_prog_CC+set}" = set; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2688 ac_cv_prog_CC="${ac_tool_prefix}cc" 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2701$as_echo "$CC" >&6; } 2702else 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 2708 fi 2709fi 2710if test -z "$CC"; then 2711 # Extract the first word of "cc", so it can be a program name with args. 2712set dummy cc; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if test "${ac_cv_prog_CC+set}" = set; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721 ac_prog_rejected=no 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2730 ac_prog_rejected=yes 2731 continue 2732 fi 2733 ac_cv_prog_CC="cc" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741if test $ac_prog_rejected = yes; then 2742 # We found a bogon in the path, so make sure we never use it. 2743 set dummy $ac_cv_prog_CC 2744 shift 2745 if test $# != 0; then 2746 # We chose a different compiler from the bogus one. 2747 # However, it has the same basename, so the bogon will be chosen 2748 # first if we set CC to just the basename; use the full file name. 2749 shift 2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2751 fi 2752fi 2753fi 2754fi 2755CC=$ac_cv_prog_CC 2756if test -n "$CC"; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2758$as_echo "$CC" >&6; } 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2761$as_echo "no" >&6; } 2762fi 2763 2764 2765fi 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 for ac_prog in cl.exe 2769 do 2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if test "${ac_cv_prog_CC+set}" = set; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2800$as_echo "$CC" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$CC" && break 2808 done 2809fi 2810if test -z "$CC"; then 2811 ac_ct_CC=$CC 2812 for ac_prog in cl.exe 2813do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817$as_echo_n "checking for $ac_word... " >&6; } 2818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test -n "$ac_ct_CC"; then 2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 ac_cv_prog_ac_ct_CC="$ac_prog" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839fi 2840fi 2841ac_ct_CC=$ac_cv_prog_ac_ct_CC 2842if test -n "$ac_ct_CC"; then 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2844$as_echo "$ac_ct_CC" >&6; } 2845else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847$as_echo "no" >&6; } 2848fi 2849 2850 2851 test -n "$ac_ct_CC" && break 2852done 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CC=$ac_ct_CC 2864 fi 2865fi 2866 2867fi 2868 2869 2870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2872as_fn_error "no acceptable C compiler found in \$PATH 2873See \`config.log' for more details." "$LINENO" 5; } 2874 2875# Provide some information about the compiler. 2876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2877set X $ac_compile 2878ac_compiler=$2 2879for ac_option in --version -v -V -qversion; do 2880 { { ac_try="$ac_compiler $ac_option >&5" 2881case "(($ac_try" in 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2883 *) ac_try_echo=$ac_try;; 2884esac 2885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2886$as_echo "$ac_try_echo"; } >&5 2887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2888 ac_status=$? 2889 if test -s conftest.err; then 2890 sed '10a\ 2891... rest of stderr output deleted ... 2892 10q' conftest.err >conftest.er1 2893 cat conftest.er1 >&5 2894 fi 2895 rm -f conftest.er1 conftest.err 2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2897 test $ac_status = 0; } 2898done 2899 2900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2901/* end confdefs.h. */ 2902 2903int 2904main () 2905{ 2906 2907 ; 2908 return 0; 2909} 2910_ACEOF 2911ac_clean_files_save=$ac_clean_files 2912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2913# Try to create an executable without -o first, disregard a.out. 2914# It will help us diagnose broken compilers, and finding out an intuition 2915# of exeext. 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2917$as_echo_n "checking whether the C compiler works... " >&6; } 2918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2919 2920# The possible output files: 2921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2922 2923ac_rmfiles= 2924for ac_file in $ac_files 2925do 2926 case $ac_file in 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2929 esac 2930done 2931rm -f $ac_rmfiles 2932 2933if { { ac_try="$ac_link_default" 2934case "(($ac_try" in 2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2936 *) ac_try_echo=$ac_try;; 2937esac 2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2939$as_echo "$ac_try_echo"; } >&5 2940 (eval "$ac_link_default") 2>&5 2941 ac_status=$? 2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2943 test $ac_status = 0; }; then : 2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2946# in a Makefile. We should not override ac_cv_exeext if it was cached, 2947# so that the user can short-circuit this test for compilers unknown to 2948# Autoconf. 2949for ac_file in $ac_files '' 2950do 2951 test -f "$ac_file" || continue 2952 case $ac_file in 2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2954 ;; 2955 [ab].out ) 2956 # We found the default executable, but exeext='' is most 2957 # certainly right. 2958 break;; 2959 *.* ) 2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2961 then :; else 2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2963 fi 2964 # We set ac_cv_exeext here because the later test for it is not 2965 # safe: cross compilers may not add the suffix if given an `-o' 2966 # argument, so we may need to know it at that point already. 2967 # Even if this section looks crufty: it has the advantage of 2968 # actually working. 2969 break;; 2970 * ) 2971 break;; 2972 esac 2973done 2974test "$ac_cv_exeext" = no && ac_cv_exeext= 2975 2976else 2977 ac_file='' 2978fi 2979if test -z "$ac_file"; then : 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982$as_echo "$as_me: failed program was:" >&5 2983sed 's/^/| /' conftest.$ac_ext >&5 2984 2985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2987{ as_fn_set_status 77 2988as_fn_error "C compiler cannot create executables 2989See \`config.log' for more details." "$LINENO" 5; }; } 2990else 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2992$as_echo "yes" >&6; } 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2995$as_echo_n "checking for C compiler default output file name... " >&6; } 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2997$as_echo "$ac_file" >&6; } 2998ac_exeext=$ac_cv_exeext 2999 3000rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3001ac_clean_files=$ac_clean_files_save 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3003$as_echo_n "checking for suffix of executables... " >&6; } 3004if { { ac_try="$ac_link" 3005case "(($ac_try" in 3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3007 *) ac_try_echo=$ac_try;; 3008esac 3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3010$as_echo "$ac_try_echo"; } >&5 3011 (eval "$ac_link") 2>&5 3012 ac_status=$? 3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3014 test $ac_status = 0; }; then : 3015 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3016# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3017# work properly (i.e., refer to `conftest.exe'), while it won't with 3018# `rm'. 3019for ac_file in conftest.exe conftest conftest.*; do 3020 test -f "$ac_file" || continue 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3024 break;; 3025 * ) break;; 3026 esac 3027done 3028else 3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3031as_fn_error "cannot compute suffix of executables: cannot compile and link 3032See \`config.log' for more details." "$LINENO" 5; } 3033fi 3034rm -f conftest conftest$ac_cv_exeext 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3036$as_echo "$ac_cv_exeext" >&6; } 3037 3038rm -f conftest.$ac_ext 3039EXEEXT=$ac_cv_exeext 3040ac_exeext=$EXEEXT 3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3042/* end confdefs.h. */ 3043#include <stdio.h> 3044int 3045main () 3046{ 3047FILE *f = fopen ("conftest.out", "w"); 3048 return ferror (f) || fclose (f) != 0; 3049 3050 ; 3051 return 0; 3052} 3053_ACEOF 3054ac_clean_files="$ac_clean_files conftest.out" 3055# Check that the compiler produces executables we can run. If not, either 3056# the compiler is broken, or we cross compile. 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3058$as_echo_n "checking whether we are cross compiling... " >&6; } 3059if test "$cross_compiling" != yes; then 3060 { { ac_try="$ac_link" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3066$as_echo "$ac_try_echo"; } >&5 3067 (eval "$ac_link") 2>&5 3068 ac_status=$? 3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3070 test $ac_status = 0; } 3071 if { ac_try='./conftest$ac_cv_exeext' 3072 { { case "(($ac_try" in 3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3074 *) ac_try_echo=$ac_try;; 3075esac 3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3077$as_echo "$ac_try_echo"; } >&5 3078 (eval "$ac_try") 2>&5 3079 ac_status=$? 3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3081 test $ac_status = 0; }; }; then 3082 cross_compiling=no 3083 else 3084 if test "$cross_compiling" = maybe; then 3085 cross_compiling=yes 3086 else 3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3089as_fn_error "cannot run C compiled programs. 3090If you meant to cross compile, use \`--host'. 3091See \`config.log' for more details." "$LINENO" 5; } 3092 fi 3093 fi 3094fi 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3096$as_echo "$cross_compiling" >&6; } 3097 3098rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3099ac_clean_files=$ac_clean_files_save 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3101$as_echo_n "checking for suffix of object files... " >&6; } 3102if test "${ac_cv_objext+set}" = set; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106/* end confdefs.h. */ 3107 3108int 3109main () 3110{ 3111 3112 ; 3113 return 0; 3114} 3115_ACEOF 3116rm -f conftest.o conftest.obj 3117if { { ac_try="$ac_compile" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3123$as_echo "$ac_try_echo"; } >&5 3124 (eval "$ac_compile") 2>&5 3125 ac_status=$? 3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3127 test $ac_status = 0; }; then : 3128 for ac_file in conftest.o conftest.obj conftest.*; do 3129 test -f "$ac_file" || continue; 3130 case $ac_file in 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3133 break;; 3134 esac 3135done 3136else 3137 $as_echo "$as_me: failed program was:" >&5 3138sed 's/^/| /' conftest.$ac_ext >&5 3139 3140{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3142as_fn_error "cannot compute suffix of object files: cannot compile 3143See \`config.log' for more details." "$LINENO" 5; } 3144fi 3145rm -f conftest.$ac_cv_objext conftest.$ac_ext 3146fi 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3148$as_echo "$ac_cv_objext" >&6; } 3149OBJEXT=$ac_cv_objext 3150ac_objext=$OBJEXT 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3152$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3153if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3157/* end confdefs.h. */ 3158 3159int 3160main () 3161{ 3162#ifndef __GNUC__ 3163 choke me 3164#endif 3165 3166 ; 3167 return 0; 3168} 3169_ACEOF 3170if ac_fn_c_try_compile "$LINENO"; then : 3171 ac_compiler_gnu=yes 3172else 3173 ac_compiler_gnu=no 3174fi 3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3176ac_cv_c_compiler_gnu=$ac_compiler_gnu 3177 3178fi 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3180$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3181if test $ac_compiler_gnu = yes; then 3182 GCC=yes 3183else 3184 GCC= 3185fi 3186ac_test_CFLAGS=${CFLAGS+set} 3187ac_save_CFLAGS=$CFLAGS 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3189$as_echo_n "checking whether $CC accepts -g... " >&6; } 3190if test "${ac_cv_prog_cc_g+set}" = set; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 ac_save_c_werror_flag=$ac_c_werror_flag 3194 ac_c_werror_flag=yes 3195 ac_cv_prog_cc_g=no 3196 CFLAGS="-g" 3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3198/* end confdefs.h. */ 3199 3200int 3201main () 3202{ 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208if ac_fn_c_try_compile "$LINENO"; then : 3209 ac_cv_prog_cc_g=yes 3210else 3211 CFLAGS="" 3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3213/* end confdefs.h. */ 3214 3215int 3216main () 3217{ 3218 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223if ac_fn_c_try_compile "$LINENO"; then : 3224 3225else 3226 ac_c_werror_flag=$ac_save_c_werror_flag 3227 CFLAGS="-g" 3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3229/* end confdefs.h. */ 3230 3231int 3232main () 3233{ 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239if ac_fn_c_try_compile "$LINENO"; then : 3240 ac_cv_prog_cc_g=yes 3241fi 3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3243fi 3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3245fi 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247 ac_c_werror_flag=$ac_save_c_werror_flag 3248fi 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3250$as_echo "$ac_cv_prog_cc_g" >&6; } 3251if test "$ac_test_CFLAGS" = set; then 3252 CFLAGS=$ac_save_CFLAGS 3253elif test $ac_cv_prog_cc_g = yes; then 3254 if test "$GCC" = yes; then 3255 CFLAGS="-g -O2" 3256 else 3257 CFLAGS="-g" 3258 fi 3259else 3260 if test "$GCC" = yes; then 3261 CFLAGS="-O2" 3262 else 3263 CFLAGS= 3264 fi 3265fi 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3268if test "${ac_cv_prog_cc_c89+set}" = set; then : 3269 $as_echo_n "(cached) " >&6 3270else 3271 ac_cv_prog_cc_c89=no 3272ac_save_CC=$CC 3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3274/* end confdefs.h. */ 3275#include <stdarg.h> 3276#include <stdio.h> 3277#include <sys/types.h> 3278#include <sys/stat.h> 3279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3280struct buf { int x; }; 3281FILE * (*rcsopen) (struct buf *, struct stat *, int); 3282static char *e (p, i) 3283 char **p; 3284 int i; 3285{ 3286 return p[i]; 3287} 3288static char *f (char * (*g) (char **, int), char **p, ...) 3289{ 3290 char *s; 3291 va_list v; 3292 va_start (v,p); 3293 s = g (p, va_arg (v,int)); 3294 va_end (v); 3295 return s; 3296} 3297 3298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3299 function prototypes and stuff, but not '\xHH' hex character constants. 3300 These don't provoke an error unfortunately, instead are silently treated 3301 as 'x'. The following induces an error, until -std is added to get 3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3303 array size at least. It's necessary to write '\x00'==0 to get something 3304 that's true only with -std. */ 3305int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3306 3307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3308 inside strings and character constants. */ 3309#define FOO(x) 'x' 3310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3311 3312int test (int i, double x); 3313struct s1 {int (*f) (int a);}; 3314struct s2 {int (*f) (double a);}; 3315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3316int argc; 3317char **argv; 3318int 3319main () 3320{ 3321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3322 ; 3323 return 0; 3324} 3325_ACEOF 3326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3328do 3329 CC="$ac_save_CC $ac_arg" 3330 if ac_fn_c_try_compile "$LINENO"; then : 3331 ac_cv_prog_cc_c89=$ac_arg 3332fi 3333rm -f core conftest.err conftest.$ac_objext 3334 test "x$ac_cv_prog_cc_c89" != "xno" && break 3335done 3336rm -f conftest.$ac_ext 3337CC=$ac_save_CC 3338 3339fi 3340# AC_CACHE_VAL 3341case "x$ac_cv_prog_cc_c89" in 3342 x) 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3344$as_echo "none needed" >&6; } ;; 3345 xno) 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3347$as_echo "unsupported" >&6; } ;; 3348 *) 3349 CC="$CC $ac_cv_prog_cc_c89" 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3352esac 3353if test "x$ac_cv_prog_cc_c89" != xno; then : 3354 3355fi 3356 3357ac_ext=c 3358ac_cpp='$CPP $CPPFLAGS' 3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3361ac_compiler_gnu=$ac_cv_c_compiler_gnu 3362 ac_ext=c 3363ac_cpp='$CPP $CPPFLAGS' 3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3366ac_compiler_gnu=$ac_cv_c_compiler_gnu 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3368$as_echo_n "checking how to run the C preprocessor... " >&6; } 3369# On Suns, sometimes $CPP names a directory. 3370if test -n "$CPP" && test -d "$CPP"; then 3371 CPP= 3372fi 3373if test -z "$CPP"; then 3374 if test "${ac_cv_prog_CPP+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 # Double quotes because CPP needs to be expanded 3378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3379 do 3380 ac_preproc_ok=false 3381for ac_c_preproc_warn_flag in '' yes 3382do 3383 # Use a header file that comes with gcc, so configuring glibc 3384 # with a fresh cross-compiler works. 3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3386 # <limits.h> exists even on freestanding compilers. 3387 # On the NeXT, cc -E runs the code through the compiler's parser, 3388 # not just through cpp. "Syntax error" is here to catch this case. 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#ifdef __STDC__ 3392# include <limits.h> 3393#else 3394# include <assert.h> 3395#endif 3396 Syntax error 3397_ACEOF 3398if ac_fn_c_try_cpp "$LINENO"; then : 3399 3400else 3401 # Broken: fails on valid input. 3402continue 3403fi 3404rm -f conftest.err conftest.$ac_ext 3405 3406 # OK, works on sane cases. Now check whether nonexistent headers 3407 # can be detected and how. 3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410#include <ac_nonexistent.h> 3411_ACEOF 3412if ac_fn_c_try_cpp "$LINENO"; then : 3413 # Broken: success on invalid input. 3414continue 3415else 3416 # Passes both tests. 3417ac_preproc_ok=: 3418break 3419fi 3420rm -f conftest.err conftest.$ac_ext 3421 3422done 3423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3424rm -f conftest.err conftest.$ac_ext 3425if $ac_preproc_ok; then : 3426 break 3427fi 3428 3429 done 3430 ac_cv_prog_CPP=$CPP 3431 3432fi 3433 CPP=$ac_cv_prog_CPP 3434else 3435 ac_cv_prog_CPP=$CPP 3436fi 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3438$as_echo "$CPP" >&6; } 3439ac_preproc_ok=false 3440for ac_c_preproc_warn_flag in '' yes 3441do 3442 # Use a header file that comes with gcc, so configuring glibc 3443 # with a fresh cross-compiler works. 3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3445 # <limits.h> exists even on freestanding compilers. 3446 # On the NeXT, cc -E runs the code through the compiler's parser, 3447 # not just through cpp. "Syntax error" is here to catch this case. 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450#ifdef __STDC__ 3451# include <limits.h> 3452#else 3453# include <assert.h> 3454#endif 3455 Syntax error 3456_ACEOF 3457if ac_fn_c_try_cpp "$LINENO"; then : 3458 3459else 3460 # Broken: fails on valid input. 3461continue 3462fi 3463rm -f conftest.err conftest.$ac_ext 3464 3465 # OK, works on sane cases. Now check whether nonexistent headers 3466 # can be detected and how. 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468/* end confdefs.h. */ 3469#include <ac_nonexistent.h> 3470_ACEOF 3471if ac_fn_c_try_cpp "$LINENO"; then : 3472 # Broken: success on invalid input. 3473continue 3474else 3475 # Passes both tests. 3476ac_preproc_ok=: 3477break 3478fi 3479rm -f conftest.err conftest.$ac_ext 3480 3481done 3482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3483rm -f conftest.err conftest.$ac_ext 3484if $ac_preproc_ok; then : 3485 3486else 3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error "C preprocessor \"$CPP\" fails sanity check 3490See \`config.log' for more details." "$LINENO" 5; } 3491fi 3492 3493ac_ext=c 3494ac_cpp='$CPP $CPPFLAGS' 3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_c_compiler_gnu 3498 3499 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3501$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3502if test "${ac_cv_path_GREP+set}" = set; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 if test -z "$GREP"; then 3506 ac_path_GREP_found=false 3507 # Loop through the user's path and test for each of PROGNAME-LIST 3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_prog in grep ggrep; do 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3516 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3517# Check for GNU ac_path_GREP and select it if it is found. 3518 # Check for GNU $ac_path_GREP 3519case `"$ac_path_GREP" --version 2>&1` in 3520*GNU*) 3521 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3522*) 3523 ac_count=0 3524 $as_echo_n 0123456789 >"conftest.in" 3525 while : 3526 do 3527 cat "conftest.in" "conftest.in" >"conftest.tmp" 3528 mv "conftest.tmp" "conftest.in" 3529 cp "conftest.in" "conftest.nl" 3530 $as_echo 'GREP' >> "conftest.nl" 3531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3533 as_fn_arith $ac_count + 1 && ac_count=$as_val 3534 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3535 # Best one so far, save it but keep looking for a better one 3536 ac_cv_path_GREP="$ac_path_GREP" 3537 ac_path_GREP_max=$ac_count 3538 fi 3539 # 10*(2^10) chars as input seems more than enough 3540 test $ac_count -gt 10 && break 3541 done 3542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3543esac 3544 3545 $ac_path_GREP_found && break 3 3546 done 3547 done 3548 done 3549IFS=$as_save_IFS 3550 if test -z "$ac_cv_path_GREP"; then 3551 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3552 fi 3553else 3554 ac_cv_path_GREP=$GREP 3555fi 3556 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3559$as_echo "$ac_cv_path_GREP" >&6; } 3560 GREP="$ac_cv_path_GREP" 3561 3562 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3564$as_echo_n "checking for egrep... " >&6; } 3565if test "${ac_cv_path_EGREP+set}" = set; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3569 then ac_cv_path_EGREP="$GREP -E" 3570 else 3571 if test -z "$EGREP"; then 3572 ac_path_EGREP_found=false 3573 # Loop through the user's path and test for each of PROGNAME-LIST 3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3576do 3577 IFS=$as_save_IFS 3578 test -z "$as_dir" && as_dir=. 3579 for ac_prog in egrep; do 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3582 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3583# Check for GNU ac_path_EGREP and select it if it is found. 3584 # Check for GNU $ac_path_EGREP 3585case `"$ac_path_EGREP" --version 2>&1` in 3586*GNU*) 3587 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3588*) 3589 ac_count=0 3590 $as_echo_n 0123456789 >"conftest.in" 3591 while : 3592 do 3593 cat "conftest.in" "conftest.in" >"conftest.tmp" 3594 mv "conftest.tmp" "conftest.in" 3595 cp "conftest.in" "conftest.nl" 3596 $as_echo 'EGREP' >> "conftest.nl" 3597 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3599 as_fn_arith $ac_count + 1 && ac_count=$as_val 3600 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3601 # Best one so far, save it but keep looking for a better one 3602 ac_cv_path_EGREP="$ac_path_EGREP" 3603 ac_path_EGREP_max=$ac_count 3604 fi 3605 # 10*(2^10) chars as input seems more than enough 3606 test $ac_count -gt 10 && break 3607 done 3608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3609esac 3610 3611 $ac_path_EGREP_found && break 3 3612 done 3613 done 3614 done 3615IFS=$as_save_IFS 3616 if test -z "$ac_cv_path_EGREP"; then 3617 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3618 fi 3619else 3620 ac_cv_path_EGREP=$EGREP 3621fi 3622 3623 fi 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3626$as_echo "$ac_cv_path_EGREP" >&6; } 3627 EGREP="$ac_cv_path_EGREP" 3628 3629 3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632 3633_ACEOF 3634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3635 $EGREP "" >/dev/null 2>&1; then : 3636 3637fi 3638rm -f conftest* 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3640$as_echo_n "checking for library containing strerror... " >&6; } 3641if test "${ac_cv_search_strerror+set}" = set; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 ac_func_search_save_LIBS=$LIBS 3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647 3648/* Override any GCC internal prototype to avoid an error. 3649 Use char because int might match the return type of a GCC 3650 builtin and then its argument prototype would still apply. */ 3651#ifdef __cplusplus 3652extern "C" 3653#endif 3654char strerror (); 3655int 3656main () 3657{ 3658return strerror (); 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663for ac_lib in '' cposix; do 3664 if test -z "$ac_lib"; then 3665 ac_res="none required" 3666 else 3667 ac_res=-l$ac_lib 3668 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3669 fi 3670 if ac_fn_c_try_link "$LINENO"; then : 3671 ac_cv_search_strerror=$ac_res 3672fi 3673rm -f core conftest.err conftest.$ac_objext \ 3674 conftest$ac_exeext 3675 if test "${ac_cv_search_strerror+set}" = set; then : 3676 break 3677fi 3678done 3679if test "${ac_cv_search_strerror+set}" = set; then : 3680 3681else 3682 ac_cv_search_strerror=no 3683fi 3684rm conftest.$ac_ext 3685LIBS=$ac_func_search_save_LIBS 3686fi 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3688$as_echo "$ac_cv_search_strerror" >&6; } 3689ac_res=$ac_cv_search_strerror 3690if test "$ac_res" != no; then : 3691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3692 3693fi 3694 for ac_prog in gawk mawk nawk awk 3695do 3696 # Extract the first word of "$ac_prog", so it can be a program name with args. 3697set dummy $ac_prog; ac_word=$2 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3699$as_echo_n "checking for $ac_word... " >&6; } 3700if test "${ac_cv_prog_AWK+set}" = set; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 if test -n "$AWK"; then 3704 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 test -z "$as_dir" && as_dir=. 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3713 ac_cv_prog_AWK="$ac_prog" 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3715 break 2 3716 fi 3717done 3718 done 3719IFS=$as_save_IFS 3720 3721fi 3722fi 3723AWK=$ac_cv_prog_AWK 3724if test -n "$AWK"; then 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3726$as_echo "$AWK" >&6; } 3727else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729$as_echo "no" >&6; } 3730fi 3731 3732 3733 test -n "$AWK" && break 3734done 3735 3736# Extract the first word of "strip", so it can be a program name with args. 3737set dummy strip; ac_word=$2 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739$as_echo_n "checking for $ac_word... " >&6; } 3740if test "${ac_cv_prog_STRIP+set}" = set; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -n "$STRIP"; then 3744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3745else 3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3747for as_dir in $PATH 3748do 3749 IFS=$as_save_IFS 3750 test -z "$as_dir" && as_dir=. 3751 for ac_exec_ext in '' $ac_executable_extensions; do 3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3753 ac_cv_prog_STRIP="strip" 3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3755 break 2 3756 fi 3757done 3758 done 3759IFS=$as_save_IFS 3760 3761 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3762fi 3763fi 3764STRIP=$ac_cv_prog_STRIP 3765if test -n "$STRIP"; then 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3767$as_echo "$STRIP" >&6; } 3768else 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770$as_echo "no" >&6; } 3771fi 3772 3773 3774 3775 3776 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3778$as_echo_n "checking for ANSI C header files... " >&6; } 3779if test "${ac_cv_header_stdc+set}" = set; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784#include <stdlib.h> 3785#include <stdarg.h> 3786#include <string.h> 3787#include <float.h> 3788 3789int 3790main () 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO"; then : 3798 ac_cv_header_stdc=yes 3799else 3800 ac_cv_header_stdc=no 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803 3804if test $ac_cv_header_stdc = yes; then 3805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#include <string.h> 3809 3810_ACEOF 3811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3812 $EGREP "memchr" >/dev/null 2>&1; then : 3813 3814else 3815 ac_cv_header_stdc=no 3816fi 3817rm -f conftest* 3818 3819fi 3820 3821if test $ac_cv_header_stdc = yes; then 3822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825#include <stdlib.h> 3826 3827_ACEOF 3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3829 $EGREP "free" >/dev/null 2>&1; then : 3830 3831else 3832 ac_cv_header_stdc=no 3833fi 3834rm -f conftest* 3835 3836fi 3837 3838if test $ac_cv_header_stdc = yes; then 3839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3840 if test "$cross_compiling" = yes; then : 3841 : 3842else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845#include <ctype.h> 3846#include <stdlib.h> 3847#if ((' ' & 0x0FF) == 0x020) 3848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3850#else 3851# define ISLOWER(c) \ 3852 (('a' <= (c) && (c) <= 'i') \ 3853 || ('j' <= (c) && (c) <= 'r') \ 3854 || ('s' <= (c) && (c) <= 'z')) 3855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3856#endif 3857 3858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3859int 3860main () 3861{ 3862 int i; 3863 for (i = 0; i < 256; i++) 3864 if (XOR (islower (i), ISLOWER (i)) 3865 || toupper (i) != TOUPPER (i)) 3866 return 2; 3867 return 0; 3868} 3869_ACEOF 3870if ac_fn_c_try_run "$LINENO"; then : 3871 3872else 3873 ac_cv_header_stdc=no 3874fi 3875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3876 conftest.$ac_objext conftest.beam conftest.$ac_ext 3877fi 3878 3879fi 3880fi 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3882$as_echo "$ac_cv_header_stdc" >&6; } 3883if test $ac_cv_header_stdc = yes; then 3884 3885$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3886 3887fi 3888 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 3890$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 3891if test "${ac_cv_header_sys_wait_h+set}" = set; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896#include <sys/types.h> 3897#include <sys/wait.h> 3898#ifndef WEXITSTATUS 3899# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 3900#endif 3901#ifndef WIFEXITED 3902# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 3903#endif 3904 3905int 3906main () 3907{ 3908 int s; 3909 wait (&s); 3910 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3911 ; 3912 return 0; 3913} 3914_ACEOF 3915if ac_fn_c_try_compile "$LINENO"; then : 3916 ac_cv_header_sys_wait_h=yes 3917else 3918 ac_cv_header_sys_wait_h=no 3919fi 3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 3923$as_echo "$ac_cv_header_sys_wait_h" >&6; } 3924if test $ac_cv_header_sys_wait_h = yes; then 3925 3926$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 3927 3928fi 3929 3930 3931if test -z "$CFLAGS"; then 3932 CFLAGS="-O" 3933 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 3934fi 3935if test "$GCC" = yes; then 3936 gccversion=`"$CC" -dumpversion` 3937 if test "x$gccversion" = "x"; then 3938 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 3939 fi 3940 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 3941 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 3942 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 3943 else 3944 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 3945 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 3946 CFLAGS="$CFLAGS -fno-strength-reduce" 3947 fi 3948 fi 3949fi 3950 3951if test "$cross_compiling" = yes; then 3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 3953$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 3954fi 3955 3956test "$GCC" = yes && CPP_MM=M; 3957 3958if test -f ./toolcheck; then 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 3960$as_echo "$as_me: checking for buggy tools..." >&6;} 3961 sh ./toolcheck 1>&6 3962fi 3963 3964OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 3965 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 3967$as_echo_n "checking for BeOS... " >&6; } 3968case `uname` in 3969 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 3970 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3971$as_echo "yes" >&6; };; 3972 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3973$as_echo "no" >&6; };; 3974esac 3975 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 3977$as_echo_n "checking for QNX... " >&6; } 3978case `uname` in 3979 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 3980 test -z "$with_x" && with_x=no 3981 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3982$as_echo "yes" >&6; };; 3983 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3984$as_echo "no" >&6; };; 3985esac 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 3988$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 3989if test "`(uname) 2>/dev/null`" = Darwin; then 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3991$as_echo "yes" >&6; } 3992 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 3994$as_echo_n "checking --disable-darwin argument... " >&6; } 3995 # Check whether --enable-darwin was given. 3996if test "${enable_darwin+set}" = set; then : 3997 enableval=$enable_darwin; 3998else 3999 enable_darwin="yes" 4000fi 4001 4002 if test "$enable_darwin" = "yes"; then 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; } 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4006$as_echo_n "checking if Darwin files are there... " >&6; } 4007 if test -f os_macosx.c; then 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4009$as_echo "yes" >&6; } 4010 else 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4012$as_echo "no, Darwin support disabled" >&6; } 4013 enable_darwin=no 4014 fi 4015 else 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4017$as_echo "yes, Darwin support excluded" >&6; } 4018 fi 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4021$as_echo_n "checking --with-mac-arch argument... " >&6; } 4022 4023# Check whether --with-mac-arch was given. 4024if test "${with_mac_arch+set}" = set; then : 4025 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4026$as_echo "$MACARCH" >&6; } 4027else 4028 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4029$as_echo "defaulting to $MACARCH" >&6; } 4030fi 4031 4032 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4034$as_echo_n "checking --with-developer-dir argument... " >&6; } 4035 4036# Check whether --with-developer-dir was given. 4037if test "${with_developer_dir+set}" = set; then : 4038 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4039$as_echo "$DEVELOPER_DIR" >&6; } 4040else 4041 DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4042$as_echo "not present" >&6; } 4043fi 4044 4045 4046 if test "x$DEVELOPER_DIR" = "x"; then 4047 # Extract the first word of "xcode-select", so it can be a program name with args. 4048set dummy xcode-select; ac_word=$2 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4050$as_echo_n "checking for $ac_word... " >&6; } 4051if test "${ac_cv_path_XCODE_SELECT+set}" = set; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 case $XCODE_SELECT in 4055 [\\/]* | ?:[\\/]*) 4056 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4057 ;; 4058 *) 4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH 4061do 4062 IFS=$as_save_IFS 4063 test -z "$as_dir" && as_dir=. 4064 for ac_exec_ext in '' $ac_executable_extensions; do 4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4066 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4068 break 2 4069 fi 4070done 4071 done 4072IFS=$as_save_IFS 4073 4074 ;; 4075esac 4076fi 4077XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4078if test -n "$XCODE_SELECT"; then 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4080$as_echo "$XCODE_SELECT" >&6; } 4081else 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4083$as_echo "no" >&6; } 4084fi 4085 4086 4087 if test "x$XCODE_SELECT" != "x"; then 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4089$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4090 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4092$as_echo "$DEVELOPER_DIR" >&6; } 4093 else 4094 DEVELOPER_DIR=/Developer 4095 fi 4096 fi 4097 4098 if test "x$MACARCH" = "xboth"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4100$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4101 save_cppflags="$CPPFLAGS" 4102 save_cflags="$CFLAGS" 4103 save_ldflags="$LDFLAGS" 4104 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107 4108int 4109main () 4110{ 4111 4112 ; 4113 return 0; 4114} 4115_ACEOF 4116if ac_fn_c_try_link "$LINENO"; then : 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4118$as_echo "found" >&6; } 4119else 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4121$as_echo "not found" >&6; } 4122 CFLAGS="$save_cflags" 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4124$as_echo_n "checking if Intel architecture is supported... " >&6; } 4125 CPPFLAGS="$CPPFLAGS -arch i386" 4126 LDFLAGS="$save_ldflags -arch i386" 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129 4130int 4131main () 4132{ 4133 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138if ac_fn_c_try_link "$LINENO"; then : 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4140$as_echo "yes" >&6; }; MACARCH="intel" 4141else 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4143$as_echo "no" >&6; } 4144 MACARCH="ppc" 4145 CPPFLAGS="$save_cppflags -arch ppc" 4146 LDFLAGS="$save_ldflags -arch ppc" 4147fi 4148rm -f core conftest.err conftest.$ac_objext \ 4149 conftest$ac_exeext conftest.$ac_ext 4150fi 4151rm -f core conftest.err conftest.$ac_objext \ 4152 conftest$ac_exeext conftest.$ac_ext 4153 elif test "x$MACARCH" = "xintel"; then 4154 CPPFLAGS="$CPPFLAGS -arch intel" 4155 LDFLAGS="$LDFLAGS -arch intel" 4156 elif test "x$MACARCH" = "xppc"; then 4157 CPPFLAGS="$CPPFLAGS -arch ppc" 4158 LDFLAGS="$LDFLAGS -arch ppc" 4159 fi 4160 4161 if test "$enable_darwin" = "yes"; then 4162 MACOSX=yes 4163 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c"; 4164 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4165 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" 4166 if test "x$MACARCH" = "xboth"; then 4167 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 4168 else 4169 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 4170 fi 4171 4172 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4173for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4174 inttypes.h stdint.h unistd.h 4175do : 4176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4177ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4178" 4179eval as_val=\$$as_ac_Header 4180 if test "x$as_val" = x""yes; then : 4181 cat >>confdefs.h <<_ACEOF 4182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4183_ACEOF 4184 4185fi 4186 4187done 4188 4189 4190ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4191if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then : 4192 CARBON=yes 4193fi 4194 4195 4196 if test "x$CARBON" = "xyes"; then 4197 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then 4198 with_x=no 4199 fi 4200 fi 4201 fi 4202 4203 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4204 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4205 fi 4206 4207else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4209$as_echo "no" >&6; } 4210fi 4211 4212 4213 4214 4215if test "$cross_compiling" = no; then 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4217$as_echo_n "checking --with-local-dir argument... " >&6; } 4218 have_local_include='' 4219 have_local_lib='' 4220 4221# Check whether --with-local-dir was given. 4222if test "${with_local_dir+set}" = set; then : 4223 withval=$with_local_dir; 4224 local_dir="$withval" 4225 case "$withval" in 4226 */*) ;; 4227 no) 4228 # avoid adding local dir to LDFLAGS and CPPFLAGS 4229 have_local_dir=yes 4230 have_local_lib=yes 4231 ;; 4232 *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4233 esac 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4235$as_echo "$local_dir" >&6; } 4236 4237else 4238 4239 local_dir=/usr/local 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4241$as_echo "Defaulting to $local_dir" >&6; } 4242 4243fi 4244 4245 if test "$GCC" = yes -a "$local_dir" != no; then 4246 echo 'void f(){}' > conftest.c 4247 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4248 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4249 rm -f conftest.c conftest.o 4250 fi 4251 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4252 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4253 if test "$tt" = "$LDFLAGS"; then 4254 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4255 fi 4256 fi 4257 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4258 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4259 if test "$tt" = "$CPPFLAGS"; then 4260 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4261 fi 4262 fi 4263fi 4264 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4266$as_echo_n "checking --with-vim-name argument... " >&6; } 4267 4268# Check whether --with-vim-name was given. 4269if test "${with_vim_name+set}" = set; then : 4270 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4271$as_echo "$VIMNAME" >&6; } 4272else 4273 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4274$as_echo "Defaulting to $VIMNAME" >&6; } 4275fi 4276 4277 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4279$as_echo_n "checking --with-ex-name argument... " >&6; } 4280 4281# Check whether --with-ex-name was given. 4282if test "${with_ex_name+set}" = set; then : 4283 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4284$as_echo "$EXNAME" >&6; } 4285else 4286 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4287$as_echo "Defaulting to ex" >&6; } 4288fi 4289 4290 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4292$as_echo_n "checking --with-view-name argument... " >&6; } 4293 4294# Check whether --with-view-name was given. 4295if test "${with_view_name+set}" = set; then : 4296 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4297$as_echo "$VIEWNAME" >&6; } 4298else 4299 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4300$as_echo "Defaulting to view" >&6; } 4301fi 4302 4303 4304 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4306$as_echo_n "checking --with-global-runtime argument... " >&6; } 4307 4308# Check whether --with-global-runtime was given. 4309if test "${with_global_runtime+set}" = set; then : 4310 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4311$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4312#define RUNTIME_GLOBAL "$withval" 4313_ACEOF 4314 4315else 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4317$as_echo "no" >&6; } 4318fi 4319 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4322$as_echo_n "checking --with-modified-by argument... " >&6; } 4323 4324# Check whether --with-modified-by was given. 4325if test "${with_modified_by+set}" = set; then : 4326 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4327$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4328#define MODIFIED_BY "$withval" 4329_ACEOF 4330 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4338$as_echo_n "checking if character set is EBCDIC... " >&6; } 4339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4340/* end confdefs.h. */ 4341 4342int 4343main () 4344{ 4345 /* TryCompile function for CharSet. 4346 Treat any failure as ASCII for compatibility with existing art. 4347 Use compile-time rather than run-time tests for cross-compiler 4348 tolerance. */ 4349#if '0'!=240 4350make an error "Character set is not EBCDIC" 4351#endif 4352 ; 4353 return 0; 4354} 4355_ACEOF 4356if ac_fn_c_try_compile "$LINENO"; then : 4357 # TryCompile action if true 4358cf_cv_ebcdic=yes 4359else 4360 # TryCompile action if false 4361cf_cv_ebcdic=no 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364# end of TryCompile ]) 4365# end of CacheVal CvEbcdic 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4367$as_echo "$cf_cv_ebcdic" >&6; } 4368case "$cf_cv_ebcdic" in #(vi 4369 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4370 4371 line_break='"\\n"' 4372 ;; 4373 *) line_break='"\\012"';; 4374esac 4375 4376 4377if test "$cf_cv_ebcdic" = "yes"; then 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4379$as_echo_n "checking for z/OS Unix... " >&6; } 4380case `uname` in 4381 OS/390) zOSUnix="yes"; 4382 if test "$CC" = "cc"; then 4383 ccm="$_CC_CCMODE" 4384 ccn="CC" 4385 else 4386 if test "$CC" = "c89"; then 4387 ccm="$_CC_C89MODE" 4388 ccn="C89" 4389 else 4390 ccm=1 4391 fi 4392 fi 4393 if test "$ccm" != "1"; then 4394 echo "" 4395 echo "------------------------------------------" 4396 echo " On z/OS Unix, the environment variable" 4397 echo " __CC_${ccn}MODE must be set to \"1\"!" 4398 echo " Do:" 4399 echo " export _CC_${ccn}MODE=1" 4400 echo " and then call configure again." 4401 echo "------------------------------------------" 4402 exit 1 4403 fi 4404 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)"; 4405 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4407$as_echo "yes" >&6; } 4408 ;; 4409 *) zOSUnix="no"; 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412 ;; 4413esac 4414fi 4415 4416if test "$zOSUnix" = "yes"; then 4417 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4418else 4419 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4420fi 4421 4422 4423 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4425$as_echo_n "checking --disable-selinux argument... " >&6; } 4426# Check whether --enable-selinux was given. 4427if test "${enable_selinux+set}" = set; then : 4428 enableval=$enable_selinux; 4429else 4430 enable_selinux="yes" 4431fi 4432 4433if test "$enable_selinux" = "yes"; then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435$as_echo "no" >&6; } 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4437$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4438if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : 4439 $as_echo_n "(cached) " >&6 4440else 4441 ac_check_lib_save_LIBS=$LIBS 4442LIBS="-lselinux $LIBS" 4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445 4446/* Override any GCC internal prototype to avoid an error. 4447 Use char because int might match the return type of a GCC 4448 builtin and then its argument prototype would still apply. */ 4449#ifdef __cplusplus 4450extern "C" 4451#endif 4452char is_selinux_enabled (); 4453int 4454main () 4455{ 4456return is_selinux_enabled (); 4457 ; 4458 return 0; 4459} 4460_ACEOF 4461if ac_fn_c_try_link "$LINENO"; then : 4462 ac_cv_lib_selinux_is_selinux_enabled=yes 4463else 4464 ac_cv_lib_selinux_is_selinux_enabled=no 4465fi 4466rm -f core conftest.err conftest.$ac_objext \ 4467 conftest$ac_exeext conftest.$ac_ext 4468LIBS=$ac_check_lib_save_LIBS 4469fi 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4471$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4472if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : 4473 LIBS="$LIBS -lselinux" 4474 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4475 4476fi 4477 4478else 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4480$as_echo "yes" >&6; } 4481fi 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4485$as_echo_n "checking --with-features argument... " >&6; } 4486 4487# Check whether --with-features was given. 4488if test "${with_features+set}" = set; then : 4489 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4490$as_echo "$features" >&6; } 4491else 4492 features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5 4493$as_echo "Defaulting to normal" >&6; } 4494fi 4495 4496 4497dovimdiff="" 4498dogvimdiff="" 4499case "$features" in 4500 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4501 ;; 4502 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4503 ;; 4504 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4505 dovimdiff="installvimdiff"; 4506 dogvimdiff="installgvimdiff" ;; 4507 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4508 dovimdiff="installvimdiff"; 4509 dogvimdiff="installgvimdiff" ;; 4510 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4511 dovimdiff="installvimdiff"; 4512 dogvimdiff="installgvimdiff" ;; 4513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4514$as_echo "Sorry, $features is not supported" >&6; } ;; 4515esac 4516 4517 4518 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4521$as_echo_n "checking --with-compiledby argument... " >&6; } 4522 4523# Check whether --with-compiledby was given. 4524if test "${with_compiledby+set}" = set; then : 4525 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4526$as_echo "$withval" >&6; } 4527else 4528 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529$as_echo "no" >&6; } 4530fi 4531 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4535$as_echo_n "checking --disable-xsmp argument... " >&6; } 4536# Check whether --enable-xsmp was given. 4537if test "${enable_xsmp+set}" = set; then : 4538 enableval=$enable_xsmp; 4539else 4540 enable_xsmp="yes" 4541fi 4542 4543 4544if test "$enable_xsmp" = "yes"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4546$as_echo "no" >&6; } 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4548$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4549 # Check whether --enable-xsmp-interact was given. 4550if test "${enable_xsmp_interact+set}" = set; then : 4551 enableval=$enable_xsmp_interact; 4552else 4553 enable_xsmp_interact="yes" 4554fi 4555 4556 if test "$enable_xsmp_interact" = "yes"; then 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4560 4561 else 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4563$as_echo "yes" >&6; } 4564 fi 4565else 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4567$as_echo "yes" >&6; } 4568fi 4569 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 4571$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 4572# Check whether --enable-mzschemeinterp was given. 4573if test "${enable_mzschemeinterp+set}" = set; then : 4574 enableval=$enable_mzschemeinterp; 4575else 4576 enable_mzschemeinterp="no" 4577fi 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 4580$as_echo "$enable_mzschemeinterp" >&6; } 4581 4582if test "$enable_mzschemeinterp" = "yes"; then 4583 4584 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 4586$as_echo_n "checking --with-plthome argument... " >&6; } 4587 4588# Check whether --with-plthome was given. 4589if test "${with_plthome+set}" = set; then : 4590 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 4591$as_echo "$with_plthome" >&6; } 4592else 4593 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 4594$as_echo "\"no\"" >&6; } 4595fi 4596 4597 4598 if test "X$with_plthome" != "X"; then 4599 vi_cv_path_mzscheme_pfx="$with_plthome" 4600 else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 4602$as_echo_n "checking PLTHOME environment var... " >&6; } 4603 if test "X$PLTHOME" != "X"; then 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 4605$as_echo "\"$PLTHOME\"" >&6; } 4606 vi_cv_path_mzscheme_pfx="$PLTHOME" 4607 else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 4609$as_echo "not set" >&6; } 4610 # Extract the first word of "mzscheme", so it can be a program name with args. 4611set dummy mzscheme; ac_word=$2 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4613$as_echo_n "checking for $ac_word... " >&6; } 4614if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 case $vi_cv_path_mzscheme in 4618 [\\/]* | ?:[\\/]*) 4619 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 4620 ;; 4621 *) 4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4623for as_dir in $PATH 4624do 4625 IFS=$as_save_IFS 4626 test -z "$as_dir" && as_dir=. 4627 for ac_exec_ext in '' $ac_executable_extensions; do 4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4629 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4631 break 2 4632 fi 4633done 4634 done 4635IFS=$as_save_IFS 4636 4637 ;; 4638esac 4639fi 4640vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 4641if test -n "$vi_cv_path_mzscheme"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 4643$as_echo "$vi_cv_path_mzscheme" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650 4651 if test "X$vi_cv_path_mzscheme" != "X"; then 4652 lsout=`ls -l $vi_cv_path_mzscheme` 4653 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 4654 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 4655 fi 4656 fi 4657 4658 if test "X$vi_cv_path_mzscheme" != "X"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 4660$as_echo_n "checking MzScheme install prefix... " >&6; } 4661if test "${vi_cv_path_mzscheme_pfx+set}" = set; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 echo "(display (simplify-path \ 4665 (build-path (call-with-values \ 4666 (lambda () (split-path (find-system-path (quote exec-file)))) \ 4667 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 4668 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 4669 sed -e 's+/$++'` 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 4672$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 4673 rm -f mzdirs.scm 4674 fi 4675 fi 4676 fi 4677 4678 SCHEME_INC= 4679 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 4681$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 4682 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then 4683 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4685$as_echo "yes" >&6; } 4686 else 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4688$as_echo "no" >&6; } 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 4690$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 4691 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4693$as_echo "yes" >&6; } 4694 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 4695 else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 4699$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 4700 if test -f /usr/include/plt/scheme.h; then 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4702$as_echo "yes" >&6; } 4703 SCHEME_INC=/usr/include/plt 4704 else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707 vi_cv_path_mzscheme_pfx= 4708 fi 4709 fi 4710 fi 4711 fi 4712 4713 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4714 if test "x$MACOSX" = "xyes"; then 4715 MZSCHEME_LIBS="-framework PLT_MzScheme" 4716 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then 4717 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" 4718 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4719 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then 4720 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" 4721 else 4722 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then 4723 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" 4724 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4725 else 4726 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" 4727 fi 4728 if test "$GCC" = yes; then 4729 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" 4730 elif test "`(uname) 2>/dev/null`" = SunOS && 4731 uname -r | grep '^5' >/dev/null; then 4732 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" 4733 fi 4734 fi 4735 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then 4736 SCHEME_COLLECTS=lib/plt/ 4737 fi 4738 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 4739 MZSCHEME_EXTRA="mzscheme_base.c" 4740 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 4741 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 4742 fi 4743 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 4744 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" 4745 MZSCHEME_SRC="if_mzsch.c" 4746 MZSCHEME_OBJ="objects/if_mzsch.o" 4747 MZSCHEME_PRO="if_mzsch.pro" 4748 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 4749 4750 fi 4751 4752 4753 4754 4755 4756 4757 4758fi 4759 4760 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 4762$as_echo_n "checking --enable-perlinterp argument... " >&6; } 4763# Check whether --enable-perlinterp was given. 4764if test "${enable_perlinterp+set}" = set; then : 4765 enableval=$enable_perlinterp; 4766else 4767 enable_perlinterp="no" 4768fi 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 4771$as_echo "$enable_perlinterp" >&6; } 4772if test "$enable_perlinterp" = "yes"; then 4773 4774 # Extract the first word of "perl", so it can be a program name with args. 4775set dummy perl; ac_word=$2 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4777$as_echo_n "checking for $ac_word... " >&6; } 4778if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 case $vi_cv_path_perl in 4782 [\\/]* | ?:[\\/]*) 4783 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 4784 ;; 4785 *) 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787for as_dir in $PATH 4788do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4793 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797done 4798 done 4799IFS=$as_save_IFS 4800 4801 ;; 4802esac 4803fi 4804vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 4805if test -n "$vi_cv_path_perl"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 4807$as_echo "$vi_cv_path_perl" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812 4813 4814 if test "X$vi_cv_path_perl" != "X"; then 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 4816$as_echo_n "checking Perl version... " >&6; } 4817 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 4818 eval `$vi_cv_path_perl -V:usethreads` 4819 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 4820 badthreads=no 4821 else 4822 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 4823 eval `$vi_cv_path_perl -V:use5005threads` 4824 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 4825 badthreads=no 4826 else 4827 badthreads=yes 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 4829$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 4830 fi 4831 else 4832 badthreads=yes 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 4834$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 4835 fi 4836 fi 4837 if test $badthreads = no; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 4839$as_echo "OK" >&6; } 4840 eval `$vi_cv_path_perl -V:shrpenv` 4841 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 4842 shrpenv="" 4843 fi 4844 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 4845 4846 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 4847 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` 4848 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 4849 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 4850 -e 's/-bE:perl.exp//' -e 's/-lc //'` 4851 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 4852 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 4853 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 4855$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 4856 cflags_save=$CFLAGS 4857 libs_save=$LIBS 4858 ldflags_save=$LDFLAGS 4859 CFLAGS="$CFLAGS $perlcppflags" 4860 LIBS="$LIBS $perllibs" 4861 LDFLAGS="$perlldflags $LDFLAGS" 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863/* end confdefs.h. */ 4864 4865int 4866main () 4867{ 4868 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873if ac_fn_c_try_link "$LINENO"; then : 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4875$as_echo "yes" >&6; }; perl_ok=yes 4876else 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 4878$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext conftest.$ac_ext 4882 CFLAGS=$cflags_save 4883 LIBS=$libs_save 4884 LDFLAGS=$ldflags_save 4885 if test $perl_ok = yes; then 4886 if test "X$perlcppflags" != "X"; then 4887 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 4888 fi 4889 if test "X$perlldflags" != "X"; then 4890 LDFLAGS="$perlldflags $LDFLAGS" 4891 fi 4892 PERL_LIBS=$perllibs 4893 PERL_SRC="auto/if_perl.c if_perlsfio.c" 4894 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 4895 PERL_PRO="if_perl.pro if_perlsfio.pro" 4896 $as_echo "#define FEAT_PERL 1" >>confdefs.h 4897 4898 fi 4899 fi 4900 else 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 4902$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 4903 fi 4904 fi 4905 4906 if test "x$MACOSX" = "xyes"; then 4907 dir=/System/Library/Perl 4908 darwindir=$dir/darwin 4909 if test -d $darwindir; then 4910 PERL=/usr/bin/perl 4911 else 4912 dir=/System/Library/Perl/5.8.1 4913 darwindir=$dir/darwin-thread-multi-2level 4914 if test -d $darwindir; then 4915 PERL=/usr/bin/perl 4916 fi 4917 fi 4918 if test -n "$PERL"; then 4919 PERL_DIR="$dir" 4920 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 4921 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 4922 PERL_LIBS="-L$darwindir/CORE -lperl" 4923 fi 4924 fi 4925fi 4926 4927 4928 4929 4930 4931 4932 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 4934$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 4935# Check whether --enable-pythoninterp was given. 4936if test "${enable_pythoninterp+set}" = set; then : 4937 enableval=$enable_pythoninterp; 4938else 4939 enable_pythoninterp="no" 4940fi 4941 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 4943$as_echo "$enable_pythoninterp" >&6; } 4944if test "$enable_pythoninterp" = "yes"; then 4945 # Extract the first word of "python", so it can be a program name with args. 4946set dummy python; ac_word=$2 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4948$as_echo_n "checking for $ac_word... " >&6; } 4949if test "${ac_cv_path_vi_cv_path_python+set}" = set; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 case $vi_cv_path_python in 4953 [\\/]* | ?:[\\/]*) 4954 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 4955 ;; 4956 *) 4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958for as_dir in $PATH 4959do 4960 IFS=$as_save_IFS 4961 test -z "$as_dir" && as_dir=. 4962 for ac_exec_ext in '' $ac_executable_extensions; do 4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4964 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4966 break 2 4967 fi 4968done 4969 done 4970IFS=$as_save_IFS 4971 4972 ;; 4973esac 4974fi 4975vi_cv_path_python=$ac_cv_path_vi_cv_path_python 4976if test -n "$vi_cv_path_python"; then 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 4978$as_echo "$vi_cv_path_python" >&6; } 4979else 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4981$as_echo "no" >&6; } 4982fi 4983 4984 4985 if test "X$vi_cv_path_python" != "X"; then 4986 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 4988$as_echo_n "checking Python version... " >&6; } 4989if test "${vi_cv_var_python_version+set}" = set; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 vi_cv_var_python_version=` 4993 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 4994 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 4997$as_echo "$vi_cv_var_python_version" >&6; } 4998 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5 5000$as_echo_n "checking Python is 1.4 or better... " >&6; } 5001 if ${vi_cv_path_python} -c \ 5002 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 5003 then 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5005$as_echo "yep" >&6; } 5006 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5008$as_echo_n "checking Python's install prefix... " >&6; } 5009if test "${vi_cv_path_python_pfx+set}" = set; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 vi_cv_path_python_pfx=` 5013 ${vi_cv_path_python} -c \ 5014 "import sys; print sys.prefix"` 5015fi 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5017$as_echo "$vi_cv_path_python_pfx" >&6; } 5018 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5020$as_echo_n "checking Python's execution prefix... " >&6; } 5021if test "${vi_cv_path_python_epfx+set}" = set; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 vi_cv_path_python_epfx=` 5025 ${vi_cv_path_python} -c \ 5026 "import sys; print sys.exec_prefix"` 5027fi 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5029$as_echo "$vi_cv_path_python_epfx" >&6; } 5030 5031 5032 if test "${vi_cv_path_pythonpath+set}" = set; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 vi_cv_path_pythonpath=` 5036 unset PYTHONPATH; 5037 ${vi_cv_path_python} -c \ 5038 "import sys, string; print string.join(sys.path,':')"` 5039fi 5040 5041 5042 5043 5044# Check whether --with-python-config-dir was given. 5045if test "${with_python_config_dir+set}" = set; then : 5046 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5047fi 5048 5049 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5051$as_echo_n "checking Python's configuration directory... " >&6; } 5052if test "${vi_cv_path_python_conf+set}" = set; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 5056 vi_cv_path_python_conf= 5057 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5058 for subdir in lib64 lib share; do 5059 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5060 if test -d "$d" && test -f "$d/config.c"; then 5061 vi_cv_path_python_conf="$d" 5062 fi 5063 done 5064 done 5065 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5068$as_echo "$vi_cv_path_python_conf" >&6; } 5069 5070 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5071 5072 if test "X$PYTHON_CONFDIR" = "X"; then 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5074$as_echo "can't find it!" >&6; } 5075 else 5076 5077 if test "${vi_cv_path_python_plibs+set}" = set; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 5081 pwd=`pwd` 5082 tmp_mkf="$pwd/config-PyMake$$" 5083 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5084__: 5085 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5086 @echo "python_LIBS='$(LIBS)'" 5087 @echo "python_SYSLIBS='$(SYSLIBS)'" 5088 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5089eof 5090 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5091 rm -f -- "${tmp_mkf}" 5092 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5093 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5094 vi_cv_path_python_plibs="-framework Python" 5095 else 5096 if test "${vi_cv_var_python_version}" = "1.4"; then 5097 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5098 else 5099 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5100 fi 5101 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5102 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5103 fi 5104 5105fi 5106 5107 5108 PYTHON_LIBS="${vi_cv_path_python_plibs}" 5109 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 5110 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 5111 else 5112 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}" 5113 fi 5114 PYTHON_SRC="if_python.c" 5115 if test "x$MACOSX" = "xyes"; then 5116 PYTHON_OBJ="objects/if_python.o" 5117 else 5118 PYTHON_OBJ="objects/if_python.o objects/py_config.o" 5119 fi 5120 if test "${vi_cv_var_python_version}" = "1.4"; then 5121 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 5122 fi 5123 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 5124 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5126$as_echo_n "checking if -pthread should be used... " >&6; } 5127 threadsafe_flag= 5128 thread_lib= 5129 if test "`(uname) 2>/dev/null`" != Darwin; then 5130 test "$GCC" = yes && threadsafe_flag="-pthread" 5131 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5132 threadsafe_flag="-D_THREAD_SAFE" 5133 thread_lib="-pthread" 5134 fi 5135 fi 5136 libs_save_old=$LIBS 5137 if test -n "$threadsafe_flag"; then 5138 cflags_save=$CFLAGS 5139 CFLAGS="$CFLAGS $threadsafe_flag" 5140 LIBS="$LIBS $thread_lib" 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143 5144int 5145main () 5146{ 5147 5148 ; 5149 return 0; 5150} 5151_ACEOF 5152if ac_fn_c_try_link "$LINENO"; then : 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5154$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 5155else 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5157$as_echo "no" >&6; }; LIBS=$libs_save_old 5158 5159fi 5160rm -f core conftest.err conftest.$ac_objext \ 5161 conftest$ac_exeext conftest.$ac_ext 5162 CFLAGS=$cflags_save 5163 else 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165$as_echo "no" >&6; } 5166 fi 5167 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 5169$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 5170 cflags_save=$CFLAGS 5171 libs_save=$LIBS 5172 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 5173 LIBS="$LIBS $PYTHON_LIBS" 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185if ac_fn_c_try_link "$LINENO"; then : 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5187$as_echo "yes" >&6; }; python_ok=yes 5188else 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 5190$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 5191fi 5192rm -f core conftest.err conftest.$ac_objext \ 5193 conftest$ac_exeext conftest.$ac_ext 5194 CFLAGS=$cflags_save 5195 LIBS=$libs_save 5196 if test $python_ok = yes; then 5197 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 5198 5199 else 5200 LIBS=$libs_save_old 5201 PYTHON_SRC= 5202 PYTHON_OBJ= 5203 PYTHON_LIBS= 5204 PYTHON_CFLAGS= 5205 fi 5206 5207 fi 5208 else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 5210$as_echo "too old" >&6; } 5211 fi 5212 fi 5213fi 5214 5215 5216 5217 5218 5219 5220 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 5222$as_echo_n "checking --enable-tclinterp argument... " >&6; } 5223# Check whether --enable-tclinterp was given. 5224if test "${enable_tclinterp+set}" = set; then : 5225 enableval=$enable_tclinterp; 5226else 5227 enable_tclinterp="no" 5228fi 5229 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 5231$as_echo "$enable_tclinterp" >&6; } 5232 5233if test "$enable_tclinterp" = "yes"; then 5234 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 5236$as_echo_n "checking --with-tclsh argument... " >&6; } 5237 5238# Check whether --with-tclsh was given. 5239if test "${with_tclsh+set}" = set; then : 5240 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 5241$as_echo "$tclsh_name" >&6; } 5242else 5243 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5244$as_echo "no" >&6; } 5245fi 5246 5247 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5248set dummy $tclsh_name; ac_word=$2 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 case $vi_cv_path_tcl in 5255 [\\/]* | ?:[\\/]*) 5256 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5257 ;; 5258 *) 5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5260for as_dir in $PATH 5261do 5262 IFS=$as_save_IFS 5263 test -z "$as_dir" && as_dir=. 5264 for ac_exec_ext in '' $ac_executable_extensions; do 5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5266 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5268 break 2 5269 fi 5270done 5271 done 5272IFS=$as_save_IFS 5273 5274 ;; 5275esac 5276fi 5277vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5278if test -n "$vi_cv_path_tcl"; then 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5280$as_echo "$vi_cv_path_tcl" >&6; } 5281else 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283$as_echo "no" >&6; } 5284fi 5285 5286 5287 5288 5289 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 5290 tclsh_name="tclsh8.4" 5291 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5292set dummy $tclsh_name; ac_word=$2 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5294$as_echo_n "checking for $ac_word... " >&6; } 5295if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5296 $as_echo_n "(cached) " >&6 5297else 5298 case $vi_cv_path_tcl in 5299 [\\/]* | ?:[\\/]*) 5300 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5301 ;; 5302 *) 5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5310 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315 done 5316IFS=$as_save_IFS 5317 5318 ;; 5319esac 5320fi 5321vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5322if test -n "$vi_cv_path_tcl"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5324$as_echo "$vi_cv_path_tcl" >&6; } 5325else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5327$as_echo "no" >&6; } 5328fi 5329 5330 5331 fi 5332 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 5333 tclsh_name="tclsh8.2" 5334 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5335set dummy $tclsh_name; ac_word=$2 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5337$as_echo_n "checking for $ac_word... " >&6; } 5338if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 case $vi_cv_path_tcl in 5342 [\\/]* | ?:[\\/]*) 5343 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5344 ;; 5345 *) 5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5353 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361 ;; 5362esac 5363fi 5364vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5365if test -n "$vi_cv_path_tcl"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5367$as_echo "$vi_cv_path_tcl" >&6; } 5368else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5370$as_echo "no" >&6; } 5371fi 5372 5373 5374 fi 5375 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 5376 tclsh_name="tclsh8.0" 5377 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5378set dummy $tclsh_name; ac_word=$2 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5380$as_echo_n "checking for $ac_word... " >&6; } 5381if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 case $vi_cv_path_tcl in 5385 [\\/]* | ?:[\\/]*) 5386 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5387 ;; 5388 *) 5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5390for as_dir in $PATH 5391do 5392 IFS=$as_save_IFS 5393 test -z "$as_dir" && as_dir=. 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5396 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400done 5401 done 5402IFS=$as_save_IFS 5403 5404 ;; 5405esac 5406fi 5407vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5408if test -n "$vi_cv_path_tcl"; then 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5410$as_echo "$vi_cv_path_tcl" >&6; } 5411else 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413$as_echo "no" >&6; } 5414fi 5415 5416 5417 fi 5418 if test "X$vi_cv_path_tcl" = "X"; then 5419 tclsh_name="tclsh" 5420 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5421set dummy $tclsh_name; ac_word=$2 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5423$as_echo_n "checking for $ac_word... " >&6; } 5424if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 case $vi_cv_path_tcl in 5428 [\\/]* | ?:[\\/]*) 5429 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5430 ;; 5431 *) 5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433for as_dir in $PATH 5434do 5435 IFS=$as_save_IFS 5436 test -z "$as_dir" && as_dir=. 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5439 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5441 break 2 5442 fi 5443done 5444 done 5445IFS=$as_save_IFS 5446 5447 ;; 5448esac 5449fi 5450vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5451if test -n "$vi_cv_path_tcl"; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5453$as_echo "$vi_cv_path_tcl" >&6; } 5454else 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5456$as_echo "no" >&6; } 5457fi 5458 5459 5460 fi 5461 if test "X$vi_cv_path_tcl" != "X"; then 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 5463$as_echo_n "checking Tcl version... " >&6; } 5464 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 5465 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 5467$as_echo "$tclver - OK" >&6; }; 5468 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 -` 5469 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 5471$as_echo_n "checking for location of Tcl include... " >&6; } 5472 if test "x$MACOSX" != "xyes"; then 5473 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 5474 else 5475 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 5476 fi 5477 TCL_INC= 5478 for try in $tclinc; do 5479 if test -f "$try/tcl.h"; then 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 5481$as_echo "$try/tcl.h" >&6; } 5482 TCL_INC=$try 5483 break 5484 fi 5485 done 5486 if test -z "$TCL_INC"; then 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5488$as_echo "<not found>" >&6; } 5489 SKIP_TCL=YES 5490 fi 5491 if test -z "$SKIP_TCL"; then 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 5493$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 5494 if test "x$MACOSX" != "xyes"; then 5495 tclcnf=`echo $tclinc | sed s/include/lib/g` 5496 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 5497 else 5498 tclcnf="/System/Library/Frameworks/Tcl.framework" 5499 fi 5500 for try in $tclcnf; do 5501 if test -f $try/tclConfig.sh; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 5503$as_echo "$try/tclConfig.sh" >&6; } 5504 . $try/tclConfig.sh 5505 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 5506 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'` 5507 break 5508 fi 5509 done 5510 if test -z "$TCL_LIBS"; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5512$as_echo "<not found>" >&6; } 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 5514$as_echo_n "checking for Tcl library by myself... " >&6; } 5515 tcllib=`echo $tclinc | sed s/include/lib/g` 5516 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 5517 for ext in .so .a ; do 5518 for ver in "" $tclver ; do 5519 for try in $tcllib ; do 5520 trylib=tcl$ver$ext 5521 if test -f $try/lib$trylib ; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 5523$as_echo "$try/lib$trylib" >&6; } 5524 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 5525 if test "`(uname) 2>/dev/null`" = SunOS && 5526 uname -r | grep '^5' >/dev/null; then 5527 TCL_LIBS="$TCL_LIBS -R $try" 5528 fi 5529 break 3 5530 fi 5531 done 5532 done 5533 done 5534 if test -z "$TCL_LIBS"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5536$as_echo "<not found>" >&6; } 5537 SKIP_TCL=YES 5538 fi 5539 fi 5540 if test -z "$SKIP_TCL"; then 5541 $as_echo "#define FEAT_TCL 1" >>confdefs.h 5542 5543 TCL_SRC=if_tcl.c 5544 TCL_OBJ=objects/if_tcl.o 5545 TCL_PRO=if_tcl.pro 5546 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 5547 fi 5548 fi 5549 else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 5551$as_echo "too old; need Tcl version 8.0 or later" >&6; } 5552 fi 5553 fi 5554fi 5555 5556 5557 5558 5559 5560 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 5562$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 5563# Check whether --enable-rubyinterp was given. 5564if test "${enable_rubyinterp+set}" = set; then : 5565 enableval=$enable_rubyinterp; 5566else 5567 enable_rubyinterp="no" 5568fi 5569 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 5571$as_echo "$enable_rubyinterp" >&6; } 5572if test "$enable_rubyinterp" = "yes"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 5574$as_echo_n "checking --with-ruby-command argument... " >&6; } 5575 5576# Check whether --with-ruby-command was given. 5577if test "${with_ruby_command+set}" = set; then : 5578 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 5579$as_echo "$RUBY_CMD" >&6; } 5580else 5581 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 5582$as_echo "defaulting to $RUBY_CMD" >&6; } 5583fi 5584 5585 5586 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 5587set dummy $RUBY_CMD; ac_word=$2 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589$as_echo_n "checking for $ac_word... " >&6; } 5590if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 case $vi_cv_path_ruby in 5594 [\\/]* | ?:[\\/]*) 5595 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 5596 ;; 5597 *) 5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5599for as_dir in $PATH 5600do 5601 IFS=$as_save_IFS 5602 test -z "$as_dir" && as_dir=. 5603 for ac_exec_ext in '' $ac_executable_extensions; do 5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5605 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5607 break 2 5608 fi 5609done 5610 done 5611IFS=$as_save_IFS 5612 5613 ;; 5614esac 5615fi 5616vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 5617if test -n "$vi_cv_path_ruby"; then 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 5619$as_echo "$vi_cv_path_ruby" >&6; } 5620else 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5622$as_echo "no" >&6; } 5623fi 5624 5625 5626 if test "X$vi_cv_path_ruby" != "X"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 5628$as_echo_n "checking Ruby version... " >&6; } 5629 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5631$as_echo "OK" >&6; } 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 5633$as_echo_n "checking Ruby header files... " >&6; } 5634 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 5635 if test "X$rubyhdrdir" != "X"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 5637$as_echo "$rubyhdrdir" >&6; } 5638 RUBY_CFLAGS="-I$rubyhdrdir" 5639 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` 5640 if test -d "$rubyhdrdir/$rubyarch"; then 5641 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" 5642 fi 5643 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'` 5644 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 5645 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` 5646 if test "X$rubylibs" != "X"; then 5647 RUBY_LIBS="$rubylibs" 5648 fi 5649 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` 5650 if test -f "$rubyhdrdir/$librubyarg"; then 5651 librubyarg="$rubyhdrdir/$librubyarg" 5652 else 5653 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` 5654 if test -f "$rubylibdir/$librubyarg"; then 5655 librubyarg="$rubylibdir/$librubyarg" 5656 elif test "$librubyarg" = "libruby.a"; then 5657 librubyarg="-lruby" 5658 else 5659 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` 5660 fi 5661 fi 5662 5663 if test "X$librubyarg" != "X"; then 5664 RUBY_LIBS="$librubyarg $RUBY_LIBS" 5665 fi 5666 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` 5667 if test "X$rubyldflags" != "X"; then 5668 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'` 5669 if test "X$rubyldflags" != "X"; then 5670 LDFLAGS="$rubyldflags $LDFLAGS" 5671 fi 5672 fi 5673 RUBY_SRC="if_ruby.c" 5674 RUBY_OBJ="objects/if_ruby.o" 5675 RUBY_PRO="if_ruby.pro" 5676 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 5677 5678 else 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 5680$as_echo "not found; disabling Ruby" >&6; } 5681 fi 5682 else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 5684$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 5685 fi 5686 fi 5687fi 5688 5689 5690 5691 5692 5693 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 5695$as_echo_n "checking --enable-cscope argument... " >&6; } 5696# Check whether --enable-cscope was given. 5697if test "${enable_cscope+set}" = set; then : 5698 enableval=$enable_cscope; 5699else 5700 enable_cscope="no" 5701fi 5702 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 5704$as_echo "$enable_cscope" >&6; } 5705if test "$enable_cscope" = "yes"; then 5706 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 5707 5708fi 5709 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 5711$as_echo_n "checking --enable-workshop argument... " >&6; } 5712# Check whether --enable-workshop was given. 5713if test "${enable_workshop+set}" = set; then : 5714 enableval=$enable_workshop; 5715else 5716 enable_workshop="no" 5717fi 5718 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 5720$as_echo "$enable_workshop" >&6; } 5721if test "$enable_workshop" = "yes"; then 5722 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 5723 5724 WORKSHOP_SRC="workshop.c integration.c" 5725 5726 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 5727 5728 if test "${enable_gui-xxx}" = xxx; then 5729 enable_gui=motif 5730 fi 5731fi 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 5734$as_echo_n "checking --disable-netbeans argument... " >&6; } 5735# Check whether --enable-netbeans was given. 5736if test "${enable_netbeans+set}" = set; then : 5737 enableval=$enable_netbeans; 5738else 5739 enable_netbeans="yes" 5740fi 5741 5742if test "$enable_netbeans" = "yes"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5744$as_echo "no" >&6; } 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5746$as_echo_n "checking for socket in -lsocket... " >&6; } 5747if test "${ac_cv_lib_socket_socket+set}" = set; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 ac_check_lib_save_LIBS=$LIBS 5751LIBS="-lsocket $LIBS" 5752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754 5755/* Override any GCC internal prototype to avoid an error. 5756 Use char because int might match the return type of a GCC 5757 builtin and then its argument prototype would still apply. */ 5758#ifdef __cplusplus 5759extern "C" 5760#endif 5761char socket (); 5762int 5763main () 5764{ 5765return socket (); 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770if ac_fn_c_try_link "$LINENO"; then : 5771 ac_cv_lib_socket_socket=yes 5772else 5773 ac_cv_lib_socket_socket=no 5774fi 5775rm -f core conftest.err conftest.$ac_objext \ 5776 conftest$ac_exeext conftest.$ac_ext 5777LIBS=$ac_check_lib_save_LIBS 5778fi 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5780$as_echo "$ac_cv_lib_socket_socket" >&6; } 5781if test "x$ac_cv_lib_socket_socket" = x""yes; then : 5782 cat >>confdefs.h <<_ACEOF 5783#define HAVE_LIBSOCKET 1 5784_ACEOF 5785 5786 LIBS="-lsocket $LIBS" 5787 5788fi 5789 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5791$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5792if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 ac_check_lib_save_LIBS=$LIBS 5796LIBS="-lnsl $LIBS" 5797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799 5800/* Override any GCC internal prototype to avoid an error. 5801 Use char because int might match the return type of a GCC 5802 builtin and then its argument prototype would still apply. */ 5803#ifdef __cplusplus 5804extern "C" 5805#endif 5806char gethostbyname (); 5807int 5808main () 5809{ 5810return gethostbyname (); 5811 ; 5812 return 0; 5813} 5814_ACEOF 5815if ac_fn_c_try_link "$LINENO"; then : 5816 ac_cv_lib_nsl_gethostbyname=yes 5817else 5818 ac_cv_lib_nsl_gethostbyname=no 5819fi 5820rm -f core conftest.err conftest.$ac_objext \ 5821 conftest$ac_exeext conftest.$ac_ext 5822LIBS=$ac_check_lib_save_LIBS 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5825$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5826if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 5827 cat >>confdefs.h <<_ACEOF 5828#define HAVE_LIBNSL 1 5829_ACEOF 5830 5831 LIBS="-lnsl $LIBS" 5832 5833fi 5834 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5 5836$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839 5840#include <stdio.h> 5841#include <stdlib.h> 5842#include <stdarg.h> 5843#include <fcntl.h> 5844#include <netdb.h> 5845#include <netinet/in.h> 5846#include <errno.h> 5847#include <sys/types.h> 5848#include <sys/socket.h> 5849 /* Check bitfields */ 5850 struct nbbuf { 5851 unsigned int initDone:1; 5852 ushort signmaplen; 5853 }; 5854 5855int 5856main () 5857{ 5858 5859 /* Check creating a socket. */ 5860 struct sockaddr_in server; 5861 (void)socket(AF_INET, SOCK_STREAM, 0); 5862 (void)htons(100); 5863 (void)gethostbyname("microsoft.com"); 5864 if (errno == ECONNREFUSED) 5865 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871if ac_fn_c_try_link "$LINENO"; then : 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5873$as_echo "yes" >&6; } 5874else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876$as_echo "no" >&6; }; enable_netbeans="no" 5877fi 5878rm -f core conftest.err conftest.$ac_objext \ 5879 conftest$ac_exeext conftest.$ac_ext 5880else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5882$as_echo "yes" >&6; } 5883fi 5884if test "$enable_netbeans" = "yes"; then 5885 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 5886 5887 NETBEANS_SRC="netbeans.c" 5888 5889 NETBEANS_OBJ="objects/netbeans.o" 5890 5891fi 5892 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5 5894$as_echo_n "checking --enable-sniff argument... " >&6; } 5895# Check whether --enable-sniff was given. 5896if test "${enable_sniff+set}" = set; then : 5897 enableval=$enable_sniff; 5898else 5899 enable_sniff="no" 5900fi 5901 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5 5903$as_echo "$enable_sniff" >&6; } 5904if test "$enable_sniff" = "yes"; then 5905 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h 5906 5907 SNIFF_SRC="if_sniff.c" 5908 5909 SNIFF_OBJ="objects/if_sniff.o" 5910 5911fi 5912 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 5914$as_echo_n "checking --enable-multibyte argument... " >&6; } 5915# Check whether --enable-multibyte was given. 5916if test "${enable_multibyte+set}" = set; then : 5917 enableval=$enable_multibyte; 5918else 5919 enable_multibyte="no" 5920fi 5921 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 5923$as_echo "$enable_multibyte" >&6; } 5924if test "$enable_multibyte" = "yes"; then 5925 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 5926 5927fi 5928 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 5930$as_echo_n "checking --enable-hangulinput argument... " >&6; } 5931# Check whether --enable-hangulinput was given. 5932if test "${enable_hangulinput+set}" = set; then : 5933 enableval=$enable_hangulinput; 5934else 5935 enable_hangulinput="no" 5936fi 5937 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 5939$as_echo "$enable_hangulinput" >&6; } 5940 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 5942$as_echo_n "checking --enable-xim argument... " >&6; } 5943# Check whether --enable-xim was given. 5944if test "${enable_xim+set}" = set; then : 5945 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 5946$as_echo "$enable_xim" >&6; } 5947else 5948 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 5949$as_echo "defaulting to auto" >&6; } 5950fi 5951 5952 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 5954$as_echo_n "checking --enable-fontset argument... " >&6; } 5955# Check whether --enable-fontset was given. 5956if test "${enable_fontset+set}" = set; then : 5957 enableval=$enable_fontset; 5958else 5959 enable_fontset="no" 5960fi 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 5963$as_echo "$enable_fontset" >&6; } 5964 5965test -z "$with_x" && with_x=yes 5966test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 5967if test "$with_x" = no; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 5969$as_echo "defaulting to: don't HAVE_X11" >&6; } 5970else 5971 5972 # Extract the first word of "xmkmf", so it can be a program name with args. 5973set dummy xmkmf; ac_word=$2 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5975$as_echo_n "checking for $ac_word... " >&6; } 5976if test "${ac_cv_path_xmkmfpath+set}" = set; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 case $xmkmfpath in 5980 [\\/]* | ?:[\\/]*) 5981 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 5982 ;; 5983 *) 5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5985for as_dir in $PATH 5986do 5987 IFS=$as_save_IFS 5988 test -z "$as_dir" && as_dir=. 5989 for ac_exec_ext in '' $ac_executable_extensions; do 5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5991 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5993 break 2 5994 fi 5995done 5996 done 5997IFS=$as_save_IFS 5998 5999 ;; 6000esac 6001fi 6002xmkmfpath=$ac_cv_path_xmkmfpath 6003if test -n "$xmkmfpath"; then 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 6005$as_echo "$xmkmfpath" >&6; } 6006else 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6008$as_echo "no" >&6; } 6009fi 6010 6011 6012 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6014$as_echo_n "checking for X... " >&6; } 6015 6016 6017# Check whether --with-x was given. 6018if test "${with_x+set}" = set; then : 6019 withval=$with_x; 6020fi 6021 6022# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6023if test "x$with_x" = xno; then 6024 # The user explicitly disabled X. 6025 have_x=disabled 6026else 6027 case $x_includes,$x_libraries in #( 6028 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 6029 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 # One or both of the vars are not set, and there is no cached value. 6033ac_x_includes=no ac_x_libraries=no 6034rm -f -r conftest.dir 6035if mkdir conftest.dir; then 6036 cd conftest.dir 6037 cat >Imakefile <<'_ACEOF' 6038incroot: 6039 @echo incroot='${INCROOT}' 6040usrlibdir: 6041 @echo usrlibdir='${USRLIBDIR}' 6042libdir: 6043 @echo libdir='${LIBDIR}' 6044_ACEOF 6045 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6047 for ac_var in incroot usrlibdir libdir; do 6048 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6049 done 6050 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6051 for ac_extension in a so sl dylib la dll; do 6052 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6053 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6054 ac_im_usrlibdir=$ac_im_libdir; break 6055 fi 6056 done 6057 # Screen out bogus values from the imake configuration. They are 6058 # bogus both because they are the default anyway, and because 6059 # using them would break gcc on systems where it needs fixed includes. 6060 case $ac_im_incroot in 6061 /usr/include) ac_x_includes= ;; 6062 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6063 esac 6064 case $ac_im_usrlibdir in 6065 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6066 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6067 esac 6068 fi 6069 cd .. 6070 rm -f -r conftest.dir 6071fi 6072 6073# Standard set of common directories for X headers. 6074# Check X11 before X11Rn because it is often a symlink to the current release. 6075ac_x_header_dirs=' 6076/usr/X11/include 6077/usr/X11R7/include 6078/usr/X11R6/include 6079/usr/X11R5/include 6080/usr/X11R4/include 6081 6082/usr/include/X11 6083/usr/include/X11R7 6084/usr/include/X11R6 6085/usr/include/X11R5 6086/usr/include/X11R4 6087 6088/usr/local/X11/include 6089/usr/local/X11R7/include 6090/usr/local/X11R6/include 6091/usr/local/X11R5/include 6092/usr/local/X11R4/include 6093 6094/usr/local/include/X11 6095/usr/local/include/X11R7 6096/usr/local/include/X11R6 6097/usr/local/include/X11R5 6098/usr/local/include/X11R4 6099 6100/usr/X386/include 6101/usr/x386/include 6102/usr/XFree86/include/X11 6103 6104/usr/include 6105/usr/local/include 6106/usr/unsupported/include 6107/usr/athena/include 6108/usr/local/x11r5/include 6109/usr/lpp/Xamples/include 6110 6111/usr/openwin/include 6112/usr/openwin/share/include' 6113 6114if test "$ac_x_includes" = no; then 6115 # Guess where to find include files, by looking for Xlib.h. 6116 # First, try using that file with no special directory specified. 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119#include <X11/Xlib.h> 6120_ACEOF 6121if ac_fn_c_try_cpp "$LINENO"; then : 6122 # We can compile using X headers with no special include directory. 6123ac_x_includes= 6124else 6125 for ac_dir in $ac_x_header_dirs; do 6126 if test -r "$ac_dir/X11/Xlib.h"; then 6127 ac_x_includes=$ac_dir 6128 break 6129 fi 6130done 6131fi 6132rm -f conftest.err conftest.$ac_ext 6133fi # $ac_x_includes = no 6134 6135if test "$ac_x_libraries" = no; then 6136 # Check for the libraries. 6137 # See if we find them without any special options. 6138 # Don't add to $LIBS permanently. 6139 ac_save_LIBS=$LIBS 6140 LIBS="-lX11 $LIBS" 6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142/* end confdefs.h. */ 6143#include <X11/Xlib.h> 6144int 6145main () 6146{ 6147XrmInitialize () 6148 ; 6149 return 0; 6150} 6151_ACEOF 6152if ac_fn_c_try_link "$LINENO"; then : 6153 LIBS=$ac_save_LIBS 6154# We can link X programs with no special library path. 6155ac_x_libraries= 6156else 6157 LIBS=$ac_save_LIBS 6158for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6159do 6160 # Don't even attempt the hair of trying to link an X program! 6161 for ac_extension in a so sl dylib la dll; do 6162 if test -r "$ac_dir/libX11.$ac_extension"; then 6163 ac_x_libraries=$ac_dir 6164 break 2 6165 fi 6166 done 6167done 6168fi 6169rm -f core conftest.err conftest.$ac_objext \ 6170 conftest$ac_exeext conftest.$ac_ext 6171fi # $ac_x_libraries = no 6172 6173case $ac_x_includes,$ac_x_libraries in #( 6174 no,* | *,no | *\'*) 6175 # Didn't find X, or a directory has "'" in its name. 6176 ac_cv_have_x="have_x=no";; #( 6177 *) 6178 # Record where we found X for the cache. 6179 ac_cv_have_x="have_x=yes\ 6180 ac_x_includes='$ac_x_includes'\ 6181 ac_x_libraries='$ac_x_libraries'" 6182esac 6183fi 6184;; #( 6185 *) have_x=yes;; 6186 esac 6187 eval "$ac_cv_have_x" 6188fi # $with_x != no 6189 6190if test "$have_x" != yes; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6192$as_echo "$have_x" >&6; } 6193 no_x=yes 6194else 6195 # If each of the values was on the command line, it overrides each guess. 6196 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6197 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6198 # Update the cache value to reflect the command line values. 6199 ac_cv_have_x="have_x=yes\ 6200 ac_x_includes='$x_includes'\ 6201 ac_x_libraries='$x_libraries'" 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6203$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6204fi 6205 6206if test "$no_x" = yes; then 6207 # Not all programs may use this symbol, but it does not hurt to define it. 6208 6209$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6210 6211 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6212else 6213 if test -n "$x_includes"; then 6214 X_CFLAGS="$X_CFLAGS -I$x_includes" 6215 fi 6216 6217 # It would also be nice to do this for all -L options, not just this one. 6218 if test -n "$x_libraries"; then 6219 X_LIBS="$X_LIBS -L$x_libraries" 6220 # For Solaris; some versions of Sun CC require a space after -R and 6221 # others require no space. Words are not sufficient . . . . 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6223$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6224 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6225 ac_xsave_c_werror_flag=$ac_c_werror_flag 6226 ac_c_werror_flag=yes 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228/* end confdefs.h. */ 6229 6230int 6231main () 6232{ 6233 6234 ; 6235 return 0; 6236} 6237_ACEOF 6238if ac_fn_c_try_link "$LINENO"; then : 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6240$as_echo "no" >&6; } 6241 X_LIBS="$X_LIBS -R$x_libraries" 6242else 6243 LIBS="$ac_xsave_LIBS -R $x_libraries" 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246 6247int 6248main () 6249{ 6250 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255if ac_fn_c_try_link "$LINENO"; then : 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6257$as_echo "yes" >&6; } 6258 X_LIBS="$X_LIBS -R $x_libraries" 6259else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6261$as_echo "neither works" >&6; } 6262fi 6263rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265fi 6266rm -f core conftest.err conftest.$ac_objext \ 6267 conftest$ac_exeext conftest.$ac_ext 6268 ac_c_werror_flag=$ac_xsave_c_werror_flag 6269 LIBS=$ac_xsave_LIBS 6270 fi 6271 6272 # Check for system-dependent libraries X programs must link with. 6273 # Do this before checking for the system-independent R6 libraries 6274 # (-lICE), since we may need -lsocket or whatever for X linking. 6275 6276 if test "$ISC" = yes; then 6277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6278 else 6279 # Martyn Johnson says this is needed for Ultrix, if the X 6280 # libraries were built with DECnet support. And Karl Berry says 6281 # the Alpha needs dnet_stub (dnet does not exist). 6282 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285 6286/* Override any GCC internal prototype to avoid an error. 6287 Use char because int might match the return type of a GCC 6288 builtin and then its argument prototype would still apply. */ 6289#ifdef __cplusplus 6290extern "C" 6291#endif 6292char XOpenDisplay (); 6293int 6294main () 6295{ 6296return XOpenDisplay (); 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_link "$LINENO"; then : 6302 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6305$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6306if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 ac_check_lib_save_LIBS=$LIBS 6310LIBS="-ldnet $LIBS" 6311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312/* end confdefs.h. */ 6313 6314/* Override any GCC internal prototype to avoid an error. 6315 Use char because int might match the return type of a GCC 6316 builtin and then its argument prototype would still apply. */ 6317#ifdef __cplusplus 6318extern "C" 6319#endif 6320char dnet_ntoa (); 6321int 6322main () 6323{ 6324return dnet_ntoa (); 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329if ac_fn_c_try_link "$LINENO"; then : 6330 ac_cv_lib_dnet_dnet_ntoa=yes 6331else 6332 ac_cv_lib_dnet_dnet_ntoa=no 6333fi 6334rm -f core conftest.err conftest.$ac_objext \ 6335 conftest$ac_exeext conftest.$ac_ext 6336LIBS=$ac_check_lib_save_LIBS 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6339$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6340if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 6341 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6342fi 6343 6344 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6346$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6347if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 6348 $as_echo_n "(cached) " >&6 6349else 6350 ac_check_lib_save_LIBS=$LIBS 6351LIBS="-ldnet_stub $LIBS" 6352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353/* end confdefs.h. */ 6354 6355/* Override any GCC internal prototype to avoid an error. 6356 Use char because int might match the return type of a GCC 6357 builtin and then its argument prototype would still apply. */ 6358#ifdef __cplusplus 6359extern "C" 6360#endif 6361char dnet_ntoa (); 6362int 6363main () 6364{ 6365return dnet_ntoa (); 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_link "$LINENO"; then : 6371 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6372else 6373 ac_cv_lib_dnet_stub_dnet_ntoa=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext \ 6376 conftest$ac_exeext conftest.$ac_ext 6377LIBS=$ac_check_lib_save_LIBS 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6380$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6381if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 6382 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6383fi 6384 6385 fi 6386fi 6387rm -f core conftest.err conftest.$ac_objext \ 6388 conftest$ac_exeext conftest.$ac_ext 6389 LIBS="$ac_xsave_LIBS" 6390 6391 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 6392 # to get the SysV transport functions. 6393 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6394 # needs -lnsl. 6395 # The nsl library prevents programs from opening the X display 6396 # on Irix 5.2, according to T.E. Dickey. 6397 # The functions gethostbyname, getservbyname, and inet_addr are 6398 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6399 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6400if test "x$ac_cv_func_gethostbyname" = x""yes; then : 6401 6402fi 6403 6404 if test $ac_cv_func_gethostbyname = no; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6406$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6407if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 ac_check_lib_save_LIBS=$LIBS 6411LIBS="-lnsl $LIBS" 6412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414 6415/* Override any GCC internal prototype to avoid an error. 6416 Use char because int might match the return type of a GCC 6417 builtin and then its argument prototype would still apply. */ 6418#ifdef __cplusplus 6419extern "C" 6420#endif 6421char gethostbyname (); 6422int 6423main () 6424{ 6425return gethostbyname (); 6426 ; 6427 return 0; 6428} 6429_ACEOF 6430if ac_fn_c_try_link "$LINENO"; then : 6431 ac_cv_lib_nsl_gethostbyname=yes 6432else 6433 ac_cv_lib_nsl_gethostbyname=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext \ 6436 conftest$ac_exeext conftest.$ac_ext 6437LIBS=$ac_check_lib_save_LIBS 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6440$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6441if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6442 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6443fi 6444 6445 if test $ac_cv_lib_nsl_gethostbyname = no; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6447$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6448if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 ac_check_lib_save_LIBS=$LIBS 6452LIBS="-lbsd $LIBS" 6453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455 6456/* Override any GCC internal prototype to avoid an error. 6457 Use char because int might match the return type of a GCC 6458 builtin and then its argument prototype would still apply. */ 6459#ifdef __cplusplus 6460extern "C" 6461#endif 6462char gethostbyname (); 6463int 6464main () 6465{ 6466return gethostbyname (); 6467 ; 6468 return 0; 6469} 6470_ACEOF 6471if ac_fn_c_try_link "$LINENO"; then : 6472 ac_cv_lib_bsd_gethostbyname=yes 6473else 6474 ac_cv_lib_bsd_gethostbyname=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext \ 6477 conftest$ac_exeext conftest.$ac_ext 6478LIBS=$ac_check_lib_save_LIBS 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6481$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6482if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 6483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6484fi 6485 6486 fi 6487 fi 6488 6489 # [email protected] says without -lsocket, 6490 # socket/setsockopt and other routines are undefined under SCO ODT 6491 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6492 # on later versions), says Simon Leinen: it contains gethostby* 6493 # variants that don't use the name server (or something). -lsocket 6494 # must be given before -lnsl if both are needed. We assume that 6495 # if connect needs -lnsl, so does gethostbyname. 6496 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 6497if test "x$ac_cv_func_connect" = x""yes; then : 6498 6499fi 6500 6501 if test $ac_cv_func_connect = no; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6503$as_echo_n "checking for connect in -lsocket... " >&6; } 6504if test "${ac_cv_lib_socket_connect+set}" = set; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 ac_check_lib_save_LIBS=$LIBS 6508LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6510/* end confdefs.h. */ 6511 6512/* Override any GCC internal prototype to avoid an error. 6513 Use char because int might match the return type of a GCC 6514 builtin and then its argument prototype would still apply. */ 6515#ifdef __cplusplus 6516extern "C" 6517#endif 6518char connect (); 6519int 6520main () 6521{ 6522return connect (); 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527if ac_fn_c_try_link "$LINENO"; then : 6528 ac_cv_lib_socket_connect=yes 6529else 6530 ac_cv_lib_socket_connect=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext \ 6533 conftest$ac_exeext conftest.$ac_ext 6534LIBS=$ac_check_lib_save_LIBS 6535fi 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6537$as_echo "$ac_cv_lib_socket_connect" >&6; } 6538if test "x$ac_cv_lib_socket_connect" = x""yes; then : 6539 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6540fi 6541 6542 fi 6543 6544 # Guillermo Gomez says -lposix is necessary on A/UX. 6545 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 6546if test "x$ac_cv_func_remove" = x""yes; then : 6547 6548fi 6549 6550 if test $ac_cv_func_remove = no; then 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6552$as_echo_n "checking for remove in -lposix... " >&6; } 6553if test "${ac_cv_lib_posix_remove+set}" = set; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 ac_check_lib_save_LIBS=$LIBS 6557LIBS="-lposix $LIBS" 6558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560 6561/* Override any GCC internal prototype to avoid an error. 6562 Use char because int might match the return type of a GCC 6563 builtin and then its argument prototype would still apply. */ 6564#ifdef __cplusplus 6565extern "C" 6566#endif 6567char remove (); 6568int 6569main () 6570{ 6571return remove (); 6572 ; 6573 return 0; 6574} 6575_ACEOF 6576if ac_fn_c_try_link "$LINENO"; then : 6577 ac_cv_lib_posix_remove=yes 6578else 6579 ac_cv_lib_posix_remove=no 6580fi 6581rm -f core conftest.err conftest.$ac_objext \ 6582 conftest$ac_exeext conftest.$ac_ext 6583LIBS=$ac_check_lib_save_LIBS 6584fi 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6586$as_echo "$ac_cv_lib_posix_remove" >&6; } 6587if test "x$ac_cv_lib_posix_remove" = x""yes; then : 6588 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6589fi 6590 6591 fi 6592 6593 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6594 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6595if test "x$ac_cv_func_shmat" = x""yes; then : 6596 6597fi 6598 6599 if test $ac_cv_func_shmat = no; then 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6601$as_echo_n "checking for shmat in -lipc... " >&6; } 6602if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 ac_check_lib_save_LIBS=$LIBS 6606LIBS="-lipc $LIBS" 6607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609 6610/* Override any GCC internal prototype to avoid an error. 6611 Use char because int might match the return type of a GCC 6612 builtin and then its argument prototype would still apply. */ 6613#ifdef __cplusplus 6614extern "C" 6615#endif 6616char shmat (); 6617int 6618main () 6619{ 6620return shmat (); 6621 ; 6622 return 0; 6623} 6624_ACEOF 6625if ac_fn_c_try_link "$LINENO"; then : 6626 ac_cv_lib_ipc_shmat=yes 6627else 6628 ac_cv_lib_ipc_shmat=no 6629fi 6630rm -f core conftest.err conftest.$ac_objext \ 6631 conftest$ac_exeext conftest.$ac_ext 6632LIBS=$ac_check_lib_save_LIBS 6633fi 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6635$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6636if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 6637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6638fi 6639 6640 fi 6641 fi 6642 6643 # Check for libraries that X11R6 Xt/Xaw programs need. 6644 ac_save_LDFLAGS=$LDFLAGS 6645 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6646 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6647 # check for ICE first), but we must link in the order -lSM -lICE or 6648 # we get undefined symbols. So assume we have SM if we have ICE. 6649 # These have to be linked with before -lX11, unlike the other 6650 # libraries we check for below, so use a different variable. 6651 # John Interrante, Karl Berry 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6653$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6654if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 ac_check_lib_save_LIBS=$LIBS 6658LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660/* end confdefs.h. */ 6661 6662/* Override any GCC internal prototype to avoid an error. 6663 Use char because int might match the return type of a GCC 6664 builtin and then its argument prototype would still apply. */ 6665#ifdef __cplusplus 6666extern "C" 6667#endif 6668char IceConnectionNumber (); 6669int 6670main () 6671{ 6672return IceConnectionNumber (); 6673 ; 6674 return 0; 6675} 6676_ACEOF 6677if ac_fn_c_try_link "$LINENO"; then : 6678 ac_cv_lib_ICE_IceConnectionNumber=yes 6679else 6680 ac_cv_lib_ICE_IceConnectionNumber=no 6681fi 6682rm -f core conftest.err conftest.$ac_objext \ 6683 conftest$ac_exeext conftest.$ac_ext 6684LIBS=$ac_check_lib_save_LIBS 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6687$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6688if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 6689 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6690fi 6691 6692 LDFLAGS=$ac_save_LDFLAGS 6693 6694fi 6695 6696 6697 if test "$zOSUnix" = "yes"; then 6698 CFLAGS="$CFLAGS -W c,dll" 6699 LDFLAGS="$LDFLAGS -W l,dll" 6700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 6701 fi 6702 6703 6704 if test -d "$x_includes" && test ! -d "$x_libraries"; then 6705 x_libraries=`echo "$x_includes" | sed s/include/lib/` 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 6707$as_echo "Corrected X libraries to $x_libraries" >&6; } 6708 X_LIBS="$X_LIBS -L$x_libraries" 6709 if test "`(uname) 2>/dev/null`" = SunOS && 6710 uname -r | grep '^5' >/dev/null; then 6711 X_LIBS="$X_LIBS -R $x_libraries" 6712 fi 6713 fi 6714 6715 if test -d "$x_libraries" && test ! -d "$x_includes"; then 6716 x_includes=`echo "$x_libraries" | sed s/lib/include/` 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 6718$as_echo "Corrected X includes to $x_includes" >&6; } 6719 X_CFLAGS="$X_CFLAGS -I$x_includes" 6720 fi 6721 6722 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 6723 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 6724 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 6725 6726 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 6728$as_echo_n "checking if X11 header files can be found... " >&6; } 6729 cflags_save=$CFLAGS 6730 CFLAGS="$CFLAGS $X_CFLAGS" 6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732/* end confdefs.h. */ 6733#include <X11/Xlib.h> 6734#include <X11/Intrinsic.h> 6735int 6736main () 6737{ 6738 6739 ; 6740 return 0; 6741} 6742_ACEOF 6743if ac_fn_c_try_compile "$LINENO"; then : 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6745$as_echo "yes" >&6; } 6746else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; }; no_x=yes 6749fi 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751 CFLAGS=$cflags_save 6752 6753 if test "${no_x-no}" = yes; then 6754 with_x=no 6755 else 6756 $as_echo "#define HAVE_X11 1" >>confdefs.h 6757 6758 X_LIB="-lXt -lX11"; 6759 6760 6761 ac_save_LDFLAGS="$LDFLAGS" 6762 LDFLAGS="-L$x_libraries $LDFLAGS" 6763 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 6765$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 6766if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 ac_check_lib_save_LIBS=$LIBS 6770LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 6771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773 6774/* Override any GCC internal prototype to avoid an error. 6775 Use char because int might match the return type of a GCC 6776 builtin and then its argument prototype would still apply. */ 6777#ifdef __cplusplus 6778extern "C" 6779#endif 6780char _XdmcpAuthDoIt (); 6781int 6782main () 6783{ 6784return _XdmcpAuthDoIt (); 6785 ; 6786 return 0; 6787} 6788_ACEOF 6789if ac_fn_c_try_link "$LINENO"; then : 6790 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 6791else 6792 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 6793fi 6794rm -f core conftest.err conftest.$ac_objext \ 6795 conftest$ac_exeext conftest.$ac_ext 6796LIBS=$ac_check_lib_save_LIBS 6797fi 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 6799$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 6800if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then : 6801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 6802fi 6803 6804 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 6806$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 6807if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 ac_check_lib_save_LIBS=$LIBS 6811LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814 6815/* Override any GCC internal prototype to avoid an error. 6816 Use char because int might match the return type of a GCC 6817 builtin and then its argument prototype would still apply. */ 6818#ifdef __cplusplus 6819extern "C" 6820#endif 6821char IceOpenConnection (); 6822int 6823main () 6824{ 6825return IceOpenConnection (); 6826 ; 6827 return 0; 6828} 6829_ACEOF 6830if ac_fn_c_try_link "$LINENO"; then : 6831 ac_cv_lib_ICE_IceOpenConnection=yes 6832else 6833 ac_cv_lib_ICE_IceOpenConnection=no 6834fi 6835rm -f core conftest.err conftest.$ac_objext \ 6836 conftest$ac_exeext conftest.$ac_ext 6837LIBS=$ac_check_lib_save_LIBS 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 6840$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 6841if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then : 6842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 6843fi 6844 6845 6846 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 6848$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 6849if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 ac_check_lib_save_LIBS=$LIBS 6853LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 6854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856 6857/* Override any GCC internal prototype to avoid an error. 6858 Use char because int might match the return type of a GCC 6859 builtin and then its argument prototype would still apply. */ 6860#ifdef __cplusplus 6861extern "C" 6862#endif 6863char XpmCreatePixmapFromData (); 6864int 6865main () 6866{ 6867return XpmCreatePixmapFromData (); 6868 ; 6869 return 0; 6870} 6871_ACEOF 6872if ac_fn_c_try_link "$LINENO"; then : 6873 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 6874else 6875 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 6876fi 6877rm -f core conftest.err conftest.$ac_objext \ 6878 conftest$ac_exeext conftest.$ac_ext 6879LIBS=$ac_check_lib_save_LIBS 6880fi 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 6882$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 6883if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then : 6884 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 6885fi 6886 6887 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 6889$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 6890 cflags_save=$CFLAGS 6891 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894#include <X11/Xlib.h> 6895int 6896main () 6897{ 6898 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903if ac_fn_c_try_compile "$LINENO"; then : 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6905$as_echo "no" >&6; } 6906else 6907 CFLAGS="$CFLAGS -Wno-implicit-int" 6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909/* end confdefs.h. */ 6910#include <X11/Xlib.h> 6911int 6912main () 6913{ 6914 6915 ; 6916 return 0; 6917} 6918_ACEOF 6919if ac_fn_c_try_compile "$LINENO"; then : 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6921$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 6922else 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 6924$as_echo "test failed" >&6; } 6925 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6928 6929fi 6930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6931 CFLAGS=$cflags_save 6932 6933 LDFLAGS="$ac_save_LDFLAGS" 6934 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 6936$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 6937 if test "${ac_cv_small_wchar_t+set}" = set; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 if test "$cross_compiling" = yes; then : 6941 as_fn_error "failed to compile test program" "$LINENO" 5 6942else 6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944/* end confdefs.h. */ 6945 6946#include <X11/Xlib.h> 6947#if STDC_HEADERS 6948# include <stdlib.h> 6949# include <stddef.h> 6950#endif 6951 main() 6952 { 6953 if (sizeof(wchar_t) <= 2) 6954 exit(1); 6955 exit(0); 6956 } 6957_ACEOF 6958if ac_fn_c_try_run "$LINENO"; then : 6959 ac_cv_small_wchar_t="no" 6960else 6961 ac_cv_small_wchar_t="yes" 6962fi 6963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6964 conftest.$ac_objext conftest.beam conftest.$ac_ext 6965fi 6966 6967fi 6968 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 6970$as_echo "$ac_cv_small_wchar_t" >&6; } 6971 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 6972 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 6973 6974 fi 6975 6976 fi 6977fi 6978 6979test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 6980 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 6982$as_echo_n "checking --enable-gui argument... " >&6; } 6983# Check whether --enable-gui was given. 6984if test "${enable_gui+set}" = set; then : 6985 enableval=$enable_gui; 6986else 6987 enable_gui="auto" 6988fi 6989 6990 6991enable_gui_canon=`echo "_$enable_gui" | \ 6992 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 6993 6994SKIP_GTK2=YES 6995SKIP_GNOME=YES 6996SKIP_MOTIF=YES 6997SKIP_ATHENA=YES 6998SKIP_NEXTAW=YES 6999SKIP_PHOTON=YES 7000SKIP_CARBON=YES 7001GUITYPE=NONE 7002 7003if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 7004 SKIP_PHOTON= 7005 case "$enable_gui_canon" in 7006 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7007$as_echo "no GUI support" >&6; } 7008 SKIP_PHOTON=YES ;; 7009 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7010$as_echo "yes - automatic GUI support" >&6; } ;; 7011 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 7012$as_echo "auto - automatic GUI support" >&6; } ;; 7013 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 7014$as_echo "Photon GUI support" >&6; } ;; 7015 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7016$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7017 SKIP_PHOTON=YES ;; 7018 esac 7019 7020elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 7021 SKIP_CARBON= 7022 case "$enable_gui_canon" in 7023 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7024$as_echo "no GUI support" >&6; } 7025 SKIP_CARBON=YES ;; 7026 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7027$as_echo "yes - automatic GUI support" >&6; } ;; 7028 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 7029$as_echo "auto - automatic GUI support" >&6; } ;; 7030 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 7031$as_echo "Carbon GUI support" >&6; } ;; 7032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7033$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7034 SKIP_CARBON=YES ;; 7035 esac 7036 7037else 7038 7039 case "$enable_gui_canon" in 7040 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7041$as_echo "no GUI support" >&6; } ;; 7042 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 7043$as_echo "yes/auto - automatic GUI support" >&6; } 7044 SKIP_GTK2= 7045 SKIP_GNOME= 7046 SKIP_MOTIF= 7047 SKIP_ATHENA= 7048 SKIP_NEXTAW= 7049 SKIP_CARBON=;; 7050 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 7051$as_echo "GTK+ 2.x GUI support" >&6; } 7052 SKIP_GTK2=;; 7053 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 7054$as_echo "GNOME 2.x GUI support" >&6; } 7055 SKIP_GNOME= 7056 SKIP_GTK2=;; 7057 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 7058$as_echo "Motif GUI support" >&6; } 7059 SKIP_MOTIF=;; 7060 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 7061$as_echo "Athena GUI support" >&6; } 7062 SKIP_ATHENA=;; 7063 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 7064$as_echo "neXtaw GUI support" >&6; } 7065 SKIP_NEXTAW=;; 7066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7067$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 7068 esac 7069 7070fi 7071 7072if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 7073 -a "$enable_gui_canon" != "gnome2"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 7075$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 7076 # Check whether --enable-gtk2-check was given. 7077if test "${enable_gtk2_check+set}" = set; then : 7078 enableval=$enable_gtk2_check; 7079else 7080 enable_gtk2_check="yes" 7081fi 7082 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 7084$as_echo "$enable_gtk2_check" >&6; } 7085 if test "x$enable_gtk2_check" = "xno"; then 7086 SKIP_GTK2=YES 7087 SKIP_GNOME=YES 7088 fi 7089fi 7090 7091if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 7093$as_echo_n "checking whether or not to look for GNOME... " >&6; } 7094 # Check whether --enable-gnome-check was given. 7095if test "${enable_gnome_check+set}" = set; then : 7096 enableval=$enable_gnome_check; 7097else 7098 enable_gnome_check="no" 7099fi 7100 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 7102$as_echo "$enable_gnome_check" >&6; } 7103 if test "x$enable_gnome_check" = "xno"; then 7104 SKIP_GNOME=YES 7105 fi 7106fi 7107 7108if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 7110$as_echo_n "checking whether or not to look for Motif... " >&6; } 7111 # Check whether --enable-motif-check was given. 7112if test "${enable_motif_check+set}" = set; then : 7113 enableval=$enable_motif_check; 7114else 7115 enable_motif_check="yes" 7116fi 7117 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 7119$as_echo "$enable_motif_check" >&6; } 7120 if test "x$enable_motif_check" = "xno"; then 7121 SKIP_MOTIF=YES 7122 fi 7123fi 7124 7125if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 7127$as_echo_n "checking whether or not to look for Athena... " >&6; } 7128 # Check whether --enable-athena-check was given. 7129if test "${enable_athena_check+set}" = set; then : 7130 enableval=$enable_athena_check; 7131else 7132 enable_athena_check="yes" 7133fi 7134 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 7136$as_echo "$enable_athena_check" >&6; } 7137 if test "x$enable_athena_check" = "xno"; then 7138 SKIP_ATHENA=YES 7139 fi 7140fi 7141 7142if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 7144$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 7145 # Check whether --enable-nextaw-check was given. 7146if test "${enable_nextaw_check+set}" = set; then : 7147 enableval=$enable_nextaw_check; 7148else 7149 enable_nextaw_check="yes" 7150fi 7151 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 7153$as_echo "$enable_nextaw_check" >&6; }; 7154 if test "x$enable_nextaw_check" = "xno"; then 7155 SKIP_NEXTAW=YES 7156 fi 7157fi 7158 7159if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 7161$as_echo_n "checking whether or not to look for Carbon... " >&6; } 7162 # Check whether --enable-carbon-check was given. 7163if test "${enable_carbon_check+set}" = set; then : 7164 enableval=$enable_carbon_check; 7165else 7166 enable_carbon_check="yes" 7167fi 7168 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 7170$as_echo "$enable_carbon_check" >&6; }; 7171 if test "x$enable_carbon_check" = "xno"; then 7172 SKIP_CARBON=YES 7173 fi 7174fi 7175 7176 7177if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 7179$as_echo_n "checking for Carbon GUI... " >&6; } 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7181$as_echo "yes" >&6; }; 7182 GUITYPE=CARBONGUI 7183 if test "$VIMNAME" = "vim"; then 7184 VIMNAME=Vim 7185 fi 7186 7187 if test x$prefix = xNONE; then 7188 prefix=/Applications 7189 fi 7190 7191 datadir='${prefix}/Vim.app/Contents/Resources' 7192 7193 SKIP_GTK2=YES; 7194 SKIP_GNOME=YES; 7195 SKIP_MOTIF=YES; 7196 SKIP_ATHENA=YES; 7197 SKIP_NEXTAW=YES; 7198 SKIP_PHOTON=YES; 7199 SKIP_CARBON=YES 7200fi 7201 7202 7203 7204 7205 7206 7207 7208 7209if test -z "$SKIP_GTK2"; then 7210 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 7212$as_echo_n "checking --disable-gtktest argument... " >&6; } 7213 # Check whether --enable-gtktest was given. 7214if test "${enable_gtktest+set}" = set; then : 7215 enableval=$enable_gtktest; 7216else 7217 enable_gtktest=yes 7218fi 7219 7220 if test "x$enable_gtktest" = "xyes" ; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 7222$as_echo "gtk test enabled" >&6; } 7223 else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 7225$as_echo "gtk test disabled" >&6; } 7226 fi 7227 7228 if test "X$PKG_CONFIG" = "X"; then 7229 # Extract the first word of "pkg-config", so it can be a program name with args. 7230set dummy pkg-config; ac_word=$2 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7232$as_echo_n "checking for $ac_word... " >&6; } 7233if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7234 $as_echo_n "(cached) " >&6 7235else 7236 case $PKG_CONFIG in 7237 [\\/]* | ?:[\\/]*) 7238 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7239 ;; 7240 *) 7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7242for as_dir in $PATH 7243do 7244 IFS=$as_save_IFS 7245 test -z "$as_dir" && as_dir=. 7246 for ac_exec_ext in '' $ac_executable_extensions; do 7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7248 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7250 break 2 7251 fi 7252done 7253 done 7254IFS=$as_save_IFS 7255 7256 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7257 ;; 7258esac 7259fi 7260PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7261if test -n "$PKG_CONFIG"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7263$as_echo "$PKG_CONFIG" >&6; } 7264else 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266$as_echo "no" >&6; } 7267fi 7268 7269 7270 fi 7271 7272 if test "x$PKG_CONFIG" != "xno"; then 7273 7274 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 7275 { 7276 min_gtk_version=2.2.0 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 7278$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7279 no_gtk="" 7280 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 7281 && $PKG_CONFIG --exists gtk+-2.0; then 7282 { 7283 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 7284 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 7285 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 7286 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7287 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 7288 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7289 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 7290 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7291 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 7292 } 7293 else 7294 no_gtk=yes 7295 fi 7296 7297 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 7298 { 7299 ac_save_CFLAGS="$CFLAGS" 7300 ac_save_LIBS="$LIBS" 7301 CFLAGS="$CFLAGS $GTK_CFLAGS" 7302 LIBS="$LIBS $GTK_LIBS" 7303 7304 rm -f conf.gtktest 7305 if test "$cross_compiling" = yes; then : 7306 echo $ac_n "cross compiling; assumed OK... $ac_c" 7307else 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310 7311#include <gtk/gtk.h> 7312#include <stdio.h> 7313#if STDC_HEADERS 7314# include <stdlib.h> 7315# include <stddef.h> 7316#endif 7317 7318int 7319main () 7320{ 7321int major, minor, micro; 7322char *tmp_version; 7323 7324system ("touch conf.gtktest"); 7325 7326/* HP/UX 9 (%@#!) writes to sscanf strings */ 7327tmp_version = g_strdup("$min_gtk_version"); 7328if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7329 printf("%s, bad version string\n", "$min_gtk_version"); 7330 exit(1); 7331 } 7332 7333if ((gtk_major_version > major) || 7334 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7335 ((gtk_major_version == major) && (gtk_minor_version == minor) && 7336 (gtk_micro_version >= micro))) 7337{ 7338 return 0; 7339} 7340return 1; 7341} 7342 7343_ACEOF 7344if ac_fn_c_try_run "$LINENO"; then : 7345 7346else 7347 no_gtk=yes 7348fi 7349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7350 conftest.$ac_objext conftest.beam conftest.$ac_ext 7351fi 7352 7353 CFLAGS="$ac_save_CFLAGS" 7354 LIBS="$ac_save_LIBS" 7355 } 7356 fi 7357 if test "x$no_gtk" = x ; then 7358 if test "x$enable_gtktest" = "xyes"; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7360$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7361 else 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7363$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7364 fi 7365 GUI_LIB_LOC="$GTK_LIBDIR" 7366 GTK_LIBNAME="$GTK_LIBS" 7367 GUI_INC_LOC="$GTK_CFLAGS" 7368 else 7369 { 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7371$as_echo "no" >&6; } 7372 GTK_CFLAGS="" 7373 GTK_LIBS="" 7374 : 7375 } 7376 fi 7377 } 7378 else 7379 GTK_CFLAGS="" 7380 GTK_LIBS="" 7381 : 7382 fi 7383 7384 7385 rm -f conf.gtktest 7386 7387 if test "x$GTK_CFLAGS" != "x"; then 7388 SKIP_ATHENA=YES 7389 SKIP_NEXTAW=YES 7390 SKIP_MOTIF=YES 7391 GUITYPE=GTK 7392 7393 fi 7394 fi 7395 if test "x$GUITYPE" = "xGTK"; then 7396 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 7397 || test "0$gtk_minor_version" -ge 2; then 7398 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 7399 7400 fi 7401 if test -z "$SKIP_GNOME"; then 7402 { 7403 7404 7405 7406 7407 7408 7409# Check whether --with-gnome-includes was given. 7410if test "${with_gnome_includes+set}" = set; then : 7411 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 7412 7413fi 7414 7415 7416 7417# Check whether --with-gnome-libs was given. 7418if test "${with_gnome_libs+set}" = set; then : 7419 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 7420 7421fi 7422 7423 7424 7425# Check whether --with-gnome was given. 7426if test "${with_gnome+set}" = set; then : 7427 withval=$with_gnome; if test x$withval = xyes; then 7428 want_gnome=yes 7429 have_gnome=yes 7430 else 7431 if test "x$withval" = xno; then 7432 want_gnome=no 7433 else 7434 want_gnome=yes 7435 LDFLAGS="$LDFLAGS -L$withval/lib" 7436 CFLAGS="$CFLAGS -I$withval/include" 7437 gnome_prefix=$withval/lib 7438 fi 7439 fi 7440else 7441 want_gnome=yes 7442fi 7443 7444 7445 if test "x$want_gnome" = xyes; then 7446 { 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 7448$as_echo_n "checking for libgnomeui-2.0... " >&6; } 7449 if $PKG_CONFIG --exists libgnomeui-2.0; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7451$as_echo "yes" >&6; } 7452 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 7453 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 7454 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 7455 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 7457$as_echo_n "checking for FreeBSD... " >&6; } 7458 if test "`(uname) 2>/dev/null`" = FreeBSD; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7460$as_echo "yes" >&6; } 7461 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 7462 GNOME_LIBS="$GNOME_LIBS -pthread" 7463 else 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7465$as_echo "no" >&6; } 7466 fi 7467 have_gnome=yes 7468 else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7470$as_echo "not found" >&6; } 7471 if test "x" = xfail; then 7472 as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 7473 fi 7474 fi 7475 } 7476 fi 7477 7478 if test "x$have_gnome" = xyes ; then 7479 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 7480 7481 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 7482 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 7483 fi 7484 } 7485 fi 7486 fi 7487fi 7488 7489 7490if test -z "$SKIP_MOTIF"; then 7491 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" 7492 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 7493 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 7495$as_echo_n "checking for location of Motif GUI includes... " >&6; } 7496 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 7497 GUI_INC_LOC= 7498 for try in $gui_includes; do 7499 if test -f "$try/Xm/Xm.h"; then 7500 GUI_INC_LOC=$try 7501 fi 7502 done 7503 if test -n "$GUI_INC_LOC"; then 7504 if test "$GUI_INC_LOC" = /usr/include; then 7505 GUI_INC_LOC= 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 7507$as_echo "in default path" >&6; } 7508 else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 7510$as_echo "$GUI_INC_LOC" >&6; } 7511 fi 7512 else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7514$as_echo "<not found>" >&6; } 7515 SKIP_MOTIF=YES 7516 fi 7517fi 7518 7519 7520if test -z "$SKIP_MOTIF"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 7522$as_echo_n "checking --with-motif-lib argument... " >&6; } 7523 7524# Check whether --with-motif-lib was given. 7525if test "${with_motif_lib+set}" = set; then : 7526 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 7527fi 7528 7529 7530 if test -n "$MOTIF_LIBNAME"; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 7532$as_echo "$MOTIF_LIBNAME" >&6; } 7533 GUI_LIB_LOC= 7534 else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536$as_echo "no" >&6; } 7537 7538 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 7539 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 7541$as_echo_n "checking for location of Motif GUI libs... " >&6; } 7542 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" 7543 GUI_LIB_LOC= 7544 for try in $gui_libs; do 7545 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 7546 if test -f "$libtry"; then 7547 GUI_LIB_LOC=$try 7548 fi 7549 done 7550 done 7551 if test -n "$GUI_LIB_LOC"; then 7552 if test "$GUI_LIB_LOC" = /usr/lib; then 7553 GUI_LIB_LOC= 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 7555$as_echo "in default path" >&6; } 7556 else 7557 if test -n "$GUI_LIB_LOC"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 7559$as_echo "$GUI_LIB_LOC" >&6; } 7560 if test "`(uname) 2>/dev/null`" = SunOS && 7561 uname -r | grep '^5' >/dev/null; then 7562 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 7563 fi 7564 fi 7565 fi 7566 MOTIF_LIBNAME=-lXm 7567 else 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7569$as_echo "<not found>" >&6; } 7570 SKIP_MOTIF=YES 7571 fi 7572 fi 7573fi 7574 7575if test -z "$SKIP_MOTIF"; then 7576 SKIP_ATHENA=YES 7577 SKIP_NEXTAW=YES 7578 GUITYPE=MOTIF 7579 7580fi 7581 7582 7583GUI_X_LIBS= 7584 7585if test -z "$SKIP_ATHENA"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 7587$as_echo_n "checking if Athena header files can be found... " >&6; } 7588 cflags_save=$CFLAGS 7589 CFLAGS="$CFLAGS $X_CFLAGS" 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592 7593#include <X11/Intrinsic.h> 7594#include <X11/Xaw/Paned.h> 7595int 7596main () 7597{ 7598 7599 ; 7600 return 0; 7601} 7602_ACEOF 7603if ac_fn_c_try_compile "$LINENO"; then : 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7605$as_echo "yes" >&6; } 7606else 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7608$as_echo "no" >&6; }; SKIP_ATHENA=YES 7609fi 7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7611 CFLAGS=$cflags_save 7612fi 7613 7614if test -z "$SKIP_ATHENA"; then 7615 GUITYPE=ATHENA 7616fi 7617 7618if test -z "$SKIP_NEXTAW"; then 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 7620$as_echo_n "checking if neXtaw header files can be found... " >&6; } 7621 cflags_save=$CFLAGS 7622 CFLAGS="$CFLAGS $X_CFLAGS" 7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7624/* end confdefs.h. */ 7625 7626#include <X11/Intrinsic.h> 7627#include <X11/neXtaw/Paned.h> 7628int 7629main () 7630{ 7631 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_compile "$LINENO"; then : 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7638$as_echo "yes" >&6; } 7639else 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7641$as_echo "no" >&6; }; SKIP_NEXTAW=YES 7642fi 7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7644 CFLAGS=$cflags_save 7645fi 7646 7647if test -z "$SKIP_NEXTAW"; then 7648 GUITYPE=NEXTAW 7649fi 7650 7651if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 7652 if test -n "$GUI_INC_LOC"; then 7653 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 7654 fi 7655 if test -n "$GUI_LIB_LOC"; then 7656 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 7657 fi 7658 7659 ldflags_save=$LDFLAGS 7660 LDFLAGS="$X_LIBS $LDFLAGS" 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 7662$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 7663if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 ac_check_lib_save_LIBS=$LIBS 7667LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670 7671/* Override any GCC internal prototype to avoid an error. 7672 Use char because int might match the return type of a GCC 7673 builtin and then its argument prototype would still apply. */ 7674#ifdef __cplusplus 7675extern "C" 7676#endif 7677char XShapeQueryExtension (); 7678int 7679main () 7680{ 7681return XShapeQueryExtension (); 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO"; then : 7687 ac_cv_lib_Xext_XShapeQueryExtension=yes 7688else 7689 ac_cv_lib_Xext_XShapeQueryExtension=no 7690fi 7691rm -f core conftest.err conftest.$ac_objext \ 7692 conftest$ac_exeext conftest.$ac_ext 7693LIBS=$ac_check_lib_save_LIBS 7694fi 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 7696$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 7697if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 7698 GUI_X_LIBS="-lXext" 7699fi 7700 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 7702$as_echo_n "checking for wslen in -lw... " >&6; } 7703if test "${ac_cv_lib_w_wslen+set}" = set; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 ac_check_lib_save_LIBS=$LIBS 7707LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710 7711/* Override any GCC internal prototype to avoid an error. 7712 Use char because int might match the return type of a GCC 7713 builtin and then its argument prototype would still apply. */ 7714#ifdef __cplusplus 7715extern "C" 7716#endif 7717char wslen (); 7718int 7719main () 7720{ 7721return wslen (); 7722 ; 7723 return 0; 7724} 7725_ACEOF 7726if ac_fn_c_try_link "$LINENO"; then : 7727 ac_cv_lib_w_wslen=yes 7728else 7729 ac_cv_lib_w_wslen=no 7730fi 7731rm -f core conftest.err conftest.$ac_objext \ 7732 conftest$ac_exeext conftest.$ac_ext 7733LIBS=$ac_check_lib_save_LIBS 7734fi 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 7736$as_echo "$ac_cv_lib_w_wslen" >&6; } 7737if test "x$ac_cv_lib_w_wslen" = x""yes; then : 7738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 7739fi 7740 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 7742$as_echo_n "checking for dlsym in -ldl... " >&6; } 7743if test "${ac_cv_lib_dl_dlsym+set}" = set; then : 7744 $as_echo_n "(cached) " >&6 7745else 7746 ac_check_lib_save_LIBS=$LIBS 7747LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750 7751/* Override any GCC internal prototype to avoid an error. 7752 Use char because int might match the return type of a GCC 7753 builtin and then its argument prototype would still apply. */ 7754#ifdef __cplusplus 7755extern "C" 7756#endif 7757char dlsym (); 7758int 7759main () 7760{ 7761return dlsym (); 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766if ac_fn_c_try_link "$LINENO"; then : 7767 ac_cv_lib_dl_dlsym=yes 7768else 7769 ac_cv_lib_dl_dlsym=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext \ 7772 conftest$ac_exeext conftest.$ac_ext 7773LIBS=$ac_check_lib_save_LIBS 7774fi 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 7776$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 7777if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : 7778 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 7779fi 7780 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 7782$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 7783if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 ac_check_lib_save_LIBS=$LIBS 7787LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789/* end confdefs.h. */ 7790 7791/* Override any GCC internal prototype to avoid an error. 7792 Use char because int might match the return type of a GCC 7793 builtin and then its argument prototype would still apply. */ 7794#ifdef __cplusplus 7795extern "C" 7796#endif 7797char XmuCreateStippledPixmap (); 7798int 7799main () 7800{ 7801return XmuCreateStippledPixmap (); 7802 ; 7803 return 0; 7804} 7805_ACEOF 7806if ac_fn_c_try_link "$LINENO"; then : 7807 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 7808else 7809 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 7810fi 7811rm -f core conftest.err conftest.$ac_objext \ 7812 conftest$ac_exeext conftest.$ac_ext 7813LIBS=$ac_check_lib_save_LIBS 7814fi 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 7816$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 7817if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then : 7818 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 7819fi 7820 7821 if test -z "$SKIP_MOTIF"; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 7823$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 7824if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then : 7825 $as_echo_n "(cached) " >&6 7826else 7827 ac_check_lib_save_LIBS=$LIBS 7828LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831 7832/* Override any GCC internal prototype to avoid an error. 7833 Use char because int might match the return type of a GCC 7834 builtin and then its argument prototype would still apply. */ 7835#ifdef __cplusplus 7836extern "C" 7837#endif 7838char XpEndJob (); 7839int 7840main () 7841{ 7842return XpEndJob (); 7843 ; 7844 return 0; 7845} 7846_ACEOF 7847if ac_fn_c_try_link "$LINENO"; then : 7848 ac_cv_lib_Xp_XpEndJob=yes 7849else 7850 ac_cv_lib_Xp_XpEndJob=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext \ 7853 conftest$ac_exeext conftest.$ac_ext 7854LIBS=$ac_check_lib_save_LIBS 7855fi 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 7857$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 7858if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then : 7859 GUI_X_LIBS="-lXp $GUI_X_LIBS" 7860fi 7861 7862 fi 7863 LDFLAGS=$ldflags_save 7864 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 7866$as_echo_n "checking for extra X11 defines... " >&6; } 7867 NARROW_PROTO= 7868 rm -fr conftestdir 7869 if mkdir conftestdir; then 7870 cd conftestdir 7871 cat > Imakefile <<'EOF' 7872acfindx: 7873 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 7874EOF 7875 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 7876 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 7877 fi 7878 cd .. 7879 rm -fr conftestdir 7880 fi 7881 if test -z "$NARROW_PROTO"; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7883$as_echo "no" >&6; } 7884 else 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 7886$as_echo "$NARROW_PROTO" >&6; } 7887 fi 7888 7889fi 7890 7891if test "$enable_xsmp" = "yes"; then 7892 cppflags_save=$CPPFLAGS 7893 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7894 for ac_header in X11/SM/SMlib.h 7895do : 7896 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 7897if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 7898 cat >>confdefs.h <<_ACEOF 7899#define HAVE_X11_SM_SMLIB_H 1 7900_ACEOF 7901 7902fi 7903 7904done 7905 7906 CPPFLAGS=$cppflags_save 7907fi 7908 7909 7910if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then 7911 cppflags_save=$CPPFLAGS 7912 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7913 for ac_header in X11/xpm.h X11/Sunkeysym.h 7914do : 7915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7916ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7917eval as_val=\$$as_ac_Header 7918 if test "x$as_val" = x""yes; then : 7919 cat >>confdefs.h <<_ACEOF 7920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7921_ACEOF 7922 7923fi 7924 7925done 7926 7927 7928 if test ! "$enable_xim" = "no"; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 7930$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933#include <X11/Xlib.h> 7934_ACEOF 7935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7936 $EGREP "XIMText" >/dev/null 2>&1; then : 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7938$as_echo "yes" >&6; } 7939else 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 7941$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" 7942fi 7943rm -f conftest* 7944 7945 fi 7946 CPPFLAGS=$cppflags_save 7947 7948 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 7949 -a "x$GUITYPE" != "xNONE" ; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 7951$as_echo "X GUI selected; xim has been enabled" >&6; } 7952 enable_xim="yes" 7953 fi 7954fi 7955 7956if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 7957 cppflags_save=$CPPFLAGS 7958 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 7960$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963 7964#include <X11/Intrinsic.h> 7965#include <X11/Xmu/Editres.h> 7966int 7967main () 7968{ 7969int i; i = 0; 7970 ; 7971 return 0; 7972} 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7976$as_echo "yes" >&6; } 7977 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 7978 7979else 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7981$as_echo "no" >&6; } 7982fi 7983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7984 CPPFLAGS=$cppflags_save 7985fi 7986 7987if test -z "$SKIP_MOTIF"; then 7988 cppflags_save=$CPPFLAGS 7989 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7990 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ 7991 Xm/UnhighlightT.h Xm/Notebook.h 7992do : 7993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7995eval as_val=\$$as_ac_Header 7996 if test "x$as_val" = x""yes; then : 7997 cat >>confdefs.h <<_ACEOF 7998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7999_ACEOF 8000 8001fi 8002 8003done 8004 8005 8006 if test $ac_cv_header_Xm_XpmP_h = yes; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 8008$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011#include <Xm/XpmP.h> 8012int 8013main () 8014{ 8015XpmAttributes_21 attr; 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020if ac_fn_c_try_compile "$LINENO"; then : 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8022$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 8023 8024else 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8026$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8027 8028 8029fi 8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8031 else 8032 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8033 8034 fi 8035 CPPFLAGS=$cppflags_save 8036fi 8037 8038if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 8040$as_echo "no GUI selected; xim has been disabled" >&6; } 8041 enable_xim="no" 8042fi 8043if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 8045$as_echo "no GUI selected; fontset has been disabled" >&6; } 8046 enable_fontset="no" 8047fi 8048if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 8050$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 8051 enable_fontset="no" 8052fi 8053 8054if test -z "$SKIP_PHOTON"; then 8055 GUITYPE=PHOTONGUI 8056fi 8057 8058 8059 8060 8061 8062 8063if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 8064 as_fn_error "cannot use workshop without Motif" "$LINENO" 5 8065fi 8066 8067if test "$enable_xim" = "yes"; then 8068 $as_echo "#define FEAT_XIM 1" >>confdefs.h 8069 8070fi 8071if test "$enable_fontset" = "yes"; then 8072 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 8073 8074fi 8075 8076 8077 8078 8079if test "$enable_hangulinput" = "yes"; then 8080 if test "x$GUITYPE" = "xNONE"; then 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 8082$as_echo "no GUI selected; hangul input has been disabled" >&6; } 8083 enable_hangulinput=no 8084 else 8085 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 8086 8087 HANGULIN_SRC=hangulin.c 8088 8089 HANGULIN_OBJ=objects/hangulin.o 8090 8091 fi 8092fi 8093 8094 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 8096$as_echo_n "checking whether toupper is broken... " >&6; } 8097if test "${vim_cv_toupper_broken+set}" = set; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 8101 if test "$cross_compiling" = yes; then : 8102 8103 as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 8104 8105else 8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8107/* end confdefs.h. */ 8108 8109#include "confdefs.h" 8110#include <ctype.h> 8111#if STDC_HEADERS 8112# include <stdlib.h> 8113# include <stddef.h> 8114#endif 8115main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 8116 8117_ACEOF 8118if ac_fn_c_try_run "$LINENO"; then : 8119 8120 vim_cv_toupper_broken=yes 8121 8122else 8123 8124 vim_cv_toupper_broken=no 8125 8126fi 8127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8128 conftest.$ac_objext conftest.beam conftest.$ac_ext 8129fi 8130 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 8133$as_echo "$vim_cv_toupper_broken" >&6; } 8134 8135if test "x$vim_cv_toupper_broken" = "xyes" ; then 8136 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 8137 8138fi 8139 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 8141$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 8142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144#include <stdio.h> 8145int 8146main () 8147{ 8148printf("(" __DATE__ " " __TIME__ ")"); 8149 ; 8150 return 0; 8151} 8152_ACEOF 8153if ac_fn_c_try_compile "$LINENO"; then : 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8155$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 8156 8157else 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8159$as_echo "no" >&6; } 8160fi 8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8162 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 8164$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 8165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167#include <stdio.h> 8168int 8169main () 8170{ 8171int x __attribute__((unused)); 8172 ; 8173 return 0; 8174} 8175_ACEOF 8176if ac_fn_c_try_compile "$LINENO"; then : 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8178$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 8179 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; } 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8185 8186ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 8187if test "x$ac_cv_header_elf_h" = x""yes; then : 8188 HAS_ELF=1 8189fi 8190 8191 8192if test "$HAS_ELF" = 1; then 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 8194$as_echo_n "checking for main in -lelf... " >&6; } 8195if test "${ac_cv_lib_elf_main+set}" = set; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 ac_check_lib_save_LIBS=$LIBS 8199LIBS="-lelf $LIBS" 8200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201/* end confdefs.h. */ 8202 8203 8204int 8205main () 8206{ 8207return main (); 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO"; then : 8213 ac_cv_lib_elf_main=yes 8214else 8215 ac_cv_lib_elf_main=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219LIBS=$ac_check_lib_save_LIBS 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 8222$as_echo "$ac_cv_lib_elf_main" >&6; } 8223if test "x$ac_cv_lib_elf_main" = x""yes; then : 8224 cat >>confdefs.h <<_ACEOF 8225#define HAVE_LIBELF 1 8226_ACEOF 8227 8228 LIBS="-lelf $LIBS" 8229 8230fi 8231 8232fi 8233 8234ac_header_dirent=no 8235for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8236 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8238$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244#include <sys/types.h> 8245#include <$ac_hdr> 8246 8247int 8248main () 8249{ 8250if ((DIR *) 0) 8251return 0; 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 eval "$as_ac_Header=yes" 8258else 8259 eval "$as_ac_Header=no" 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262fi 8263eval ac_res=\$$as_ac_Header 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8265$as_echo "$ac_res" >&6; } 8266eval as_val=\$$as_ac_Header 8267 if test "x$as_val" = x""yes; then : 8268 cat >>confdefs.h <<_ACEOF 8269#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8270_ACEOF 8271 8272ac_header_dirent=$ac_hdr; break 8273fi 8274 8275done 8276# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8277if test $ac_header_dirent = dirent.h; then 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8279$as_echo_n "checking for library containing opendir... " >&6; } 8280if test "${ac_cv_search_opendir+set}" = set; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 ac_func_search_save_LIBS=$LIBS 8284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286 8287/* Override any GCC internal prototype to avoid an error. 8288 Use char because int might match the return type of a GCC 8289 builtin and then its argument prototype would still apply. */ 8290#ifdef __cplusplus 8291extern "C" 8292#endif 8293char opendir (); 8294int 8295main () 8296{ 8297return opendir (); 8298 ; 8299 return 0; 8300} 8301_ACEOF 8302for ac_lib in '' dir; do 8303 if test -z "$ac_lib"; then 8304 ac_res="none required" 8305 else 8306 ac_res=-l$ac_lib 8307 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8308 fi 8309 if ac_fn_c_try_link "$LINENO"; then : 8310 ac_cv_search_opendir=$ac_res 8311fi 8312rm -f core conftest.err conftest.$ac_objext \ 8313 conftest$ac_exeext 8314 if test "${ac_cv_search_opendir+set}" = set; then : 8315 break 8316fi 8317done 8318if test "${ac_cv_search_opendir+set}" = set; then : 8319 8320else 8321 ac_cv_search_opendir=no 8322fi 8323rm conftest.$ac_ext 8324LIBS=$ac_func_search_save_LIBS 8325fi 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8327$as_echo "$ac_cv_search_opendir" >&6; } 8328ac_res=$ac_cv_search_opendir 8329if test "$ac_res" != no; then : 8330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8331 8332fi 8333 8334else 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8336$as_echo_n "checking for library containing opendir... " >&6; } 8337if test "${ac_cv_search_opendir+set}" = set; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 ac_func_search_save_LIBS=$LIBS 8341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343 8344/* Override any GCC internal prototype to avoid an error. 8345 Use char because int might match the return type of a GCC 8346 builtin and then its argument prototype would still apply. */ 8347#ifdef __cplusplus 8348extern "C" 8349#endif 8350char opendir (); 8351int 8352main () 8353{ 8354return opendir (); 8355 ; 8356 return 0; 8357} 8358_ACEOF 8359for ac_lib in '' x; do 8360 if test -z "$ac_lib"; then 8361 ac_res="none required" 8362 else 8363 ac_res=-l$ac_lib 8364 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8365 fi 8366 if ac_fn_c_try_link "$LINENO"; then : 8367 ac_cv_search_opendir=$ac_res 8368fi 8369rm -f core conftest.err conftest.$ac_objext \ 8370 conftest$ac_exeext 8371 if test "${ac_cv_search_opendir+set}" = set; then : 8372 break 8373fi 8374done 8375if test "${ac_cv_search_opendir+set}" = set; then : 8376 8377else 8378 ac_cv_search_opendir=no 8379fi 8380rm conftest.$ac_ext 8381LIBS=$ac_func_search_save_LIBS 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8384$as_echo "$ac_cv_search_opendir" >&6; } 8385ac_res=$ac_cv_search_opendir 8386if test "$ac_res" != no; then : 8387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8388 8389fi 8390 8391fi 8392 8393 8394if test $ac_cv_header_sys_wait_h = no; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 8396$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399#include <sys/wait.h> 8400int 8401main () 8402{ 8403union wait xx, yy; xx = yy 8404 ; 8405 return 0; 8406} 8407_ACEOF 8408if ac_fn_c_try_compile "$LINENO"; then : 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8410$as_echo "yes" >&6; } 8411 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8412 8413 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 8414 8415else 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8417$as_echo "no" >&6; } 8418fi 8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8420fi 8421 8422for ac_header in stdarg.h stdint.h stdlib.h string.h \ 8423 sys/select.h sys/utsname.h termcap.h fcntl.h \ 8424 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 8425 termio.h iconv.h inttypes.h langinfo.h math.h \ 8426 unistd.h stropts.h errno.h sys/resource.h \ 8427 sys/systeminfo.h locale.h sys/stream.h termios.h \ 8428 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 8429 utime.h sys/param.h libintl.h libgen.h \ 8430 util/debug.h util/msg18n.h frame.h sys/acl.h \ 8431 sys/access.h sys/sysinfo.h wchar.h wctype.h 8432do : 8433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8434ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8435eval as_val=\$$as_ac_Header 8436 if test "x$as_val" = x""yes; then : 8437 cat >>confdefs.h <<_ACEOF 8438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8439_ACEOF 8440 8441fi 8442 8443done 8444 8445 8446for ac_header in sys/ptem.h 8447do : 8448 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 8449# include <sys/stream.h> 8450#endif 8451" 8452if test "x$ac_cv_header_sys_ptem_h" = x""yes; then : 8453 cat >>confdefs.h <<_ACEOF 8454#define HAVE_SYS_PTEM_H 1 8455_ACEOF 8456 8457fi 8458 8459done 8460 8461 8462for ac_header in sys/sysctl.h 8463do : 8464 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 8465# include <sys/param.h> 8466#endif 8467" 8468if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then : 8469 cat >>confdefs.h <<_ACEOF 8470#define HAVE_SYS_SYSCTL_H 1 8471_ACEOF 8472 8473fi 8474 8475done 8476 8477 8478 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 8480$as_echo_n "checking for pthread_np.h... " >&6; } 8481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483 8484#include <pthread.h> 8485#include <pthread_np.h> 8486int 8487main () 8488{ 8489int i; i = 0; 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO"; then : 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8496$as_echo "yes" >&6; } 8497 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 8498 8499else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501$as_echo "no" >&6; } 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8504 8505for ac_header in strings.h 8506do : 8507 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 8508if test "x$ac_cv_header_strings_h" = x""yes; then : 8509 cat >>confdefs.h <<_ACEOF 8510#define HAVE_STRINGS_H 1 8511_ACEOF 8512 8513fi 8514 8515done 8516 8517if test "x$MACOSX" = "xyes"; then 8518 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 8519 8520else 8521 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 8523$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 8524cppflags_save=$CPPFLAGS 8525CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527/* end confdefs.h. */ 8528 8529#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 8530# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 8531 /* but don't do it on AIX 5.1 (Uribarri) */ 8532#endif 8533#ifdef HAVE_XM_XM_H 8534# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 8535#endif 8536#ifdef HAVE_STRING_H 8537# include <string.h> 8538#endif 8539#if defined(HAVE_STRINGS_H) 8540# include <strings.h> 8541#endif 8542 8543int 8544main () 8545{ 8546int i; i = 0; 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551if ac_fn_c_try_compile "$LINENO"; then : 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8553$as_echo "yes" >&6; } 8554else 8555 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 8556 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8558$as_echo "no" >&6; } 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8561CPPFLAGS=$cppflags_save 8562fi 8563 8564if test $ac_cv_c_compiler_gnu = yes; then 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 8566$as_echo_n "checking whether $CC needs -traditional... " >&6; } 8567if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 ac_pattern="Autoconf.*'x'" 8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572/* end confdefs.h. */ 8573#include <sgtty.h> 8574Autoconf TIOCGETP 8575_ACEOF 8576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8577 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 8578 ac_cv_prog_gcc_traditional=yes 8579else 8580 ac_cv_prog_gcc_traditional=no 8581fi 8582rm -f conftest* 8583 8584 8585 if test $ac_cv_prog_gcc_traditional = no; then 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588#include <termio.h> 8589Autoconf TCGETA 8590_ACEOF 8591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8592 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 8593 ac_cv_prog_gcc_traditional=yes 8594fi 8595rm -f conftest* 8596 8597 fi 8598fi 8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 8600$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 8601 if test $ac_cv_prog_gcc_traditional = yes; then 8602 CC="$CC -traditional" 8603 fi 8604fi 8605 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8607$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8608if test "${ac_cv_c_const+set}" = set; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612/* end confdefs.h. */ 8613 8614int 8615main () 8616{ 8617/* FIXME: Include the comments suggested by Paul. */ 8618#ifndef __cplusplus 8619 /* Ultrix mips cc rejects this. */ 8620 typedef int charset[2]; 8621 const charset cs; 8622 /* SunOS 4.1.1 cc rejects this. */ 8623 char const *const *pcpcc; 8624 char **ppc; 8625 /* NEC SVR4.0.2 mips cc rejects this. */ 8626 struct point {int x, y;}; 8627 static struct point const zero = {0,0}; 8628 /* AIX XL C 1.02.0.0 rejects this. 8629 It does not let you subtract one const X* pointer from another in 8630 an arm of an if-expression whose if-part is not a constant 8631 expression */ 8632 const char *g = "string"; 8633 pcpcc = &g + (g ? g-g : 0); 8634 /* HPUX 7.0 cc rejects these. */ 8635 ++pcpcc; 8636 ppc = (char**) pcpcc; 8637 pcpcc = (char const *const *) ppc; 8638 { /* SCO 3.2v4 cc rejects this. */ 8639 char *t; 8640 char const *s = 0 ? (char *) 0 : (char const *) 0; 8641 8642 *t++ = 0; 8643 if (s) return 0; 8644 } 8645 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8646 int x[] = {25, 17}; 8647 const int *foo = &x[0]; 8648 ++foo; 8649 } 8650 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8651 typedef const int *iptr; 8652 iptr p = 0; 8653 ++p; 8654 } 8655 { /* AIX XL C 1.02.0.0 rejects this saying 8656 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8657 struct s { int j; const int *ap[3]; }; 8658 struct s *b; b->j = 5; 8659 } 8660 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8661 const int foo = 10; 8662 if (!foo) return 0; 8663 } 8664 return !cs[0] && !zero.x; 8665#endif 8666 8667 ; 8668 return 0; 8669} 8670_ACEOF 8671if ac_fn_c_try_compile "$LINENO"; then : 8672 ac_cv_c_const=yes 8673else 8674 ac_cv_c_const=no 8675fi 8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8679$as_echo "$ac_cv_c_const" >&6; } 8680if test $ac_cv_c_const = no; then 8681 8682$as_echo "#define const /**/" >>confdefs.h 8683 8684fi 8685 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 8687$as_echo_n "checking for working volatile... " >&6; } 8688if test "${ac_cv_c_volatile+set}" = set; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693 8694int 8695main () 8696{ 8697 8698volatile int x; 8699int * volatile y = (int *) 0; 8700return !x && !y; 8701 ; 8702 return 0; 8703} 8704_ACEOF 8705if ac_fn_c_try_compile "$LINENO"; then : 8706 ac_cv_c_volatile=yes 8707else 8708 ac_cv_c_volatile=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8711fi 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 8713$as_echo "$ac_cv_c_volatile" >&6; } 8714if test $ac_cv_c_volatile = no; then 8715 8716$as_echo "#define volatile /**/" >>confdefs.h 8717 8718fi 8719 8720ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8721if test "x$ac_cv_type_mode_t" = x""yes; then : 8722 8723else 8724 8725cat >>confdefs.h <<_ACEOF 8726#define mode_t int 8727_ACEOF 8728 8729fi 8730 8731ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 8732if test "x$ac_cv_type_off_t" = x""yes; then : 8733 8734else 8735 8736cat >>confdefs.h <<_ACEOF 8737#define off_t long int 8738_ACEOF 8739 8740fi 8741 8742ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8743if test "x$ac_cv_type_pid_t" = x""yes; then : 8744 8745else 8746 8747cat >>confdefs.h <<_ACEOF 8748#define pid_t int 8749_ACEOF 8750 8751fi 8752 8753ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8754if test "x$ac_cv_type_size_t" = x""yes; then : 8755 8756else 8757 8758cat >>confdefs.h <<_ACEOF 8759#define size_t unsigned int 8760_ACEOF 8761 8762fi 8763 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 8765$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8766if test "${ac_cv_type_uid_t+set}" = set; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771#include <sys/types.h> 8772 8773_ACEOF 8774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8775 $EGREP "uid_t" >/dev/null 2>&1; then : 8776 ac_cv_type_uid_t=yes 8777else 8778 ac_cv_type_uid_t=no 8779fi 8780rm -f conftest* 8781 8782fi 8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 8784$as_echo "$ac_cv_type_uid_t" >&6; } 8785if test $ac_cv_type_uid_t = no; then 8786 8787$as_echo "#define uid_t int" >>confdefs.h 8788 8789 8790$as_echo "#define gid_t int" >>confdefs.h 8791 8792fi 8793 8794ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 8795case $ac_cv_c_uint32_t in #( 8796 no|yes) ;; #( 8797 *) 8798 8799$as_echo "#define _UINT32_T 1" >>confdefs.h 8800 8801 8802cat >>confdefs.h <<_ACEOF 8803#define uint32_t $ac_cv_c_uint32_t 8804_ACEOF 8805;; 8806 esac 8807 8808 8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8810$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8811if test "${ac_cv_header_time+set}" = set; then : 8812 $as_echo_n "(cached) " >&6 8813else 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816#include <sys/types.h> 8817#include <sys/time.h> 8818#include <time.h> 8819 8820int 8821main () 8822{ 8823if ((struct tm *) 0) 8824return 0; 8825 ; 8826 return 0; 8827} 8828_ACEOF 8829if ac_fn_c_try_compile "$LINENO"; then : 8830 ac_cv_header_time=yes 8831else 8832 ac_cv_header_time=no 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8837$as_echo "$ac_cv_header_time" >&6; } 8838if test $ac_cv_header_time = yes; then 8839 8840$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8841 8842fi 8843 8844ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 8845if test "x$ac_cv_type_ino_t" = x""yes; then : 8846 8847else 8848 8849cat >>confdefs.h <<_ACEOF 8850#define ino_t long 8851_ACEOF 8852 8853fi 8854 8855ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 8856if test "x$ac_cv_type_dev_t" = x""yes; then : 8857 8858else 8859 8860cat >>confdefs.h <<_ACEOF 8861#define dev_t unsigned 8862_ACEOF 8863 8864fi 8865 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8867$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 8868if test "${ac_cv_c_bigendian+set}" = set; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 ac_cv_c_bigendian=unknown 8872 # See if we're dealing with a universal compiler. 8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874/* end confdefs.h. */ 8875#ifndef __APPLE_CC__ 8876 not a universal capable compiler 8877 #endif 8878 typedef int dummy; 8879 8880_ACEOF 8881if ac_fn_c_try_compile "$LINENO"; then : 8882 8883 # Check for potential -arch flags. It is not universal unless 8884 # there are at least two -arch flags with different values. 8885 ac_arch= 8886 ac_prev= 8887 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 8888 if test -n "$ac_prev"; then 8889 case $ac_word in 8890 i?86 | x86_64 | ppc | ppc64) 8891 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 8892 ac_arch=$ac_word 8893 else 8894 ac_cv_c_bigendian=universal 8895 break 8896 fi 8897 ;; 8898 esac 8899 ac_prev= 8900 elif test "x$ac_word" = "x-arch"; then 8901 ac_prev=arch 8902 fi 8903 done 8904fi 8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8906 if test $ac_cv_c_bigendian = unknown; then 8907 # See if sys/param.h defines the BYTE_ORDER macro. 8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909/* end confdefs.h. */ 8910#include <sys/types.h> 8911 #include <sys/param.h> 8912 8913int 8914main () 8915{ 8916#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 8917 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 8918 && LITTLE_ENDIAN) 8919 bogus endian macros 8920 #endif 8921 8922 ; 8923 return 0; 8924} 8925_ACEOF 8926if ac_fn_c_try_compile "$LINENO"; then : 8927 # It does; now see whether it defined to BIG_ENDIAN or not. 8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8929/* end confdefs.h. */ 8930#include <sys/types.h> 8931 #include <sys/param.h> 8932 8933int 8934main () 8935{ 8936#if BYTE_ORDER != BIG_ENDIAN 8937 not big endian 8938 #endif 8939 8940 ; 8941 return 0; 8942} 8943_ACEOF 8944if ac_fn_c_try_compile "$LINENO"; then : 8945 ac_cv_c_bigendian=yes 8946else 8947 ac_cv_c_bigendian=no 8948fi 8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8950fi 8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8952 fi 8953 if test $ac_cv_c_bigendian = unknown; then 8954 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8956/* end confdefs.h. */ 8957#include <limits.h> 8958 8959int 8960main () 8961{ 8962#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 8963 bogus endian macros 8964 #endif 8965 8966 ; 8967 return 0; 8968} 8969_ACEOF 8970if ac_fn_c_try_compile "$LINENO"; then : 8971 # It does; now see whether it defined to _BIG_ENDIAN or not. 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974#include <limits.h> 8975 8976int 8977main () 8978{ 8979#ifndef _BIG_ENDIAN 8980 not big endian 8981 #endif 8982 8983 ; 8984 return 0; 8985} 8986_ACEOF 8987if ac_fn_c_try_compile "$LINENO"; then : 8988 ac_cv_c_bigendian=yes 8989else 8990 ac_cv_c_bigendian=no 8991fi 8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995 fi 8996 if test $ac_cv_c_bigendian = unknown; then 8997 # Compile a test program. 8998 if test "$cross_compiling" = yes; then : 8999 # Try to guess by grepping values from an object file. 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002short int ascii_mm[] = 9003 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9004 short int ascii_ii[] = 9005 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9006 int use_ascii (int i) { 9007 return ascii_mm[i] + ascii_ii[i]; 9008 } 9009 short int ebcdic_ii[] = 9010 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9011 short int ebcdic_mm[] = 9012 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9013 int use_ebcdic (int i) { 9014 return ebcdic_mm[i] + ebcdic_ii[i]; 9015 } 9016 extern int foo; 9017 9018int 9019main () 9020{ 9021return use_ascii (foo) == use_ebcdic (foo); 9022 ; 9023 return 0; 9024} 9025_ACEOF 9026if ac_fn_c_try_compile "$LINENO"; then : 9027 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9028 ac_cv_c_bigendian=yes 9029 fi 9030 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9031 if test "$ac_cv_c_bigendian" = unknown; then 9032 ac_cv_c_bigendian=no 9033 else 9034 # finding both strings is unlikely to happen, but who knows? 9035 ac_cv_c_bigendian=unknown 9036 fi 9037 fi 9038fi 9039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9040else 9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9042/* end confdefs.h. */ 9043$ac_includes_default 9044int 9045main () 9046{ 9047 9048 /* Are we little or big endian? From Harbison&Steele. */ 9049 union 9050 { 9051 long int l; 9052 char c[sizeof (long int)]; 9053 } u; 9054 u.l = 1; 9055 return u.c[sizeof (long int) - 1] == 1; 9056 9057 ; 9058 return 0; 9059} 9060_ACEOF 9061if ac_fn_c_try_run "$LINENO"; then : 9062 ac_cv_c_bigendian=no 9063else 9064 ac_cv_c_bigendian=yes 9065fi 9066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9067 conftest.$ac_objext conftest.beam conftest.$ac_ext 9068fi 9069 9070 fi 9071fi 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9073$as_echo "$ac_cv_c_bigendian" >&6; } 9074 case $ac_cv_c_bigendian in #( 9075 yes) 9076 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9077;; #( 9078 no) 9079 ;; #( 9080 universal) 9081 9082$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9083 9084 ;; #( 9085 *) 9086 as_fn_error "unknown endianness 9087 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9088 esac 9089 9090 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 9092$as_echo_n "checking for rlim_t... " >&6; } 9093if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 9095$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 9096else 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099 9100#include <sys/types.h> 9101#if STDC_HEADERS 9102# include <stdlib.h> 9103# include <stddef.h> 9104#endif 9105#ifdef HAVE_SYS_RESOURCE_H 9106# include <sys/resource.h> 9107#endif 9108 9109_ACEOF 9110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9111 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 9112 ac_cv_type_rlim_t=yes 9113else 9114 ac_cv_type_rlim_t=no 9115fi 9116rm -f conftest* 9117 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 9119$as_echo "$ac_cv_type_rlim_t" >&6; } 9120fi 9121if test $ac_cv_type_rlim_t = no; then 9122 cat >> confdefs.h <<\EOF 9123#define rlim_t unsigned long 9124EOF 9125fi 9126 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 9128$as_echo_n "checking for stack_t... " >&6; } 9129if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 9131$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 9132else 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135 9136#include <sys/types.h> 9137#if STDC_HEADERS 9138# include <stdlib.h> 9139# include <stddef.h> 9140#endif 9141#include <signal.h> 9142 9143_ACEOF 9144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9145 $EGREP "stack_t" >/dev/null 2>&1; then : 9146 ac_cv_type_stack_t=yes 9147else 9148 ac_cv_type_stack_t=no 9149fi 9150rm -f conftest* 9151 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 9153$as_echo "$ac_cv_type_stack_t" >&6; } 9154fi 9155if test $ac_cv_type_stack_t = no; then 9156 cat >> confdefs.h <<\EOF 9157#define stack_t struct sigaltstack 9158EOF 9159fi 9160 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 9162$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 9163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165 9166#include <sys/types.h> 9167#if STDC_HEADERS 9168# include <stdlib.h> 9169# include <stddef.h> 9170#endif 9171#include <signal.h> 9172#include "confdefs.h" 9173 9174int 9175main () 9176{ 9177stack_t sigstk; sigstk.ss_base = 0; 9178 ; 9179 return 0; 9180} 9181_ACEOF 9182if ac_fn_c_try_compile "$LINENO"; then : 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9184$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 9185 9186else 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9188$as_echo "no" >&6; } 9189fi 9190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9191 9192olibs="$LIBS" 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 9194$as_echo_n "checking --with-tlib argument... " >&6; } 9195 9196# Check whether --with-tlib was given. 9197if test "${with_tlib+set}" = set; then : 9198 withval=$with_tlib; 9199fi 9200 9201if test -n "$with_tlib"; then 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 9203$as_echo "$with_tlib" >&6; } 9204 LIBS="$LIBS -l$with_tlib" 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 9206$as_echo_n "checking for linking with $with_tlib library... " >&6; } 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208/* end confdefs.h. */ 9209 9210int 9211main () 9212{ 9213 9214 ; 9215 return 0; 9216} 9217_ACEOF 9218if ac_fn_c_try_link "$LINENO"; then : 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 9220$as_echo "OK" >&6; } 9221else 9222 as_fn_error "FAILED" "$LINENO" 5 9223fi 9224rm -f core conftest.err conftest.$ac_objext \ 9225 conftest$ac_exeext conftest.$ac_ext 9226 olibs="$LIBS" 9227else 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 9229$as_echo "empty: automatic terminal library selection" >&6; } 9230 case "`uname -s 2>/dev/null`" in 9231 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; 9232 *) tlibs="ncurses termlib termcap curses";; 9233 esac 9234 for libname in $tlibs; do 9235 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 9237$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 9238if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : 9239 $as_echo_n "(cached) " >&6 9240else 9241 ac_check_lib_save_LIBS=$LIBS 9242LIBS="-l${libname} $LIBS" 9243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245 9246/* Override any GCC internal prototype to avoid an error. 9247 Use char because int might match the return type of a GCC 9248 builtin and then its argument prototype would still apply. */ 9249#ifdef __cplusplus 9250extern "C" 9251#endif 9252char tgetent (); 9253int 9254main () 9255{ 9256return tgetent (); 9257 ; 9258 return 0; 9259} 9260_ACEOF 9261if ac_fn_c_try_link "$LINENO"; then : 9262 eval "$as_ac_Lib=yes" 9263else 9264 eval "$as_ac_Lib=no" 9265fi 9266rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268LIBS=$ac_check_lib_save_LIBS 9269fi 9270eval ac_res=\$$as_ac_Lib 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9272$as_echo "$ac_res" >&6; } 9273eval as_val=\$$as_ac_Lib 9274 if test "x$as_val" = x""yes; then : 9275 cat >>confdefs.h <<_ACEOF 9276#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 9277_ACEOF 9278 9279 LIBS="-l${libname} $LIBS" 9280 9281fi 9282 9283 if test "x$olibs" != "x$LIBS"; then 9284 if test "$cross_compiling" = yes; then : 9285 res="FAIL" 9286else 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289 9290#ifdef HAVE_TERMCAP_H 9291# include <termcap.h> 9292#endif 9293#if STDC_HEADERS 9294# include <stdlib.h> 9295# include <stddef.h> 9296#endif 9297main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 9298_ACEOF 9299if ac_fn_c_try_run "$LINENO"; then : 9300 res="OK" 9301else 9302 res="FAIL" 9303fi 9304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9305 conftest.$ac_objext conftest.beam conftest.$ac_ext 9306fi 9307 9308 if test "$res" = "OK"; then 9309 break 9310 fi 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 9312$as_echo "$libname library is not usable" >&6; } 9313 LIBS="$olibs" 9314 fi 9315 done 9316 if test "x$olibs" = "x$LIBS"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 9318$as_echo "no terminal library found" >&6; } 9319 fi 9320fi 9321 9322if test "x$olibs" = "x$LIBS"; then 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 9324$as_echo_n "checking for tgetent()... " >&6; } 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9326/* end confdefs.h. */ 9327 9328int 9329main () 9330{ 9331char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 9332 ; 9333 return 0; 9334} 9335_ACEOF 9336if ac_fn_c_try_link "$LINENO"; then : 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9338$as_echo "yes" >&6; } 9339else 9340 as_fn_error "NOT FOUND! 9341 You need to install a terminal library; for example ncurses. 9342 Or specify the name of the library with --with-tlib." "$LINENO" 5 9343fi 9344rm -f core conftest.err conftest.$ac_objext \ 9345 conftest$ac_exeext conftest.$ac_ext 9346fi 9347 9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 9349$as_echo_n "checking whether we talk terminfo... " >&6; } 9350if test "${vim_cv_terminfo+set}" = set; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 9354 if test "$cross_compiling" = yes; then : 9355 9356 as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 9357 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361 9362#include "confdefs.h" 9363#ifdef HAVE_TERMCAP_H 9364# include <termcap.h> 9365#endif 9366#ifdef HAVE_STRING_H 9367# include <string.h> 9368#endif 9369#if STDC_HEADERS 9370# include <stdlib.h> 9371# include <stddef.h> 9372#endif 9373main() 9374{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 9375 9376_ACEOF 9377if ac_fn_c_try_run "$LINENO"; then : 9378 9379 vim_cv_terminfo=no 9380 9381else 9382 9383 vim_cv_terminfo=yes 9384 9385fi 9386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9387 conftest.$ac_objext conftest.beam conftest.$ac_ext 9388fi 9389 9390 9391fi 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 9393$as_echo "$vim_cv_terminfo" >&6; } 9394 9395if test "x$vim_cv_terminfo" = "xyes" ; then 9396 $as_echo "#define TERMINFO 1" >>confdefs.h 9397 9398fi 9399 9400if test "x$olibs" != "x$LIBS"; then 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 9402$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 9403if test "${vim_cv_tgent+set}" = set; then : 9404 $as_echo_n "(cached) " >&6 9405else 9406 9407 if test "$cross_compiling" = yes; then : 9408 9409 as_fn_error "failed to compile test program." "$LINENO" 5 9410 9411else 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414 9415#include "confdefs.h" 9416#ifdef HAVE_TERMCAP_H 9417# include <termcap.h> 9418#endif 9419#if STDC_HEADERS 9420# include <stdlib.h> 9421# include <stddef.h> 9422#endif 9423main() 9424{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 9425 9426_ACEOF 9427if ac_fn_c_try_run "$LINENO"; then : 9428 9429 vim_cv_tgent=zero 9430 9431else 9432 9433 vim_cv_tgent=non-zero 9434 9435fi 9436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9437 conftest.$ac_objext conftest.beam conftest.$ac_ext 9438fi 9439 9440 9441fi 9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 9443$as_echo "$vim_cv_tgent" >&6; } 9444 9445 if test "x$vim_cv_tgent" = "xzero" ; then 9446 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 9447 9448 fi 9449fi 9450 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 9452$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 9453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454/* end confdefs.h. */ 9455 9456#ifdef HAVE_TERMCAP_H 9457# include <termcap.h> 9458#endif 9459 9460int 9461main () 9462{ 9463ospeed = 20000 9464 ; 9465 return 0; 9466} 9467_ACEOF 9468if ac_fn_c_try_link "$LINENO"; then : 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9470$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 9471 9472else 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9474$as_echo "no" >&6; } 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 9476$as_echo_n "checking whether ospeed can be extern... " >&6; } 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479 9480#ifdef HAVE_TERMCAP_H 9481# include <termcap.h> 9482#endif 9483extern short ospeed; 9484 9485int 9486main () 9487{ 9488ospeed = 20000 9489 ; 9490 return 0; 9491} 9492_ACEOF 9493if ac_fn_c_try_link "$LINENO"; then : 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9495$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 9496 9497else 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9499$as_echo "no" >&6; } 9500fi 9501rm -f core conftest.err conftest.$ac_objext \ 9502 conftest$ac_exeext conftest.$ac_ext 9503 9504fi 9505rm -f core conftest.err conftest.$ac_objext \ 9506 conftest$ac_exeext conftest.$ac_ext 9507 9508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 9509$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 9510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512 9513#ifdef HAVE_TERMCAP_H 9514# include <termcap.h> 9515#endif 9516 9517int 9518main () 9519{ 9520if (UP == 0 && BC == 0) PC = 1 9521 ; 9522 return 0; 9523} 9524_ACEOF 9525if ac_fn_c_try_link "$LINENO"; then : 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9527$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 9528 9529else 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9531$as_echo "no" >&6; } 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 9533$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536 9537#ifdef HAVE_TERMCAP_H 9538# include <termcap.h> 9539#endif 9540extern char *UP, *BC, PC; 9541 9542int 9543main () 9544{ 9545if (UP == 0 && BC == 0) PC = 1 9546 ; 9547 return 0; 9548} 9549_ACEOF 9550if ac_fn_c_try_link "$LINENO"; then : 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9552$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 9553 9554else 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9556$as_echo "no" >&6; } 9557fi 9558rm -f core conftest.err conftest.$ac_objext \ 9559 conftest$ac_exeext conftest.$ac_ext 9560 9561fi 9562rm -f core conftest.err conftest.$ac_objext \ 9563 conftest$ac_exeext conftest.$ac_ext 9564 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 9566$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 9567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568/* end confdefs.h. */ 9569 9570#ifdef HAVE_TERMCAP_H 9571# include <termcap.h> 9572#endif 9573 9574int 9575main () 9576{ 9577extern int xx(); tputs("test", 1, (outfuntype)xx) 9578 ; 9579 return 0; 9580} 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9584$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 9585 9586else 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589fi 9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9591 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 9593$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 9594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595/* end confdefs.h. */ 9596 9597#include <sys/types.h> 9598#include <sys/time.h> 9599#include <sys/select.h> 9600int 9601main () 9602{ 9603 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608if ac_fn_c_try_compile "$LINENO"; then : 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9610$as_echo "yes" >&6; } 9611 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 9612 9613else 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9615$as_echo "no" >&6; } 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9618 9619 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 9621$as_echo_n "checking for /dev/ptc... " >&6; } 9622if test -r /dev/ptc; then 9623 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 9624 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9626$as_echo "yes" >&6; } 9627else 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9629$as_echo "no" >&6; } 9630fi 9631 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 9633$as_echo_n "checking for SVR4 ptys... " >&6; } 9634if test -c /dev/ptmx ; then 9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637 9638int 9639main () 9640{ 9641ptsname(0);grantpt(0);unlockpt(0); 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646if ac_fn_c_try_link "$LINENO"; then : 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9648$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 9649 9650else 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9652$as_echo "no" >&6; } 9653fi 9654rm -f core conftest.err conftest.$ac_objext \ 9655 conftest$ac_exeext conftest.$ac_ext 9656else 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9658$as_echo "no" >&6; } 9659fi 9660 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 9662$as_echo_n "checking for ptyranges... " >&6; } 9663if test -d /dev/ptym ; then 9664 pdir='/dev/ptym' 9665else 9666 pdir='/dev' 9667fi 9668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669/* end confdefs.h. */ 9670#ifdef M_UNIX 9671 yes; 9672#endif 9673 9674_ACEOF 9675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9676 $EGREP "yes" >/dev/null 2>&1; then : 9677 ptys=`echo /dev/ptyp??` 9678else 9679 ptys=`echo $pdir/pty??` 9680fi 9681rm -f conftest* 9682 9683if test "$ptys" != "$pdir/pty??" ; then 9684 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 9685 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 9686 cat >>confdefs.h <<_ACEOF 9687#define PTYRANGE0 "$p0" 9688_ACEOF 9689 9690 cat >>confdefs.h <<_ACEOF 9691#define PTYRANGE1 "$p1" 9692_ACEOF 9693 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 9695$as_echo "$p0 / $p1" >&6; } 9696else 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 9698$as_echo "don't know" >&6; } 9699fi 9700 9701rm -f conftest_grp 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 9703$as_echo_n "checking default tty permissions/group... " >&6; } 9704if test "${vim_cv_tty_group+set}" = set; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 9708 if test "$cross_compiling" = yes; then : 9709 9710 as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 9711 9712else 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715 9716#include "confdefs.h" 9717#include <sys/types.h> 9718#if STDC_HEADERS 9719# include <stdlib.h> 9720# include <stddef.h> 9721#endif 9722#ifdef HAVE_UNISTD_H 9723#include <unistd.h> 9724#endif 9725#include <sys/stat.h> 9726#include <stdio.h> 9727main() 9728{ 9729 struct stat sb; 9730 char *x,*ttyname(); 9731 int om, m; 9732 FILE *fp; 9733 9734 if (!(x = ttyname(0))) exit(1); 9735 if (stat(x, &sb)) exit(1); 9736 om = sb.st_mode; 9737 if (om & 002) exit(0); 9738 m = system("mesg y"); 9739 if (m == -1 || m == 127) exit(1); 9740 if (stat(x, &sb)) exit(1); 9741 m = sb.st_mode; 9742 if (chmod(x, om)) exit(1); 9743 if (m & 002) exit(0); 9744 if (sb.st_gid == getgid()) exit(1); 9745 if (!(fp=fopen("conftest_grp", "w"))) 9746 exit(1); 9747 fprintf(fp, "%d\n", sb.st_gid); 9748 fclose(fp); 9749 exit(0); 9750} 9751 9752_ACEOF 9753if ac_fn_c_try_run "$LINENO"; then : 9754 9755 if test -f conftest_grp; then 9756 vim_cv_tty_group=`cat conftest_grp` 9757 if test "x$vim_cv_tty_mode" = "x" ; then 9758 vim_cv_tty_mode=0620 9759 fi 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 9761$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 9762 else 9763 vim_cv_tty_group=world 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 9765$as_echo "ptys are world accessible" >&6; } 9766 fi 9767 9768else 9769 9770 vim_cv_tty_group=world 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 9772$as_echo "can't determine - assume ptys are world accessible" >&6; } 9773 9774fi 9775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9776 conftest.$ac_objext conftest.beam conftest.$ac_ext 9777fi 9778 9779 9780fi 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 9782$as_echo "$vim_cv_tty_group" >&6; } 9783rm -f conftest_grp 9784 9785if test "x$vim_cv_tty_group" != "xworld" ; then 9786 cat >>confdefs.h <<_ACEOF 9787#define PTYGROUP $vim_cv_tty_group 9788_ACEOF 9789 9790 if test "x$vim_cv_tty_mode" = "x" ; then 9791 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 9792 else 9793 $as_echo "#define PTYMODE 0620" >>confdefs.h 9794 9795 fi 9796fi 9797 9798 9799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 9800$as_echo_n "checking return type of signal handlers... " >&6; } 9801if test "${ac_cv_type_signal+set}" = set; then : 9802 $as_echo_n "(cached) " >&6 9803else 9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805/* end confdefs.h. */ 9806#include <sys/types.h> 9807#include <signal.h> 9808 9809int 9810main () 9811{ 9812return *(signal (0, 0)) (0) == 1; 9813 ; 9814 return 0; 9815} 9816_ACEOF 9817if ac_fn_c_try_compile "$LINENO"; then : 9818 ac_cv_type_signal=int 9819else 9820 ac_cv_type_signal=void 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9823fi 9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 9825$as_echo "$ac_cv_type_signal" >&6; } 9826 9827cat >>confdefs.h <<_ACEOF 9828#define RETSIGTYPE $ac_cv_type_signal 9829_ACEOF 9830 9831 9832 9833if test $ac_cv_type_signal = void; then 9834 $as_echo "#define SIGRETURN return" >>confdefs.h 9835 9836else 9837 $as_echo "#define SIGRETURN return 0" >>confdefs.h 9838 9839fi 9840 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 9842$as_echo_n "checking for struct sigcontext... " >&6; } 9843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9844/* end confdefs.h. */ 9845 9846#include <signal.h> 9847test_sig() 9848{ 9849 struct sigcontext *scont; 9850 scont = (struct sigcontext *)0; 9851 return 1; 9852} 9853int 9854main () 9855{ 9856 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861if ac_fn_c_try_compile "$LINENO"; then : 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9863$as_echo "yes" >&6; } 9864 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 9865 9866else 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9868$as_echo "no" >&6; } 9869fi 9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9871 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 9873$as_echo_n "checking getcwd implementation is broken... " >&6; } 9874if test "${vim_cv_getcwd_broken+set}" = set; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 9878 if test "$cross_compiling" = yes; then : 9879 9880 as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 9881 9882else 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885 9886#include "confdefs.h" 9887#ifdef HAVE_UNISTD_H 9888#include <unistd.h> 9889#endif 9890char *dagger[] = { "IFS=pwd", 0 }; 9891main() 9892{ 9893 char buffer[500]; 9894 extern char **environ; 9895 environ = dagger; 9896 return getcwd(buffer, 500) ? 0 : 1; 9897} 9898 9899_ACEOF 9900if ac_fn_c_try_run "$LINENO"; then : 9901 9902 vim_cv_getcwd_broken=no 9903 9904else 9905 9906 vim_cv_getcwd_broken=yes 9907 9908fi 9909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9910 conftest.$ac_objext conftest.beam conftest.$ac_ext 9911fi 9912 9913 9914fi 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 9916$as_echo "$vim_cv_getcwd_broken" >&6; } 9917 9918if test "x$vim_cv_getcwd_broken" = "xyes" ; then 9919 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 9920 9921fi 9922 9923for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 9924 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 9925 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 9926 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 9927 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 9928 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 9929 usleep utime utimes 9930do : 9931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9932ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9933eval as_val=\$$as_ac_var 9934 if test "x$as_val" = x""yes; then : 9935 cat >>confdefs.h <<_ACEOF 9936#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9937_ACEOF 9938 9939fi 9940done 9941 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 9943$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 9944if test "${ac_cv_sys_largefile_source+set}" = set; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 while :; do 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950#include <sys/types.h> /* for off_t */ 9951 #include <stdio.h> 9952int 9953main () 9954{ 9955int (*fp) (FILE *, off_t, int) = fseeko; 9956 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961if ac_fn_c_try_link "$LINENO"; then : 9962 ac_cv_sys_largefile_source=no; break 9963fi 9964rm -f core conftest.err conftest.$ac_objext \ 9965 conftest$ac_exeext conftest.$ac_ext 9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968#define _LARGEFILE_SOURCE 1 9969#include <sys/types.h> /* for off_t */ 9970 #include <stdio.h> 9971int 9972main () 9973{ 9974int (*fp) (FILE *, off_t, int) = fseeko; 9975 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 9976 ; 9977 return 0; 9978} 9979_ACEOF 9980if ac_fn_c_try_link "$LINENO"; then : 9981 ac_cv_sys_largefile_source=1; break 9982fi 9983rm -f core conftest.err conftest.$ac_objext \ 9984 conftest$ac_exeext conftest.$ac_ext 9985 ac_cv_sys_largefile_source=unknown 9986 break 9987done 9988fi 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 9990$as_echo "$ac_cv_sys_largefile_source" >&6; } 9991case $ac_cv_sys_largefile_source in #( 9992 no | unknown) ;; 9993 *) 9994cat >>confdefs.h <<_ACEOF 9995#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 9996_ACEOF 9997;; 9998esac 9999rm -rf conftest* 10000 10001# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 10002# in glibc 2.1.3, but that breaks too many other things. 10003# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 10004if test $ac_cv_sys_largefile_source != unknown; then 10005 10006$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 10007 10008fi 10009 10010 10011# Check whether --enable-largefile was given. 10012if test "${enable_largefile+set}" = set; then : 10013 enableval=$enable_largefile; 10014fi 10015 10016if test "$enable_largefile" != no; then 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10019$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10020if test "${ac_cv_sys_largefile_CC+set}" = set; then : 10021 $as_echo_n "(cached) " >&6 10022else 10023 ac_cv_sys_largefile_CC=no 10024 if test "$GCC" != yes; then 10025 ac_save_CC=$CC 10026 while :; do 10027 # IRIX 6.2 and later do not support large files by default, 10028 # so use the C compiler's -n32 option if that helps. 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031#include <sys/types.h> 10032 /* Check that off_t can represent 2**63 - 1 correctly. 10033 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10034 since some C++ compilers masquerading as C compilers 10035 incorrectly reject 9223372036854775807. */ 10036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10038 && LARGE_OFF_T % 2147483647 == 1) 10039 ? 1 : -1]; 10040int 10041main () 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048 if ac_fn_c_try_compile "$LINENO"; then : 10049 break 10050fi 10051rm -f core conftest.err conftest.$ac_objext 10052 CC="$CC -n32" 10053 if ac_fn_c_try_compile "$LINENO"; then : 10054 ac_cv_sys_largefile_CC=' -n32'; break 10055fi 10056rm -f core conftest.err conftest.$ac_objext 10057 break 10058 done 10059 CC=$ac_save_CC 10060 rm -f conftest.$ac_ext 10061 fi 10062fi 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10064$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10065 if test "$ac_cv_sys_largefile_CC" != no; then 10066 CC=$CC$ac_cv_sys_largefile_CC 10067 fi 10068 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10070$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10071if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 while :; do 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077#include <sys/types.h> 10078 /* Check that off_t can represent 2**63 - 1 correctly. 10079 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10080 since some C++ compilers masquerading as C compilers 10081 incorrectly reject 9223372036854775807. */ 10082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10084 && LARGE_OFF_T % 2147483647 == 1) 10085 ? 1 : -1]; 10086int 10087main () 10088{ 10089 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094if ac_fn_c_try_compile "$LINENO"; then : 10095 ac_cv_sys_file_offset_bits=no; break 10096fi 10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100#define _FILE_OFFSET_BITS 64 10101#include <sys/types.h> 10102 /* Check that off_t can represent 2**63 - 1 correctly. 10103 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10104 since some C++ compilers masquerading as C compilers 10105 incorrectly reject 9223372036854775807. */ 10106#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10108 && LARGE_OFF_T % 2147483647 == 1) 10109 ? 1 : -1]; 10110int 10111main () 10112{ 10113 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118if ac_fn_c_try_compile "$LINENO"; then : 10119 ac_cv_sys_file_offset_bits=64; break 10120fi 10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10122 ac_cv_sys_file_offset_bits=unknown 10123 break 10124done 10125fi 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10127$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10128case $ac_cv_sys_file_offset_bits in #( 10129 no | unknown) ;; 10130 *) 10131cat >>confdefs.h <<_ACEOF 10132#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10133_ACEOF 10134;; 10135esac 10136rm -rf conftest* 10137 if test $ac_cv_sys_file_offset_bits = unknown; then 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10139$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10140if test "${ac_cv_sys_large_files+set}" = set; then : 10141 $as_echo_n "(cached) " >&6 10142else 10143 while :; do 10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10145/* end confdefs.h. */ 10146#include <sys/types.h> 10147 /* Check that off_t can represent 2**63 - 1 correctly. 10148 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10149 since some C++ compilers masquerading as C compilers 10150 incorrectly reject 9223372036854775807. */ 10151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10153 && LARGE_OFF_T % 2147483647 == 1) 10154 ? 1 : -1]; 10155int 10156main () 10157{ 10158 10159 ; 10160 return 0; 10161} 10162_ACEOF 10163if ac_fn_c_try_compile "$LINENO"; then : 10164 ac_cv_sys_large_files=no; break 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169#define _LARGE_FILES 1 10170#include <sys/types.h> 10171 /* Check that off_t can represent 2**63 - 1 correctly. 10172 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10173 since some C++ compilers masquerading as C compilers 10174 incorrectly reject 9223372036854775807. */ 10175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10177 && LARGE_OFF_T % 2147483647 == 1) 10178 ? 1 : -1]; 10179int 10180main () 10181{ 10182 10183 ; 10184 return 0; 10185} 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO"; then : 10188 ac_cv_sys_large_files=1; break 10189fi 10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10191 ac_cv_sys_large_files=unknown 10192 break 10193done 10194fi 10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10196$as_echo "$ac_cv_sys_large_files" >&6; } 10197case $ac_cv_sys_large_files in #( 10198 no | unknown) ;; 10199 *) 10200cat >>confdefs.h <<_ACEOF 10201#define _LARGE_FILES $ac_cv_sys_large_files 10202_ACEOF 10203;; 10204esac 10205rm -rf conftest* 10206 fi 10207fi 10208 10209 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 10211$as_echo_n "checking for st_blksize... " >&6; } 10212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214#include <sys/types.h> 10215#include <sys/stat.h> 10216int 10217main () 10218{ 10219 struct stat st; 10220 int n; 10221 10222 stat("/", &st); 10223 n = (int)st.st_blksize; 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_compile "$LINENO"; then : 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10230$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 10231 10232else 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10234$as_echo "no" >&6; } 10235fi 10236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10237 10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 10239$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 10240if test "${vim_cv_stat_ignores_slash+set}" = set; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 10244 if test "$cross_compiling" = yes; then : 10245 10246 as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 10247 10248else 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251 10252#include "confdefs.h" 10253#if STDC_HEADERS 10254# include <stdlib.h> 10255# include <stddef.h> 10256#endif 10257#include <sys/types.h> 10258#include <sys/stat.h> 10259main() {struct stat st; exit(stat("configure/", &st) != 0); } 10260 10261_ACEOF 10262if ac_fn_c_try_run "$LINENO"; then : 10263 10264 vim_cv_stat_ignores_slash=yes 10265 10266else 10267 10268 vim_cv_stat_ignores_slash=no 10269 10270fi 10271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10272 conftest.$ac_objext conftest.beam conftest.$ac_ext 10273fi 10274 10275 10276fi 10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 10278$as_echo "$vim_cv_stat_ignores_slash" >&6; } 10279 10280if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 10281 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 10282 10283fi 10284 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 10286$as_echo_n "checking for iconv_open()... " >&6; } 10287save_LIBS="$LIBS" 10288LIBS="$LIBS -liconv" 10289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291 10292#ifdef HAVE_ICONV_H 10293# include <iconv.h> 10294#endif 10295 10296int 10297main () 10298{ 10299iconv_open("fr", "to"); 10300 ; 10301 return 0; 10302} 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 10306$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10307 10308else 10309 LIBS="$save_LIBS" 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312 10313#ifdef HAVE_ICONV_H 10314# include <iconv.h> 10315#endif 10316 10317int 10318main () 10319{ 10320iconv_open("fr", "to"); 10321 ; 10322 return 0; 10323} 10324_ACEOF 10325if ac_fn_c_try_link "$LINENO"; then : 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10327$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10328 10329else 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10331$as_echo "no" >&6; } 10332fi 10333rm -f core conftest.err conftest.$ac_objext \ 10334 conftest$ac_exeext conftest.$ac_ext 10335fi 10336rm -f core conftest.err conftest.$ac_objext \ 10337 conftest$ac_exeext conftest.$ac_ext 10338 10339 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 10341$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 10342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344 10345#ifdef HAVE_LANGINFO_H 10346# include <langinfo.h> 10347#endif 10348 10349int 10350main () 10351{ 10352char *cs = nl_langinfo(CODESET); 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357if ac_fn_c_try_link "$LINENO"; then : 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10359$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 10360 10361else 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10363$as_echo "no" >&6; } 10364fi 10365rm -f core conftest.err conftest.$ac_objext \ 10366 conftest$ac_exeext conftest.$ac_ext 10367 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 10369$as_echo_n "checking for strtod in -lm... " >&6; } 10370if test "${ac_cv_lib_m_strtod+set}" = set; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 ac_check_lib_save_LIBS=$LIBS 10374LIBS="-lm $LIBS" 10375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376/* end confdefs.h. */ 10377 10378/* Override any GCC internal prototype to avoid an error. 10379 Use char because int might match the return type of a GCC 10380 builtin and then its argument prototype would still apply. */ 10381#ifdef __cplusplus 10382extern "C" 10383#endif 10384char strtod (); 10385int 10386main () 10387{ 10388return strtod (); 10389 ; 10390 return 0; 10391} 10392_ACEOF 10393if ac_fn_c_try_link "$LINENO"; then : 10394 ac_cv_lib_m_strtod=yes 10395else 10396 ac_cv_lib_m_strtod=no 10397fi 10398rm -f core conftest.err conftest.$ac_objext \ 10399 conftest$ac_exeext conftest.$ac_ext 10400LIBS=$ac_check_lib_save_LIBS 10401fi 10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 10403$as_echo "$ac_cv_lib_m_strtod" >&6; } 10404if test "x$ac_cv_lib_m_strtod" = x""yes; then : 10405 cat >>confdefs.h <<_ACEOF 10406#define HAVE_LIBM 1 10407_ACEOF 10408 10409 LIBS="-lm $LIBS" 10410 10411fi 10412 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 10414$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417 10418#ifdef HAVE_MATH_H 10419# include <math.h> 10420#endif 10421#if STDC_HEADERS 10422# include <stdlib.h> 10423# include <stddef.h> 10424#endif 10425 10426int 10427main () 10428{ 10429char *s; double d; 10430 d = strtod("1.1", &s); 10431 d = fabs(1.11); 10432 d = ceil(1.11); 10433 d = floor(1.11); 10434 d = log10(1.11); 10435 d = pow(1.11, 2.22); 10436 d = sqrt(1.11); 10437 d = sin(1.11); 10438 d = cos(1.11); 10439 d = atan(1.11); 10440 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445if ac_fn_c_try_link "$LINENO"; then : 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10447$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 10448 10449else 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10451$as_echo "no" >&6; } 10452fi 10453rm -f core conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 10457$as_echo_n "checking --disable-acl argument... " >&6; } 10458# Check whether --enable-acl was given. 10459if test "${enable_acl+set}" = set; then : 10460 enableval=$enable_acl; 10461else 10462 enable_acl="yes" 10463fi 10464 10465if test "$enable_acl" = "yes"; then 10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10467$as_echo "no" >&6; } 10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 10469$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 10470if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then : 10471 $as_echo_n "(cached) " >&6 10472else 10473 ac_check_lib_save_LIBS=$LIBS 10474LIBS="-lposix1e $LIBS" 10475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476/* end confdefs.h. */ 10477 10478/* Override any GCC internal prototype to avoid an error. 10479 Use char because int might match the return type of a GCC 10480 builtin and then its argument prototype would still apply. */ 10481#ifdef __cplusplus 10482extern "C" 10483#endif 10484char acl_get_file (); 10485int 10486main () 10487{ 10488return acl_get_file (); 10489 ; 10490 return 0; 10491} 10492_ACEOF 10493if ac_fn_c_try_link "$LINENO"; then : 10494 ac_cv_lib_posix1e_acl_get_file=yes 10495else 10496 ac_cv_lib_posix1e_acl_get_file=no 10497fi 10498rm -f core conftest.err conftest.$ac_objext \ 10499 conftest$ac_exeext conftest.$ac_ext 10500LIBS=$ac_check_lib_save_LIBS 10501fi 10502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 10503$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 10504if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then : 10505 LIBS="$LIBS -lposix1e" 10506else 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 10508$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 10509if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then : 10510 $as_echo_n "(cached) " >&6 10511else 10512 ac_check_lib_save_LIBS=$LIBS 10513LIBS="-lacl $LIBS" 10514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10515/* end confdefs.h. */ 10516 10517/* Override any GCC internal prototype to avoid an error. 10518 Use char because int might match the return type of a GCC 10519 builtin and then its argument prototype would still apply. */ 10520#ifdef __cplusplus 10521extern "C" 10522#endif 10523char acl_get_file (); 10524int 10525main () 10526{ 10527return acl_get_file (); 10528 ; 10529 return 0; 10530} 10531_ACEOF 10532if ac_fn_c_try_link "$LINENO"; then : 10533 ac_cv_lib_acl_acl_get_file=yes 10534else 10535 ac_cv_lib_acl_acl_get_file=no 10536fi 10537rm -f core conftest.err conftest.$ac_objext \ 10538 conftest$ac_exeext conftest.$ac_ext 10539LIBS=$ac_check_lib_save_LIBS 10540fi 10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 10542$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 10543if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then : 10544 LIBS="$LIBS -lacl" 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 10546$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 10547if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then : 10548 $as_echo_n "(cached) " >&6 10549else 10550 ac_check_lib_save_LIBS=$LIBS 10551LIBS="-lattr $LIBS" 10552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553/* end confdefs.h. */ 10554 10555/* Override any GCC internal prototype to avoid an error. 10556 Use char because int might match the return type of a GCC 10557 builtin and then its argument prototype would still apply. */ 10558#ifdef __cplusplus 10559extern "C" 10560#endif 10561char fgetxattr (); 10562int 10563main () 10564{ 10565return fgetxattr (); 10566 ; 10567 return 0; 10568} 10569_ACEOF 10570if ac_fn_c_try_link "$LINENO"; then : 10571 ac_cv_lib_attr_fgetxattr=yes 10572else 10573 ac_cv_lib_attr_fgetxattr=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext \ 10576 conftest$ac_exeext conftest.$ac_ext 10577LIBS=$ac_check_lib_save_LIBS 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 10580$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 10581if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then : 10582 LIBS="$LIBS -lattr" 10583fi 10584 10585fi 10586 10587fi 10588 10589 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 10591$as_echo_n "checking for POSIX ACL support... " >&6; } 10592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10593/* end confdefs.h. */ 10594 10595#include <sys/types.h> 10596#ifdef HAVE_SYS_ACL_H 10597# include <sys/acl.h> 10598#endif 10599acl_t acl; 10600int 10601main () 10602{ 10603acl = acl_get_file("foo", ACL_TYPE_ACCESS); 10604 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 10605 acl_free(acl); 10606 ; 10607 return 0; 10608} 10609_ACEOF 10610if ac_fn_c_try_link "$LINENO"; then : 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10612$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 10613 10614else 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10616$as_echo "no" >&6; } 10617fi 10618rm -f core conftest.err conftest.$ac_objext \ 10619 conftest$ac_exeext conftest.$ac_ext 10620 10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 10622$as_echo_n "checking for Solaris ACL support... " >&6; } 10623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10624/* end confdefs.h. */ 10625 10626#ifdef HAVE_SYS_ACL_H 10627# include <sys/acl.h> 10628#endif 10629int 10630main () 10631{ 10632acl("foo", GETACLCNT, 0, NULL); 10633 10634 ; 10635 return 0; 10636} 10637_ACEOF 10638if ac_fn_c_try_link "$LINENO"; then : 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10640$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 10641 10642else 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10644$as_echo "no" >&6; } 10645fi 10646rm -f core conftest.err conftest.$ac_objext \ 10647 conftest$ac_exeext conftest.$ac_ext 10648 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 10650$as_echo_n "checking for AIX ACL support... " >&6; } 10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653 10654#if STDC_HEADERS 10655# include <stdlib.h> 10656# include <stddef.h> 10657#endif 10658#ifdef HAVE_SYS_ACL_H 10659# include <sys/acl.h> 10660#endif 10661#ifdef HAVE_SYS_ACCESS_H 10662# include <sys/access.h> 10663#endif 10664#define _ALL_SOURCE 10665 10666#include <sys/stat.h> 10667 10668int aclsize; 10669struct acl *aclent; 10670int 10671main () 10672{ 10673aclsize = sizeof(struct acl); 10674 aclent = (void *)malloc(aclsize); 10675 statacl("foo", STX_NORMAL, aclent, aclsize); 10676 10677 ; 10678 return 0; 10679} 10680_ACEOF 10681if ac_fn_c_try_link "$LINENO"; then : 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10683$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 10684 10685else 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10687$as_echo "no" >&6; } 10688fi 10689rm -f core conftest.err conftest.$ac_objext \ 10690 conftest$ac_exeext conftest.$ac_ext 10691else 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10693$as_echo "yes" >&6; } 10694fi 10695 10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 10697$as_echo_n "checking --disable-gpm argument... " >&6; } 10698# Check whether --enable-gpm was given. 10699if test "${enable_gpm+set}" = set; then : 10700 enableval=$enable_gpm; 10701else 10702 enable_gpm="yes" 10703fi 10704 10705 10706if test "$enable_gpm" = "yes"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10708$as_echo "no" >&6; } 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 10710$as_echo_n "checking for gpm... " >&6; } 10711if test "${vi_cv_have_gpm+set}" = set; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 olibs="$LIBS" ; LIBS="-lgpm" 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717#include <gpm.h> 10718 #include <linux/keyboard.h> 10719int 10720main () 10721{ 10722Gpm_GetLibVersion(NULL); 10723 ; 10724 return 0; 10725} 10726_ACEOF 10727if ac_fn_c_try_link "$LINENO"; then : 10728 vi_cv_have_gpm=yes 10729else 10730 vi_cv_have_gpm=no 10731fi 10732rm -f core conftest.err conftest.$ac_objext \ 10733 conftest$ac_exeext conftest.$ac_ext 10734 LIBS="$olibs" 10735 10736fi 10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 10738$as_echo "$vi_cv_have_gpm" >&6; } 10739 if test $vi_cv_have_gpm = yes; then 10740 LIBS="$LIBS -lgpm" 10741 $as_echo "#define HAVE_GPM 1" >>confdefs.h 10742 10743 fi 10744else 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10746$as_echo "yes" >&6; } 10747fi 10748 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 10750$as_echo_n "checking --disable-sysmouse argument... " >&6; } 10751# Check whether --enable-sysmouse was given. 10752if test "${enable_sysmouse+set}" = set; then : 10753 enableval=$enable_sysmouse; 10754else 10755 enable_sysmouse="yes" 10756fi 10757 10758 10759if test "$enable_sysmouse" = "yes"; then 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10761$as_echo "no" >&6; } 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 10763$as_echo_n "checking for sysmouse... " >&6; } 10764if test "${vi_cv_have_sysmouse+set}" = set; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10768/* end confdefs.h. */ 10769#include <sys/consio.h> 10770 #include <signal.h> 10771 #include <sys/fbio.h> 10772int 10773main () 10774{ 10775struct mouse_info mouse; 10776 mouse.operation = MOUSE_MODE; 10777 mouse.operation = MOUSE_SHOW; 10778 mouse.u.mode.mode = 0; 10779 mouse.u.mode.signal = SIGUSR2; 10780 ; 10781 return 0; 10782} 10783_ACEOF 10784if ac_fn_c_try_link "$LINENO"; then : 10785 vi_cv_have_sysmouse=yes 10786else 10787 vi_cv_have_sysmouse=no 10788fi 10789rm -f core conftest.err conftest.$ac_objext \ 10790 conftest$ac_exeext conftest.$ac_ext 10791 10792fi 10793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 10794$as_echo "$vi_cv_have_sysmouse" >&6; } 10795 if test $vi_cv_have_sysmouse = yes; then 10796 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 10797 10798 fi 10799else 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10801$as_echo "yes" >&6; } 10802fi 10803 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 10805$as_echo_n "checking for FD_CLOEXEC... " >&6; } 10806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807/* end confdefs.h. */ 10808#if HAVE_FCNTL_H 10809# include <fcntl.h> 10810#endif 10811int 10812main () 10813{ 10814 int flag = FD_CLOEXEC; 10815 ; 10816 return 0; 10817} 10818_ACEOF 10819if ac_fn_c_try_compile "$LINENO"; then : 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10821$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 10822 10823else 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 10825$as_echo "not usable" >&6; } 10826fi 10827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10828 10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 10830$as_echo_n "checking for rename... " >&6; } 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833#include <stdio.h> 10834int 10835main () 10836{ 10837rename("this", "that") 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842if ac_fn_c_try_link "$LINENO"; then : 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10844$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 10845 10846else 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10848$as_echo "no" >&6; } 10849fi 10850rm -f core conftest.err conftest.$ac_objext \ 10851 conftest$ac_exeext conftest.$ac_ext 10852 10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 10854$as_echo_n "checking for sysctl... " >&6; } 10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10856/* end confdefs.h. */ 10857#include <sys/types.h> 10858#include <sys/sysctl.h> 10859int 10860main () 10861{ 10862 int mib[2], r; 10863 size_t len; 10864 10865 mib[0] = CTL_HW; 10866 mib[1] = HW_USERMEM; 10867 len = sizeof(r); 10868 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 10869 10870 ; 10871 return 0; 10872} 10873_ACEOF 10874if ac_fn_c_try_compile "$LINENO"; then : 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10876$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 10877 10878else 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 10880$as_echo "not usable" >&6; } 10881fi 10882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10883 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 10885$as_echo_n "checking for sysinfo... " >&6; } 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888#include <sys/types.h> 10889#include <sys/sysinfo.h> 10890int 10891main () 10892{ 10893 struct sysinfo sinfo; 10894 int t; 10895 10896 (void)sysinfo(&sinfo); 10897 t = sinfo.totalram; 10898 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903if ac_fn_c_try_compile "$LINENO"; then : 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10905$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 10906 10907else 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 10909$as_echo "not usable" >&6; } 10910fi 10911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10912 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 10914$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 10915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10916/* end confdefs.h. */ 10917#include <sys/types.h> 10918#include <sys/sysinfo.h> 10919int 10920main () 10921{ 10922 struct sysinfo sinfo; 10923 sinfo.mem_unit = 1; 10924 10925 ; 10926 return 0; 10927} 10928_ACEOF 10929if ac_fn_c_try_compile "$LINENO"; then : 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10931$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 10932 10933else 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10935$as_echo "no" >&6; } 10936fi 10937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10938 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 10940$as_echo_n "checking for sysconf... " >&6; } 10941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943#include <unistd.h> 10944int 10945main () 10946{ 10947 (void)sysconf(_SC_PAGESIZE); 10948 (void)sysconf(_SC_PHYS_PAGES); 10949 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954if ac_fn_c_try_compile "$LINENO"; then : 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10956$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 10957 10958else 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 10960$as_echo "not usable" >&6; } 10961fi 10962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10963 10964# The cast to long int works around a bug in the HP C Compiler 10965# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10966# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10967# This bug is HP SR number 8606223364. 10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 10969$as_echo_n "checking size of int... " >&6; } 10970if test "${ac_cv_sizeof_int+set}" = set; then : 10971 $as_echo_n "(cached) " >&6 10972else 10973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 10974 10975else 10976 if test "$ac_cv_type_int" = yes; then 10977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10979{ as_fn_set_status 77 10980as_fn_error "cannot compute sizeof (int) 10981See \`config.log' for more details." "$LINENO" 5; }; } 10982 else 10983 ac_cv_sizeof_int=0 10984 fi 10985fi 10986 10987fi 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 10989$as_echo "$ac_cv_sizeof_int" >&6; } 10990 10991 10992 10993cat >>confdefs.h <<_ACEOF 10994#define SIZEOF_INT $ac_cv_sizeof_int 10995_ACEOF 10996 10997 10998# The cast to long int works around a bug in the HP C Compiler 10999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11001# This bug is HP SR number 8606223364. 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11003$as_echo_n "checking size of long... " >&6; } 11004if test "${ac_cv_sizeof_long+set}" = set; then : 11005 $as_echo_n "(cached) " >&6 11006else 11007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11008 11009else 11010 if test "$ac_cv_type_long" = yes; then 11011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11013{ as_fn_set_status 77 11014as_fn_error "cannot compute sizeof (long) 11015See \`config.log' for more details." "$LINENO" 5; }; } 11016 else 11017 ac_cv_sizeof_long=0 11018 fi 11019fi 11020 11021fi 11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11023$as_echo "$ac_cv_sizeof_long" >&6; } 11024 11025 11026 11027cat >>confdefs.h <<_ACEOF 11028#define SIZEOF_LONG $ac_cv_sizeof_long 11029_ACEOF 11030 11031 11032# The cast to long int works around a bug in the HP C Compiler 11033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11035# This bug is HP SR number 8606223364. 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 11037$as_echo_n "checking size of time_t... " >&6; } 11038if test "${ac_cv_sizeof_time_t+set}" = set; then : 11039 $as_echo_n "(cached) " >&6 11040else 11041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 11042 11043else 11044 if test "$ac_cv_type_time_t" = yes; then 11045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11047{ as_fn_set_status 77 11048as_fn_error "cannot compute sizeof (time_t) 11049See \`config.log' for more details." "$LINENO" 5; }; } 11050 else 11051 ac_cv_sizeof_time_t=0 11052 fi 11053fi 11054 11055fi 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 11057$as_echo "$ac_cv_sizeof_time_t" >&6; } 11058 11059 11060 11061cat >>confdefs.h <<_ACEOF 11062#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 11063_ACEOF 11064 11065 11066# The cast to long int works around a bug in the HP C Compiler 11067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11069# This bug is HP SR number 8606223364. 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 11071$as_echo_n "checking size of off_t... " >&6; } 11072if test "${ac_cv_sizeof_off_t+set}" = set; then : 11073 $as_echo_n "(cached) " >&6 11074else 11075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 11076 11077else 11078 if test "$ac_cv_type_off_t" = yes; then 11079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11081{ as_fn_set_status 77 11082as_fn_error "cannot compute sizeof (off_t) 11083See \`config.log' for more details." "$LINENO" 5; }; } 11084 else 11085 ac_cv_sizeof_off_t=0 11086 fi 11087fi 11088 11089fi 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 11091$as_echo "$ac_cv_sizeof_off_t" >&6; } 11092 11093 11094 11095cat >>confdefs.h <<_ACEOF 11096#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 11097_ACEOF 11098 11099 11100 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 11102$as_echo_n "checking uint32_t is 32 bits... " >&6; } 11103if test "$cross_compiling" = yes; then : 11104 as_fn_error "could not compile program using uint32_t." "$LINENO" 5 11105else 11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108 11109#ifdef HAVE_STDINT_H 11110# include <stdint.h> 11111#endif 11112#ifdef HAVE_INTTYPES_H 11113# include <inttypes.h> 11114#endif 11115main() { 11116 uint32_t nr1 = (uint32_t)-1; 11117 uint32_t nr2 = (uint32_t)0xffffffffUL; 11118 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 11119 exit(0); 11120} 11121_ACEOF 11122if ac_fn_c_try_run "$LINENO"; then : 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11124$as_echo "ok" >&6; } 11125else 11126 as_fn_error "WRONG! uint32_t not defined correctly." "$LINENO" 5 11127fi 11128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11129 conftest.$ac_objext conftest.beam conftest.$ac_ext 11130fi 11131 11132 11133 11134bcopy_test_prog=' 11135#include "confdefs.h" 11136#ifdef HAVE_STRING_H 11137# include <string.h> 11138#endif 11139#if STDC_HEADERS 11140# include <stdlib.h> 11141# include <stddef.h> 11142#endif 11143main() { 11144 char buf[10]; 11145 strcpy(buf, "abcdefghi"); 11146 mch_memmove(buf, buf + 2, 3); 11147 if (strncmp(buf, "ababcf", 6)) 11148 exit(1); 11149 strcpy(buf, "abcdefghi"); 11150 mch_memmove(buf + 2, buf, 3); 11151 if (strncmp(buf, "cdedef", 6)) 11152 exit(1); 11153 exit(0); /* libc version works properly. */ 11154}' 11155 11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 11157$as_echo_n "checking whether memmove handles overlaps... " >&6; } 11158if test "${vim_cv_memmove_handles_overlap+set}" = set; then : 11159 $as_echo_n "(cached) " >&6 11160else 11161 11162 if test "$cross_compiling" = yes; then : 11163 11164 as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 11165 11166else 11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11168/* end confdefs.h. */ 11169#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 11170_ACEOF 11171if ac_fn_c_try_run "$LINENO"; then : 11172 11173 vim_cv_memmove_handles_overlap=yes 11174 11175else 11176 11177 vim_cv_memmove_handles_overlap=no 11178 11179fi 11180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11181 conftest.$ac_objext conftest.beam conftest.$ac_ext 11182fi 11183 11184 11185fi 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 11187$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 11188 11189if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 11190 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 11191 11192else 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 11194$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 11195if test "${vim_cv_bcopy_handles_overlap+set}" = set; then : 11196 $as_echo_n "(cached) " >&6 11197else 11198 11199 if test "$cross_compiling" = yes; then : 11200 11201 as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 11202 11203else 11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11205/* end confdefs.h. */ 11206#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 11207_ACEOF 11208if ac_fn_c_try_run "$LINENO"; then : 11209 11210 vim_cv_bcopy_handles_overlap=yes 11211 11212else 11213 11214 vim_cv_bcopy_handles_overlap=no 11215 11216fi 11217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11218 conftest.$ac_objext conftest.beam conftest.$ac_ext 11219fi 11220 11221 11222fi 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 11224$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 11225 11226 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 11227 $as_echo "#define USEBCOPY 1" >>confdefs.h 11228 11229 else 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 11231$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 11232if test "${vim_cv_memcpy_handles_overlap+set}" = set; then : 11233 $as_echo_n "(cached) " >&6 11234else 11235 11236 if test "$cross_compiling" = yes; then : 11237 11238 as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 11239 11240else 11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11242/* end confdefs.h. */ 11243#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 11244_ACEOF 11245if ac_fn_c_try_run "$LINENO"; then : 11246 11247 vim_cv_memcpy_handles_overlap=yes 11248 11249else 11250 11251 vim_cv_memcpy_handles_overlap=no 11252 11253fi 11254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11255 conftest.$ac_objext conftest.beam conftest.$ac_ext 11256fi 11257 11258 11259fi 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 11261$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 11262 11263 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 11264 $as_echo "#define USEMEMCPY 1" >>confdefs.h 11265 11266 fi 11267 fi 11268fi 11269 11270 11271 11272if test "$enable_multibyte" = "yes"; then 11273 cflags_save=$CFLAGS 11274 ldflags_save=$LDFLAGS 11275 if test "x$x_includes" != "xNONE" ; then 11276 CFLAGS="$CFLAGS -I$x_includes" 11277 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 11279$as_echo_n "checking whether X_LOCALE needed... " >&6; } 11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11281/* end confdefs.h. */ 11282#include <X11/Xlocale.h> 11283int 11284main () 11285{ 11286 11287 ; 11288 return 0; 11289} 11290_ACEOF 11291if ac_fn_c_try_compile "$LINENO"; then : 11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294 11295/* Override any GCC internal prototype to avoid an error. 11296 Use char because int might match the return type of a GCC 11297 builtin and then its argument prototype would still apply. */ 11298#ifdef __cplusplus 11299extern "C" 11300#endif 11301char _Xsetlocale (); 11302int 11303main () 11304{ 11305return _Xsetlocale (); 11306 ; 11307 return 0; 11308} 11309_ACEOF 11310if ac_fn_c_try_link "$LINENO"; then : 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11312$as_echo "yes" >&6; } 11313 $as_echo "#define X_LOCALE 1" >>confdefs.h 11314 11315else 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11317$as_echo "no" >&6; } 11318fi 11319rm -f core conftest.err conftest.$ac_objext \ 11320 conftest$ac_exeext conftest.$ac_ext 11321else 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11323$as_echo "no" >&6; } 11324fi 11325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11326 fi 11327 CFLAGS=$cflags_save 11328 LDFLAGS=$ldflags_save 11329fi 11330 11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 11332$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 11333if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then : 11334 $as_echo_n "(cached) " >&6 11335else 11336 ac_check_lib_save_LIBS=$LIBS 11337LIBS="-lxpg4 $LIBS" 11338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11339/* end confdefs.h. */ 11340 11341/* Override any GCC internal prototype to avoid an error. 11342 Use char because int might match the return type of a GCC 11343 builtin and then its argument prototype would still apply. */ 11344#ifdef __cplusplus 11345extern "C" 11346#endif 11347char _xpg4_setrunelocale (); 11348int 11349main () 11350{ 11351return _xpg4_setrunelocale (); 11352 ; 11353 return 0; 11354} 11355_ACEOF 11356if ac_fn_c_try_link "$LINENO"; then : 11357 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 11358else 11359 ac_cv_lib_xpg4__xpg4_setrunelocale=no 11360fi 11361rm -f core conftest.err conftest.$ac_objext \ 11362 conftest$ac_exeext conftest.$ac_ext 11363LIBS=$ac_check_lib_save_LIBS 11364fi 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 11366$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 11367if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then : 11368 LIBS="$LIBS -lxpg4" 11369fi 11370 11371 11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 11373$as_echo_n "checking how to create tags... " >&6; } 11374test -f tags && mv tags tags.save 11375if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 11376 TAGPRG="ctags -I INIT+ --fields=+S" 11377else 11378 TAGPRG="ctags" 11379 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 11380 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 11381 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 11382 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 11383 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 11384 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 11385 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 11386fi 11387test -f tags.save && mv tags.save tags 11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 11389$as_echo "$TAGPRG" >&6; } 11390 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 11392$as_echo_n "checking how to run man with a section nr... " >&6; } 11393MANDEF="man" 11394(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 11396$as_echo "$MANDEF" >&6; } 11397if test "$MANDEF" = "man -s"; then 11398 $as_echo "#define USEMAN_S 1" >>confdefs.h 11399 11400fi 11401 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 11403$as_echo_n "checking --disable-nls argument... " >&6; } 11404# Check whether --enable-nls was given. 11405if test "${enable_nls+set}" = set; then : 11406 enableval=$enable_nls; 11407else 11408 enable_nls="yes" 11409fi 11410 11411 11412if test "$enable_nls" = "yes"; then 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11414$as_echo "no" >&6; } 11415 11416 INSTALL_LANGS=install-languages 11417 11418 INSTALL_TOOL_LANGS=install-tool-languages 11419 11420 11421 # Extract the first word of "msgfmt", so it can be a program name with args. 11422set dummy msgfmt; ac_word=$2 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11424$as_echo_n "checking for $ac_word... " >&6; } 11425if test "${ac_cv_prog_MSGFMT+set}" = set; then : 11426 $as_echo_n "(cached) " >&6 11427else 11428 if test -n "$MSGFMT"; then 11429 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 11430else 11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11432for as_dir in $PATH 11433do 11434 IFS=$as_save_IFS 11435 test -z "$as_dir" && as_dir=. 11436 for ac_exec_ext in '' $ac_executable_extensions; do 11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11438 ac_cv_prog_MSGFMT="msgfmt" 11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11440 break 2 11441 fi 11442done 11443 done 11444IFS=$as_save_IFS 11445 11446fi 11447fi 11448MSGFMT=$ac_cv_prog_MSGFMT 11449if test -n "$MSGFMT"; then 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11451$as_echo "$MSGFMT" >&6; } 11452else 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11454$as_echo "no" >&6; } 11455fi 11456 11457 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 11459$as_echo_n "checking for NLS... " >&6; } 11460 if test -f po/Makefile; then 11461 have_gettext="no" 11462 if test -n "$MSGFMT"; then 11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465#include <libintl.h> 11466int 11467main () 11468{ 11469gettext("Test"); 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474if ac_fn_c_try_link "$LINENO"; then : 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 11476$as_echo "gettext() works" >&6; }; have_gettext="yes" 11477else 11478 olibs=$LIBS 11479 LIBS="$LIBS -lintl" 11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481/* end confdefs.h. */ 11482#include <libintl.h> 11483int 11484main () 11485{ 11486gettext("Test"); 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491if ac_fn_c_try_link "$LINENO"; then : 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 11493$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" 11494else 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 11496$as_echo "gettext() doesn't work" >&6; }; 11497 LIBS=$olibs 11498fi 11499rm -f core conftest.err conftest.$ac_objext \ 11500 conftest$ac_exeext conftest.$ac_ext 11501fi 11502rm -f core conftest.err conftest.$ac_objext \ 11503 conftest$ac_exeext conftest.$ac_ext 11504 else 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 11506$as_echo "msgfmt not found - disabled" >&6; }; 11507 fi 11508 if test $have_gettext = "yes"; then 11509 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 11510 11511 MAKEMO=yes 11512 11513 for ac_func in bind_textdomain_codeset 11514do : 11515 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 11516if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 11517 cat >>confdefs.h <<_ACEOF 11518#define HAVE_BIND_TEXTDOMAIN_CODESET 1 11519_ACEOF 11520 11521fi 11522done 11523 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 11525$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527/* end confdefs.h. */ 11528#include <libintl.h> 11529 extern int _nl_msg_cat_cntr; 11530int 11531main () 11532{ 11533++_nl_msg_cat_cntr; 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538if ac_fn_c_try_link "$LINENO"; then : 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11540$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 11541 11542else 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11544$as_echo "no" >&6; } 11545fi 11546rm -f core conftest.err conftest.$ac_objext \ 11547 conftest$ac_exeext conftest.$ac_ext 11548 fi 11549 else 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 11551$as_echo "no \"po/Makefile\" - disabled" >&6; }; 11552 fi 11553else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11555$as_echo "yes" >&6; } 11556fi 11557 11558ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 11559if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 11560 DLL=dlfcn.h 11561else 11562 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 11563if test "x$ac_cv_header_dl_h" = x""yes; then : 11564 DLL=dl.h 11565fi 11566 11567 11568fi 11569 11570 11571if test x${DLL} = xdlfcn.h; then 11572 11573$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 11574 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 11576$as_echo_n "checking for dlopen()... " >&6; } 11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11578/* end confdefs.h. */ 11579 11580int 11581main () 11582{ 11583 11584 extern void* dlopen(); 11585 dlopen(); 11586 11587 ; 11588 return 0; 11589} 11590_ACEOF 11591if ac_fn_c_try_link "$LINENO"; then : 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11593$as_echo "yes" >&6; }; 11594 11595$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 11596 11597else 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11599$as_echo "no" >&6; }; 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 11601$as_echo_n "checking for dlopen() in -ldl... " >&6; } 11602 olibs=$LIBS 11603 LIBS="$LIBS -ldl" 11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606 11607int 11608main () 11609{ 11610 11611 extern void* dlopen(); 11612 dlopen(); 11613 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618if ac_fn_c_try_link "$LINENO"; then : 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; }; 11621 11622$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 11623 11624else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11626$as_echo "no" >&6; }; 11627 LIBS=$olibs 11628fi 11629rm -f core conftest.err conftest.$ac_objext \ 11630 conftest$ac_exeext conftest.$ac_ext 11631fi 11632rm -f core conftest.err conftest.$ac_objext \ 11633 conftest$ac_exeext conftest.$ac_ext 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 11635$as_echo_n "checking for dlsym()... " >&6; } 11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11637/* end confdefs.h. */ 11638 11639int 11640main () 11641{ 11642 11643 extern void* dlsym(); 11644 dlsym(); 11645 11646 ; 11647 return 0; 11648} 11649_ACEOF 11650if ac_fn_c_try_link "$LINENO"; then : 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11652$as_echo "yes" >&6; }; 11653 11654$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 11655 11656else 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11658$as_echo "no" >&6; }; 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 11660$as_echo_n "checking for dlsym() in -ldl... " >&6; } 11661 olibs=$LIBS 11662 LIBS="$LIBS -ldl" 11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665 11666int 11667main () 11668{ 11669 11670 extern void* dlsym(); 11671 dlsym(); 11672 11673 ; 11674 return 0; 11675} 11676_ACEOF 11677if ac_fn_c_try_link "$LINENO"; then : 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11679$as_echo "yes" >&6; }; 11680 11681$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 11682 11683else 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685$as_echo "no" >&6; }; 11686 LIBS=$olibs 11687fi 11688rm -f core conftest.err conftest.$ac_objext \ 11689 conftest$ac_exeext conftest.$ac_ext 11690fi 11691rm -f core conftest.err conftest.$ac_objext \ 11692 conftest$ac_exeext conftest.$ac_ext 11693elif test x${DLL} = xdl.h; then 11694 11695$as_echo "#define HAVE_DL_H 1" >>confdefs.h 11696 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 11698$as_echo_n "checking for shl_load()... " >&6; } 11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11700/* end confdefs.h. */ 11701 11702int 11703main () 11704{ 11705 11706 extern void* shl_load(); 11707 shl_load(); 11708 11709 ; 11710 return 0; 11711} 11712_ACEOF 11713if ac_fn_c_try_link "$LINENO"; then : 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11715$as_echo "yes" >&6; }; 11716 11717$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 11718 11719else 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11721$as_echo "no" >&6; }; 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 11723$as_echo_n "checking for shl_load() in -ldld... " >&6; } 11724 olibs=$LIBS 11725 LIBS="$LIBS -ldld" 11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11727/* end confdefs.h. */ 11728 11729int 11730main () 11731{ 11732 11733 extern void* shl_load(); 11734 shl_load(); 11735 11736 ; 11737 return 0; 11738} 11739_ACEOF 11740if ac_fn_c_try_link "$LINENO"; then : 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11742$as_echo "yes" >&6; }; 11743 11744$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 11745 11746else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748$as_echo "no" >&6; }; 11749 LIBS=$olibs 11750fi 11751rm -f core conftest.err conftest.$ac_objext \ 11752 conftest$ac_exeext conftest.$ac_ext 11753fi 11754rm -f core conftest.err conftest.$ac_objext \ 11755 conftest$ac_exeext conftest.$ac_ext 11756fi 11757for ac_header in setjmp.h 11758do : 11759 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 11760if test "x$ac_cv_header_setjmp_h" = x""yes; then : 11761 cat >>confdefs.h <<_ACEOF 11762#define HAVE_SETJMP_H 1 11763_ACEOF 11764 11765fi 11766 11767done 11768 11769 11770if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 11771 if echo $LIBS | grep -e '-ldl' >/dev/null; then 11772 LIBS=`echo $LIBS | sed s/-ldl//` 11773 PERL_LIBS="$PERL_LIBS -ldl" 11774 fi 11775fi 11776 11777if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ 11778 && test "x$GUITYPE" != "xCARBONGUI"; then 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Carbon" >&5 11780$as_echo_n "checking whether we need -framework Carbon... " >&6; } 11781 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ 11782 || test "x$features" = "xhuge"; then 11783 LIBS="$LIBS -framework Carbon" 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11785$as_echo "yes" >&6; } 11786 else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788$as_echo "no" >&6; } 11789 fi 11790fi 11791if test "x$MACARCH" = "xboth"; then 11792 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 11793fi 11794 11795DEPEND_CFLAGS_FILTER= 11796if test "$GCC" = yes; then 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 11798$as_echo_n "checking for GCC 3 or later... " >&6; } 11799 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 11800 if test "$gccmajor" -gt "2"; then 11801 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11803$as_echo "yes" >&6; } 11804 else 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11806$as_echo "no" >&6; } 11807 fi 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 11809$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 11810 if test "$gccmajor" -gt "3"; then 11811 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11813$as_echo "yes" >&6; } 11814 else 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11816$as_echo "no" >&6; } 11817 fi 11818fi 11819 11820 11821ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 11822 11823cat >confcache <<\_ACEOF 11824# This file is a shell script that caches the results of configure 11825# tests run on this system so they can be shared between configure 11826# scripts and configure runs, see configure's option --config-cache. 11827# It is not useful on other systems. If it contains results you don't 11828# want to keep, you may remove or edit it. 11829# 11830# config.status only pays attention to the cache file if you give it 11831# the --recheck option to rerun configure. 11832# 11833# `ac_cv_env_foo' variables (set or unset) will be overridden when 11834# loading this file, other *unset* `ac_cv_foo' will be assigned the 11835# following values. 11836 11837_ACEOF 11838 11839# The following way of writing the cache mishandles newlines in values, 11840# but we know of no workaround that is simple, portable, and efficient. 11841# So, we kill variables containing newlines. 11842# Ultrix sh set writes to stderr and can't be redirected directly, 11843# and sets the high bit in the cache file unless we assign to the vars. 11844( 11845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11846 eval ac_val=\$$ac_var 11847 case $ac_val in #( 11848 *${as_nl}*) 11849 case $ac_var in #( 11850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11852 esac 11853 case $ac_var in #( 11854 _ | IFS | as_nl) ;; #( 11855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11856 *) { eval $ac_var=; unset $ac_var;} ;; 11857 esac ;; 11858 esac 11859 done 11860 11861 (set) 2>&1 | 11862 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11863 *${as_nl}ac_space=\ *) 11864 # `set' does not quote correctly, so add quotes: double-quote 11865 # substitution turns \\\\ into \\, and sed turns \\ into \. 11866 sed -n \ 11867 "s/'/'\\\\''/g; 11868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11869 ;; #( 11870 *) 11871 # `set' quotes correctly as required by POSIX, so do not add quotes. 11872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11873 ;; 11874 esac | 11875 sort 11876) | 11877 sed ' 11878 /^ac_cv_env_/b end 11879 t clear 11880 :clear 11881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11882 t end 11883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11884 :end' >>confcache 11885if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11886 if test -w "$cache_file"; then 11887 test "x$cache_file" != "x/dev/null" && 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11889$as_echo "$as_me: updating cache $cache_file" >&6;} 11890 cat confcache >$cache_file 11891 else 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11893$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11894 fi 11895fi 11896rm -f confcache 11897 11898test "x$prefix" = xNONE && prefix=$ac_default_prefix 11899# Let make expand exec_prefix. 11900test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11901 11902DEFS=-DHAVE_CONFIG_H 11903 11904ac_libobjs= 11905ac_ltlibobjs= 11906for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11907 # 1. Remove the extension, and $U if already installed. 11908 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11909 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11911 # will be set to the directory where LIBOBJS objects are built. 11912 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11913 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11914done 11915LIBOBJS=$ac_libobjs 11916 11917LTLIBOBJS=$ac_ltlibobjs 11918 11919 11920 11921 11922: ${CONFIG_STATUS=./config.status} 11923ac_write_fail=0 11924ac_clean_files_save=$ac_clean_files 11925ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11927$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11928as_write_fail=0 11929cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11930#! $SHELL 11931# Generated by $as_me. 11932# Run this file to recreate the current configuration. 11933# Compiler output produced by configure, useful for debugging 11934# configure, is in config.log if it exists. 11935 11936debug=false 11937ac_cs_recheck=false 11938ac_cs_silent=false 11939 11940SHELL=\${CONFIG_SHELL-$SHELL} 11941export SHELL 11942_ASEOF 11943cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11944## -------------------- ## 11945## M4sh Initialization. ## 11946## -------------------- ## 11947 11948# Be more Bourne compatible 11949DUALCASE=1; export DUALCASE # for MKS sh 11950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11951 emulate sh 11952 NULLCMD=: 11953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11954 # is contrary to our usage. Disable this feature. 11955 alias -g '${1+"$@"}'='"$@"' 11956 setopt NO_GLOB_SUBST 11957else 11958 case `(set -o) 2>/dev/null` in #( 11959 *posix*) : 11960 set -o posix ;; #( 11961 *) : 11962 ;; 11963esac 11964fi 11965 11966 11967as_nl=' 11968' 11969export as_nl 11970# Printing a long string crashes Solaris 7 /usr/bin/printf. 11971as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11974# Prefer a ksh shell builtin over an external printf program on Solaris, 11975# but without wasting forks for bash or zsh. 11976if test -z "$BASH_VERSION$ZSH_VERSION" \ 11977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11978 as_echo='print -r --' 11979 as_echo_n='print -rn --' 11980elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11981 as_echo='printf %s\n' 11982 as_echo_n='printf %s' 11983else 11984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11985 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11986 as_echo_n='/usr/ucb/echo -n' 11987 else 11988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11989 as_echo_n_body='eval 11990 arg=$1; 11991 case $arg in #( 11992 *"$as_nl"*) 11993 expr "X$arg" : "X\\(.*\\)$as_nl"; 11994 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11995 esac; 11996 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11997 ' 11998 export as_echo_n_body 11999 as_echo_n='sh -c $as_echo_n_body as_echo' 12000 fi 12001 export as_echo_body 12002 as_echo='sh -c $as_echo_body as_echo' 12003fi 12004 12005# The user is always right. 12006if test "${PATH_SEPARATOR+set}" != set; then 12007 PATH_SEPARATOR=: 12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12010 PATH_SEPARATOR=';' 12011 } 12012fi 12013 12014 12015# IFS 12016# We need space, tab and new line, in precisely that order. Quoting is 12017# there to prevent editors from complaining about space-tab. 12018# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12019# splitting by setting IFS to empty value.) 12020IFS=" "" $as_nl" 12021 12022# Find who we are. Look in the path if we contain no directory separator. 12023case $0 in #(( 12024 *[\\/]* ) as_myself=$0 ;; 12025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12026for as_dir in $PATH 12027do 12028 IFS=$as_save_IFS 12029 test -z "$as_dir" && as_dir=. 12030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12031 done 12032IFS=$as_save_IFS 12033 12034 ;; 12035esac 12036# We did not find ourselves, most probably we were run as `sh COMMAND' 12037# in which case we are not to be found in the path. 12038if test "x$as_myself" = x; then 12039 as_myself=$0 12040fi 12041if test ! -f "$as_myself"; then 12042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12043 exit 1 12044fi 12045 12046# Unset variables that we do not need and which cause bugs (e.g. in 12047# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12048# suppresses any "Segmentation fault" message there. '((' could 12049# trigger a bug in pdksh 5.2.14. 12050for as_var in BASH_ENV ENV MAIL MAILPATH 12051do eval test x\${$as_var+set} = xset \ 12052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12053done 12054PS1='$ ' 12055PS2='> ' 12056PS4='+ ' 12057 12058# NLS nuisances. 12059LC_ALL=C 12060export LC_ALL 12061LANGUAGE=C 12062export LANGUAGE 12063 12064# CDPATH. 12065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12066 12067 12068# as_fn_error ERROR [LINENO LOG_FD] 12069# --------------------------------- 12070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12072# script with status $?, using 1 if that was 0. 12073as_fn_error () 12074{ 12075 as_status=$?; test $as_status -eq 0 && as_status=1 12076 if test "$3"; then 12077 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12079 fi 12080 $as_echo "$as_me: error: $1" >&2 12081 as_fn_exit $as_status 12082} # as_fn_error 12083 12084 12085# as_fn_set_status STATUS 12086# ----------------------- 12087# Set $? to STATUS, without forking. 12088as_fn_set_status () 12089{ 12090 return $1 12091} # as_fn_set_status 12092 12093# as_fn_exit STATUS 12094# ----------------- 12095# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12096as_fn_exit () 12097{ 12098 set +e 12099 as_fn_set_status $1 12100 exit $1 12101} # as_fn_exit 12102 12103# as_fn_unset VAR 12104# --------------- 12105# Portably unset VAR. 12106as_fn_unset () 12107{ 12108 { eval $1=; unset $1;} 12109} 12110as_unset=as_fn_unset 12111# as_fn_append VAR VALUE 12112# ---------------------- 12113# Append the text in VALUE to the end of the definition contained in VAR. Take 12114# advantage of any shell optimizations that allow amortized linear growth over 12115# repeated appends, instead of the typical quadratic growth present in naive 12116# implementations. 12117if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12118 eval 'as_fn_append () 12119 { 12120 eval $1+=\$2 12121 }' 12122else 12123 as_fn_append () 12124 { 12125 eval $1=\$$1\$2 12126 } 12127fi # as_fn_append 12128 12129# as_fn_arith ARG... 12130# ------------------ 12131# Perform arithmetic evaluation on the ARGs, and store the result in the 12132# global $as_val. Take advantage of shells that can avoid forks. The arguments 12133# must be portable across $(()) and expr. 12134if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12135 eval 'as_fn_arith () 12136 { 12137 as_val=$(( $* )) 12138 }' 12139else 12140 as_fn_arith () 12141 { 12142 as_val=`expr "$@" || test $? -eq 1` 12143 } 12144fi # as_fn_arith 12145 12146 12147if expr a : '\(a\)' >/dev/null 2>&1 && 12148 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12149 as_expr=expr 12150else 12151 as_expr=false 12152fi 12153 12154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12155 as_basename=basename 12156else 12157 as_basename=false 12158fi 12159 12160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12161 as_dirname=dirname 12162else 12163 as_dirname=false 12164fi 12165 12166as_me=`$as_basename -- "$0" || 12167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12168 X"$0" : 'X\(//\)$' \| \ 12169 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12170$as_echo X/"$0" | 12171 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12172 s//\1/ 12173 q 12174 } 12175 /^X\/\(\/\/\)$/{ 12176 s//\1/ 12177 q 12178 } 12179 /^X\/\(\/\).*/{ 12180 s//\1/ 12181 q 12182 } 12183 s/.*/./; q'` 12184 12185# Avoid depending upon Character Ranges. 12186as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12188as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12189as_cr_digits='0123456789' 12190as_cr_alnum=$as_cr_Letters$as_cr_digits 12191 12192ECHO_C= ECHO_N= ECHO_T= 12193case `echo -n x` in #((((( 12194-n*) 12195 case `echo 'xy\c'` in 12196 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12197 xy) ECHO_C='\c';; 12198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12199 ECHO_T=' ';; 12200 esac;; 12201*) 12202 ECHO_N='-n';; 12203esac 12204 12205rm -f conf$$ conf$$.exe conf$$.file 12206if test -d conf$$.dir; then 12207 rm -f conf$$.dir/conf$$.file 12208else 12209 rm -f conf$$.dir 12210 mkdir conf$$.dir 2>/dev/null 12211fi 12212if (echo >conf$$.file) 2>/dev/null; then 12213 if ln -s conf$$.file conf$$ 2>/dev/null; then 12214 as_ln_s='ln -s' 12215 # ... but there are two gotchas: 12216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12218 # In both cases, we have to default to `cp -p'. 12219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12220 as_ln_s='cp -p' 12221 elif ln conf$$.file conf$$ 2>/dev/null; then 12222 as_ln_s=ln 12223 else 12224 as_ln_s='cp -p' 12225 fi 12226else 12227 as_ln_s='cp -p' 12228fi 12229rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12230rmdir conf$$.dir 2>/dev/null 12231 12232 12233# as_fn_mkdir_p 12234# ------------- 12235# Create "$as_dir" as a directory, including parents if necessary. 12236as_fn_mkdir_p () 12237{ 12238 12239 case $as_dir in #( 12240 -*) as_dir=./$as_dir;; 12241 esac 12242 test -d "$as_dir" || eval $as_mkdir_p || { 12243 as_dirs= 12244 while :; do 12245 case $as_dir in #( 12246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12247 *) as_qdir=$as_dir;; 12248 esac 12249 as_dirs="'$as_qdir' $as_dirs" 12250 as_dir=`$as_dirname -- "$as_dir" || 12251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12252 X"$as_dir" : 'X\(//\)[^/]' \| \ 12253 X"$as_dir" : 'X\(//\)$' \| \ 12254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12255$as_echo X"$as_dir" | 12256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12257 s//\1/ 12258 q 12259 } 12260 /^X\(\/\/\)[^/].*/{ 12261 s//\1/ 12262 q 12263 } 12264 /^X\(\/\/\)$/{ 12265 s//\1/ 12266 q 12267 } 12268 /^X\(\/\).*/{ 12269 s//\1/ 12270 q 12271 } 12272 s/.*/./; q'` 12273 test -d "$as_dir" && break 12274 done 12275 test -z "$as_dirs" || eval "mkdir $as_dirs" 12276 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12277 12278 12279} # as_fn_mkdir_p 12280if mkdir -p . 2>/dev/null; then 12281 as_mkdir_p='mkdir -p "$as_dir"' 12282else 12283 test -d ./-p && rmdir ./-p 12284 as_mkdir_p=false 12285fi 12286 12287if test -x / >/dev/null 2>&1; then 12288 as_test_x='test -x' 12289else 12290 if ls -dL / >/dev/null 2>&1; then 12291 as_ls_L_option=L 12292 else 12293 as_ls_L_option= 12294 fi 12295 as_test_x=' 12296 eval sh -c '\'' 12297 if test -d "$1"; then 12298 test -d "$1/."; 12299 else 12300 case $1 in #( 12301 -*)set "./$1";; 12302 esac; 12303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12304 ???[sx]*):;;*)false;;esac;fi 12305 '\'' sh 12306 ' 12307fi 12308as_executable_p=$as_test_x 12309 12310# Sed expression to map a string onto a valid CPP name. 12311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12312 12313# Sed expression to map a string onto a valid variable name. 12314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12315 12316 12317exec 6>&1 12318## ----------------------------------- ## 12319## Main body of $CONFIG_STATUS script. ## 12320## ----------------------------------- ## 12321_ASEOF 12322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12323 12324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12325# Save the log message, to keep $0 and so on meaningful, and to 12326# report actual input values of CONFIG_FILES etc. instead of their 12327# values after options handling. 12328ac_log=" 12329This file was extended by $as_me, which was 12330generated by GNU Autoconf 2.65. Invocation command line was 12331 12332 CONFIG_FILES = $CONFIG_FILES 12333 CONFIG_HEADERS = $CONFIG_HEADERS 12334 CONFIG_LINKS = $CONFIG_LINKS 12335 CONFIG_COMMANDS = $CONFIG_COMMANDS 12336 $ $0 $@ 12337 12338on `(hostname || uname -n) 2>/dev/null | sed 1q` 12339" 12340 12341_ACEOF 12342 12343case $ac_config_files in *" 12344"*) set x $ac_config_files; shift; ac_config_files=$*;; 12345esac 12346 12347case $ac_config_headers in *" 12348"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12349esac 12350 12351 12352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12353# Files that config.status was made for. 12354config_files="$ac_config_files" 12355config_headers="$ac_config_headers" 12356 12357_ACEOF 12358 12359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12360ac_cs_usage="\ 12361\`$as_me' instantiates files and other configuration actions 12362from templates according to the current configuration. Unless the files 12363and actions are specified as TAGs, all are instantiated by default. 12364 12365Usage: $0 [OPTION]... [TAG]... 12366 12367 -h, --help print this help, then exit 12368 -V, --version print version number and configuration settings, then exit 12369 --config print configuration, then exit 12370 -q, --quiet, --silent 12371 do not print progress messages 12372 -d, --debug don't remove temporary files 12373 --recheck update $as_me by reconfiguring in the same conditions 12374 --file=FILE[:TEMPLATE] 12375 instantiate the configuration file FILE 12376 --header=FILE[:TEMPLATE] 12377 instantiate the configuration header FILE 12378 12379Configuration files: 12380$config_files 12381 12382Configuration headers: 12383$config_headers 12384 12385Report bugs to the package provider." 12386 12387_ACEOF 12388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12389ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12390ac_cs_version="\\ 12391config.status 12392configured by $0, generated by GNU Autoconf 2.65, 12393 with options \\"\$ac_cs_config\\" 12394 12395Copyright (C) 2009 Free Software Foundation, Inc. 12396This config.status script is free software; the Free Software Foundation 12397gives unlimited permission to copy, distribute and modify it." 12398 12399ac_pwd='$ac_pwd' 12400srcdir='$srcdir' 12401AWK='$AWK' 12402test -n "\$AWK" || AWK=awk 12403_ACEOF 12404 12405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12406# The default lists apply if the user does not specify any file. 12407ac_need_defaults=: 12408while test $# != 0 12409do 12410 case $1 in 12411 --*=*) 12412 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12413 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12414 ac_shift=: 12415 ;; 12416 *) 12417 ac_option=$1 12418 ac_optarg=$2 12419 ac_shift=shift 12420 ;; 12421 esac 12422 12423 case $ac_option in 12424 # Handling of the options. 12425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12426 ac_cs_recheck=: ;; 12427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12428 $as_echo "$ac_cs_version"; exit ;; 12429 --config | --confi | --conf | --con | --co | --c ) 12430 $as_echo "$ac_cs_config"; exit ;; 12431 --debug | --debu | --deb | --de | --d | -d ) 12432 debug=: ;; 12433 --file | --fil | --fi | --f ) 12434 $ac_shift 12435 case $ac_optarg in 12436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12437 esac 12438 as_fn_append CONFIG_FILES " '$ac_optarg'" 12439 ac_need_defaults=false;; 12440 --header | --heade | --head | --hea ) 12441 $ac_shift 12442 case $ac_optarg in 12443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12444 esac 12445 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12446 ac_need_defaults=false;; 12447 --he | --h) 12448 # Conflict between --help and --header 12449 as_fn_error "ambiguous option: \`$1' 12450Try \`$0 --help' for more information.";; 12451 --help | --hel | -h ) 12452 $as_echo "$ac_cs_usage"; exit ;; 12453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12454 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12455 ac_cs_silent=: ;; 12456 12457 # This is an error. 12458 -*) as_fn_error "unrecognized option: \`$1' 12459Try \`$0 --help' for more information." ;; 12460 12461 *) as_fn_append ac_config_targets " $1" 12462 ac_need_defaults=false ;; 12463 12464 esac 12465 shift 12466done 12467 12468ac_configure_extra_args= 12469 12470if $ac_cs_silent; then 12471 exec 6>/dev/null 12472 ac_configure_extra_args="$ac_configure_extra_args --silent" 12473fi 12474 12475_ACEOF 12476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12477if \$ac_cs_recheck; then 12478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12479 shift 12480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12481 CONFIG_SHELL='$SHELL' 12482 export CONFIG_SHELL 12483 exec "\$@" 12484fi 12485 12486_ACEOF 12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12488exec 5>>auto/config.log 12489{ 12490 echo 12491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12492## Running $as_me. ## 12493_ASBOX 12494 $as_echo "$ac_log" 12495} >&5 12496 12497_ACEOF 12498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12499_ACEOF 12500 12501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12502 12503# Handling of arguments. 12504for ac_config_target in $ac_config_targets 12505do 12506 case $ac_config_target in 12507 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 12508 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 12509 12510 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12511 esac 12512done 12513 12514 12515# If the user did not use the arguments to specify the items to instantiate, 12516# then the envvar interface is used. Set only those that are not. 12517# We use the long form for the default assignment because of an extremely 12518# bizarre bug on SunOS 4.1.3. 12519if $ac_need_defaults; then 12520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12522fi 12523 12524# Have a temporary directory for convenience. Make it in the build tree 12525# simply because there is no reason against having it here, and in addition, 12526# creating and moving files from /tmp can sometimes cause problems. 12527# Hook for its removal unless debugging. 12528# Note that there is a small window in which the directory will not be cleaned: 12529# after its creation but before its name has been assigned to `$tmp'. 12530$debug || 12531{ 12532 tmp= 12533 trap 'exit_status=$? 12534 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12535' 0 12536 trap 'as_fn_exit 1' 1 2 13 15 12537} 12538# Create a (secure) tmp directory for tmp files. 12539 12540{ 12541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12542 test -n "$tmp" && test -d "$tmp" 12543} || 12544{ 12545 tmp=./conf$$-$RANDOM 12546 (umask 077 && mkdir "$tmp") 12547} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12548 12549# Set up the scripts for CONFIG_FILES section. 12550# No need to generate them if there are no CONFIG_FILES. 12551# This happens for instance with `./config.status config.h'. 12552if test -n "$CONFIG_FILES"; then 12553 12554 12555ac_cr=`echo X | tr X '\015'` 12556# On cygwin, bash can eat \r inside `` if the user requested igncr. 12557# But we know of no other shell where ac_cr would be empty at this 12558# point, so we can use a bashism as a fallback. 12559if test "x$ac_cr" = x; then 12560 eval ac_cr=\$\'\\r\' 12561fi 12562ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12563if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12564 ac_cs_awk_cr='\r' 12565else 12566 ac_cs_awk_cr=$ac_cr 12567fi 12568 12569echo 'BEGIN {' >"$tmp/subs1.awk" && 12570_ACEOF 12571 12572 12573{ 12574 echo "cat >conf$$subs.awk <<_ACEOF" && 12575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12576 echo "_ACEOF" 12577} >conf$$subs.sh || 12578 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12579ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12580ac_delim='%!_!# ' 12581for ac_last_try in false false false false false :; do 12582 . ./conf$$subs.sh || 12583 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12584 12585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12586 if test $ac_delim_n = $ac_delim_num; then 12587 break 12588 elif $ac_last_try; then 12589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12590 else 12591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12592 fi 12593done 12594rm -f conf$$subs.sh 12595 12596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12597cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12598_ACEOF 12599sed -n ' 12600h 12601s/^/S["/; s/!.*/"]=/ 12602p 12603g 12604s/^[^!]*!// 12605:repl 12606t repl 12607s/'"$ac_delim"'$// 12608t delim 12609:nl 12610h 12611s/\(.\{148\}\)..*/\1/ 12612t more1 12613s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12614p 12615n 12616b repl 12617:more1 12618s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12619p 12620g 12621s/.\{148\}// 12622t nl 12623:delim 12624h 12625s/\(.\{148\}\)..*/\1/ 12626t more2 12627s/["\\]/\\&/g; s/^/"/; s/$/"/ 12628p 12629b 12630:more2 12631s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12632p 12633g 12634s/.\{148\}// 12635t delim 12636' <conf$$subs.awk | sed ' 12637/^[^""]/{ 12638 N 12639 s/\n// 12640} 12641' >>$CONFIG_STATUS || ac_write_fail=1 12642rm -f conf$$subs.awk 12643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12644_ACAWK 12645cat >>"\$tmp/subs1.awk" <<_ACAWK && 12646 for (key in S) S_is_set[key] = 1 12647 FS = "" 12648 12649} 12650{ 12651 line = $ 0 12652 nfields = split(line, field, "@") 12653 substed = 0 12654 len = length(field[1]) 12655 for (i = 2; i < nfields; i++) { 12656 key = field[i] 12657 keylen = length(key) 12658 if (S_is_set[key]) { 12659 value = S[key] 12660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12661 len += length(value) + length(field[++i]) 12662 substed = 1 12663 } else 12664 len += 1 + keylen 12665 } 12666 12667 print line 12668} 12669 12670_ACAWK 12671_ACEOF 12672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12673if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12675else 12676 cat 12677fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12678 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12679_ACEOF 12680 12681# VPATH may cause trouble with some makes, so we remove $(srcdir), 12682# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12683# trailing colons and then remove the whole line if VPATH becomes empty 12684# (actually we leave an empty line to preserve line numbers). 12685if test "x$srcdir" = x.; then 12686 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12687s/:*\$(srcdir):*/:/ 12688s/:*\${srcdir}:*/:/ 12689s/:*@srcdir@:*/:/ 12690s/^\([^=]*=[ ]*\):*/\1/ 12691s/:*$// 12692s/^[^=]*=[ ]*$// 12693}' 12694fi 12695 12696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12697fi # test -n "$CONFIG_FILES" 12698 12699# Set up the scripts for CONFIG_HEADERS section. 12700# No need to generate them if there are no CONFIG_HEADERS. 12701# This happens for instance with `./config.status Makefile'. 12702if test -n "$CONFIG_HEADERS"; then 12703cat >"$tmp/defines.awk" <<\_ACAWK || 12704BEGIN { 12705_ACEOF 12706 12707# Transform confdefs.h into an awk script `defines.awk', embedded as 12708# here-document in config.status, that substitutes the proper values into 12709# config.h.in to produce config.h. 12710 12711# Create a delimiter string that does not exist in confdefs.h, to ease 12712# handling of long lines. 12713ac_delim='%!_!# ' 12714for ac_last_try in false false :; do 12715 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12716 if test -z "$ac_t"; then 12717 break 12718 elif $ac_last_try; then 12719 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12720 else 12721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12722 fi 12723done 12724 12725# For the awk script, D is an array of macro values keyed by name, 12726# likewise P contains macro parameters if any. Preserve backslash 12727# newline sequences. 12728 12729ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12730sed -n ' 12731s/.\{148\}/&'"$ac_delim"'/g 12732t rset 12733:rset 12734s/^[ ]*#[ ]*define[ ][ ]*/ / 12735t def 12736d 12737:def 12738s/\\$// 12739t bsnl 12740s/["\\]/\\&/g 12741s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12742D["\1"]=" \3"/p 12743s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12744d 12745:bsnl 12746s/["\\]/\\&/g 12747s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12748D["\1"]=" \3\\\\\\n"\\/p 12749t cont 12750s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12751t cont 12752d 12753:cont 12754n 12755s/.\{148\}/&'"$ac_delim"'/g 12756t clear 12757:clear 12758s/\\$// 12759t bsnlc 12760s/["\\]/\\&/g; s/^/"/; s/$/"/p 12761d 12762:bsnlc 12763s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12764b cont 12765' <confdefs.h | sed ' 12766s/'"$ac_delim"'/"\\\ 12767"/g' >>$CONFIG_STATUS || ac_write_fail=1 12768 12769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12770 for (key in D) D_is_set[key] = 1 12771 FS = "" 12772} 12773/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12774 line = \$ 0 12775 split(line, arg, " ") 12776 if (arg[1] == "#") { 12777 defundef = arg[2] 12778 mac1 = arg[3] 12779 } else { 12780 defundef = substr(arg[1], 2) 12781 mac1 = arg[2] 12782 } 12783 split(mac1, mac2, "(") #) 12784 macro = mac2[1] 12785 prefix = substr(line, 1, index(line, defundef) - 1) 12786 if (D_is_set[macro]) { 12787 # Preserve the white space surrounding the "#". 12788 print prefix "define", macro P[macro] D[macro] 12789 next 12790 } else { 12791 # Replace #undef with comments. This is necessary, for example, 12792 # in the case of _POSIX_SOURCE, which is predefined and required 12793 # on some systems where configure will not decide to define it. 12794 if (defundef == "undef") { 12795 print "/*", prefix defundef, macro, "*/" 12796 next 12797 } 12798 } 12799} 12800{ print } 12801_ACAWK 12802_ACEOF 12803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12804 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12805fi # test -n "$CONFIG_HEADERS" 12806 12807 12808eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 12809shift 12810for ac_tag 12811do 12812 case $ac_tag in 12813 :[FHLC]) ac_mode=$ac_tag; continue;; 12814 esac 12815 case $ac_mode$ac_tag in 12816 :[FHL]*:*);; 12817 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12818 :[FH]-) ac_tag=-:-;; 12819 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12820 esac 12821 ac_save_IFS=$IFS 12822 IFS=: 12823 set x $ac_tag 12824 IFS=$ac_save_IFS 12825 shift 12826 ac_file=$1 12827 shift 12828 12829 case $ac_mode in 12830 :L) ac_source=$1;; 12831 :[FH]) 12832 ac_file_inputs= 12833 for ac_f 12834 do 12835 case $ac_f in 12836 -) ac_f="$tmp/stdin";; 12837 *) # Look for the file first in the build tree, then in the source tree 12838 # (if the path is not absolute). The absolute path cannot be DOS-style, 12839 # because $ac_f cannot contain `:'. 12840 test -f "$ac_f" || 12841 case $ac_f in 12842 [\\/$]*) false;; 12843 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12844 esac || 12845 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12846 esac 12847 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12848 as_fn_append ac_file_inputs " '$ac_f'" 12849 done 12850 12851 # Let's still pretend it is `configure' which instantiates (i.e., don't 12852 # use $as_me), people would be surprised to read: 12853 # /* config.h. Generated by config.status. */ 12854 configure_input='Generated from '` 12855 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12856 `' by configure.' 12857 if test x"$ac_file" != x-; then 12858 configure_input="$ac_file. $configure_input" 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12860$as_echo "$as_me: creating $ac_file" >&6;} 12861 fi 12862 # Neutralize special characters interpreted by sed in replacement strings. 12863 case $configure_input in #( 12864 *\&* | *\|* | *\\* ) 12865 ac_sed_conf_input=`$as_echo "$configure_input" | 12866 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12867 *) ac_sed_conf_input=$configure_input;; 12868 esac 12869 12870 case $ac_tag in 12871 *:-:* | *:-) cat >"$tmp/stdin" \ 12872 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12873 esac 12874 ;; 12875 esac 12876 12877 ac_dir=`$as_dirname -- "$ac_file" || 12878$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12879 X"$ac_file" : 'X\(//\)[^/]' \| \ 12880 X"$ac_file" : 'X\(//\)$' \| \ 12881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12882$as_echo X"$ac_file" | 12883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12884 s//\1/ 12885 q 12886 } 12887 /^X\(\/\/\)[^/].*/{ 12888 s//\1/ 12889 q 12890 } 12891 /^X\(\/\/\)$/{ 12892 s//\1/ 12893 q 12894 } 12895 /^X\(\/\).*/{ 12896 s//\1/ 12897 q 12898 } 12899 s/.*/./; q'` 12900 as_dir="$ac_dir"; as_fn_mkdir_p 12901 ac_builddir=. 12902 12903case "$ac_dir" in 12904.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12905*) 12906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12907 # A ".." for each directory in $ac_dir_suffix. 12908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12909 case $ac_top_builddir_sub in 12910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12912 esac ;; 12913esac 12914ac_abs_top_builddir=$ac_pwd 12915ac_abs_builddir=$ac_pwd$ac_dir_suffix 12916# for backward compatibility: 12917ac_top_builddir=$ac_top_build_prefix 12918 12919case $srcdir in 12920 .) # We are building in place. 12921 ac_srcdir=. 12922 ac_top_srcdir=$ac_top_builddir_sub 12923 ac_abs_top_srcdir=$ac_pwd ;; 12924 [\\/]* | ?:[\\/]* ) # Absolute name. 12925 ac_srcdir=$srcdir$ac_dir_suffix; 12926 ac_top_srcdir=$srcdir 12927 ac_abs_top_srcdir=$srcdir ;; 12928 *) # Relative name. 12929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12930 ac_top_srcdir=$ac_top_build_prefix$srcdir 12931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12932esac 12933ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12934 12935 12936 case $ac_mode in 12937 :F) 12938 # 12939 # CONFIG_FILE 12940 # 12941 12942_ACEOF 12943 12944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12945# If the template does not know about datarootdir, expand it. 12946# FIXME: This hack should be removed a few years after 2.60. 12947ac_datarootdir_hack=; ac_datarootdir_seen= 12948ac_sed_dataroot=' 12949/datarootdir/ { 12950 p 12951 q 12952} 12953/@datadir@/p 12954/@docdir@/p 12955/@infodir@/p 12956/@localedir@/p 12957/@mandir@/p' 12958case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12959*datarootdir*) ac_datarootdir_seen=yes;; 12960*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12962$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12963_ACEOF 12964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12965 ac_datarootdir_hack=' 12966 s&@datadir@&$datadir&g 12967 s&@docdir@&$docdir&g 12968 s&@infodir@&$infodir&g 12969 s&@localedir@&$localedir&g 12970 s&@mandir@&$mandir&g 12971 s&\\\${datarootdir}&$datarootdir&g' ;; 12972esac 12973_ACEOF 12974 12975# Neutralize VPATH when `$srcdir' = `.'. 12976# Shell code in configure.ac might set extrasub. 12977# FIXME: do we really want to maintain this feature? 12978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12979ac_sed_extra="$ac_vpsub 12980$extrasub 12981_ACEOF 12982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12983:t 12984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12985s|@configure_input@|$ac_sed_conf_input|;t t 12986s&@top_builddir@&$ac_top_builddir_sub&;t t 12987s&@top_build_prefix@&$ac_top_build_prefix&;t t 12988s&@srcdir@&$ac_srcdir&;t t 12989s&@abs_srcdir@&$ac_abs_srcdir&;t t 12990s&@top_srcdir@&$ac_top_srcdir&;t t 12991s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12992s&@builddir@&$ac_builddir&;t t 12993s&@abs_builddir@&$ac_abs_builddir&;t t 12994s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12995$ac_datarootdir_hack 12996" 12997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12998 || as_fn_error "could not create $ac_file" "$LINENO" 5 12999 13000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13004which seems to be undefined. Please make sure it is defined." >&5 13005$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13006which seems to be undefined. Please make sure it is defined." >&2;} 13007 13008 rm -f "$tmp/stdin" 13009 case $ac_file in 13010 -) cat "$tmp/out" && rm -f "$tmp/out";; 13011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13012 esac \ 13013 || as_fn_error "could not create $ac_file" "$LINENO" 5 13014 ;; 13015 :H) 13016 # 13017 # CONFIG_HEADER 13018 # 13019 if test x"$ac_file" != x-; then 13020 { 13021 $as_echo "/* $configure_input */" \ 13022 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13023 } >"$tmp/config.h" \ 13024 || as_fn_error "could not create $ac_file" "$LINENO" 5 13025 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13027$as_echo "$as_me: $ac_file is unchanged" >&6;} 13028 else 13029 rm -f "$ac_file" 13030 mv "$tmp/config.h" "$ac_file" \ 13031 || as_fn_error "could not create $ac_file" "$LINENO" 5 13032 fi 13033 else 13034 $as_echo "/* $configure_input */" \ 13035 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13036 || as_fn_error "could not create -" "$LINENO" 5 13037 fi 13038 ;; 13039 13040 13041 esac 13042 13043done # for ac_tag 13044 13045 13046as_fn_exit 0 13047_ACEOF 13048ac_clean_files=$ac_clean_files_save 13049 13050test $ac_write_fail = 0 || 13051 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13052 13053 13054# configure is writing to config.log, and then calls config.status. 13055# config.status does its own redirection, appending to config.log. 13056# Unfortunately, on DOS this fails, as config.log is still kept open 13057# by configure, so config.status won't be able to write to it; its 13058# output is simply discarded. So we exec the FD to /dev/null, 13059# effectively closing config.log, so it can be properly (re)opened and 13060# appended to by config.status. When coming back to configure, we 13061# need to make the FD available again. 13062if test "$no_create" != yes; then 13063 ac_cs_success=: 13064 ac_config_status_args= 13065 test "$silent" = yes && 13066 ac_config_status_args="$ac_config_status_args --quiet" 13067 exec 5>/dev/null 13068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13069 exec 5>>auto/config.log 13070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13071 # would make configure fail if this is the last instruction. 13072 $ac_cs_success || as_fn_exit $? 13073fi 13074if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13076$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13077fi 13078 13079 13080