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 642PYTHON3_OBJ 643PYTHON3_SRC 644PYTHON3_CFLAGS 645PYTHON3_LIBS 646PYTHON3_CONFDIR 647vi_cv_path_python3 648PYTHON_OBJ 649PYTHON_SRC 650PYTHON_CFLAGS 651PYTHON_GETPATH_CFLAGS 652PYTHON_LIBS 653PYTHON_CONFDIR 654vi_cv_path_python 655PERL_LIBS 656PERL_CFLAGS 657PERL_PRO 658PERL_OBJ 659PERL_SRC 660shrpenv 661vi_cv_perllib 662vi_cv_path_perl 663MZSCHEME_MZC 664MZSCHEME_EXTRA 665MZSCHEME_CFLAGS 666MZSCHEME_LIBS 667MZSCHEME_PRO 668MZSCHEME_OBJ 669MZSCHEME_SRC 670vi_cv_path_mzscheme 671LUA_CFLAGS 672LUA_LIBS 673LUA_PRO 674LUA_OBJ 675LUA_SRC 676vi_cv_path_lua 677compiledby 678dogvimdiff 679dovimdiff 680QUOTESED 681line_break 682VIEWNAME 683EXNAME 684VIMNAME 685OS_EXTRA_OBJ 686OS_EXTRA_SRC 687XCODE_SELECT 688CPP_MM 689STRIP 690AWK 691EGREP 692GREP 693CPP 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701SET_MAKE 702target_alias 703host_alias 704build_alias 705LIBS 706ECHO_T 707ECHO_N 708ECHO_C 709DEFS 710mandir 711localedir 712libdir 713psdir 714pdfdir 715dvidir 716htmldir 717infodir 718docdir 719oldincludedir 720includedir 721localstatedir 722sharedstatedir 723sysconfdir 724datadir 725datarootdir 726libexecdir 727sbindir 728bindir 729program_transform_name 730prefix 731exec_prefix 732PACKAGE_URL 733PACKAGE_BUGREPORT 734PACKAGE_STRING 735PACKAGE_VERSION 736PACKAGE_TARNAME 737PACKAGE_NAME 738PATH_SEPARATOR 739SHELL' 740ac_subst_files='' 741ac_user_opts=' 742enable_option_checking 743enable_darwin 744with_mac_arch 745with_developer_dir 746with_local_dir 747with_vim_name 748with_ex_name 749with_view_name 750with_global_runtime 751with_modified_by 752enable_selinux 753with_features 754with_compiledby 755enable_xsmp 756enable_xsmp_interact 757enable_luainterp 758with_lua_prefix 759enable_mzschemeinterp 760with_plthome 761enable_perlinterp 762enable_pythoninterp 763with_python_config_dir 764enable_python3interp 765with_python3_config_dir 766enable_tclinterp 767with_tclsh 768enable_rubyinterp 769with_ruby_command 770enable_cscope 771enable_workshop 772enable_netbeans 773enable_sniff 774enable_multibyte 775enable_hangulinput 776enable_xim 777enable_fontset 778with_x 779enable_gui 780enable_gtk2_check 781enable_gnome_check 782enable_motif_check 783enable_athena_check 784enable_nextaw_check 785enable_carbon_check 786enable_gtktest 787with_gnome_includes 788with_gnome_libs 789with_gnome 790with_motif_lib 791with_tlib 792enable_largefile 793enable_acl 794enable_gpm 795enable_sysmouse 796enable_nls 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CPP 807XMKMF' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 # Accept the important Cygnus configure options, so we can diagnose typos. 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 1066 -program-transform-name | --program-transform-name \ 1067 | --program-transform-nam | --program-transform-na \ 1068 | --program-transform-n | --program-transform- \ 1069 | --program-transform | --program-transfor \ 1070 | --program-transfo | --program-transf \ 1071 | --program-trans | --program-tran \ 1072 | --progr-tra | --program-tr | --program-t) 1073 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information." 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1263 If a cross compiler is detected then cross compile mode will be used." >&2 1264 elif test "x$build_alias" != "x$host_alias"; then 1265 cross_compiling=yes 1266 fi 1267fi 1268 1269ac_tool_prefix= 1270test -n "$host_alias" && ac_tool_prefix=$host_alias- 1271 1272test "$silent" = yes && exec 6>/dev/null 1273 1274 1275ac_pwd=`pwd` && test -n "$ac_pwd" && 1276ac_ls_di=`ls -di .` && 1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1278 as_fn_error "working directory cannot be determined" 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1280 as_fn_error "pwd does not report name of working directory" 1281 1282 1283# Find the source files, if location was not specified. 1284if test -z "$srcdir"; then 1285 ac_srcdir_defaulted=yes 1286 # Try the directory containing this script, then the parent directory. 1287 ac_confdir=`$as_dirname -- "$as_myself" || 1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1289 X"$as_myself" : 'X\(//\)[^/]' \| \ 1290 X"$as_myself" : 'X\(//\)$' \| \ 1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1292$as_echo X"$as_myself" | 1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)[^/].*/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\).*/{ 1306 s//\1/ 1307 q 1308 } 1309 s/.*/./; q'` 1310 srcdir=$ac_confdir 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 srcdir=.. 1313 fi 1314else 1315 ac_srcdir_defaulted=no 1316fi 1317if test ! -r "$srcdir/$ac_unique_file"; then 1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1320fi 1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1322ac_abs_confdir=`( 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1324 pwd)` 1325# When building in place, set srcdir=. 1326if test "$ac_abs_confdir" = "$ac_pwd"; then 1327 srcdir=. 1328fi 1329# Remove unnecessary trailing slashes from srcdir. 1330# Double slashes in file names in object file debugging info 1331# mess up M-x gdb in Emacs. 1332case $srcdir in 1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1334esac 1335for ac_var in $ac_precious_vars; do 1336 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_env_${ac_var}_value=\$${ac_var} 1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1340done 1341 1342# 1343# Report the --help message. 1344# 1345if test "$ac_init_help" = "long"; then 1346 # Omit some internal or obsolete options to make the list less imposing. 1347 # This message is too long to be a string in the A/UX 3.1 sh. 1348 cat <<_ACEOF 1349\`configure' configures this package to adapt to many kinds of systems. 1350 1351Usage: $0 [OPTION]... [VAR=VALUE]... 1352 1353To assign environment variables (e.g., CC, CFLAGS...), specify them as 1354VAR=VALUE. See below for descriptions of some of the useful variables. 1355 1356Defaults for the options are specified in brackets. 1357 1358Configuration: 1359 -h, --help display this help and exit 1360 --help=short display options specific to this package 1361 --help=recursive display the short help of all the included packages 1362 -V, --version display version information and exit 1363 -q, --quiet, --silent do not print \`checking...' messages 1364 --cache-file=FILE cache test results in FILE [disabled] 1365 -C, --config-cache alias for \`--cache-file=config.cache' 1366 -n, --no-create do not create output files 1367 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1368 1369Installation directories: 1370 --prefix=PREFIX install architecture-independent files in PREFIX 1371 [$ac_default_prefix] 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1373 [PREFIX] 1374 1375By default, \`make install' will install all the files in 1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1377an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1378for instance \`--prefix=\$HOME'. 1379 1380For better control, use the options below. 1381 1382Fine tuning of the installation directories: 1383 --bindir=DIR user executables [EPREFIX/bin] 1384 --sbindir=DIR system admin executables [EPREFIX/sbin] 1385 --libexecdir=DIR program executables [EPREFIX/libexec] 1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406X features: 1407 --x-includes=DIR X include files are in DIR 1408 --x-libraries=DIR X library files are in DIR 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --disable-darwin Disable Darwin (Mac OS X) support. 1421 --disable-selinux Don't check for SELinux support. 1422 --disable-xsmp Disable XSMP session management 1423 --disable-xsmp-interact Disable XSMP interaction 1424 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1425 --enable-mzschemeinterp Include MzScheme interpreter. 1426 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1427 --enable-pythoninterp Include Python interpreter. 1428 --enable-python3interp Include Python3 interpreter. 1429 --enable-tclinterp Include Tcl interpreter. 1430 --enable-rubyinterp Include Ruby interpreter. 1431 --enable-cscope Include cscope interface. 1432 --enable-workshop Include Sun Visual Workshop support. 1433 --disable-netbeans Disable NetBeans integration support. 1434 --enable-sniff Include Sniff interface. 1435 --enable-multibyte Include multibyte editing support. 1436 --enable-hangulinput Include Hangul input support. 1437 --enable-xim Include XIM input support. 1438 --enable-fontset Include X fontset output support. 1439 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon 1440 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1441 --enable-gnome-check If GTK GUI, check for GNOME default=no 1442 --enable-motif-check If auto-select GUI, check for Motif default=yes 1443 --enable-athena-check If auto-select GUI, check for Athena default=yes 1444 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1445 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1446 --disable-gtktest Do not try to compile and run a test GTK program 1447 --disable-largefile omit support for large files 1448 --disable-acl Don't check for ACL support. 1449 --disable-gpm Don't use gpm (Linux mouse daemon). 1450 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1451 --disable-nls Don't support NLS (gettext()). 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-mac-arch=ARCH current, intel, ppc or both 1457 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1458 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1459 --without-local-dir do not search /usr/local for local libraries. 1460 --with-vim-name=NAME what to call the Vim executable 1461 --with-ex-name=NAME what to call the Ex executable 1462 --with-view-name=NAME what to call the View executable 1463 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1464 --with-modified-by=NAME name of who modified a release version 1465 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1466 --with-compiledby=NAME name to show in :version message 1467 --with-lua-prefix=PFX Prefix where Lua is installed. 1468 --with-plthome=PLTHOME Use PLTHOME. 1469 --with-python-config-dir=PATH Python's config directory 1470 --with-python3-config-dir=PATH Python's config directory 1471 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1472 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1473 --with-x use the X Window System 1474 --with-gnome-includes=DIR Specify location of GNOME headers 1475 --with-gnome-libs=DIR Specify location of GNOME libs 1476 --with-gnome Specify prefix for GNOME files 1477 --with-motif-lib=STRING Library for Motif 1478 --with-tlib=library terminal library to be used 1479 1480Some influential environment variables: 1481 CC C compiler command 1482 CFLAGS C compiler flags 1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1484 nonstandard directory <lib dir> 1485 LIBS libraries to pass to the linker, e.g. -l<library> 1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1487 you have headers in a nonstandard directory <include dir> 1488 CPP C preprocessor 1489 XMKMF Path to xmkmf, Makefile generator for X Window System 1490 1491Use these variables to override the choices made by `configure' or to help 1492it to find libraries and programs with nonstandard names/locations. 1493 1494Report bugs to the package provider. 1495_ACEOF 1496ac_status=$? 1497fi 1498 1499if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || 1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1504 continue 1505 ac_builddir=. 1506 1507case "$ac_dir" in 1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509*) 1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1511 # A ".." for each directory in $ac_dir_suffix. 1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1513 case $ac_top_builddir_sub in 1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1516 esac ;; 1517esac 1518ac_abs_top_builddir=$ac_pwd 1519ac_abs_builddir=$ac_pwd$ac_dir_suffix 1520# for backward compatibility: 1521ac_top_builddir=$ac_top_build_prefix 1522 1523case $srcdir in 1524 .) # We are building in place. 1525 ac_srcdir=. 1526 ac_top_srcdir=$ac_top_builddir_sub 1527 ac_abs_top_srcdir=$ac_pwd ;; 1528 [\\/]* | ?:[\\/]* ) # Absolute name. 1529 ac_srcdir=$srcdir$ac_dir_suffix; 1530 ac_top_srcdir=$srcdir 1531 ac_abs_top_srcdir=$srcdir ;; 1532 *) # Relative name. 1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1534 ac_top_srcdir=$ac_top_build_prefix$srcdir 1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1536esac 1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1538 1539 cd "$ac_dir" || { ac_status=$?; continue; } 1540 # Check for guested configure. 1541 if test -f "$ac_srcdir/configure.gnu"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1544 elif test -f "$ac_srcdir/configure"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure" --help=recursive 1547 else 1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1549 fi || ac_status=$? 1550 cd "$ac_pwd" || { ac_status=$?; break; } 1551 done 1552fi 1553 1554test -n "$ac_init_help" && exit $ac_status 1555if $ac_init_version; then 1556 cat <<\_ACEOF 1557configure 1558generated by GNU Autoconf 2.65 1559 1560Copyright (C) 2009 Free Software Foundation, Inc. 1561This configure script is free software; the Free Software Foundation 1562gives unlimited permission to copy, distribute and modify it. 1563_ACEOF 1564 exit 1565fi 1566 1567## ------------------------ ## 1568## Autoconf initialization. ## 1569## ------------------------ ## 1570 1571# ac_fn_c_try_compile LINENO 1572# -------------------------- 1573# Try to compile conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_compile () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext 1578 if { { ac_try="$ac_compile" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_compile") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest.$ac_objext; then : 1597 ac_retval=0 1598else 1599 $as_echo "$as_me: failed program was:" >&5 1600sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603fi 1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_compile 1608 1609# ac_fn_c_try_cpp LINENO 1610# ---------------------- 1611# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1612ac_fn_c_try_cpp () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 if { { ac_try="$ac_cpp conftest.$ac_ext" 1616case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619esac 1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621$as_echo "$ac_try_echo"; } >&5 1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } >/dev/null && { 1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 }; then : 1634 ac_retval=0 1635else 1636 $as_echo "$as_me: failed program was:" >&5 1637sed 's/^/| /' conftest.$ac_ext >&5 1638 1639 ac_retval=1 1640fi 1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1642 as_fn_set_status $ac_retval 1643 1644} # ac_fn_c_try_cpp 1645 1646# ac_fn_c_try_link LINENO 1647# ----------------------- 1648# Try to link conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_link () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest$ac_exeext 1653 if { { ac_try="$ac_link" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_link") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest$ac_exeext && { 1672 test "$cross_compiling" = yes || 1673 $as_test_x conftest$ac_exeext 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1684 # interfere with the next link command; also delete a directory that is 1685 # left behind by Apple's compiler. We do this before executing the actions. 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_link 1691 1692# ac_fn_c_try_run LINENO 1693# ---------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1695# that executables *can* be run. 1696ac_fn_c_try_run () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>&5 1707 ac_status=$? 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1710 { { case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_try") 2>&5 1717 ac_status=$? 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; }; }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: program exited with status $ac_status" >&5 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=$ac_status 1727fi 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_run 1733 1734# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1735# ------------------------------------------------------- 1736# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1737# the include files in INCLUDES and setting the cache variable VAR 1738# accordingly. 1739ac_fn_c_check_header_mongrel () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744$as_echo_n "checking for $2... " >&6; } 1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1746 $as_echo_n "(cached) " >&6 1747fi 1748eval ac_res=\$$3 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1750$as_echo "$ac_res" >&6; } 1751else 1752 # Is the header compilable? 1753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1754$as_echo_n "checking $2 usability... " >&6; } 1755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756/* end confdefs.h. */ 1757$4 1758#include <$2> 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 ac_header_compiler=yes 1762else 1763 ac_header_compiler=no 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1767$as_echo "$ac_header_compiler" >&6; } 1768 1769# Is the header present? 1770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1771$as_echo_n "checking $2 presence... " >&6; } 1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773/* end confdefs.h. */ 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_cpp "$LINENO"; then : 1777 ac_header_preproc=yes 1778else 1779 ac_header_preproc=no 1780fi 1781rm -f conftest.err conftest.$ac_ext 1782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1783$as_echo "$ac_header_preproc" >&6; } 1784 1785# So? What about this header? 1786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1787 yes:no: ) 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1789$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1792 ;; 1793 no:yes:* ) 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1795$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1797$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1799$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1801$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1803$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1804 ;; 1805esac 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 eval "$3=\$ac_header_compiler" 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816fi 1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1818 1819} # ac_fn_c_check_header_mongrel 1820 1821# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1822# ------------------------------------------------------- 1823# Tests whether HEADER exists and can be compiled using the include files in 1824# INCLUDES, setting the cache variable VAR accordingly. 1825ac_fn_c_check_header_compile () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1829$as_echo_n "checking for $2... " >&6; } 1830if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1831 $as_echo_n "(cached) " >&6 1832else 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1849 1850} # ac_fn_c_check_header_compile 1851 1852# ac_fn_c_check_func LINENO FUNC VAR 1853# ---------------------------------- 1854# Tests whether FUNC exists, setting the cache variable VAR accordingly 1855ac_fn_c_check_func () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1867#define $2 innocuous_$2 1868 1869/* System header to define __stub macros and hopefully few prototypes, 1870 which can conflict with char $2 (); below. 1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1872 <limits.h> exists even on freestanding compilers. */ 1873 1874#ifdef __STDC__ 1875# include <limits.h> 1876#else 1877# include <assert.h> 1878#endif 1879 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main () 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1920# ------------------------------------------- 1921# Tests whether TYPE exists after having included INCLUDES, setting cache 1922# variable VAR accordingly. 1923ac_fn_c_check_type () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927$as_echo_n "checking for $2... " >&6; } 1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1929 $as_echo_n "(cached) " >&6 1930else 1931 eval "$3=no" 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935int 1936main () 1937{ 1938if (sizeof ($2)) 1939 return 0; 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO"; then : 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948int 1949main () 1950{ 1951if (sizeof (($2))) 1952 return 0; 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 1959else 1960 eval "$3=yes" 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1970 1971} # ac_fn_c_check_type 1972 1973# ac_fn_c_find_uintX_t LINENO BITS VAR 1974# ------------------------------------ 1975# Finds an unsigned integer type with width BITS, setting cache variable VAR 1976# accordingly. 1977ac_fn_c_find_uintX_t () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1981$as_echo_n "checking for uint$2_t... " >&6; } 1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 eval "$3=no" 1986 # Order is important - never check a type that is potentially smaller 1987 # than half of the expected target width. 1988 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1989 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$ac_includes_default 1993int 1994main () 1995{ 1996static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1997test_array [0] = 0 1998 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 case $ac_type in #( 2005 uint$2_t) : 2006 eval "$3=yes" ;; #( 2007 *) : 2008 eval "$3=\$ac_type" ;; 2009esac 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012 eval as_val=\$$3 2013 if test "x$as_val" = x""no; then : 2014 2015else 2016 break 2017fi 2018 done 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2024 2025} # ac_fn_c_find_uintX_t 2026 2027# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2028# -------------------------------------------- 2029# Tries to find the compile-time value of EXPR in a program that includes 2030# INCLUDES, setting VAR accordingly. Returns whether the value could be 2031# computed 2032ac_fn_c_compute_int () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 if test "$cross_compiling" = yes; then 2036 # Depending upon the size, compute the lo and hi bounds. 2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main () 2042{ 2043static int test_array [1 - 2 * !(($2) >= 0)]; 2044test_array [0] = 0 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 ac_lo=0 ac_mid=0 2052 while :; do 2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$4 2056int 2057main () 2058{ 2059static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2060test_array [0] = 0 2061 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 ac_hi=$ac_mid; break 2068else 2069 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2070 if test $ac_lo -le $ac_mid; then 2071 ac_lo= ac_hi= 2072 break 2073 fi 2074 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2075fi 2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077 done 2078else 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081$4 2082int 2083main () 2084{ 2085static int test_array [1 - 2 * !(($2) < 0)]; 2086test_array [0] = 0 2087 2088 ; 2089 return 0; 2090} 2091_ACEOF 2092if ac_fn_c_try_compile "$LINENO"; then : 2093 ac_hi=-1 ac_mid=-1 2094 while :; do 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098int 2099main () 2100{ 2101static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2102test_array [0] = 0 2103 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO"; then : 2109 ac_lo=$ac_mid; break 2110else 2111 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2112 if test $ac_mid -le $ac_hi; then 2113 ac_lo= ac_hi= 2114 break 2115 fi 2116 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119 done 2120else 2121 ac_lo= ac_hi= 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126# Binary search between lo and hi bounds. 2127while test "x$ac_lo" != "x$ac_hi"; do 2128 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$4 2132int 2133main () 2134{ 2135static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2136test_array [0] = 0 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142if ac_fn_c_try_compile "$LINENO"; then : 2143 ac_hi=$ac_mid 2144else 2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2146fi 2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2148done 2149case $ac_lo in #(( 2150?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2151'') ac_retval=1 ;; 2152esac 2153 else 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157static long int longval () { return $2; } 2158static unsigned long int ulongval () { return $2; } 2159#include <stdio.h> 2160#include <stdlib.h> 2161int 2162main () 2163{ 2164 2165 FILE *f = fopen ("conftest.val", "w"); 2166 if (! f) 2167 return 1; 2168 if (($2) < 0) 2169 { 2170 long int i = longval (); 2171 if (i != ($2)) 2172 return 1; 2173 fprintf (f, "%ld", i); 2174 } 2175 else 2176 { 2177 unsigned long int i = ulongval (); 2178 if (i != ($2)) 2179 return 1; 2180 fprintf (f, "%lu", i); 2181 } 2182 /* Do not output a trailing newline, as this causes \r\n confusion 2183 on some platforms. */ 2184 return ferror (f) || fclose (f) != 0; 2185 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_run "$LINENO"; then : 2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2192else 2193 ac_retval=1 2194fi 2195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2196 conftest.$ac_objext conftest.beam conftest.$ac_ext 2197rm -f conftest.val 2198 2199 fi 2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2201 as_fn_set_status $ac_retval 2202 2203} # ac_fn_c_compute_int 2204cat >auto/config.log <<_ACEOF 2205This file contains any messages produced by compilers while 2206running configure, to aid debugging if configure makes a mistake. 2207 2208It was created by $as_me, which was 2209generated by GNU Autoconf 2.65. Invocation command line was 2210 2211 $ $0 $@ 2212 2213_ACEOF 2214exec 5>>auto/config.log 2215{ 2216cat <<_ASUNAME 2217## --------- ## 2218## Platform. ## 2219## --------- ## 2220 2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2222uname -m = `(uname -m) 2>/dev/null || echo unknown` 2223uname -r = `(uname -r) 2>/dev/null || echo unknown` 2224uname -s = `(uname -s) 2>/dev/null || echo unknown` 2225uname -v = `(uname -v) 2>/dev/null || echo unknown` 2226 2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2228/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2229 2230/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2231/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2233/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2234/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2235/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2236/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2237 2238_ASUNAME 2239 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 $as_echo "PATH: $as_dir" 2246 done 2247IFS=$as_save_IFS 2248 2249} >&5 2250 2251cat >&5 <<_ACEOF 2252 2253 2254## ----------- ## 2255## Core tests. ## 2256## ----------- ## 2257 2258_ACEOF 2259 2260 2261# Keep a trace of the command line. 2262# Strip out --no-create and --no-recursion so they do not pile up. 2263# Strip out --silent because we don't want to record it for future runs. 2264# Also quote any args containing shell meta-characters. 2265# Make two passes to allow for proper duplicate-argument suppression. 2266ac_configure_args= 2267ac_configure_args0= 2268ac_configure_args1= 2269ac_must_keep_next=false 2270for ac_pass in 1 2 2271do 2272 for ac_arg 2273 do 2274 case $ac_arg in 2275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2277 | -silent | --silent | --silen | --sile | --sil) 2278 continue ;; 2279 *\'*) 2280 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2281 esac 2282 case $ac_pass in 2283 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2284 2) 2285 as_fn_append ac_configure_args1 " '$ac_arg'" 2286 if test $ac_must_keep_next = true; then 2287 ac_must_keep_next=false # Got value, back to normal. 2288 else 2289 case $ac_arg in 2290 *=* | --config-cache | -C | -disable-* | --disable-* \ 2291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2293 | -with-* | --with-* | -without-* | --without-* | --x) 2294 case "$ac_configure_args0 " in 2295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2296 esac 2297 ;; 2298 -* ) ac_must_keep_next=true ;; 2299 esac 2300 fi 2301 as_fn_append ac_configure_args " '$ac_arg'" 2302 ;; 2303 esac 2304 done 2305done 2306{ ac_configure_args0=; unset ac_configure_args0;} 2307{ ac_configure_args1=; unset ac_configure_args1;} 2308 2309# When interrupted or exit'd, cleanup temporary files, and complete 2310# config.log. We remove comments because anyway the quotes in there 2311# would cause problems or look ugly. 2312# WARNING: Use '\'' to represent an apostrophe within the trap. 2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2314trap 'exit_status=$? 2315 # Save into config.log some information that might help in debugging. 2316 { 2317 echo 2318 2319 cat <<\_ASBOX 2320## ---------------- ## 2321## Cache variables. ## 2322## ---------------- ## 2323_ASBOX 2324 echo 2325 # The following way of writing the cache mishandles newlines in values, 2326( 2327 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2328 eval ac_val=\$$ac_var 2329 case $ac_val in #( 2330 *${as_nl}*) 2331 case $ac_var in #( 2332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2334 esac 2335 case $ac_var in #( 2336 _ | IFS | as_nl) ;; #( 2337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2338 *) { eval $ac_var=; unset $ac_var;} ;; 2339 esac ;; 2340 esac 2341 done 2342 (set) 2>&1 | 2343 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2344 *${as_nl}ac_space=\ *) 2345 sed -n \ 2346 "s/'\''/'\''\\\\'\'''\''/g; 2347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2348 ;; #( 2349 *) 2350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2351 ;; 2352 esac | 2353 sort 2354) 2355 echo 2356 2357 cat <<\_ASBOX 2358## ----------------- ## 2359## Output variables. ## 2360## ----------------- ## 2361_ASBOX 2362 echo 2363 for ac_var in $ac_subst_vars 2364 do 2365 eval ac_val=\$$ac_var 2366 case $ac_val in 2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2368 esac 2369 $as_echo "$ac_var='\''$ac_val'\''" 2370 done | sort 2371 echo 2372 2373 if test -n "$ac_subst_files"; then 2374 cat <<\_ASBOX 2375## ------------------- ## 2376## File substitutions. ## 2377## ------------------- ## 2378_ASBOX 2379 echo 2380 for ac_var in $ac_subst_files 2381 do 2382 eval ac_val=\$$ac_var 2383 case $ac_val in 2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2385 esac 2386 $as_echo "$ac_var='\''$ac_val'\''" 2387 done | sort 2388 echo 2389 fi 2390 2391 if test -s confdefs.h; then 2392 cat <<\_ASBOX 2393## ----------- ## 2394## confdefs.h. ## 2395## ----------- ## 2396_ASBOX 2397 echo 2398 cat confdefs.h 2399 echo 2400 fi 2401 test "$ac_signal" != 0 && 2402 $as_echo "$as_me: caught signal $ac_signal" 2403 $as_echo "$as_me: exit $exit_status" 2404 } >&5 2405 rm -f core *.core core.conftest.* && 2406 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2407 exit $exit_status 2408' 0 2409for ac_signal in 1 2 13 15; do 2410 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2411done 2412ac_signal=0 2413 2414# confdefs.h avoids OS command line length limits that DEFS can exceed. 2415rm -f -r conftest* confdefs.h 2416 2417$as_echo "/* confdefs.h */" > confdefs.h 2418 2419# Predefined preprocessor variables. 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_NAME "$PACKAGE_NAME" 2423_ACEOF 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2427_ACEOF 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE_VERSION "$PACKAGE_VERSION" 2431_ACEOF 2432 2433cat >>confdefs.h <<_ACEOF 2434#define PACKAGE_STRING "$PACKAGE_STRING" 2435_ACEOF 2436 2437cat >>confdefs.h <<_ACEOF 2438#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2439_ACEOF 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE_URL "$PACKAGE_URL" 2443_ACEOF 2444 2445 2446# Let the site file select an alternate cache file if it wants to. 2447# Prefer an explicitly selected file to automatically selected ones. 2448ac_site_file1=NONE 2449ac_site_file2=NONE 2450if test -n "$CONFIG_SITE"; then 2451 ac_site_file1=$CONFIG_SITE 2452elif test "x$prefix" != xNONE; then 2453 ac_site_file1=$prefix/share/config.site 2454 ac_site_file2=$prefix/etc/config.site 2455else 2456 ac_site_file1=$ac_default_prefix/share/config.site 2457 ac_site_file2=$ac_default_prefix/etc/config.site 2458fi 2459for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2460do 2461 test "x$ac_site_file" = xNONE && continue 2462 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2464$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2465 sed 's/^/| /' "$ac_site_file" >&5 2466 . "$ac_site_file" 2467 fi 2468done 2469 2470if test -r "$cache_file"; then 2471 # Some versions of bash will fail to source /dev/null (special files 2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2475$as_echo "$as_me: loading cache $cache_file" >&6;} 2476 case $cache_file in 2477 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2478 *) . "./$cache_file";; 2479 esac 2480 fi 2481else 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2483$as_echo "$as_me: creating cache $cache_file" >&6;} 2484 >$cache_file 2485fi 2486 2487# Check that the precious variables saved in the cache have kept the same 2488# value. 2489ac_cache_corrupted=false 2490for ac_var in $ac_precious_vars; do 2491 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2492 eval ac_new_set=\$ac_env_${ac_var}_set 2493 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2494 eval ac_new_val=\$ac_env_${ac_var}_value 2495 case $ac_old_set,$ac_new_set in 2496 set,) 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2498$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2499 ac_cache_corrupted=: ;; 2500 ,set) 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2502$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2503 ac_cache_corrupted=: ;; 2504 ,);; 2505 *) 2506 if test "x$ac_old_val" != "x$ac_new_val"; then 2507 # differences in whitespace do not lead to failure. 2508 ac_old_val_w=`echo x $ac_old_val` 2509 ac_new_val_w=`echo x $ac_new_val` 2510 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2512$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2513 ac_cache_corrupted=: 2514 else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2516$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2517 eval $ac_var=\$ac_old_val 2518 fi 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2520$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2522$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2523 fi;; 2524 esac 2525 # Pass precious variables to config.status. 2526 if test "$ac_new_set" = set; then 2527 case $ac_new_val in 2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2529 *) ac_arg=$ac_var=$ac_new_val ;; 2530 esac 2531 case " $ac_configure_args " in 2532 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2533 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2534 esac 2535 fi 2536done 2537if $ac_cache_corrupted; then 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2541$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2542 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2543fi 2544## -------------------- ## 2545## Main body of script. ## 2546## -------------------- ## 2547 2548ac_ext=c 2549ac_cpp='$CPP $CPPFLAGS' 2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2552ac_compiler_gnu=$ac_cv_c_compiler_gnu 2553 2554 2555ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2556 2557 2558$as_echo "#define UNIX 1" >>confdefs.h 2559 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2561$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2562set x ${MAKE-make} 2563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2564if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 cat >conftest.make <<\_ACEOF 2568SHELL = /bin/sh 2569all: 2570 @echo '@@@%%%=$(MAKE)=@@@%%%' 2571_ACEOF 2572# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2573case `${MAKE-make} -f conftest.make 2>/dev/null` in 2574 *@@@%%%=?*=@@@%%%*) 2575 eval ac_cv_prog_make_${ac_make}_set=yes;; 2576 *) 2577 eval ac_cv_prog_make_${ac_make}_set=no;; 2578esac 2579rm -f conftest.make 2580fi 2581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2583$as_echo "yes" >&6; } 2584 SET_MAKE= 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588 SET_MAKE="MAKE=${MAKE-make}" 2589fi 2590 2591 2592ac_ext=c 2593ac_cpp='$CPP $CPPFLAGS' 2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2596ac_compiler_gnu=$ac_cv_c_compiler_gnu 2597if test -n "$ac_tool_prefix"; then 2598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2599set dummy ${ac_tool_prefix}gcc; ac_word=$2 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601$as_echo_n "checking for $ac_word... " >&6; } 2602if test "${ac_cv_prog_CC+set}" = set; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 if test -n "$CC"; then 2606 ac_cv_prog_CC="$CC" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2615 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625CC=$ac_cv_prog_CC 2626if test -n "$CC"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2628$as_echo "$CC" >&6; } 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632fi 2633 2634 2635fi 2636if test -z "$ac_cv_prog_CC"; then 2637 ac_ct_CC=$CC 2638 # Extract the first word of "gcc", so it can be a program name with args. 2639set dummy gcc; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$ac_ct_CC"; then 2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2655 ac_cv_prog_ac_ct_CC="gcc" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665ac_ct_CC=$ac_cv_prog_ac_ct_CC 2666if test -n "$ac_ct_CC"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2668$as_echo "$ac_ct_CC" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 if test "x$ac_ct_CC" = x; then 2675 CC="" 2676 else 2677 case $cross_compiling:$ac_tool_warned in 2678yes:) 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681ac_tool_warned=yes ;; 2682esac 2683 CC=$ac_ct_CC 2684 fi 2685else 2686 CC="$ac_cv_prog_CC" 2687fi 2688 2689if test -z "$CC"; then 2690 if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}cc; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if test "${ac_cv_prog_CC+set}" = set; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$CC"; then 2699 ac_cv_prog_CC="$CC" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2708 ac_cv_prog_CC="${ac_tool_prefix}cc" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2721$as_echo "$CC" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728 fi 2729fi 2730if test -z "$CC"; then 2731 # Extract the first word of "cc", so it can be a program name with args. 2732set dummy cc; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if test "${ac_cv_prog_CC+set}" = set; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$CC"; then 2739 ac_cv_prog_CC="$CC" # Let the user override the test. 2740else 2741 ac_prog_rejected=no 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2750 ac_prog_rejected=yes 2751 continue 2752 fi 2753 ac_cv_prog_CC="cc" 2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758 done 2759IFS=$as_save_IFS 2760 2761if test $ac_prog_rejected = yes; then 2762 # We found a bogon in the path, so make sure we never use it. 2763 set dummy $ac_cv_prog_CC 2764 shift 2765 if test $# != 0; then 2766 # We chose a different compiler from the bogus one. 2767 # However, it has the same basename, so the bogon will be chosen 2768 # first if we set CC to just the basename; use the full file name. 2769 shift 2770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2771 fi 2772fi 2773fi 2774fi 2775CC=$ac_cv_prog_CC 2776if test -n "$CC"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778$as_echo "$CC" >&6; } 2779else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781$as_echo "no" >&6; } 2782fi 2783 2784 2785fi 2786if test -z "$CC"; then 2787 if test -n "$ac_tool_prefix"; then 2788 for ac_prog in cl.exe 2789 do 2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if test "${ac_cv_prog_CC+set}" = set; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$CC"; then 2798 ac_cv_prog_CC="$CC" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817CC=$ac_cv_prog_CC 2818if test -n "$CC"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2820$as_echo "$CC" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827 test -n "$CC" && break 2828 done 2829fi 2830if test -z "$CC"; then 2831 ac_ct_CC=$CC 2832 for ac_prog in cl.exe 2833do 2834 # Extract the first word of "$ac_prog", so it can be a program name with args. 2835set dummy $ac_prog; ac_word=$2 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2837$as_echo_n "checking for $ac_word... " >&6; } 2838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 if test -n "$ac_ct_CC"; then 2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2843else 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 ac_cv_prog_ac_ct_CC="$ac_prog" 2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856 done 2857IFS=$as_save_IFS 2858 2859fi 2860fi 2861ac_ct_CC=$ac_cv_prog_ac_ct_CC 2862if test -n "$ac_ct_CC"; then 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2864$as_echo "$ac_ct_CC" >&6; } 2865else 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2867$as_echo "no" >&6; } 2868fi 2869 2870 2871 test -n "$ac_ct_CC" && break 2872done 2873 2874 if test "x$ac_ct_CC" = x; then 2875 CC="" 2876 else 2877 case $cross_compiling:$ac_tool_warned in 2878yes:) 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2881ac_tool_warned=yes ;; 2882esac 2883 CC=$ac_ct_CC 2884 fi 2885fi 2886 2887fi 2888 2889 2890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error "no acceptable C compiler found in \$PATH 2893See \`config.log' for more details." "$LINENO" 5; } 2894 2895# Provide some information about the compiler. 2896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2897set X $ac_compile 2898ac_compiler=$2 2899for ac_option in --version -v -V -qversion; do 2900 { { ac_try="$ac_compiler $ac_option >&5" 2901case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2906$as_echo "$ac_try_echo"; } >&5 2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2908 ac_status=$? 2909 if test -s conftest.err; then 2910 sed '10a\ 2911... rest of stderr output deleted ... 2912 10q' conftest.err >conftest.er1 2913 cat conftest.er1 >&5 2914 fi 2915 rm -f conftest.er1 conftest.err 2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2917 test $ac_status = 0; } 2918done 2919 2920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2937$as_echo_n "checking whether the C compiler works... " >&6; } 2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939 2940# The possible output files: 2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2942 2943ac_rmfiles= 2944for ac_file in $ac_files 2945do 2946 case $ac_file in 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2949 esac 2950done 2951rm -f $ac_rmfiles 2952 2953if { { ac_try="$ac_link_default" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2959$as_echo "$ac_try_echo"; } >&5 2960 (eval "$ac_link_default") 2>&5 2961 ac_status=$? 2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2963 test $ac_status = 0; }; then : 2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2966# in a Makefile. We should not override ac_cv_exeext if it was cached, 2967# so that the user can short-circuit this test for compilers unknown to 2968# Autoconf. 2969for ac_file in $ac_files '' 2970do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2974 ;; 2975 [ab].out ) 2976 # We found the default executable, but exeext='' is most 2977 # certainly right. 2978 break;; 2979 *.* ) 2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2981 then :; else 2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2983 fi 2984 # We set ac_cv_exeext here because the later test for it is not 2985 # safe: cross compilers may not add the suffix if given an `-o' 2986 # argument, so we may need to know it at that point already. 2987 # Even if this section looks crufty: it has the advantage of 2988 # actually working. 2989 break;; 2990 * ) 2991 break;; 2992 esac 2993done 2994test "$ac_cv_exeext" = no && ac_cv_exeext= 2995 2996else 2997 ac_file='' 2998fi 2999if test -z "$ac_file"; then : 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001$as_echo "no" >&6; } 3002$as_echo "$as_me: failed program was:" >&5 3003sed 's/^/| /' conftest.$ac_ext >&5 3004 3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007{ as_fn_set_status 77 3008as_fn_error "C compiler cannot create executables 3009See \`config.log' for more details." "$LINENO" 5; }; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3012$as_echo "yes" >&6; } 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3015$as_echo_n "checking for C compiler default output file name... " >&6; } 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3017$as_echo "$ac_file" >&6; } 3018ac_exeext=$ac_cv_exeext 3019 3020rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3021ac_clean_files=$ac_clean_files_save 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3023$as_echo_n "checking for suffix of executables... " >&6; } 3024if { { ac_try="$ac_link" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3030$as_echo "$ac_try_echo"; } >&5 3031 (eval "$ac_link") 2>&5 3032 ac_status=$? 3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3034 test $ac_status = 0; }; then : 3035 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3037# work properly (i.e., refer to `conftest.exe'), while it won't with 3038# `rm'. 3039for ac_file in conftest.exe conftest conftest.*; do 3040 test -f "$ac_file" || continue 3041 case $ac_file in 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3044 break;; 3045 * ) break;; 3046 esac 3047done 3048else 3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3051as_fn_error "cannot compute suffix of executables: cannot compile and link 3052See \`config.log' for more details." "$LINENO" 5; } 3053fi 3054rm -f conftest conftest$ac_cv_exeext 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3056$as_echo "$ac_cv_exeext" >&6; } 3057 3058rm -f conftest.$ac_ext 3059EXEEXT=$ac_cv_exeext 3060ac_exeext=$EXEEXT 3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3062/* end confdefs.h. */ 3063#include <stdio.h> 3064int 3065main () 3066{ 3067FILE *f = fopen ("conftest.out", "w"); 3068 return ferror (f) || fclose (f) != 0; 3069 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074ac_clean_files="$ac_clean_files conftest.out" 3075# Check that the compiler produces executables we can run. If not, either 3076# the compiler is broken, or we cross compile. 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3078$as_echo_n "checking whether we are cross compiling... " >&6; } 3079if test "$cross_compiling" != yes; then 3080 { { ac_try="$ac_link" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_link") 2>&5 3088 ac_status=$? 3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3090 test $ac_status = 0; } 3091 if { ac_try='./conftest$ac_cv_exeext' 3092 { { case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097$as_echo "$ac_try_echo"; } >&5 3098 (eval "$ac_try") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; }; }; then 3102 cross_compiling=no 3103 else 3104 if test "$cross_compiling" = maybe; then 3105 cross_compiling=yes 3106 else 3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109as_fn_error "cannot run C compiled programs. 3110If you meant to cross compile, use \`--host'. 3111See \`config.log' for more details." "$LINENO" 5; } 3112 fi 3113 fi 3114fi 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3116$as_echo "$cross_compiling" >&6; } 3117 3118rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3119ac_clean_files=$ac_clean_files_save 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3121$as_echo_n "checking for suffix of object files... " >&6; } 3122if test "${ac_cv_objext+set}" = set; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3126/* end confdefs.h. */ 3127 3128int 3129main () 3130{ 3131 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136rm -f conftest.o conftest.obj 3137if { { ac_try="$ac_compile" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_compile") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3147 test $ac_status = 0; }; then : 3148 for ac_file in conftest.o conftest.obj conftest.*; do 3149 test -f "$ac_file" || continue; 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3153 break;; 3154 esac 3155done 3156else 3157 $as_echo "$as_me: failed program was:" >&5 3158sed 's/^/| /' conftest.$ac_ext >&5 3159 3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3162as_fn_error "cannot compute suffix of object files: cannot compile 3163See \`config.log' for more details." "$LINENO" 5; } 3164fi 3165rm -f conftest.$ac_cv_objext conftest.$ac_ext 3166fi 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3168$as_echo "$ac_cv_objext" >&6; } 3169OBJEXT=$ac_cv_objext 3170ac_objext=$OBJEXT 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3172$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3173if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182#ifndef __GNUC__ 3183 choke me 3184#endif 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190if ac_fn_c_try_compile "$LINENO"; then : 3191 ac_compiler_gnu=yes 3192else 3193 ac_compiler_gnu=no 3194fi 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196ac_cv_c_compiler_gnu=$ac_compiler_gnu 3197 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3200$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3201if test $ac_compiler_gnu = yes; then 3202 GCC=yes 3203else 3204 GCC= 3205fi 3206ac_test_CFLAGS=${CFLAGS+set} 3207ac_save_CFLAGS=$CFLAGS 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3209$as_echo_n "checking whether $CC accepts -g... " >&6; } 3210if test "${ac_cv_prog_cc_g+set}" = set; then : 3211 $as_echo_n "(cached) " >&6 3212else 3213 ac_save_c_werror_flag=$ac_c_werror_flag 3214 ac_c_werror_flag=yes 3215 ac_cv_prog_cc_g=no 3216 CFLAGS="-g" 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219 3220int 3221main () 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228if ac_fn_c_try_compile "$LINENO"; then : 3229 ac_cv_prog_cc_g=yes 3230else 3231 CFLAGS="" 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243if ac_fn_c_try_compile "$LINENO"; then : 3244 3245else 3246 ac_c_werror_flag=$ac_save_c_werror_flag 3247 CFLAGS="-g" 3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249/* end confdefs.h. */ 3250 3251int 3252main () 3253{ 3254 3255 ; 3256 return 0; 3257} 3258_ACEOF 3259if ac_fn_c_try_compile "$LINENO"; then : 3260 ac_cv_prog_cc_g=yes 3261fi 3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3263fi 3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3265fi 3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3267 ac_c_werror_flag=$ac_save_c_werror_flag 3268fi 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3270$as_echo "$ac_cv_prog_cc_g" >&6; } 3271if test "$ac_test_CFLAGS" = set; then 3272 CFLAGS=$ac_save_CFLAGS 3273elif test $ac_cv_prog_cc_g = yes; then 3274 if test "$GCC" = yes; then 3275 CFLAGS="-g -O2" 3276 else 3277 CFLAGS="-g" 3278 fi 3279else 3280 if test "$GCC" = yes; then 3281 CFLAGS="-O2" 3282 else 3283 CFLAGS= 3284 fi 3285fi 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3287$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3288if test "${ac_cv_prog_cc_c89+set}" = set; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 ac_cv_prog_cc_c89=no 3292ac_save_CC=$CC 3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295#include <stdarg.h> 3296#include <stdio.h> 3297#include <sys/types.h> 3298#include <sys/stat.h> 3299/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3300struct buf { int x; }; 3301FILE * (*rcsopen) (struct buf *, struct stat *, int); 3302static char *e (p, i) 3303 char **p; 3304 int i; 3305{ 3306 return p[i]; 3307} 3308static char *f (char * (*g) (char **, int), char **p, ...) 3309{ 3310 char *s; 3311 va_list v; 3312 va_start (v,p); 3313 s = g (p, va_arg (v,int)); 3314 va_end (v); 3315 return s; 3316} 3317 3318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3319 function prototypes and stuff, but not '\xHH' hex character constants. 3320 These don't provoke an error unfortunately, instead are silently treated 3321 as 'x'. The following induces an error, until -std is added to get 3322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3323 array size at least. It's necessary to write '\x00'==0 to get something 3324 that's true only with -std. */ 3325int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3326 3327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3328 inside strings and character constants. */ 3329#define FOO(x) 'x' 3330int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3331 3332int test (int i, double x); 3333struct s1 {int (*f) (int a);}; 3334struct s2 {int (*f) (double a);}; 3335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3336int argc; 3337char **argv; 3338int 3339main () 3340{ 3341return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3348do 3349 CC="$ac_save_CC $ac_arg" 3350 if ac_fn_c_try_compile "$LINENO"; then : 3351 ac_cv_prog_cc_c89=$ac_arg 3352fi 3353rm -f core conftest.err conftest.$ac_objext 3354 test "x$ac_cv_prog_cc_c89" != "xno" && break 3355done 3356rm -f conftest.$ac_ext 3357CC=$ac_save_CC 3358 3359fi 3360# AC_CACHE_VAL 3361case "x$ac_cv_prog_cc_c89" in 3362 x) 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3364$as_echo "none needed" >&6; } ;; 3365 xno) 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3367$as_echo "unsupported" >&6; } ;; 3368 *) 3369 CC="$CC $ac_cv_prog_cc_c89" 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3371$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3372esac 3373if test "x$ac_cv_prog_cc_c89" != xno; then : 3374 3375fi 3376 3377ac_ext=c 3378ac_cpp='$CPP $CPPFLAGS' 3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3381ac_compiler_gnu=$ac_cv_c_compiler_gnu 3382 ac_ext=c 3383ac_cpp='$CPP $CPPFLAGS' 3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3386ac_compiler_gnu=$ac_cv_c_compiler_gnu 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3388$as_echo_n "checking how to run the C preprocessor... " >&6; } 3389# On Suns, sometimes $CPP names a directory. 3390if test -n "$CPP" && test -d "$CPP"; then 3391 CPP= 3392fi 3393if test -z "$CPP"; then 3394 if test "${ac_cv_prog_CPP+set}" = set; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 # Double quotes because CPP needs to be expanded 3398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3399 do 3400 ac_preproc_ok=false 3401for ac_c_preproc_warn_flag in '' yes 3402do 3403 # Use a header file that comes with gcc, so configuring glibc 3404 # with a fresh cross-compiler works. 3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3406 # <limits.h> exists even on freestanding compilers. 3407 # On the NeXT, cc -E runs the code through the compiler's parser, 3408 # not just through cpp. "Syntax error" is here to catch this case. 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411#ifdef __STDC__ 3412# include <limits.h> 3413#else 3414# include <assert.h> 3415#endif 3416 Syntax error 3417_ACEOF 3418if ac_fn_c_try_cpp "$LINENO"; then : 3419 3420else 3421 # Broken: fails on valid input. 3422continue 3423fi 3424rm -f conftest.err conftest.$ac_ext 3425 3426 # OK, works on sane cases. Now check whether nonexistent headers 3427 # can be detected and how. 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <ac_nonexistent.h> 3431_ACEOF 3432if ac_fn_c_try_cpp "$LINENO"; then : 3433 # Broken: success on invalid input. 3434continue 3435else 3436 # Passes both tests. 3437ac_preproc_ok=: 3438break 3439fi 3440rm -f conftest.err conftest.$ac_ext 3441 3442done 3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3444rm -f conftest.err conftest.$ac_ext 3445if $ac_preproc_ok; then : 3446 break 3447fi 3448 3449 done 3450 ac_cv_prog_CPP=$CPP 3451 3452fi 3453 CPP=$ac_cv_prog_CPP 3454else 3455 ac_cv_prog_CPP=$CPP 3456fi 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3458$as_echo "$CPP" >&6; } 3459ac_preproc_ok=false 3460for ac_c_preproc_warn_flag in '' yes 3461do 3462 # Use a header file that comes with gcc, so configuring glibc 3463 # with a fresh cross-compiler works. 3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3465 # <limits.h> exists even on freestanding compilers. 3466 # On the NeXT, cc -E runs the code through the compiler's parser, 3467 # not just through cpp. "Syntax error" is here to catch this case. 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470#ifdef __STDC__ 3471# include <limits.h> 3472#else 3473# include <assert.h> 3474#endif 3475 Syntax error 3476_ACEOF 3477if ac_fn_c_try_cpp "$LINENO"; then : 3478 3479else 3480 # Broken: fails on valid input. 3481continue 3482fi 3483rm -f conftest.err conftest.$ac_ext 3484 3485 # OK, works on sane cases. Now check whether nonexistent headers 3486 # can be detected and how. 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489#include <ac_nonexistent.h> 3490_ACEOF 3491if ac_fn_c_try_cpp "$LINENO"; then : 3492 # Broken: success on invalid input. 3493continue 3494else 3495 # Passes both tests. 3496ac_preproc_ok=: 3497break 3498fi 3499rm -f conftest.err conftest.$ac_ext 3500 3501done 3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3503rm -f conftest.err conftest.$ac_ext 3504if $ac_preproc_ok; then : 3505 3506else 3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3509as_fn_error "C preprocessor \"$CPP\" fails sanity check 3510See \`config.log' for more details." "$LINENO" 5; } 3511fi 3512 3513ac_ext=c 3514ac_cpp='$CPP $CPPFLAGS' 3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3517ac_compiler_gnu=$ac_cv_c_compiler_gnu 3518 3519 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3521$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3522if test "${ac_cv_path_GREP+set}" = set; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 if test -z "$GREP"; then 3526 ac_path_GREP_found=false 3527 # Loop through the user's path and test for each of PROGNAME-LIST 3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_prog in grep ggrep; do 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3536 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3537# Check for GNU ac_path_GREP and select it if it is found. 3538 # Check for GNU $ac_path_GREP 3539case `"$ac_path_GREP" --version 2>&1` in 3540*GNU*) 3541 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3542*) 3543 ac_count=0 3544 $as_echo_n 0123456789 >"conftest.in" 3545 while : 3546 do 3547 cat "conftest.in" "conftest.in" >"conftest.tmp" 3548 mv "conftest.tmp" "conftest.in" 3549 cp "conftest.in" "conftest.nl" 3550 $as_echo 'GREP' >> "conftest.nl" 3551 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3553 as_fn_arith $ac_count + 1 && ac_count=$as_val 3554 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3555 # Best one so far, save it but keep looking for a better one 3556 ac_cv_path_GREP="$ac_path_GREP" 3557 ac_path_GREP_max=$ac_count 3558 fi 3559 # 10*(2^10) chars as input seems more than enough 3560 test $ac_count -gt 10 && break 3561 done 3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3563esac 3564 3565 $ac_path_GREP_found && break 3 3566 done 3567 done 3568 done 3569IFS=$as_save_IFS 3570 if test -z "$ac_cv_path_GREP"; then 3571 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3572 fi 3573else 3574 ac_cv_path_GREP=$GREP 3575fi 3576 3577fi 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3579$as_echo "$ac_cv_path_GREP" >&6; } 3580 GREP="$ac_cv_path_GREP" 3581 3582 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3584$as_echo_n "checking for egrep... " >&6; } 3585if test "${ac_cv_path_EGREP+set}" = set; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3589 then ac_cv_path_EGREP="$GREP -E" 3590 else 3591 if test -z "$EGREP"; then 3592 ac_path_EGREP_found=false 3593 # Loop through the user's path and test for each of PROGNAME-LIST 3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_prog in egrep; do 3600 for ac_exec_ext in '' $ac_executable_extensions; do 3601 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3602 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3603# Check for GNU ac_path_EGREP and select it if it is found. 3604 # Check for GNU $ac_path_EGREP 3605case `"$ac_path_EGREP" --version 2>&1` in 3606*GNU*) 3607 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3608*) 3609 ac_count=0 3610 $as_echo_n 0123456789 >"conftest.in" 3611 while : 3612 do 3613 cat "conftest.in" "conftest.in" >"conftest.tmp" 3614 mv "conftest.tmp" "conftest.in" 3615 cp "conftest.in" "conftest.nl" 3616 $as_echo 'EGREP' >> "conftest.nl" 3617 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3619 as_fn_arith $ac_count + 1 && ac_count=$as_val 3620 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3621 # Best one so far, save it but keep looking for a better one 3622 ac_cv_path_EGREP="$ac_path_EGREP" 3623 ac_path_EGREP_max=$ac_count 3624 fi 3625 # 10*(2^10) chars as input seems more than enough 3626 test $ac_count -gt 10 && break 3627 done 3628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3629esac 3630 3631 $ac_path_EGREP_found && break 3 3632 done 3633 done 3634 done 3635IFS=$as_save_IFS 3636 if test -z "$ac_cv_path_EGREP"; then 3637 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3638 fi 3639else 3640 ac_cv_path_EGREP=$EGREP 3641fi 3642 3643 fi 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3646$as_echo "$ac_cv_path_EGREP" >&6; } 3647 EGREP="$ac_cv_path_EGREP" 3648 3649 3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653_ACEOF 3654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3655 $EGREP "" >/dev/null 2>&1; then : 3656 3657fi 3658rm -f conftest* 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3660$as_echo_n "checking for library containing strerror... " >&6; } 3661if test "${ac_cv_search_strerror+set}" = set; then : 3662 $as_echo_n "(cached) " >&6 3663else 3664 ac_func_search_save_LIBS=$LIBS 3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668/* Override any GCC internal prototype to avoid an error. 3669 Use char because int might match the return type of a GCC 3670 builtin and then its argument prototype would still apply. */ 3671#ifdef __cplusplus 3672extern "C" 3673#endif 3674char strerror (); 3675int 3676main () 3677{ 3678return strerror (); 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683for ac_lib in '' cposix; do 3684 if test -z "$ac_lib"; then 3685 ac_res="none required" 3686 else 3687 ac_res=-l$ac_lib 3688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3689 fi 3690 if ac_fn_c_try_link "$LINENO"; then : 3691 ac_cv_search_strerror=$ac_res 3692fi 3693rm -f core conftest.err conftest.$ac_objext \ 3694 conftest$ac_exeext 3695 if test "${ac_cv_search_strerror+set}" = set; then : 3696 break 3697fi 3698done 3699if test "${ac_cv_search_strerror+set}" = set; then : 3700 3701else 3702 ac_cv_search_strerror=no 3703fi 3704rm conftest.$ac_ext 3705LIBS=$ac_func_search_save_LIBS 3706fi 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3708$as_echo "$ac_cv_search_strerror" >&6; } 3709ac_res=$ac_cv_search_strerror 3710if test "$ac_res" != no; then : 3711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3712 3713fi 3714 for ac_prog in gawk mawk nawk awk 3715do 3716 # Extract the first word of "$ac_prog", so it can be a program name with args. 3717set dummy $ac_prog; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if test "${ac_cv_prog_AWK+set}" = set; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$AWK"; then 3724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3733 ac_cv_prog_AWK="$ac_prog" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741fi 3742fi 3743AWK=$ac_cv_prog_AWK 3744if test -n "$AWK"; then 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3746$as_echo "$AWK" >&6; } 3747else 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749$as_echo "no" >&6; } 3750fi 3751 3752 3753 test -n "$AWK" && break 3754done 3755 3756# Extract the first word of "strip", so it can be a program name with args. 3757set dummy strip; ac_word=$2 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3759$as_echo_n "checking for $ac_word... " >&6; } 3760if test "${ac_cv_prog_STRIP+set}" = set; then : 3761 $as_echo_n "(cached) " >&6 3762else 3763 if test -n "$STRIP"; then 3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3765else 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH 3768do 3769 IFS=$as_save_IFS 3770 test -z "$as_dir" && as_dir=. 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3773 ac_cv_prog_STRIP="strip" 3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3775 break 2 3776 fi 3777done 3778 done 3779IFS=$as_save_IFS 3780 3781 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3782fi 3783fi 3784STRIP=$ac_cv_prog_STRIP 3785if test -n "$STRIP"; then 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3787$as_echo "$STRIP" >&6; } 3788else 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790$as_echo "no" >&6; } 3791fi 3792 3793 3794 3795 3796 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3798$as_echo_n "checking for ANSI C header files... " >&6; } 3799if test "${ac_cv_header_stdc+set}" = set; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804#include <stdlib.h> 3805#include <stdarg.h> 3806#include <string.h> 3807#include <float.h> 3808 3809int 3810main () 3811{ 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817if ac_fn_c_try_compile "$LINENO"; then : 3818 ac_cv_header_stdc=yes 3819else 3820 ac_cv_header_stdc=no 3821fi 3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3823 3824if test $ac_cv_header_stdc = yes; then 3825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828#include <string.h> 3829 3830_ACEOF 3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3832 $EGREP "memchr" >/dev/null 2>&1; then : 3833 3834else 3835 ac_cv_header_stdc=no 3836fi 3837rm -f conftest* 3838 3839fi 3840 3841if test $ac_cv_header_stdc = yes; then 3842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845#include <stdlib.h> 3846 3847_ACEOF 3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3849 $EGREP "free" >/dev/null 2>&1; then : 3850 3851else 3852 ac_cv_header_stdc=no 3853fi 3854rm -f conftest* 3855 3856fi 3857 3858if test $ac_cv_header_stdc = yes; then 3859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3860 if test "$cross_compiling" = yes; then : 3861 : 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865#include <ctype.h> 3866#include <stdlib.h> 3867#if ((' ' & 0x0FF) == 0x020) 3868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3870#else 3871# define ISLOWER(c) \ 3872 (('a' <= (c) && (c) <= 'i') \ 3873 || ('j' <= (c) && (c) <= 'r') \ 3874 || ('s' <= (c) && (c) <= 'z')) 3875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3876#endif 3877 3878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3879int 3880main () 3881{ 3882 int i; 3883 for (i = 0; i < 256; i++) 3884 if (XOR (islower (i), ISLOWER (i)) 3885 || toupper (i) != TOUPPER (i)) 3886 return 2; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_run "$LINENO"; then : 3891 3892else 3893 ac_cv_header_stdc=no 3894fi 3895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3896 conftest.$ac_objext conftest.beam conftest.$ac_ext 3897fi 3898 3899fi 3900fi 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3902$as_echo "$ac_cv_header_stdc" >&6; } 3903if test $ac_cv_header_stdc = yes; then 3904 3905$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3906 3907fi 3908 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 3910$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 3911if test "${ac_cv_header_sys_wait_h+set}" = set; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915/* end confdefs.h. */ 3916#include <sys/types.h> 3917#include <sys/wait.h> 3918#ifndef WEXITSTATUS 3919# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 3920#endif 3921#ifndef WIFEXITED 3922# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 3923#endif 3924 3925int 3926main () 3927{ 3928 int s; 3929 wait (&s); 3930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_cv_header_sys_wait_h=yes 3937else 3938 ac_cv_header_sys_wait_h=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 3943$as_echo "$ac_cv_header_sys_wait_h" >&6; } 3944if test $ac_cv_header_sys_wait_h = yes; then 3945 3946$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 3947 3948fi 3949 3950 3951if test -z "$CFLAGS"; then 3952 CFLAGS="-O" 3953 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 3954fi 3955if test "$GCC" = yes; then 3956 gccversion=`"$CC" -dumpversion` 3957 if test "x$gccversion" = "x"; then 3958 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 3959 fi 3960 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 3961 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 3962 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 3963 else 3964 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 3965 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 3966 CFLAGS="$CFLAGS -fno-strength-reduce" 3967 fi 3968 fi 3969fi 3970 3971if test "$cross_compiling" = yes; then 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 3973$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 3974fi 3975 3976test "$GCC" = yes && CPP_MM=M; 3977 3978if test -f ./toolcheck; then 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 3980$as_echo "$as_me: checking for buggy tools..." >&6;} 3981 sh ./toolcheck 1>&6 3982fi 3983 3984OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 3985 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 3987$as_echo_n "checking for BeOS... " >&6; } 3988case `uname` in 3989 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 3990 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3991$as_echo "yes" >&6; };; 3992 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993$as_echo "no" >&6; };; 3994esac 3995 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 3997$as_echo_n "checking for QNX... " >&6; } 3998case `uname` in 3999 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4000 test -z "$with_x" && with_x=no 4001 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4002$as_echo "yes" >&6; };; 4003 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; };; 4005esac 4006 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4008$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4009if test "`(uname) 2>/dev/null`" = Darwin; then 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4011$as_echo "yes" >&6; } 4012 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4014$as_echo_n "checking --disable-darwin argument... " >&6; } 4015 # Check whether --enable-darwin was given. 4016if test "${enable_darwin+set}" = set; then : 4017 enableval=$enable_darwin; 4018else 4019 enable_darwin="yes" 4020fi 4021 4022 if test "$enable_darwin" = "yes"; then 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4024$as_echo "no" >&6; } 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4026$as_echo_n "checking if Darwin files are there... " >&6; } 4027 if test -f os_macosx.m; then 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4029$as_echo "yes" >&6; } 4030 else 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4032$as_echo "no, Darwin support disabled" >&6; } 4033 enable_darwin=no 4034 fi 4035 else 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4037$as_echo "yes, Darwin support excluded" >&6; } 4038 fi 4039 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4041$as_echo_n "checking --with-mac-arch argument... " >&6; } 4042 4043# Check whether --with-mac-arch was given. 4044if test "${with_mac_arch+set}" = set; then : 4045 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4046$as_echo "$MACARCH" >&6; } 4047else 4048 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4049$as_echo "defaulting to $MACARCH" >&6; } 4050fi 4051 4052 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4054$as_echo_n "checking --with-developer-dir argument... " >&6; } 4055 4056# Check whether --with-developer-dir was given. 4057if test "${with_developer_dir+set}" = set; then : 4058 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4059$as_echo "$DEVELOPER_DIR" >&6; } 4060else 4061 DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4062$as_echo "not present" >&6; } 4063fi 4064 4065 4066 if test "x$DEVELOPER_DIR" = "x"; then 4067 # Extract the first word of "xcode-select", so it can be a program name with args. 4068set dummy xcode-select; ac_word=$2 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070$as_echo_n "checking for $ac_word... " >&6; } 4071if test "${ac_cv_path_XCODE_SELECT+set}" = set; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 case $XCODE_SELECT in 4075 [\\/]* | ?:[\\/]*) 4076 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4077 ;; 4078 *) 4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4086 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094 ;; 4095esac 4096fi 4097XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4098if test -n "$XCODE_SELECT"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4100$as_echo "$XCODE_SELECT" >&6; } 4101else 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 4107 if test "x$XCODE_SELECT" != "x"; then 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4109$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4110 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4112$as_echo "$DEVELOPER_DIR" >&6; } 4113 else 4114 DEVELOPER_DIR=/Developer 4115 fi 4116 fi 4117 4118 if test "x$MACARCH" = "xboth"; then 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4120$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4121 save_cppflags="$CPPFLAGS" 4122 save_cflags="$CFLAGS" 4123 save_ldflags="$LDFLAGS" 4124 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136if ac_fn_c_try_link "$LINENO"; then : 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4138$as_echo "found" >&6; } 4139else 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4141$as_echo "not found" >&6; } 4142 CFLAGS="$save_cflags" 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4144$as_echo_n "checking if Intel architecture is supported... " >&6; } 4145 CPPFLAGS="$CPPFLAGS -arch i386" 4146 LDFLAGS="$save_ldflags -arch i386" 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149 4150int 4151main () 4152{ 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158if ac_fn_c_try_link "$LINENO"; then : 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4160$as_echo "yes" >&6; }; MACARCH="intel" 4161else 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4163$as_echo "no" >&6; } 4164 MACARCH="ppc" 4165 CPPFLAGS="$save_cppflags -arch ppc" 4166 LDFLAGS="$save_ldflags -arch ppc" 4167fi 4168rm -f core conftest.err conftest.$ac_objext \ 4169 conftest$ac_exeext conftest.$ac_ext 4170fi 4171rm -f core conftest.err conftest.$ac_objext \ 4172 conftest$ac_exeext conftest.$ac_ext 4173 elif test "x$MACARCH" = "xintel"; then 4174 CPPFLAGS="$CPPFLAGS -arch intel" 4175 LDFLAGS="$LDFLAGS -arch intel" 4176 elif test "x$MACARCH" = "xppc"; then 4177 CPPFLAGS="$CPPFLAGS -arch ppc" 4178 LDFLAGS="$LDFLAGS -arch ppc" 4179 fi 4180 4181 if test "$enable_darwin" = "yes"; then 4182 MACOSX=yes 4183 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4184 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4185 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" 4186 4187 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4189 inttypes.h stdint.h unistd.h 4190do : 4191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4192ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4193" 4194eval as_val=\$$as_ac_Header 4195 if test "x$as_val" = x""yes; then : 4196 cat >>confdefs.h <<_ACEOF 4197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4198_ACEOF 4199 4200fi 4201 4202done 4203 4204 4205ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4206if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then : 4207 CARBON=yes 4208fi 4209 4210 4211 if test "x$CARBON" = "xyes"; then 4212 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then 4213 with_x=no 4214 fi 4215 fi 4216 fi 4217 4218 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4219 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4220 fi 4221 4222else 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4224$as_echo "no" >&6; } 4225fi 4226 4227 4228 4229 4230if test "$cross_compiling" = no; then 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4232$as_echo_n "checking --with-local-dir argument... " >&6; } 4233 have_local_include='' 4234 have_local_lib='' 4235 4236# Check whether --with-local-dir was given. 4237if test "${with_local_dir+set}" = set; then : 4238 withval=$with_local_dir; 4239 local_dir="$withval" 4240 case "$withval" in 4241 */*) ;; 4242 no) 4243 # avoid adding local dir to LDFLAGS and CPPFLAGS 4244 have_local_include=yes 4245 have_local_lib=yes 4246 ;; 4247 *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4248 esac 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4250$as_echo "$local_dir" >&6; } 4251 4252else 4253 4254 local_dir=/usr/local 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4256$as_echo "Defaulting to $local_dir" >&6; } 4257 4258fi 4259 4260 if test "$GCC" = yes -a "$local_dir" != no; then 4261 echo 'void f(){}' > conftest.c 4262 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4263 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4264 rm -f conftest.c conftest.o 4265 fi 4266 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4267 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4268 if test "$tt" = "$LDFLAGS"; then 4269 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4270 fi 4271 fi 4272 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4273 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4274 if test "$tt" = "$CPPFLAGS"; then 4275 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4276 fi 4277 fi 4278fi 4279 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4281$as_echo_n "checking --with-vim-name argument... " >&6; } 4282 4283# Check whether --with-vim-name was given. 4284if test "${with_vim_name+set}" = set; then : 4285 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4286$as_echo "$VIMNAME" >&6; } 4287else 4288 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4289$as_echo "Defaulting to $VIMNAME" >&6; } 4290fi 4291 4292 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4294$as_echo_n "checking --with-ex-name argument... " >&6; } 4295 4296# Check whether --with-ex-name was given. 4297if test "${with_ex_name+set}" = set; then : 4298 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4299$as_echo "$EXNAME" >&6; } 4300else 4301 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4302$as_echo "Defaulting to ex" >&6; } 4303fi 4304 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4307$as_echo_n "checking --with-view-name argument... " >&6; } 4308 4309# Check whether --with-view-name was given. 4310if test "${with_view_name+set}" = set; then : 4311 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4312$as_echo "$VIEWNAME" >&6; } 4313else 4314 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4315$as_echo "Defaulting to view" >&6; } 4316fi 4317 4318 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4321$as_echo_n "checking --with-global-runtime argument... " >&6; } 4322 4323# Check whether --with-global-runtime was given. 4324if test "${with_global_runtime+set}" = set; then : 4325 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4326$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4327#define RUNTIME_GLOBAL "$withval" 4328_ACEOF 4329 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4337$as_echo_n "checking --with-modified-by argument... " >&6; } 4338 4339# Check whether --with-modified-by was given. 4340if test "${with_modified_by+set}" = set; then : 4341 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4342$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4343#define MODIFIED_BY "$withval" 4344_ACEOF 4345 4346else 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4353$as_echo_n "checking if character set is EBCDIC... " >&6; } 4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356 4357int 4358main () 4359{ 4360 /* TryCompile function for CharSet. 4361 Treat any failure as ASCII for compatibility with existing art. 4362 Use compile-time rather than run-time tests for cross-compiler 4363 tolerance. */ 4364#if '0'!=240 4365make an error "Character set is not EBCDIC" 4366#endif 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371if ac_fn_c_try_compile "$LINENO"; then : 4372 # TryCompile action if true 4373cf_cv_ebcdic=yes 4374else 4375 # TryCompile action if false 4376cf_cv_ebcdic=no 4377fi 4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4379# end of TryCompile ]) 4380# end of CacheVal CvEbcdic 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4382$as_echo "$cf_cv_ebcdic" >&6; } 4383case "$cf_cv_ebcdic" in #(vi 4384 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4385 4386 line_break='"\\n"' 4387 ;; 4388 *) line_break='"\\012"';; 4389esac 4390 4391 4392if test "$cf_cv_ebcdic" = "yes"; then 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4394$as_echo_n "checking for z/OS Unix... " >&6; } 4395case `uname` in 4396 OS/390) zOSUnix="yes"; 4397 if test "$CC" = "cc"; then 4398 ccm="$_CC_CCMODE" 4399 ccn="CC" 4400 else 4401 if test "$CC" = "c89"; then 4402 ccm="$_CC_C89MODE" 4403 ccn="C89" 4404 else 4405 ccm=1 4406 fi 4407 fi 4408 if test "$ccm" != "1"; then 4409 echo "" 4410 echo "------------------------------------------" 4411 echo " On z/OS Unix, the environment variable" 4412 echo " __CC_${ccn}MODE must be set to \"1\"!" 4413 echo " Do:" 4414 echo " export _CC_${ccn}MODE=1" 4415 echo " and then call configure again." 4416 echo "------------------------------------------" 4417 exit 1 4418 fi 4419 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)"; 4420 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4422$as_echo "yes" >&6; } 4423 ;; 4424 *) zOSUnix="no"; 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426$as_echo "no" >&6; } 4427 ;; 4428esac 4429fi 4430 4431if test "$zOSUnix" = "yes"; then 4432 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4433else 4434 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4435fi 4436 4437 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4440$as_echo_n "checking --disable-selinux argument... " >&6; } 4441# Check whether --enable-selinux was given. 4442if test "${enable_selinux+set}" = set; then : 4443 enableval=$enable_selinux; 4444else 4445 enable_selinux="yes" 4446fi 4447 4448if test "$enable_selinux" = "yes"; then 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4452$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4453if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 ac_check_lib_save_LIBS=$LIBS 4457LIBS="-lselinux $LIBS" 4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460 4461/* Override any GCC internal prototype to avoid an error. 4462 Use char because int might match the return type of a GCC 4463 builtin and then its argument prototype would still apply. */ 4464#ifdef __cplusplus 4465extern "C" 4466#endif 4467char is_selinux_enabled (); 4468int 4469main () 4470{ 4471return is_selinux_enabled (); 4472 ; 4473 return 0; 4474} 4475_ACEOF 4476if ac_fn_c_try_link "$LINENO"; then : 4477 ac_cv_lib_selinux_is_selinux_enabled=yes 4478else 4479 ac_cv_lib_selinux_is_selinux_enabled=no 4480fi 4481rm -f core conftest.err conftest.$ac_objext \ 4482 conftest$ac_exeext conftest.$ac_ext 4483LIBS=$ac_check_lib_save_LIBS 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4486$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4487if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : 4488 LIBS="$LIBS -lselinux" 4489 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4490 4491fi 4492 4493else 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4495$as_echo "yes" >&6; } 4496fi 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4500$as_echo_n "checking --with-features argument... " >&6; } 4501 4502# Check whether --with-features was given. 4503if test "${with_features+set}" = set; then : 4504 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4505$as_echo "$features" >&6; } 4506else 4507 features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5 4508$as_echo "Defaulting to normal" >&6; } 4509fi 4510 4511 4512dovimdiff="" 4513dogvimdiff="" 4514case "$features" in 4515 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4516 ;; 4517 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4518 ;; 4519 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4520 dovimdiff="installvimdiff"; 4521 dogvimdiff="installgvimdiff" ;; 4522 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4523 dovimdiff="installvimdiff"; 4524 dogvimdiff="installgvimdiff" ;; 4525 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4526 dovimdiff="installvimdiff"; 4527 dogvimdiff="installgvimdiff" ;; 4528 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4529$as_echo "Sorry, $features is not supported" >&6; } ;; 4530esac 4531 4532 4533 4534 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4536$as_echo_n "checking --with-compiledby argument... " >&6; } 4537 4538# Check whether --with-compiledby was given. 4539if test "${with_compiledby+set}" = set; then : 4540 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4541$as_echo "$withval" >&6; } 4542else 4543 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4550$as_echo_n "checking --disable-xsmp argument... " >&6; } 4551# Check whether --enable-xsmp was given. 4552if test "${enable_xsmp+set}" = set; then : 4553 enableval=$enable_xsmp; 4554else 4555 enable_xsmp="yes" 4556fi 4557 4558 4559if test "$enable_xsmp" = "yes"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4561$as_echo "no" >&6; } 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4563$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4564 # Check whether --enable-xsmp-interact was given. 4565if test "${enable_xsmp_interact+set}" = set; then : 4566 enableval=$enable_xsmp_interact; 4567else 4568 enable_xsmp_interact="yes" 4569fi 4570 4571 if test "$enable_xsmp_interact" = "yes"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4573$as_echo "no" >&6; } 4574 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4575 4576 else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4578$as_echo "yes" >&6; } 4579 fi 4580else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4582$as_echo "yes" >&6; } 4583fi 4584 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4586$as_echo_n "checking --enable-luainterp argument... " >&6; } 4587# Check whether --enable-luainterp was given. 4588if test "${enable_luainterp+set}" = set; then : 4589 enableval=$enable_luainterp; 4590else 4591 enable_luainterp="no" 4592fi 4593 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4595$as_echo "$enable_luainterp" >&6; } 4596 4597if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4598 4599 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4601$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4602 4603# Check whether --with-lua_prefix was given. 4604if test "${with_lua_prefix+set}" = set; then : 4605 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4606$as_echo "$with_lua_prefix" >&6; } 4607else 4608 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610fi 4611 4612 4613 if test "X$with_lua_prefix" != "X"; then 4614 vi_cv_path_lua_pfx="$with_lua_prefix" 4615 else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4617$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4618 if test "X$LUA_PREFIX" != "X"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4620$as_echo "\"$LUA_PREFIX\"" >&6; } 4621 vi_cv_path_lua_pfx="$LUA_PREFIX" 4622 else 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4624$as_echo "not set, default to /usr" >&6; } 4625 vi_cv_path_lua_pfx="/usr" 4626 fi 4627 fi 4628 4629 LUA_INC= 4630 if test "X$vi_cv_path_lua_pfx" != "X"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 4632$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 4633 if test -f $vi_cv_path_lua_pfx/include/lua.h; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4635$as_echo "yes" >&6; } 4636 else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4638$as_echo "no" >&6; } 4639 # Extract the first word of "lua", so it can be a program name with args. 4640set dummy lua; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 case $vi_cv_path_lua in 4647 [\\/]* | ?:[\\/]*) 4648 ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path. 4649 ;; 4650 *) 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4658 ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext" 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662done 4663 done 4664IFS=$as_save_IFS 4665 4666 ;; 4667esac 4668fi 4669vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua 4670if test -n "$vi_cv_path_lua"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_lua" >&5 4672$as_echo "$vi_cv_path_lua" >&6; } 4673else 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4675$as_echo "no" >&6; } 4676fi 4677 4678 4679 if test "X$vi_cv_path_lua" != "X"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 4681$as_echo_n "checking Lua version... " >&6; } 4682if test "${vi_cv_version_lua+set}" = set; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //'` 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5 4688$as_echo "$vi_cv_version_lua" >&6; } 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 4690$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 4691 if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4693$as_echo "yes" >&6; } 4694 LUA_INC=/lua$vi_cv_version_lua 4695 else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698 vi_cv_path_lua_pfx= 4699 fi 4700 fi 4701 fi 4702 fi 4703 4704 if test "X$vi_cv_path_lua_pfx" != "X"; then 4705 if test "X$vi_cv_version_lua" != "X"; then 4706 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 4707 else 4708 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 4709 fi 4710 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 4711 LUA_SRC="if_lua.c" 4712 LUA_OBJ="objects/if_lua.o" 4713 LUA_PRO="if_lua.pro" 4714 $as_echo "#define FEAT_LUA 1" >>confdefs.h 4715 4716 if test "$enable_luainterp" = "dynamic"; then 4717 for i in 0 1 2 3 4 5 6 7 8 9; do 4718 if test -f "${vi_cv_path_lua_pfx}/lib/liblua${vi_cv_version_lua}.so.$i"; then 4719 LUA_SONAME=".$i" 4720 break 4721 fi 4722 done 4723 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 4724 4725 LUA_LIBS="" 4726 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS" 4727 fi 4728 fi 4729 4730 4731 4732 4733 4734fi 4735 4736 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 4738$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 4739# Check whether --enable-mzschemeinterp was given. 4740if test "${enable_mzschemeinterp+set}" = set; then : 4741 enableval=$enable_mzschemeinterp; 4742else 4743 enable_mzschemeinterp="no" 4744fi 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 4747$as_echo "$enable_mzschemeinterp" >&6; } 4748 4749if test "$enable_mzschemeinterp" = "yes"; then 4750 4751 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 4753$as_echo_n "checking --with-plthome argument... " >&6; } 4754 4755# Check whether --with-plthome was given. 4756if test "${with_plthome+set}" = set; then : 4757 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 4758$as_echo "$with_plthome" >&6; } 4759else 4760 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 4761$as_echo "\"no\"" >&6; } 4762fi 4763 4764 4765 if test "X$with_plthome" != "X"; then 4766 vi_cv_path_mzscheme_pfx="$with_plthome" 4767 else 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 4769$as_echo_n "checking PLTHOME environment var... " >&6; } 4770 if test "X$PLTHOME" != "X"; then 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 4772$as_echo "\"$PLTHOME\"" >&6; } 4773 vi_cv_path_mzscheme_pfx="$PLTHOME" 4774 else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 4776$as_echo "not set" >&6; } 4777 # Extract the first word of "mzscheme", so it can be a program name with args. 4778set dummy mzscheme; ac_word=$2 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780$as_echo_n "checking for $ac_word... " >&6; } 4781if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 case $vi_cv_path_mzscheme in 4785 [\\/]* | ?:[\\/]*) 4786 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 4787 ;; 4788 *) 4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4790for as_dir in $PATH 4791do 4792 IFS=$as_save_IFS 4793 test -z "$as_dir" && as_dir=. 4794 for ac_exec_ext in '' $ac_executable_extensions; do 4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4796 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4798 break 2 4799 fi 4800done 4801 done 4802IFS=$as_save_IFS 4803 4804 ;; 4805esac 4806fi 4807vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 4808if test -n "$vi_cv_path_mzscheme"; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 4810$as_echo "$vi_cv_path_mzscheme" >&6; } 4811else 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813$as_echo "no" >&6; } 4814fi 4815 4816 4817 4818 if test "X$vi_cv_path_mzscheme" != "X"; then 4819 lsout=`ls -l $vi_cv_path_mzscheme` 4820 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 4821 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 4822 fi 4823 fi 4824 4825 if test "X$vi_cv_path_mzscheme" != "X"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 4827$as_echo_n "checking MzScheme install prefix... " >&6; } 4828if test "${vi_cv_path_mzscheme_pfx+set}" = set; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 echo "(display (simplify-path \ 4832 (build-path (call-with-values \ 4833 (lambda () (split-path (find-system-path (quote exec-file)))) \ 4834 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 4835 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 4836 sed -e 's+/$++'` 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 4839$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 4840 rm -f mzdirs.scm 4841 fi 4842 fi 4843 fi 4844 4845 SCHEME_INC= 4846 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 4848$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 4849 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then 4850 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4852$as_echo "yes" >&6; } 4853 else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855$as_echo "no" >&6; } 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 4857$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 4858 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4860$as_echo "yes" >&6; } 4861 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 4862 else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 4866$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 4867 if test -f /usr/include/plt/scheme.h; then 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4869$as_echo "yes" >&6; } 4870 SCHEME_INC=/usr/include/plt 4871 else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874 vi_cv_path_mzscheme_pfx= 4875 fi 4876 fi 4877 fi 4878 fi 4879 4880 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4881 if test "x$MACOSX" = "xyes"; then 4882 MZSCHEME_LIBS="-framework PLT_MzScheme" 4883 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then 4884 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" 4885 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4886 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then 4887 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" 4888 else 4889 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then 4890 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" 4891 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 4892 else 4893 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" 4894 fi 4895 if test "$GCC" = yes; then 4896 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" 4897 elif test "`(uname) 2>/dev/null`" = SunOS && 4898 uname -r | grep '^5' >/dev/null; then 4899 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" 4900 fi 4901 fi 4902 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then 4903 SCHEME_COLLECTS=lib/plt/ 4904 fi 4905 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 4906 MZSCHEME_EXTRA="mzscheme_base.c" 4907 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 4908 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 4909 fi 4910 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 4911 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" 4912 MZSCHEME_SRC="if_mzsch.c" 4913 MZSCHEME_OBJ="objects/if_mzsch.o" 4914 MZSCHEME_PRO="if_mzsch.pro" 4915 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 4916 4917 fi 4918 4919 4920 4921 4922 4923 4924 4925fi 4926 4927 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 4929$as_echo_n "checking --enable-perlinterp argument... " >&6; } 4930# Check whether --enable-perlinterp was given. 4931if test "${enable_perlinterp+set}" = set; then : 4932 enableval=$enable_perlinterp; 4933else 4934 enable_perlinterp="no" 4935fi 4936 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 4938$as_echo "$enable_perlinterp" >&6; } 4939if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 4940 4941 # Extract the first word of "perl", so it can be a program name with args. 4942set dummy perl; ac_word=$2 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4944$as_echo_n "checking for $ac_word... " >&6; } 4945if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 case $vi_cv_path_perl in 4949 [\\/]* | ?:[\\/]*) 4950 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 4951 ;; 4952 *) 4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4960 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4962 break 2 4963 fi 4964done 4965 done 4966IFS=$as_save_IFS 4967 4968 ;; 4969esac 4970fi 4971vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 4972if test -n "$vi_cv_path_perl"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 4974$as_echo "$vi_cv_path_perl" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 4981 if test "X$vi_cv_path_perl" != "X"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 4983$as_echo_n "checking Perl version... " >&6; } 4984 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 4985 eval `$vi_cv_path_perl -V:usethreads` 4986 eval `$vi_cv_path_perl -V:libperl` 4987 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 4988 badthreads=no 4989 else 4990 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 4991 eval `$vi_cv_path_perl -V:use5005threads` 4992 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 4993 badthreads=no 4994 else 4995 badthreads=yes 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 4997$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 4998 fi 4999 else 5000 badthreads=yes 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5002$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5003 fi 5004 fi 5005 if test $badthreads = no; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5007$as_echo "OK" >&6; } 5008 eval `$vi_cv_path_perl -V:shrpenv` 5009 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5010 shrpenv="" 5011 fi 5012 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5013 5014 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5015 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` 5016 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5017 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5018 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5019 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5020 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5021 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5023$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5024 cflags_save=$CFLAGS 5025 libs_save=$LIBS 5026 ldflags_save=$LDFLAGS 5027 CFLAGS="$CFLAGS $perlcppflags" 5028 LIBS="$LIBS $perllibs" 5029 LDFLAGS="$perlldflags $LDFLAGS" 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032 5033int 5034main () 5035{ 5036 5037 ; 5038 return 0; 5039} 5040_ACEOF 5041if ac_fn_c_try_link "$LINENO"; then : 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5043$as_echo "yes" >&6; }; perl_ok=yes 5044else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5046$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5047fi 5048rm -f core conftest.err conftest.$ac_objext \ 5049 conftest$ac_exeext conftest.$ac_ext 5050 CFLAGS=$cflags_save 5051 LIBS=$libs_save 5052 LDFLAGS=$ldflags_save 5053 if test $perl_ok = yes; then 5054 if test "X$perlcppflags" != "X"; then 5055 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5056 fi 5057 if test "X$perlldflags" != "X"; then 5058 LDFLAGS="$perlldflags $LDFLAGS" 5059 fi 5060 PERL_LIBS=$perllibs 5061 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5062 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5063 PERL_PRO="if_perl.pro if_perlsfio.pro" 5064 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5065 5066 fi 5067 fi 5068 else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5070$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5071 fi 5072 fi 5073 5074 if test "x$MACOSX" = "xyes"; then 5075 dir=/System/Library/Perl 5076 darwindir=$dir/darwin 5077 if test -d $darwindir; then 5078 PERL=/usr/bin/perl 5079 else 5080 dir=/System/Library/Perl/5.8.1 5081 darwindir=$dir/darwin-thread-multi-2level 5082 if test -d $darwindir; then 5083 PERL=/usr/bin/perl 5084 fi 5085 fi 5086 if test -n "$PERL"; then 5087 PERL_DIR="$dir" 5088 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5089 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5090 PERL_LIBS="-L$darwindir/CORE -lperl" 5091 fi 5092 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5093 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5094 fi 5095 if test "$enable_perlinterp" = "dynamic"; then 5096 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5097 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5098 5099 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5100 fi 5101 fi 5102fi 5103 5104 5105 5106 5107 5108 5109 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5111$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5112# Check whether --enable-pythoninterp was given. 5113if test "${enable_pythoninterp+set}" = set; then : 5114 enableval=$enable_pythoninterp; 5115else 5116 enable_pythoninterp="no" 5117fi 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5120$as_echo "$enable_pythoninterp" >&6; } 5121if test "$enable_pythoninterp" = "yes"; then 5122 # Extract the first word of "python", so it can be a program name with args. 5123set dummy python; ac_word=$2 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5125$as_echo_n "checking for $ac_word... " >&6; } 5126if test "${ac_cv_path_vi_cv_path_python+set}" = set; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 case $vi_cv_path_python in 5130 [\\/]* | ?:[\\/]*) 5131 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5132 ;; 5133 *) 5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5135for as_dir in $PATH 5136do 5137 IFS=$as_save_IFS 5138 test -z "$as_dir" && as_dir=. 5139 for ac_exec_ext in '' $ac_executable_extensions; do 5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5141 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5143 break 2 5144 fi 5145done 5146 done 5147IFS=$as_save_IFS 5148 5149 ;; 5150esac 5151fi 5152vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5153if test -n "$vi_cv_path_python"; then 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5155$as_echo "$vi_cv_path_python" >&6; } 5156else 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5158$as_echo "no" >&6; } 5159fi 5160 5161 5162 if test "X$vi_cv_path_python" != "X"; then 5163 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5165$as_echo_n "checking Python version... " >&6; } 5166if test "${vi_cv_var_python_version+set}" = set; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 vi_cv_var_python_version=` 5170 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5171 5172fi 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5174$as_echo "$vi_cv_var_python_version" >&6; } 5175 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5 5177$as_echo_n "checking Python is 1.4 or better... " >&6; } 5178 if ${vi_cv_path_python} -c \ 5179 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 5180 then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5182$as_echo "yep" >&6; } 5183 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5185$as_echo_n "checking Python's install prefix... " >&6; } 5186if test "${vi_cv_path_python_pfx+set}" = set; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 vi_cv_path_python_pfx=` 5190 ${vi_cv_path_python} -c \ 5191 "import sys; print sys.prefix"` 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5194$as_echo "$vi_cv_path_python_pfx" >&6; } 5195 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5197$as_echo_n "checking Python's execution prefix... " >&6; } 5198if test "${vi_cv_path_python_epfx+set}" = set; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 vi_cv_path_python_epfx=` 5202 ${vi_cv_path_python} -c \ 5203 "import sys; print sys.exec_prefix"` 5204fi 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5206$as_echo "$vi_cv_path_python_epfx" >&6; } 5207 5208 5209 if test "${vi_cv_path_pythonpath+set}" = set; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 vi_cv_path_pythonpath=` 5213 unset PYTHONPATH; 5214 ${vi_cv_path_python} -c \ 5215 "import sys, string; print string.join(sys.path,':')"` 5216fi 5217 5218 5219 5220 5221# Check whether --with-python-config-dir was given. 5222if test "${with_python_config_dir+set}" = set; then : 5223 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5224fi 5225 5226 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5228$as_echo_n "checking Python's configuration directory... " >&6; } 5229if test "${vi_cv_path_python_conf+set}" = set; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 5233 vi_cv_path_python_conf= 5234 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5235 for subdir in lib64 lib share; do 5236 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5237 if test -d "$d" && test -f "$d/config.c"; then 5238 vi_cv_path_python_conf="$d" 5239 fi 5240 done 5241 done 5242 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5245$as_echo "$vi_cv_path_python_conf" >&6; } 5246 5247 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5248 5249 if test "X$PYTHON_CONFDIR" = "X"; then 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5251$as_echo "can't find it!" >&6; } 5252 else 5253 5254 if test "${vi_cv_path_python_plibs+set}" = set; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 5258 pwd=`pwd` 5259 tmp_mkf="$pwd/config-PyMake$$" 5260 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5261__: 5262 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5263 @echo "python_LIBS='$(LIBS)'" 5264 @echo "python_SYSLIBS='$(SYSLIBS)'" 5265 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5266 @echo "python_INSTSONAME='$(INSTSONAME)'" 5267eof 5268 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5269 rm -f -- "${tmp_mkf}" 5270 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5271 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5272 vi_cv_path_python_plibs="-framework Python" 5273 else 5274 if test "${vi_cv_var_python_version}" = "1.4"; then 5275 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5276 else 5277 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5278 fi 5279 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5280 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5281 fi 5282 5283fi 5284 5285 5286 PYTHON_LIBS="${vi_cv_path_python_plibs}" 5287 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 5288 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 5289 else 5290 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}" 5291 fi 5292 PYTHON_SRC="if_python.c" 5293 if test "x$MACOSX" = "xyes"; then 5294 PYTHON_OBJ="objects/if_python.o" 5295 else 5296 PYTHON_OBJ="objects/if_python.o objects/py_config.o" 5297 fi 5298 if test "${vi_cv_var_python_version}" = "1.4"; then 5299 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 5300 fi 5301 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 5302 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5304$as_echo_n "checking if -pthread should be used... " >&6; } 5305 threadsafe_flag= 5306 thread_lib= 5307 if test "`(uname) 2>/dev/null`" != Darwin; then 5308 test "$GCC" = yes && threadsafe_flag="-pthread" 5309 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5310 threadsafe_flag="-D_THREAD_SAFE" 5311 thread_lib="-pthread" 5312 fi 5313 fi 5314 libs_save_old=$LIBS 5315 if test -n "$threadsafe_flag"; then 5316 cflags_save=$CFLAGS 5317 CFLAGS="$CFLAGS $threadsafe_flag" 5318 LIBS="$LIBS $thread_lib" 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321 5322int 5323main () 5324{ 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_link "$LINENO"; then : 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5332$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; }; LIBS=$libs_save_old 5336 5337fi 5338rm -f core conftest.err conftest.$ac_objext \ 5339 conftest$ac_exeext conftest.$ac_ext 5340 CFLAGS=$cflags_save 5341 else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344 fi 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 5347$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 5348 cflags_save=$CFLAGS 5349 libs_save=$LIBS 5350 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 5351 LIBS="$LIBS $PYTHON_LIBS" 5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353/* end confdefs.h. */ 5354 5355int 5356main () 5357{ 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363if ac_fn_c_try_link "$LINENO"; then : 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5365$as_echo "yes" >&6; }; python_ok=yes 5366else 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 5368$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372 CFLAGS=$cflags_save 5373 LIBS=$libs_save 5374 if test $python_ok = yes; then 5375 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 5376 5377 else 5378 LIBS=$libs_save_old 5379 PYTHON_SRC= 5380 PYTHON_OBJ= 5381 PYTHON_LIBS= 5382 PYTHON_CFLAGS= 5383 fi 5384 5385 fi 5386 else 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 5388$as_echo "too old" >&6; } 5389 fi 5390 fi 5391fi 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 5402$as_echo_n "checking --enable-python3interp argument... " >&6; } 5403# Check whether --enable-python3interp was given. 5404if test "${enable_python3interp+set}" = set; then : 5405 enableval=$enable_python3interp; 5406else 5407 enable_python3interp="no" 5408fi 5409 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 5411$as_echo "$enable_python3interp" >&6; } 5412if test "$enable_python3interp" = "yes"; then 5413 # Extract the first word of "python3", so it can be a program name with args. 5414set dummy python3; ac_word=$2 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5416$as_echo_n "checking for $ac_word... " >&6; } 5417if test "${ac_cv_path_vi_cv_path_python3+set}" = set; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 case $vi_cv_path_python3 in 5421 [\\/]* | ?:[\\/]*) 5422 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 5423 ;; 5424 *) 5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5432 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437 done 5438IFS=$as_save_IFS 5439 5440 ;; 5441esac 5442fi 5443vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 5444if test -n "$vi_cv_path_python3"; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 5446$as_echo "$vi_cv_path_python3" >&6; } 5447else 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5449$as_echo "no" >&6; } 5450fi 5451 5452 5453 if test "X$vi_cv_path_python3" != "X"; then 5454 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5456$as_echo_n "checking Python version... " >&6; } 5457if test "${vi_cv_var_python3_version+set}" = set; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 vi_cv_var_python3_version=` 5461 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 5462 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 5465$as_echo "$vi_cv_var_python3_version" >&6; } 5466 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5468$as_echo_n "checking Python's install prefix... " >&6; } 5469if test "${vi_cv_path_python3_pfx+set}" = set; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 vi_cv_path_python3_pfx=` 5473 ${vi_cv_path_python3} -c \ 5474 "import sys; print(sys.prefix)"` 5475fi 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 5477$as_echo "$vi_cv_path_python3_pfx" >&6; } 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5480$as_echo_n "checking Python's execution prefix... " >&6; } 5481if test "${vi_cv_path_python3_epfx+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 vi_cv_path_python3_epfx=` 5485 ${vi_cv_path_python3} -c \ 5486 "import sys; print(sys.exec_prefix)"` 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 5489$as_echo "$vi_cv_path_python3_epfx" >&6; } 5490 5491 5492 if test "${vi_cv_path_python3path+set}" = set; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 vi_cv_path_python3path=` 5496 unset PYTHONPATH; 5497 ${vi_cv_path_python3} -c \ 5498 "import sys, string; print(':'.join(sys.path))"` 5499fi 5500 5501 5502 5503 5504# Check whether --with-python3-config-dir was given. 5505if test "${with_python3_config_dir+set}" = set; then : 5506 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 5507fi 5508 5509 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5511$as_echo_n "checking Python's configuration directory... " >&6; } 5512if test "${vi_cv_path_python3_conf+set}" = set; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 5516 vi_cv_path_python3_conf= 5517 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 5518 for subdir in lib64 lib share; do 5519 d="${path}/${subdir}/python${vi_cv_var_python3_version}/config" 5520 if test -d "$d" && test -f "$d/config.c"; then 5521 vi_cv_path_python3_conf="$d" 5522 fi 5523 done 5524 done 5525 5526fi 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 5528$as_echo "$vi_cv_path_python3_conf" >&6; } 5529 5530 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 5531 5532 if test "X$PYTHON3_CONFDIR" = "X"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5534$as_echo "can't find it!" >&6; } 5535 else 5536 5537 if test "${vi_cv_path_python3_plibs+set}" = set; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 5541 pwd=`pwd` 5542 tmp_mkf="$pwd/config-PyMake$$" 5543 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5544__: 5545 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 5546 @echo "python3_LIBS='$(LIBS)'" 5547 @echo "python3_SYSLIBS='$(SYSLIBS)'" 5548 @echo "python3_LINKFORSHARED='$(LINKFORSHARED)'" 5549 @echo "python3_INSTSONAME='$(INSTSONAME)'" 5550eof 5551 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5552 rm -f -- "${tmp_mkf}" 5553 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}" 5554 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS} ${python3_LINKFORSHARED}" 5555 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 5556 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 5557 5558fi 5559 5560 5561 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 5562 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 5563 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}" 5564 else 5565 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}" 5566 fi 5567 PYTHON3_SRC="if_python3.c" 5568 if test "x$MACOSX" = "xyes"; then 5569 PYTHON3_OBJ="objects/if_python3.o" 5570 else 5571 PYTHON3_OBJ="objects/if_python3.o objects/py3_config.o" 5572 fi 5573 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 5575$as_echo_n "checking if -pthread should be used... " >&6; } 5576 threadsafe_flag= 5577 thread_lib= 5578 if test "`(uname) 2>/dev/null`" != Darwin; then 5579 test "$GCC" = yes && threadsafe_flag="-pthread" 5580 if test "`(uname) 2>/dev/null`" = FreeBSD; then 5581 threadsafe_flag="-D_THREAD_SAFE" 5582 thread_lib="-pthread" 5583 fi 5584 fi 5585 libs_save_old=$LIBS 5586 if test -n "$threadsafe_flag"; then 5587 cflags_save=$CFLAGS 5588 CFLAGS="$CFLAGS $threadsafe_flag" 5589 LIBS="$LIBS $thread_lib" 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO"; then : 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5603$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; }; LIBS=$libs_save_old 5607 5608fi 5609rm -f core conftest.err conftest.$ac_objext \ 5610 conftest$ac_exeext conftest.$ac_ext 5611 CFLAGS=$cflags_save 5612 else 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5614$as_echo "no" >&6; } 5615 fi 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 5618$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 5619 cflags_save=$CFLAGS 5620 libs_save=$LIBS 5621 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 5622 LIBS="$LIBS $PYTHON3_LIBS" 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5636$as_echo "yes" >&6; }; python3_ok=yes 5637else 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 5639$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 5640fi 5641rm -f core conftest.err conftest.$ac_objext \ 5642 conftest$ac_exeext conftest.$ac_ext 5643 CFLAGS=$cflags_save 5644 LIBS=$libs_save 5645 if test "$python3_ok" = yes; then 5646 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 5647 5648 else 5649 LIBS=$libs_save_old 5650 PYTHON3_SRC= 5651 PYTHON3_OBJ= 5652 PYTHON3_LIBS= 5653 PYTHON3_CFLAGS= 5654 fi 5655 fi 5656 fi 5657fi 5658 5659 5660 5661 5662 5663 5664 5665if test "$python_ok" = yes && test "$python3_ok" = yes; then 5666 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 5667 5668 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 5669 5670 PYTHON_SRC="if_python.c" 5671 PYTHON_OBJ="objects/if_python.o" 5672 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${python_INSTSONAME}\\\"" 5673 PYTHON_LIBS= 5674 PYTHON3_SRC="if_python3.c" 5675 PYTHON3_OBJ="objects/if_python3.o" 5676 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${python3_INSTSONAME}\\\"" 5677 PYTHON3_LIBS= 5678fi 5679 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 5681$as_echo_n "checking --enable-tclinterp argument... " >&6; } 5682# Check whether --enable-tclinterp was given. 5683if test "${enable_tclinterp+set}" = set; then : 5684 enableval=$enable_tclinterp; 5685else 5686 enable_tclinterp="no" 5687fi 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 5690$as_echo "$enable_tclinterp" >&6; } 5691 5692if test "$enable_tclinterp" = "yes"; then 5693 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 5695$as_echo_n "checking --with-tclsh argument... " >&6; } 5696 5697# Check whether --with-tclsh was given. 5698if test "${with_tclsh+set}" = set; then : 5699 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 5700$as_echo "$tclsh_name" >&6; } 5701else 5702 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703$as_echo "no" >&6; } 5704fi 5705 5706 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5707set dummy $tclsh_name; ac_word=$2 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5709$as_echo_n "checking for $ac_word... " >&6; } 5710if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5711 $as_echo_n "(cached) " >&6 5712else 5713 case $vi_cv_path_tcl in 5714 [\\/]* | ?:[\\/]*) 5715 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5716 ;; 5717 *) 5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719for as_dir in $PATH 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5725 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733 ;; 5734esac 5735fi 5736vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5737if test -n "$vi_cv_path_tcl"; then 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5739$as_echo "$vi_cv_path_tcl" >&6; } 5740else 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5742$as_echo "no" >&6; } 5743fi 5744 5745 5746 5747 5748 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 5749 tclsh_name="tclsh8.4" 5750 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5751set dummy $tclsh_name; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 case $vi_cv_path_tcl in 5758 [\\/]* | ?:[\\/]*) 5759 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5760 ;; 5761 *) 5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763for as_dir in $PATH 5764do 5765 IFS=$as_save_IFS 5766 test -z "$as_dir" && as_dir=. 5767 for ac_exec_ext in '' $ac_executable_extensions; do 5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5769 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5771 break 2 5772 fi 5773done 5774 done 5775IFS=$as_save_IFS 5776 5777 ;; 5778esac 5779fi 5780vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5781if test -n "$vi_cv_path_tcl"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5783$as_echo "$vi_cv_path_tcl" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 5790 fi 5791 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 5792 tclsh_name="tclsh8.2" 5793 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5794set dummy $tclsh_name; ac_word=$2 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5796$as_echo_n "checking for $ac_word... " >&6; } 5797if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 case $vi_cv_path_tcl in 5801 [\\/]* | ?:[\\/]*) 5802 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5803 ;; 5804 *) 5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH 5807do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5812 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816done 5817 done 5818IFS=$as_save_IFS 5819 5820 ;; 5821esac 5822fi 5823vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5824if test -n "$vi_cv_path_tcl"; then 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5826$as_echo "$vi_cv_path_tcl" >&6; } 5827else 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5829$as_echo "no" >&6; } 5830fi 5831 5832 5833 fi 5834 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 5835 tclsh_name="tclsh8.0" 5836 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5837set dummy $tclsh_name; ac_word=$2 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5839$as_echo_n "checking for $ac_word... " >&6; } 5840if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5841 $as_echo_n "(cached) " >&6 5842else 5843 case $vi_cv_path_tcl in 5844 [\\/]* | ?:[\\/]*) 5845 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5846 ;; 5847 *) 5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849for as_dir in $PATH 5850do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5855 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859done 5860 done 5861IFS=$as_save_IFS 5862 5863 ;; 5864esac 5865fi 5866vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5867if test -n "$vi_cv_path_tcl"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5869$as_echo "$vi_cv_path_tcl" >&6; } 5870else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 5876 fi 5877 if test "X$vi_cv_path_tcl" = "X"; then 5878 tclsh_name="tclsh" 5879 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5880set dummy $tclsh_name; ac_word=$2 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5882$as_echo_n "checking for $ac_word... " >&6; } 5883if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 case $vi_cv_path_tcl in 5887 [\\/]* | ?:[\\/]*) 5888 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5889 ;; 5890 *) 5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892for as_dir in $PATH 5893do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5898 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902done 5903 done 5904IFS=$as_save_IFS 5905 5906 ;; 5907esac 5908fi 5909vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5910if test -n "$vi_cv_path_tcl"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 5912$as_echo "$vi_cv_path_tcl" >&6; } 5913else 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915$as_echo "no" >&6; } 5916fi 5917 5918 5919 fi 5920 if test "X$vi_cv_path_tcl" != "X"; then 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 5922$as_echo_n "checking Tcl version... " >&6; } 5923 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 5924 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 5926$as_echo "$tclver - OK" >&6; }; 5927 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 -` 5928 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 5930$as_echo_n "checking for location of Tcl include... " >&6; } 5931 if test "x$MACOSX" != "xyes"; then 5932 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 5933 else 5934 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 5935 fi 5936 TCL_INC= 5937 for try in $tclinc; do 5938 if test -f "$try/tcl.h"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 5940$as_echo "$try/tcl.h" >&6; } 5941 TCL_INC=$try 5942 break 5943 fi 5944 done 5945 if test -z "$TCL_INC"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5947$as_echo "<not found>" >&6; } 5948 SKIP_TCL=YES 5949 fi 5950 if test -z "$SKIP_TCL"; then 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 5952$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 5953 if test "x$MACOSX" != "xyes"; then 5954 tclcnf=`echo $tclinc | sed s/include/lib/g` 5955 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 5956 else 5957 tclcnf="/System/Library/Frameworks/Tcl.framework" 5958 fi 5959 for try in $tclcnf; do 5960 if test -f $try/tclConfig.sh; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 5962$as_echo "$try/tclConfig.sh" >&6; } 5963 . $try/tclConfig.sh 5964 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 5965 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'` 5966 break 5967 fi 5968 done 5969 if test -z "$TCL_LIBS"; then 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5971$as_echo "<not found>" >&6; } 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 5973$as_echo_n "checking for Tcl library by myself... " >&6; } 5974 tcllib=`echo $tclinc | sed s/include/lib/g` 5975 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 5976 for ext in .so .a ; do 5977 for ver in "" $tclver ; do 5978 for try in $tcllib ; do 5979 trylib=tcl$ver$ext 5980 if test -f $try/lib$trylib ; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 5982$as_echo "$try/lib$trylib" >&6; } 5983 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 5984 if test "`(uname) 2>/dev/null`" = SunOS && 5985 uname -r | grep '^5' >/dev/null; then 5986 TCL_LIBS="$TCL_LIBS -R $try" 5987 fi 5988 break 3 5989 fi 5990 done 5991 done 5992 done 5993 if test -z "$TCL_LIBS"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 5995$as_echo "<not found>" >&6; } 5996 SKIP_TCL=YES 5997 fi 5998 fi 5999 if test -z "$SKIP_TCL"; then 6000 $as_echo "#define FEAT_TCL 1" >>confdefs.h 6001 6002 TCL_SRC=if_tcl.c 6003 TCL_OBJ=objects/if_tcl.o 6004 TCL_PRO=if_tcl.pro 6005 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 6006 fi 6007 fi 6008 else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 6010$as_echo "too old; need Tcl version 8.0 or later" >&6; } 6011 fi 6012 fi 6013fi 6014 6015 6016 6017 6018 6019 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 6021$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 6022# Check whether --enable-rubyinterp was given. 6023if test "${enable_rubyinterp+set}" = set; then : 6024 enableval=$enable_rubyinterp; 6025else 6026 enable_rubyinterp="no" 6027fi 6028 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 6030$as_echo "$enable_rubyinterp" >&6; } 6031if test "$enable_rubyinterp" = "yes"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 6033$as_echo_n "checking --with-ruby-command argument... " >&6; } 6034 6035# Check whether --with-ruby-command was given. 6036if test "${with_ruby_command+set}" = set; then : 6037 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 6038$as_echo "$RUBY_CMD" >&6; } 6039else 6040 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 6041$as_echo "defaulting to $RUBY_CMD" >&6; } 6042fi 6043 6044 6045 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 6046set dummy $RUBY_CMD; ac_word=$2 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048$as_echo_n "checking for $ac_word... " >&6; } 6049if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 case $vi_cv_path_ruby in 6053 [\\/]* | ?:[\\/]*) 6054 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 6055 ;; 6056 *) 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6064 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069 done 6070IFS=$as_save_IFS 6071 6072 ;; 6073esac 6074fi 6075vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 6076if test -n "$vi_cv_path_ruby"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 6078$as_echo "$vi_cv_path_ruby" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 6085 if test "X$vi_cv_path_ruby" != "X"; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 6087$as_echo_n "checking Ruby version... " >&6; } 6088 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6090$as_echo "OK" >&6; } 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 6092$as_echo_n "checking Ruby header files... " >&6; } 6093 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 6094 if test "X$rubyhdrdir" != "X"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 6096$as_echo "$rubyhdrdir" >&6; } 6097 RUBY_CFLAGS="-I$rubyhdrdir" 6098 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` 6099 if test -d "$rubyhdrdir/$rubyarch"; then 6100 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" 6101 fi 6102 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'` 6103 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 6104 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` 6105 if test "X$rubylibs" != "X"; then 6106 RUBY_LIBS="$rubylibs" 6107 fi 6108 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` 6109 if test -f "$rubyhdrdir/$librubyarg"; then 6110 librubyarg="$rubyhdrdir/$librubyarg" 6111 else 6112 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` 6113 if test -f "$rubylibdir/$librubyarg"; then 6114 librubyarg="$rubylibdir/$librubyarg" 6115 elif test "$librubyarg" = "libruby.a"; then 6116 librubyarg="-lruby" 6117 else 6118 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` 6119 fi 6120 fi 6121 6122 if test "X$librubyarg" != "X"; then 6123 RUBY_LIBS="$librubyarg $RUBY_LIBS" 6124 fi 6125 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` 6126 if test "X$rubyldflags" != "X"; then 6127 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6128 if test "X$rubyldflags" != "X"; then 6129 LDFLAGS="$rubyldflags $LDFLAGS" 6130 fi 6131 fi 6132 RUBY_SRC="if_ruby.c" 6133 RUBY_OBJ="objects/if_ruby.o" 6134 RUBY_PRO="if_ruby.pro" 6135 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 6136 6137 else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 6139$as_echo "not found; disabling Ruby" >&6; } 6140 fi 6141 else 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 6143$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 6144 fi 6145 fi 6146fi 6147 6148 6149 6150 6151 6152 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 6154$as_echo_n "checking --enable-cscope argument... " >&6; } 6155# Check whether --enable-cscope was given. 6156if test "${enable_cscope+set}" = set; then : 6157 enableval=$enable_cscope; 6158else 6159 enable_cscope="no" 6160fi 6161 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 6163$as_echo "$enable_cscope" >&6; } 6164if test "$enable_cscope" = "yes"; then 6165 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 6166 6167fi 6168 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 6170$as_echo_n "checking --enable-workshop argument... " >&6; } 6171# Check whether --enable-workshop was given. 6172if test "${enable_workshop+set}" = set; then : 6173 enableval=$enable_workshop; 6174else 6175 enable_workshop="no" 6176fi 6177 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 6179$as_echo "$enable_workshop" >&6; } 6180if test "$enable_workshop" = "yes"; then 6181 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 6182 6183 WORKSHOP_SRC="workshop.c integration.c" 6184 6185 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 6186 6187 if test "${enable_gui-xxx}" = xxx; then 6188 enable_gui=motif 6189 fi 6190fi 6191 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 6193$as_echo_n "checking --disable-netbeans argument... " >&6; } 6194# Check whether --enable-netbeans was given. 6195if test "${enable_netbeans+set}" = set; then : 6196 enableval=$enable_netbeans; 6197else 6198 enable_netbeans="yes" 6199fi 6200 6201if test "$enable_netbeans" = "yes"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6203$as_echo "no" >&6; } 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 6205$as_echo_n "checking for socket in -lsocket... " >&6; } 6206if test "${ac_cv_lib_socket_socket+set}" = set; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 ac_check_lib_save_LIBS=$LIBS 6210LIBS="-lsocket $LIBS" 6211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213 6214/* Override any GCC internal prototype to avoid an error. 6215 Use char because int might match the return type of a GCC 6216 builtin and then its argument prototype would still apply. */ 6217#ifdef __cplusplus 6218extern "C" 6219#endif 6220char socket (); 6221int 6222main () 6223{ 6224return socket (); 6225 ; 6226 return 0; 6227} 6228_ACEOF 6229if ac_fn_c_try_link "$LINENO"; then : 6230 ac_cv_lib_socket_socket=yes 6231else 6232 ac_cv_lib_socket_socket=no 6233fi 6234rm -f core conftest.err conftest.$ac_objext \ 6235 conftest$ac_exeext conftest.$ac_ext 6236LIBS=$ac_check_lib_save_LIBS 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 6239$as_echo "$ac_cv_lib_socket_socket" >&6; } 6240if test "x$ac_cv_lib_socket_socket" = x""yes; then : 6241 cat >>confdefs.h <<_ACEOF 6242#define HAVE_LIBSOCKET 1 6243_ACEOF 6244 6245 LIBS="-lsocket $LIBS" 6246 6247fi 6248 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6250$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6251if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 ac_check_lib_save_LIBS=$LIBS 6255LIBS="-lnsl $LIBS" 6256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257/* end confdefs.h. */ 6258 6259/* Override any GCC internal prototype to avoid an error. 6260 Use char because int might match the return type of a GCC 6261 builtin and then its argument prototype would still apply. */ 6262#ifdef __cplusplus 6263extern "C" 6264#endif 6265char gethostbyname (); 6266int 6267main () 6268{ 6269return gethostbyname (); 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_link "$LINENO"; then : 6275 ac_cv_lib_nsl_gethostbyname=yes 6276else 6277 ac_cv_lib_nsl_gethostbyname=no 6278fi 6279rm -f core conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281LIBS=$ac_check_lib_save_LIBS 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6284$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6285if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6286 cat >>confdefs.h <<_ACEOF 6287#define HAVE_LIBNSL 1 6288_ACEOF 6289 6290 LIBS="-lnsl $LIBS" 6291 6292fi 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5 6295$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298 6299#include <stdio.h> 6300#include <stdlib.h> 6301#include <stdarg.h> 6302#include <fcntl.h> 6303#include <netdb.h> 6304#include <netinet/in.h> 6305#include <errno.h> 6306#include <sys/types.h> 6307#include <sys/socket.h> 6308 /* Check bitfields */ 6309 struct nbbuf { 6310 unsigned int initDone:1; 6311 ushort signmaplen; 6312 }; 6313 6314int 6315main () 6316{ 6317 6318 /* Check creating a socket. */ 6319 struct sockaddr_in server; 6320 (void)socket(AF_INET, SOCK_STREAM, 0); 6321 (void)htons(100); 6322 (void)gethostbyname("microsoft.com"); 6323 if (errno == ECONNREFUSED) 6324 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 6325 6326 ; 6327 return 0; 6328} 6329_ACEOF 6330if ac_fn_c_try_link "$LINENO"; then : 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6332$as_echo "yes" >&6; } 6333else 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335$as_echo "no" >&6; }; enable_netbeans="no" 6336fi 6337rm -f core conftest.err conftest.$ac_objext \ 6338 conftest$ac_exeext conftest.$ac_ext 6339else 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6341$as_echo "yes" >&6; } 6342fi 6343if test "$enable_netbeans" = "yes"; then 6344 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 6345 6346 NETBEANS_SRC="netbeans.c" 6347 6348 NETBEANS_OBJ="objects/netbeans.o" 6349 6350fi 6351 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5 6353$as_echo_n "checking --enable-sniff argument... " >&6; } 6354# Check whether --enable-sniff was given. 6355if test "${enable_sniff+set}" = set; then : 6356 enableval=$enable_sniff; 6357else 6358 enable_sniff="no" 6359fi 6360 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5 6362$as_echo "$enable_sniff" >&6; } 6363if test "$enable_sniff" = "yes"; then 6364 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h 6365 6366 SNIFF_SRC="if_sniff.c" 6367 6368 SNIFF_OBJ="objects/if_sniff.o" 6369 6370fi 6371 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 6373$as_echo_n "checking --enable-multibyte argument... " >&6; } 6374# Check whether --enable-multibyte was given. 6375if test "${enable_multibyte+set}" = set; then : 6376 enableval=$enable_multibyte; 6377else 6378 enable_multibyte="no" 6379fi 6380 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 6382$as_echo "$enable_multibyte" >&6; } 6383if test "$enable_multibyte" = "yes"; then 6384 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 6385 6386fi 6387 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 6389$as_echo_n "checking --enable-hangulinput argument... " >&6; } 6390# Check whether --enable-hangulinput was given. 6391if test "${enable_hangulinput+set}" = set; then : 6392 enableval=$enable_hangulinput; 6393else 6394 enable_hangulinput="no" 6395fi 6396 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 6398$as_echo "$enable_hangulinput" >&6; } 6399 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 6401$as_echo_n "checking --enable-xim argument... " >&6; } 6402# Check whether --enable-xim was given. 6403if test "${enable_xim+set}" = set; then : 6404 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 6405$as_echo "$enable_xim" >&6; } 6406else 6407 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 6408$as_echo "defaulting to auto" >&6; } 6409fi 6410 6411 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 6413$as_echo_n "checking --enable-fontset argument... " >&6; } 6414# Check whether --enable-fontset was given. 6415if test "${enable_fontset+set}" = set; then : 6416 enableval=$enable_fontset; 6417else 6418 enable_fontset="no" 6419fi 6420 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 6422$as_echo "$enable_fontset" >&6; } 6423 6424test -z "$with_x" && with_x=yes 6425test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 6426if test "$with_x" = no; then 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 6428$as_echo "defaulting to: don't HAVE_X11" >&6; } 6429else 6430 6431 # Extract the first word of "xmkmf", so it can be a program name with args. 6432set dummy xmkmf; ac_word=$2 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434$as_echo_n "checking for $ac_word... " >&6; } 6435if test "${ac_cv_path_xmkmfpath+set}" = set; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 case $xmkmfpath in 6439 [\\/]* | ?:[\\/]*) 6440 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 6441 ;; 6442 *) 6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 test -z "$as_dir" && as_dir=. 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6450 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454done 6455 done 6456IFS=$as_save_IFS 6457 6458 ;; 6459esac 6460fi 6461xmkmfpath=$ac_cv_path_xmkmfpath 6462if test -n "$xmkmfpath"; then 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 6464$as_echo "$xmkmfpath" >&6; } 6465else 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467$as_echo "no" >&6; } 6468fi 6469 6470 6471 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6473$as_echo_n "checking for X... " >&6; } 6474 6475 6476# Check whether --with-x was given. 6477if test "${with_x+set}" = set; then : 6478 withval=$with_x; 6479fi 6480 6481# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6482if test "x$with_x" = xno; then 6483 # The user explicitly disabled X. 6484 have_x=disabled 6485else 6486 case $x_includes,$x_libraries in #( 6487 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 6488 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 # One or both of the vars are not set, and there is no cached value. 6492ac_x_includes=no ac_x_libraries=no 6493rm -f -r conftest.dir 6494if mkdir conftest.dir; then 6495 cd conftest.dir 6496 cat >Imakefile <<'_ACEOF' 6497incroot: 6498 @echo incroot='${INCROOT}' 6499usrlibdir: 6500 @echo usrlibdir='${USRLIBDIR}' 6501libdir: 6502 @echo libdir='${LIBDIR}' 6503_ACEOF 6504 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6506 for ac_var in incroot usrlibdir libdir; do 6507 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6508 done 6509 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6510 for ac_extension in a so sl dylib la dll; do 6511 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6512 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6513 ac_im_usrlibdir=$ac_im_libdir; break 6514 fi 6515 done 6516 # Screen out bogus values from the imake configuration. They are 6517 # bogus both because they are the default anyway, and because 6518 # using them would break gcc on systems where it needs fixed includes. 6519 case $ac_im_incroot in 6520 /usr/include) ac_x_includes= ;; 6521 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6522 esac 6523 case $ac_im_usrlibdir in 6524 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6525 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6526 esac 6527 fi 6528 cd .. 6529 rm -f -r conftest.dir 6530fi 6531 6532# Standard set of common directories for X headers. 6533# Check X11 before X11Rn because it is often a symlink to the current release. 6534ac_x_header_dirs=' 6535/usr/X11/include 6536/usr/X11R7/include 6537/usr/X11R6/include 6538/usr/X11R5/include 6539/usr/X11R4/include 6540 6541/usr/include/X11 6542/usr/include/X11R7 6543/usr/include/X11R6 6544/usr/include/X11R5 6545/usr/include/X11R4 6546 6547/usr/local/X11/include 6548/usr/local/X11R7/include 6549/usr/local/X11R6/include 6550/usr/local/X11R5/include 6551/usr/local/X11R4/include 6552 6553/usr/local/include/X11 6554/usr/local/include/X11R7 6555/usr/local/include/X11R6 6556/usr/local/include/X11R5 6557/usr/local/include/X11R4 6558 6559/usr/X386/include 6560/usr/x386/include 6561/usr/XFree86/include/X11 6562 6563/usr/include 6564/usr/local/include 6565/usr/unsupported/include 6566/usr/athena/include 6567/usr/local/x11r5/include 6568/usr/lpp/Xamples/include 6569 6570/usr/openwin/include 6571/usr/openwin/share/include' 6572 6573if test "$ac_x_includes" = no; then 6574 # Guess where to find include files, by looking for Xlib.h. 6575 # First, try using that file with no special directory specified. 6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6577/* end confdefs.h. */ 6578#include <X11/Xlib.h> 6579_ACEOF 6580if ac_fn_c_try_cpp "$LINENO"; then : 6581 # We can compile using X headers with no special include directory. 6582ac_x_includes= 6583else 6584 for ac_dir in $ac_x_header_dirs; do 6585 if test -r "$ac_dir/X11/Xlib.h"; then 6586 ac_x_includes=$ac_dir 6587 break 6588 fi 6589done 6590fi 6591rm -f conftest.err conftest.$ac_ext 6592fi # $ac_x_includes = no 6593 6594if test "$ac_x_libraries" = no; then 6595 # Check for the libraries. 6596 # See if we find them without any special options. 6597 # Don't add to $LIBS permanently. 6598 ac_save_LIBS=$LIBS 6599 LIBS="-lX11 $LIBS" 6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6601/* end confdefs.h. */ 6602#include <X11/Xlib.h> 6603int 6604main () 6605{ 6606XrmInitialize () 6607 ; 6608 return 0; 6609} 6610_ACEOF 6611if ac_fn_c_try_link "$LINENO"; then : 6612 LIBS=$ac_save_LIBS 6613# We can link X programs with no special library path. 6614ac_x_libraries= 6615else 6616 LIBS=$ac_save_LIBS 6617for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6618do 6619 # Don't even attempt the hair of trying to link an X program! 6620 for ac_extension in a so sl dylib la dll; do 6621 if test -r "$ac_dir/libX11.$ac_extension"; then 6622 ac_x_libraries=$ac_dir 6623 break 2 6624 fi 6625 done 6626done 6627fi 6628rm -f core conftest.err conftest.$ac_objext \ 6629 conftest$ac_exeext conftest.$ac_ext 6630fi # $ac_x_libraries = no 6631 6632case $ac_x_includes,$ac_x_libraries in #( 6633 no,* | *,no | *\'*) 6634 # Didn't find X, or a directory has "'" in its name. 6635 ac_cv_have_x="have_x=no";; #( 6636 *) 6637 # Record where we found X for the cache. 6638 ac_cv_have_x="have_x=yes\ 6639 ac_x_includes='$ac_x_includes'\ 6640 ac_x_libraries='$ac_x_libraries'" 6641esac 6642fi 6643;; #( 6644 *) have_x=yes;; 6645 esac 6646 eval "$ac_cv_have_x" 6647fi # $with_x != no 6648 6649if test "$have_x" != yes; then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6651$as_echo "$have_x" >&6; } 6652 no_x=yes 6653else 6654 # If each of the values was on the command line, it overrides each guess. 6655 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6656 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6657 # Update the cache value to reflect the command line values. 6658 ac_cv_have_x="have_x=yes\ 6659 ac_x_includes='$x_includes'\ 6660 ac_x_libraries='$x_libraries'" 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6662$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6663fi 6664 6665if test "$no_x" = yes; then 6666 # Not all programs may use this symbol, but it does not hurt to define it. 6667 6668$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6669 6670 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6671else 6672 if test -n "$x_includes"; then 6673 X_CFLAGS="$X_CFLAGS -I$x_includes" 6674 fi 6675 6676 # It would also be nice to do this for all -L options, not just this one. 6677 if test -n "$x_libraries"; then 6678 X_LIBS="$X_LIBS -L$x_libraries" 6679 # For Solaris; some versions of Sun CC require a space after -R and 6680 # others require no space. Words are not sufficient . . . . 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6682$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6683 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6684 ac_xsave_c_werror_flag=$ac_c_werror_flag 6685 ac_c_werror_flag=yes 6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6687/* end confdefs.h. */ 6688 6689int 6690main () 6691{ 6692 6693 ; 6694 return 0; 6695} 6696_ACEOF 6697if ac_fn_c_try_link "$LINENO"; then : 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700 X_LIBS="$X_LIBS -R$x_libraries" 6701else 6702 LIBS="$ac_xsave_LIBS -R $x_libraries" 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705 6706int 6707main () 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714if ac_fn_c_try_link "$LINENO"; then : 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6716$as_echo "yes" >&6; } 6717 X_LIBS="$X_LIBS -R $x_libraries" 6718else 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6720$as_echo "neither works" >&6; } 6721fi 6722rm -f core conftest.err conftest.$ac_objext \ 6723 conftest$ac_exeext conftest.$ac_ext 6724fi 6725rm -f core conftest.err conftest.$ac_objext \ 6726 conftest$ac_exeext conftest.$ac_ext 6727 ac_c_werror_flag=$ac_xsave_c_werror_flag 6728 LIBS=$ac_xsave_LIBS 6729 fi 6730 6731 # Check for system-dependent libraries X programs must link with. 6732 # Do this before checking for the system-independent R6 libraries 6733 # (-lICE), since we may need -lsocket or whatever for X linking. 6734 6735 if test "$ISC" = yes; then 6736 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6737 else 6738 # Martyn Johnson says this is needed for Ultrix, if the X 6739 # libraries were built with DECnet support. And Karl Berry says 6740 # the Alpha needs dnet_stub (dnet does not exist). 6741 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744 6745/* Override any GCC internal prototype to avoid an error. 6746 Use char because int might match the return type of a GCC 6747 builtin and then its argument prototype would still apply. */ 6748#ifdef __cplusplus 6749extern "C" 6750#endif 6751char XOpenDisplay (); 6752int 6753main () 6754{ 6755return XOpenDisplay (); 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760if ac_fn_c_try_link "$LINENO"; then : 6761 6762else 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6764$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6765if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 ac_check_lib_save_LIBS=$LIBS 6769LIBS="-ldnet $LIBS" 6770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772 6773/* Override any GCC internal prototype to avoid an error. 6774 Use char because int might match the return type of a GCC 6775 builtin and then its argument prototype would still apply. */ 6776#ifdef __cplusplus 6777extern "C" 6778#endif 6779char dnet_ntoa (); 6780int 6781main () 6782{ 6783return dnet_ntoa (); 6784 ; 6785 return 0; 6786} 6787_ACEOF 6788if ac_fn_c_try_link "$LINENO"; then : 6789 ac_cv_lib_dnet_dnet_ntoa=yes 6790else 6791 ac_cv_lib_dnet_dnet_ntoa=no 6792fi 6793rm -f core conftest.err conftest.$ac_objext \ 6794 conftest$ac_exeext conftest.$ac_ext 6795LIBS=$ac_check_lib_save_LIBS 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6798$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6799if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 6800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6801fi 6802 6803 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6805$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6806if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 ac_check_lib_save_LIBS=$LIBS 6810LIBS="-ldnet_stub $LIBS" 6811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813 6814/* Override any GCC internal prototype to avoid an error. 6815 Use char because int might match the return type of a GCC 6816 builtin and then its argument prototype would still apply. */ 6817#ifdef __cplusplus 6818extern "C" 6819#endif 6820char dnet_ntoa (); 6821int 6822main () 6823{ 6824return dnet_ntoa (); 6825 ; 6826 return 0; 6827} 6828_ACEOF 6829if ac_fn_c_try_link "$LINENO"; then : 6830 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6831else 6832 ac_cv_lib_dnet_stub_dnet_ntoa=no 6833fi 6834rm -f core conftest.err conftest.$ac_objext \ 6835 conftest$ac_exeext conftest.$ac_ext 6836LIBS=$ac_check_lib_save_LIBS 6837fi 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6839$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6840if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 6841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6842fi 6843 6844 fi 6845fi 6846rm -f core conftest.err conftest.$ac_objext \ 6847 conftest$ac_exeext conftest.$ac_ext 6848 LIBS="$ac_xsave_LIBS" 6849 6850 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 6851 # to get the SysV transport functions. 6852 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6853 # needs -lnsl. 6854 # The nsl library prevents programs from opening the X display 6855 # on Irix 5.2, according to T.E. Dickey. 6856 # The functions gethostbyname, getservbyname, and inet_addr are 6857 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6858 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6859if test "x$ac_cv_func_gethostbyname" = x""yes; then : 6860 6861fi 6862 6863 if test $ac_cv_func_gethostbyname = no; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6865$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6866if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 ac_check_lib_save_LIBS=$LIBS 6870LIBS="-lnsl $LIBS" 6871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873 6874/* Override any GCC internal prototype to avoid an error. 6875 Use char because int might match the return type of a GCC 6876 builtin and then its argument prototype would still apply. */ 6877#ifdef __cplusplus 6878extern "C" 6879#endif 6880char gethostbyname (); 6881int 6882main () 6883{ 6884return gethostbyname (); 6885 ; 6886 return 0; 6887} 6888_ACEOF 6889if ac_fn_c_try_link "$LINENO"; then : 6890 ac_cv_lib_nsl_gethostbyname=yes 6891else 6892 ac_cv_lib_nsl_gethostbyname=no 6893fi 6894rm -f core conftest.err conftest.$ac_objext \ 6895 conftest$ac_exeext conftest.$ac_ext 6896LIBS=$ac_check_lib_save_LIBS 6897fi 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6899$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6900if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6902fi 6903 6904 if test $ac_cv_lib_nsl_gethostbyname = no; then 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6906$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6907if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 ac_check_lib_save_LIBS=$LIBS 6911LIBS="-lbsd $LIBS" 6912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914 6915/* Override any GCC internal prototype to avoid an error. 6916 Use char because int might match the return type of a GCC 6917 builtin and then its argument prototype would still apply. */ 6918#ifdef __cplusplus 6919extern "C" 6920#endif 6921char gethostbyname (); 6922int 6923main () 6924{ 6925return gethostbyname (); 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930if ac_fn_c_try_link "$LINENO"; then : 6931 ac_cv_lib_bsd_gethostbyname=yes 6932else 6933 ac_cv_lib_bsd_gethostbyname=no 6934fi 6935rm -f core conftest.err conftest.$ac_objext \ 6936 conftest$ac_exeext conftest.$ac_ext 6937LIBS=$ac_check_lib_save_LIBS 6938fi 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6940$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6941if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 6942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6943fi 6944 6945 fi 6946 fi 6947 6948 # [email protected] says without -lsocket, 6949 # socket/setsockopt and other routines are undefined under SCO ODT 6950 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6951 # on later versions), says Simon Leinen: it contains gethostby* 6952 # variants that don't use the name server (or something). -lsocket 6953 # must be given before -lnsl if both are needed. We assume that 6954 # if connect needs -lnsl, so does gethostbyname. 6955 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 6956if test "x$ac_cv_func_connect" = x""yes; then : 6957 6958fi 6959 6960 if test $ac_cv_func_connect = no; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6962$as_echo_n "checking for connect in -lsocket... " >&6; } 6963if test "${ac_cv_lib_socket_connect+set}" = set; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 ac_check_lib_save_LIBS=$LIBS 6967LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6969/* end confdefs.h. */ 6970 6971/* Override any GCC internal prototype to avoid an error. 6972 Use char because int might match the return type of a GCC 6973 builtin and then its argument prototype would still apply. */ 6974#ifdef __cplusplus 6975extern "C" 6976#endif 6977char connect (); 6978int 6979main () 6980{ 6981return connect (); 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986if ac_fn_c_try_link "$LINENO"; then : 6987 ac_cv_lib_socket_connect=yes 6988else 6989 ac_cv_lib_socket_connect=no 6990fi 6991rm -f core conftest.err conftest.$ac_objext \ 6992 conftest$ac_exeext conftest.$ac_ext 6993LIBS=$ac_check_lib_save_LIBS 6994fi 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6996$as_echo "$ac_cv_lib_socket_connect" >&6; } 6997if test "x$ac_cv_lib_socket_connect" = x""yes; then : 6998 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6999fi 7000 7001 fi 7002 7003 # Guillermo Gomez says -lposix is necessary on A/UX. 7004 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 7005if test "x$ac_cv_func_remove" = x""yes; then : 7006 7007fi 7008 7009 if test $ac_cv_func_remove = no; then 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 7011$as_echo_n "checking for remove in -lposix... " >&6; } 7012if test "${ac_cv_lib_posix_remove+set}" = set; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 ac_check_lib_save_LIBS=$LIBS 7016LIBS="-lposix $LIBS" 7017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019 7020/* Override any GCC internal prototype to avoid an error. 7021 Use char because int might match the return type of a GCC 7022 builtin and then its argument prototype would still apply. */ 7023#ifdef __cplusplus 7024extern "C" 7025#endif 7026char remove (); 7027int 7028main () 7029{ 7030return remove (); 7031 ; 7032 return 0; 7033} 7034_ACEOF 7035if ac_fn_c_try_link "$LINENO"; then : 7036 ac_cv_lib_posix_remove=yes 7037else 7038 ac_cv_lib_posix_remove=no 7039fi 7040rm -f core conftest.err conftest.$ac_objext \ 7041 conftest$ac_exeext conftest.$ac_ext 7042LIBS=$ac_check_lib_save_LIBS 7043fi 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 7045$as_echo "$ac_cv_lib_posix_remove" >&6; } 7046if test "x$ac_cv_lib_posix_remove" = x""yes; then : 7047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7048fi 7049 7050 fi 7051 7052 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7053 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 7054if test "x$ac_cv_func_shmat" = x""yes; then : 7055 7056fi 7057 7058 if test $ac_cv_func_shmat = no; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 7060$as_echo_n "checking for shmat in -lipc... " >&6; } 7061if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 ac_check_lib_save_LIBS=$LIBS 7065LIBS="-lipc $LIBS" 7066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068 7069/* Override any GCC internal prototype to avoid an error. 7070 Use char because int might match the return type of a GCC 7071 builtin and then its argument prototype would still apply. */ 7072#ifdef __cplusplus 7073extern "C" 7074#endif 7075char shmat (); 7076int 7077main () 7078{ 7079return shmat (); 7080 ; 7081 return 0; 7082} 7083_ACEOF 7084if ac_fn_c_try_link "$LINENO"; then : 7085 ac_cv_lib_ipc_shmat=yes 7086else 7087 ac_cv_lib_ipc_shmat=no 7088fi 7089rm -f core conftest.err conftest.$ac_objext \ 7090 conftest$ac_exeext conftest.$ac_ext 7091LIBS=$ac_check_lib_save_LIBS 7092fi 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 7094$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 7095if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 7096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7097fi 7098 7099 fi 7100 fi 7101 7102 # Check for libraries that X11R6 Xt/Xaw programs need. 7103 ac_save_LDFLAGS=$LDFLAGS 7104 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7105 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7106 # check for ICE first), but we must link in the order -lSM -lICE or 7107 # we get undefined symbols. So assume we have SM if we have ICE. 7108 # These have to be linked with before -lX11, unlike the other 7109 # libraries we check for below, so use a different variable. 7110 # John Interrante, Karl Berry 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 7112$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 7113if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 ac_check_lib_save_LIBS=$LIBS 7117LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119/* end confdefs.h. */ 7120 7121/* Override any GCC internal prototype to avoid an error. 7122 Use char because int might match the return type of a GCC 7123 builtin and then its argument prototype would still apply. */ 7124#ifdef __cplusplus 7125extern "C" 7126#endif 7127char IceConnectionNumber (); 7128int 7129main () 7130{ 7131return IceConnectionNumber (); 7132 ; 7133 return 0; 7134} 7135_ACEOF 7136if ac_fn_c_try_link "$LINENO"; then : 7137 ac_cv_lib_ICE_IceConnectionNumber=yes 7138else 7139 ac_cv_lib_ICE_IceConnectionNumber=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext \ 7142 conftest$ac_exeext conftest.$ac_ext 7143LIBS=$ac_check_lib_save_LIBS 7144fi 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7146$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7147if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 7148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7149fi 7150 7151 LDFLAGS=$ac_save_LDFLAGS 7152 7153fi 7154 7155 7156 if test "$zOSUnix" = "yes"; then 7157 CFLAGS="$CFLAGS -W c,dll" 7158 LDFLAGS="$LDFLAGS -W l,dll" 7159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 7160 fi 7161 7162 7163 if test -d "$x_includes" && test ! -d "$x_libraries"; then 7164 x_libraries=`echo "$x_includes" | sed s/include/lib/` 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 7166$as_echo "Corrected X libraries to $x_libraries" >&6; } 7167 X_LIBS="$X_LIBS -L$x_libraries" 7168 if test "`(uname) 2>/dev/null`" = SunOS && 7169 uname -r | grep '^5' >/dev/null; then 7170 X_LIBS="$X_LIBS -R $x_libraries" 7171 fi 7172 fi 7173 7174 if test -d "$x_libraries" && test ! -d "$x_includes"; then 7175 x_includes=`echo "$x_libraries" | sed s/lib/include/` 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 7177$as_echo "Corrected X includes to $x_includes" >&6; } 7178 X_CFLAGS="$X_CFLAGS -I$x_includes" 7179 fi 7180 7181 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 7182 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 7183 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 7184 7185 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 7187$as_echo_n "checking if X11 header files can be found... " >&6; } 7188 cflags_save=$CFLAGS 7189 CFLAGS="$CFLAGS $X_CFLAGS" 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192#include <X11/Xlib.h> 7193#include <X11/Intrinsic.h> 7194int 7195main () 7196{ 7197 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202if ac_fn_c_try_compile "$LINENO"; then : 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7204$as_echo "yes" >&6; } 7205else 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7207$as_echo "no" >&6; }; no_x=yes 7208fi 7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7210 CFLAGS=$cflags_save 7211 7212 if test "${no_x-no}" = yes; then 7213 with_x=no 7214 else 7215 $as_echo "#define HAVE_X11 1" >>confdefs.h 7216 7217 X_LIB="-lXt -lX11"; 7218 7219 7220 ac_save_LDFLAGS="$LDFLAGS" 7221 LDFLAGS="-L$x_libraries $LDFLAGS" 7222 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 7224$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 7225if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 ac_check_lib_save_LIBS=$LIBS 7229LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 7230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232 7233/* Override any GCC internal prototype to avoid an error. 7234 Use char because int might match the return type of a GCC 7235 builtin and then its argument prototype would still apply. */ 7236#ifdef __cplusplus 7237extern "C" 7238#endif 7239char _XdmcpAuthDoIt (); 7240int 7241main () 7242{ 7243return _XdmcpAuthDoIt (); 7244 ; 7245 return 0; 7246} 7247_ACEOF 7248if ac_fn_c_try_link "$LINENO"; then : 7249 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 7250else 7251 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 7252fi 7253rm -f core conftest.err conftest.$ac_objext \ 7254 conftest$ac_exeext conftest.$ac_ext 7255LIBS=$ac_check_lib_save_LIBS 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 7258$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 7259if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then : 7260 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 7261fi 7262 7263 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 7265$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 7266if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 ac_check_lib_save_LIBS=$LIBS 7270LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273 7274/* Override any GCC internal prototype to avoid an error. 7275 Use char because int might match the return type of a GCC 7276 builtin and then its argument prototype would still apply. */ 7277#ifdef __cplusplus 7278extern "C" 7279#endif 7280char IceOpenConnection (); 7281int 7282main () 7283{ 7284return IceOpenConnection (); 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289if ac_fn_c_try_link "$LINENO"; then : 7290 ac_cv_lib_ICE_IceOpenConnection=yes 7291else 7292 ac_cv_lib_ICE_IceOpenConnection=no 7293fi 7294rm -f core conftest.err conftest.$ac_objext \ 7295 conftest$ac_exeext conftest.$ac_ext 7296LIBS=$ac_check_lib_save_LIBS 7297fi 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 7299$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 7300if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then : 7301 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 7302fi 7303 7304 7305 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 7307$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 7308if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 ac_check_lib_save_LIBS=$LIBS 7312LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 7313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315 7316/* Override any GCC internal prototype to avoid an error. 7317 Use char because int might match the return type of a GCC 7318 builtin and then its argument prototype would still apply. */ 7319#ifdef __cplusplus 7320extern "C" 7321#endif 7322char XpmCreatePixmapFromData (); 7323int 7324main () 7325{ 7326return XpmCreatePixmapFromData (); 7327 ; 7328 return 0; 7329} 7330_ACEOF 7331if ac_fn_c_try_link "$LINENO"; then : 7332 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 7333else 7334 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 7335fi 7336rm -f core conftest.err conftest.$ac_objext \ 7337 conftest$ac_exeext conftest.$ac_ext 7338LIBS=$ac_check_lib_save_LIBS 7339fi 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 7341$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 7342if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then : 7343 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 7344fi 7345 7346 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 7348$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 7349 cflags_save=$CFLAGS 7350 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353#include <X11/Xlib.h> 7354int 7355main () 7356{ 7357 7358 ; 7359 return 0; 7360} 7361_ACEOF 7362if ac_fn_c_try_compile "$LINENO"; then : 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7364$as_echo "no" >&6; } 7365else 7366 CFLAGS="$CFLAGS -Wno-implicit-int" 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369#include <X11/Xlib.h> 7370int 7371main () 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO"; then : 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7380$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 7381else 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 7383$as_echo "test failed" >&6; } 7384 7385fi 7386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7387 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7390 CFLAGS=$cflags_save 7391 7392 LDFLAGS="$ac_save_LDFLAGS" 7393 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 7395$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 7396 if test "${ac_cv_small_wchar_t+set}" = set; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test "$cross_compiling" = yes; then : 7400 as_fn_error "failed to compile test program" "$LINENO" 5 7401else 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404 7405#include <X11/Xlib.h> 7406#if STDC_HEADERS 7407# include <stdlib.h> 7408# include <stddef.h> 7409#endif 7410 main() 7411 { 7412 if (sizeof(wchar_t) <= 2) 7413 exit(1); 7414 exit(0); 7415 } 7416_ACEOF 7417if ac_fn_c_try_run "$LINENO"; then : 7418 ac_cv_small_wchar_t="no" 7419else 7420 ac_cv_small_wchar_t="yes" 7421fi 7422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7423 conftest.$ac_objext conftest.beam conftest.$ac_ext 7424fi 7425 7426fi 7427 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 7429$as_echo "$ac_cv_small_wchar_t" >&6; } 7430 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 7431 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 7432 7433 fi 7434 7435 fi 7436fi 7437 7438test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 7439 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 7441$as_echo_n "checking --enable-gui argument... " >&6; } 7442# Check whether --enable-gui was given. 7443if test "${enable_gui+set}" = set; then : 7444 enableval=$enable_gui; 7445else 7446 enable_gui="auto" 7447fi 7448 7449 7450enable_gui_canon=`echo "_$enable_gui" | \ 7451 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 7452 7453SKIP_GTK2=YES 7454SKIP_GNOME=YES 7455SKIP_MOTIF=YES 7456SKIP_ATHENA=YES 7457SKIP_NEXTAW=YES 7458SKIP_PHOTON=YES 7459SKIP_CARBON=YES 7460GUITYPE=NONE 7461 7462if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 7463 SKIP_PHOTON= 7464 case "$enable_gui_canon" in 7465 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7466$as_echo "no GUI support" >&6; } 7467 SKIP_PHOTON=YES ;; 7468 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7469$as_echo "yes - automatic GUI support" >&6; } ;; 7470 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 7471$as_echo "auto - automatic GUI support" >&6; } ;; 7472 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 7473$as_echo "Photon GUI support" >&6; } ;; 7474 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7475$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7476 SKIP_PHOTON=YES ;; 7477 esac 7478 7479elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 7480 SKIP_CARBON= 7481 case "$enable_gui_canon" in 7482 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7483$as_echo "no GUI support" >&6; } 7484 SKIP_CARBON=YES ;; 7485 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 7486$as_echo "yes - automatic GUI support" >&6; } ;; 7487 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 7488$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 7489 SKIP_CARBON=YES ;; 7490 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 7491$as_echo "Carbon GUI support" >&6; } ;; 7492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7493$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 7494 SKIP_CARBON=YES ;; 7495 esac 7496 7497else 7498 7499 case "$enable_gui_canon" in 7500 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 7501$as_echo "no GUI support" >&6; } ;; 7502 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 7503$as_echo "yes/auto - automatic GUI support" >&6; } 7504 SKIP_GTK2= 7505 SKIP_GNOME= 7506 SKIP_MOTIF= 7507 SKIP_ATHENA= 7508 SKIP_NEXTAW= 7509 SKIP_CARBON=;; 7510 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 7511$as_echo "GTK+ 2.x GUI support" >&6; } 7512 SKIP_GTK2=;; 7513 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 7514$as_echo "GNOME 2.x GUI support" >&6; } 7515 SKIP_GNOME= 7516 SKIP_GTK2=;; 7517 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 7518$as_echo "Motif GUI support" >&6; } 7519 SKIP_MOTIF=;; 7520 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 7521$as_echo "Athena GUI support" >&6; } 7522 SKIP_ATHENA=;; 7523 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 7524$as_echo "neXtaw GUI support" >&6; } 7525 SKIP_NEXTAW=;; 7526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 7527$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 7528 esac 7529 7530fi 7531 7532if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 7533 -a "$enable_gui_canon" != "gnome2"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 7535$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 7536 # Check whether --enable-gtk2-check was given. 7537if test "${enable_gtk2_check+set}" = set; then : 7538 enableval=$enable_gtk2_check; 7539else 7540 enable_gtk2_check="yes" 7541fi 7542 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 7544$as_echo "$enable_gtk2_check" >&6; } 7545 if test "x$enable_gtk2_check" = "xno"; then 7546 SKIP_GTK2=YES 7547 SKIP_GNOME=YES 7548 fi 7549fi 7550 7551if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 7553$as_echo_n "checking whether or not to look for GNOME... " >&6; } 7554 # Check whether --enable-gnome-check was given. 7555if test "${enable_gnome_check+set}" = set; then : 7556 enableval=$enable_gnome_check; 7557else 7558 enable_gnome_check="no" 7559fi 7560 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 7562$as_echo "$enable_gnome_check" >&6; } 7563 if test "x$enable_gnome_check" = "xno"; then 7564 SKIP_GNOME=YES 7565 fi 7566fi 7567 7568if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 7570$as_echo_n "checking whether or not to look for Motif... " >&6; } 7571 # Check whether --enable-motif-check was given. 7572if test "${enable_motif_check+set}" = set; then : 7573 enableval=$enable_motif_check; 7574else 7575 enable_motif_check="yes" 7576fi 7577 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 7579$as_echo "$enable_motif_check" >&6; } 7580 if test "x$enable_motif_check" = "xno"; then 7581 SKIP_MOTIF=YES 7582 fi 7583fi 7584 7585if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 7587$as_echo_n "checking whether or not to look for Athena... " >&6; } 7588 # Check whether --enable-athena-check was given. 7589if test "${enable_athena_check+set}" = set; then : 7590 enableval=$enable_athena_check; 7591else 7592 enable_athena_check="yes" 7593fi 7594 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 7596$as_echo "$enable_athena_check" >&6; } 7597 if test "x$enable_athena_check" = "xno"; then 7598 SKIP_ATHENA=YES 7599 fi 7600fi 7601 7602if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 7604$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 7605 # Check whether --enable-nextaw-check was given. 7606if test "${enable_nextaw_check+set}" = set; then : 7607 enableval=$enable_nextaw_check; 7608else 7609 enable_nextaw_check="yes" 7610fi 7611 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 7613$as_echo "$enable_nextaw_check" >&6; }; 7614 if test "x$enable_nextaw_check" = "xno"; then 7615 SKIP_NEXTAW=YES 7616 fi 7617fi 7618 7619if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 7621$as_echo_n "checking whether or not to look for Carbon... " >&6; } 7622 # Check whether --enable-carbon-check was given. 7623if test "${enable_carbon_check+set}" = set; then : 7624 enableval=$enable_carbon_check; 7625else 7626 enable_carbon_check="yes" 7627fi 7628 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 7630$as_echo "$enable_carbon_check" >&6; }; 7631 if test "x$enable_carbon_check" = "xno"; then 7632 SKIP_CARBON=YES 7633 fi 7634fi 7635 7636 7637if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 7639$as_echo_n "checking for Carbon GUI... " >&6; } 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7641$as_echo "yes" >&6; }; 7642 GUITYPE=CARBONGUI 7643 if test "$VIMNAME" = "vim"; then 7644 VIMNAME=Vim 7645 fi 7646 7647 if test "x$MACARCH" = "xboth"; then 7648 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 7649 else 7650 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 7651 fi 7652 7653 if test x$prefix = xNONE; then 7654 prefix=/Applications 7655 fi 7656 7657 datadir='${prefix}/Vim.app/Contents/Resources' 7658 7659 SKIP_GTK2=YES; 7660 SKIP_GNOME=YES; 7661 SKIP_MOTIF=YES; 7662 SKIP_ATHENA=YES; 7663 SKIP_NEXTAW=YES; 7664 SKIP_PHOTON=YES; 7665 SKIP_CARBON=YES 7666fi 7667 7668 7669 7670 7671 7672 7673 7674 7675if test -z "$SKIP_GTK2"; then 7676 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 7678$as_echo_n "checking --disable-gtktest argument... " >&6; } 7679 # Check whether --enable-gtktest was given. 7680if test "${enable_gtktest+set}" = set; then : 7681 enableval=$enable_gtktest; 7682else 7683 enable_gtktest=yes 7684fi 7685 7686 if test "x$enable_gtktest" = "xyes" ; then 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 7688$as_echo "gtk test enabled" >&6; } 7689 else 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 7691$as_echo "gtk test disabled" >&6; } 7692 fi 7693 7694 if test "X$PKG_CONFIG" = "X"; then 7695 # Extract the first word of "pkg-config", so it can be a program name with args. 7696set dummy pkg-config; ac_word=$2 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7698$as_echo_n "checking for $ac_word... " >&6; } 7699if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 case $PKG_CONFIG in 7703 [\\/]* | ?:[\\/]*) 7704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7705 ;; 7706 *) 7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708for as_dir in $PATH 7709do 7710 IFS=$as_save_IFS 7711 test -z "$as_dir" && as_dir=. 7712 for ac_exec_ext in '' $ac_executable_extensions; do 7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7716 break 2 7717 fi 7718done 7719 done 7720IFS=$as_save_IFS 7721 7722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7723 ;; 7724esac 7725fi 7726PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7727if test -n "$PKG_CONFIG"; then 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7729$as_echo "$PKG_CONFIG" >&6; } 7730else 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7732$as_echo "no" >&6; } 7733fi 7734 7735 7736 fi 7737 7738 if test "x$PKG_CONFIG" != "xno"; then 7739 7740 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 7741 { 7742 min_gtk_version=2.2.0 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 7744$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7745 no_gtk="" 7746 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 7747 && $PKG_CONFIG --exists gtk+-2.0; then 7748 { 7749 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 7750 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 7751 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 7752 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7753 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 7754 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7755 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 7756 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7757 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 7758 } 7759 else 7760 no_gtk=yes 7761 fi 7762 7763 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 7764 { 7765 ac_save_CFLAGS="$CFLAGS" 7766 ac_save_LIBS="$LIBS" 7767 CFLAGS="$CFLAGS $GTK_CFLAGS" 7768 LIBS="$LIBS $GTK_LIBS" 7769 7770 rm -f conf.gtktest 7771 if test "$cross_compiling" = yes; then : 7772 echo $ac_n "cross compiling; assumed OK... $ac_c" 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776 7777#include <gtk/gtk.h> 7778#include <stdio.h> 7779#if STDC_HEADERS 7780# include <stdlib.h> 7781# include <stddef.h> 7782#endif 7783 7784int 7785main () 7786{ 7787int major, minor, micro; 7788char *tmp_version; 7789 7790system ("touch conf.gtktest"); 7791 7792/* HP/UX 9 (%@#!) writes to sscanf strings */ 7793tmp_version = g_strdup("$min_gtk_version"); 7794if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7795 printf("%s, bad version string\n", "$min_gtk_version"); 7796 exit(1); 7797 } 7798 7799if ((gtk_major_version > major) || 7800 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7801 ((gtk_major_version == major) && (gtk_minor_version == minor) && 7802 (gtk_micro_version >= micro))) 7803{ 7804 return 0; 7805} 7806return 1; 7807} 7808 7809_ACEOF 7810if ac_fn_c_try_run "$LINENO"; then : 7811 7812else 7813 no_gtk=yes 7814fi 7815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7816 conftest.$ac_objext conftest.beam conftest.$ac_ext 7817fi 7818 7819 CFLAGS="$ac_save_CFLAGS" 7820 LIBS="$ac_save_LIBS" 7821 } 7822 fi 7823 if test "x$no_gtk" = x ; then 7824 if test "x$enable_gtktest" = "xyes"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7826$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7827 else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7829$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7830 fi 7831 GUI_LIB_LOC="$GTK_LIBDIR" 7832 GTK_LIBNAME="$GTK_LIBS" 7833 GUI_INC_LOC="$GTK_CFLAGS" 7834 else 7835 { 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7837$as_echo "no" >&6; } 7838 GTK_CFLAGS="" 7839 GTK_LIBS="" 7840 : 7841 } 7842 fi 7843 } 7844 else 7845 GTK_CFLAGS="" 7846 GTK_LIBS="" 7847 : 7848 fi 7849 7850 7851 rm -f conf.gtktest 7852 7853 if test "x$GTK_CFLAGS" != "x"; then 7854 SKIP_ATHENA=YES 7855 SKIP_NEXTAW=YES 7856 SKIP_MOTIF=YES 7857 GUITYPE=GTK 7858 7859 fi 7860 fi 7861 if test "x$GUITYPE" = "xGTK"; then 7862 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 7863 || test "0$gtk_minor_version" -ge 2; then 7864 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 7865 7866 fi 7867 if test -z "$SKIP_GNOME"; then 7868 { 7869 7870 7871 7872 7873 7874 7875# Check whether --with-gnome-includes was given. 7876if test "${with_gnome_includes+set}" = set; then : 7877 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 7878 7879fi 7880 7881 7882 7883# Check whether --with-gnome-libs was given. 7884if test "${with_gnome_libs+set}" = set; then : 7885 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 7886 7887fi 7888 7889 7890 7891# Check whether --with-gnome was given. 7892if test "${with_gnome+set}" = set; then : 7893 withval=$with_gnome; if test x$withval = xyes; then 7894 want_gnome=yes 7895 have_gnome=yes 7896 else 7897 if test "x$withval" = xno; then 7898 want_gnome=no 7899 else 7900 want_gnome=yes 7901 LDFLAGS="$LDFLAGS -L$withval/lib" 7902 CFLAGS="$CFLAGS -I$withval/include" 7903 gnome_prefix=$withval/lib 7904 fi 7905 fi 7906else 7907 want_gnome=yes 7908fi 7909 7910 7911 if test "x$want_gnome" = xyes; then 7912 { 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 7914$as_echo_n "checking for libgnomeui-2.0... " >&6; } 7915 if $PKG_CONFIG --exists libgnomeui-2.0; then 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7917$as_echo "yes" >&6; } 7918 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 7919 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 7920 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 7921 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 7923$as_echo_n "checking for FreeBSD... " >&6; } 7924 if test "`(uname) 2>/dev/null`" = FreeBSD; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7926$as_echo "yes" >&6; } 7927 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 7928 GNOME_LIBS="$GNOME_LIBS -pthread" 7929 else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931$as_echo "no" >&6; } 7932 fi 7933 have_gnome=yes 7934 else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7936$as_echo "not found" >&6; } 7937 if test "x" = xfail; then 7938 as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 7939 fi 7940 fi 7941 } 7942 fi 7943 7944 if test "x$have_gnome" = xyes ; then 7945 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 7946 7947 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 7948 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 7949 fi 7950 } 7951 fi 7952 fi 7953fi 7954 7955 7956if test -z "$SKIP_MOTIF"; then 7957 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" 7958 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 7959 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 7961$as_echo_n "checking for location of Motif GUI includes... " >&6; } 7962 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 7963 GUI_INC_LOC= 7964 for try in $gui_includes; do 7965 if test -f "$try/Xm/Xm.h"; then 7966 GUI_INC_LOC=$try 7967 fi 7968 done 7969 if test -n "$GUI_INC_LOC"; then 7970 if test "$GUI_INC_LOC" = /usr/include; then 7971 GUI_INC_LOC= 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 7973$as_echo "in default path" >&6; } 7974 else 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 7976$as_echo "$GUI_INC_LOC" >&6; } 7977 fi 7978 else 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7980$as_echo "<not found>" >&6; } 7981 SKIP_MOTIF=YES 7982 fi 7983fi 7984 7985 7986if test -z "$SKIP_MOTIF"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 7988$as_echo_n "checking --with-motif-lib argument... " >&6; } 7989 7990# Check whether --with-motif-lib was given. 7991if test "${with_motif_lib+set}" = set; then : 7992 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 7993fi 7994 7995 7996 if test -n "$MOTIF_LIBNAME"; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 7998$as_echo "$MOTIF_LIBNAME" >&6; } 7999 GUI_LIB_LOC= 8000 else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003 8004 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 8005 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 8007$as_echo_n "checking for location of Motif GUI libs... " >&6; } 8008 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" 8009 GUI_LIB_LOC= 8010 for try in $gui_libs; do 8011 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 8012 if test -f "$libtry"; then 8013 GUI_LIB_LOC=$try 8014 fi 8015 done 8016 done 8017 if test -n "$GUI_LIB_LOC"; then 8018 if test "$GUI_LIB_LOC" = /usr/lib; then 8019 GUI_LIB_LOC= 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 8021$as_echo "in default path" >&6; } 8022 else 8023 if test -n "$GUI_LIB_LOC"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 8025$as_echo "$GUI_LIB_LOC" >&6; } 8026 if test "`(uname) 2>/dev/null`" = SunOS && 8027 uname -r | grep '^5' >/dev/null; then 8028 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 8029 fi 8030 fi 8031 fi 8032 MOTIF_LIBNAME=-lXm 8033 else 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 8035$as_echo "<not found>" >&6; } 8036 SKIP_MOTIF=YES 8037 fi 8038 fi 8039fi 8040 8041if test -z "$SKIP_MOTIF"; then 8042 SKIP_ATHENA=YES 8043 SKIP_NEXTAW=YES 8044 GUITYPE=MOTIF 8045 8046fi 8047 8048 8049GUI_X_LIBS= 8050 8051if test -z "$SKIP_ATHENA"; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 8053$as_echo_n "checking if Athena header files can be found... " >&6; } 8054 cflags_save=$CFLAGS 8055 CFLAGS="$CFLAGS $X_CFLAGS" 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058 8059#include <X11/Intrinsic.h> 8060#include <X11/Xaw/Paned.h> 8061int 8062main () 8063{ 8064 8065 ; 8066 return 0; 8067} 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO"; then : 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8071$as_echo "yes" >&6; } 8072else 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8074$as_echo "no" >&6; }; SKIP_ATHENA=YES 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8077 CFLAGS=$cflags_save 8078fi 8079 8080if test -z "$SKIP_ATHENA"; then 8081 GUITYPE=ATHENA 8082fi 8083 8084if test -z "$SKIP_NEXTAW"; then 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 8086$as_echo_n "checking if neXtaw header files can be found... " >&6; } 8087 cflags_save=$CFLAGS 8088 CFLAGS="$CFLAGS $X_CFLAGS" 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091 8092#include <X11/Intrinsic.h> 8093#include <X11/neXtaw/Paned.h> 8094int 8095main () 8096{ 8097 8098 ; 8099 return 0; 8100} 8101_ACEOF 8102if ac_fn_c_try_compile "$LINENO"; then : 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8104$as_echo "yes" >&6; } 8105else 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8107$as_echo "no" >&6; }; SKIP_NEXTAW=YES 8108fi 8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8110 CFLAGS=$cflags_save 8111fi 8112 8113if test -z "$SKIP_NEXTAW"; then 8114 GUITYPE=NEXTAW 8115fi 8116 8117if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8118 if test -n "$GUI_INC_LOC"; then 8119 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 8120 fi 8121 if test -n "$GUI_LIB_LOC"; then 8122 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 8123 fi 8124 8125 ldflags_save=$LDFLAGS 8126 LDFLAGS="$X_LIBS $LDFLAGS" 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 8128$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 8129if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 ac_check_lib_save_LIBS=$LIBS 8133LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136 8137/* Override any GCC internal prototype to avoid an error. 8138 Use char because int might match the return type of a GCC 8139 builtin and then its argument prototype would still apply. */ 8140#ifdef __cplusplus 8141extern "C" 8142#endif 8143char XShapeQueryExtension (); 8144int 8145main () 8146{ 8147return XShapeQueryExtension (); 8148 ; 8149 return 0; 8150} 8151_ACEOF 8152if ac_fn_c_try_link "$LINENO"; then : 8153 ac_cv_lib_Xext_XShapeQueryExtension=yes 8154else 8155 ac_cv_lib_Xext_XShapeQueryExtension=no 8156fi 8157rm -f core conftest.err conftest.$ac_objext \ 8158 conftest$ac_exeext conftest.$ac_ext 8159LIBS=$ac_check_lib_save_LIBS 8160fi 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 8162$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 8163if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 8164 GUI_X_LIBS="-lXext" 8165fi 8166 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 8168$as_echo_n "checking for wslen in -lw... " >&6; } 8169if test "${ac_cv_lib_w_wslen+set}" = set; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 ac_check_lib_save_LIBS=$LIBS 8173LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176 8177/* Override any GCC internal prototype to avoid an error. 8178 Use char because int might match the return type of a GCC 8179 builtin and then its argument prototype would still apply. */ 8180#ifdef __cplusplus 8181extern "C" 8182#endif 8183char wslen (); 8184int 8185main () 8186{ 8187return wslen (); 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192if ac_fn_c_try_link "$LINENO"; then : 8193 ac_cv_lib_w_wslen=yes 8194else 8195 ac_cv_lib_w_wslen=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199LIBS=$ac_check_lib_save_LIBS 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 8202$as_echo "$ac_cv_lib_w_wslen" >&6; } 8203if test "x$ac_cv_lib_w_wslen" = x""yes; then : 8204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 8205fi 8206 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 8208$as_echo_n "checking for dlsym in -ldl... " >&6; } 8209if test "${ac_cv_lib_dl_dlsym+set}" = set; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 ac_check_lib_save_LIBS=$LIBS 8213LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216 8217/* Override any GCC internal prototype to avoid an error. 8218 Use char because int might match the return type of a GCC 8219 builtin and then its argument prototype would still apply. */ 8220#ifdef __cplusplus 8221extern "C" 8222#endif 8223char dlsym (); 8224int 8225main () 8226{ 8227return dlsym (); 8228 ; 8229 return 0; 8230} 8231_ACEOF 8232if ac_fn_c_try_link "$LINENO"; then : 8233 ac_cv_lib_dl_dlsym=yes 8234else 8235 ac_cv_lib_dl_dlsym=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext \ 8238 conftest$ac_exeext conftest.$ac_ext 8239LIBS=$ac_check_lib_save_LIBS 8240fi 8241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 8242$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 8243if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : 8244 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 8245fi 8246 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 8248$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 8249if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 ac_check_lib_save_LIBS=$LIBS 8253LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256 8257/* Override any GCC internal prototype to avoid an error. 8258 Use char because int might match the return type of a GCC 8259 builtin and then its argument prototype would still apply. */ 8260#ifdef __cplusplus 8261extern "C" 8262#endif 8263char XmuCreateStippledPixmap (); 8264int 8265main () 8266{ 8267return XmuCreateStippledPixmap (); 8268 ; 8269 return 0; 8270} 8271_ACEOF 8272if ac_fn_c_try_link "$LINENO"; then : 8273 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 8274else 8275 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 8276fi 8277rm -f core conftest.err conftest.$ac_objext \ 8278 conftest$ac_exeext conftest.$ac_ext 8279LIBS=$ac_check_lib_save_LIBS 8280fi 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 8282$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 8283if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then : 8284 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 8285fi 8286 8287 if test -z "$SKIP_MOTIF"; then 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 8289$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 8290if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 ac_check_lib_save_LIBS=$LIBS 8294LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297 8298/* Override any GCC internal prototype to avoid an error. 8299 Use char because int might match the return type of a GCC 8300 builtin and then its argument prototype would still apply. */ 8301#ifdef __cplusplus 8302extern "C" 8303#endif 8304char XpEndJob (); 8305int 8306main () 8307{ 8308return XpEndJob (); 8309 ; 8310 return 0; 8311} 8312_ACEOF 8313if ac_fn_c_try_link "$LINENO"; then : 8314 ac_cv_lib_Xp_XpEndJob=yes 8315else 8316 ac_cv_lib_Xp_XpEndJob=no 8317fi 8318rm -f core conftest.err conftest.$ac_objext \ 8319 conftest$ac_exeext conftest.$ac_ext 8320LIBS=$ac_check_lib_save_LIBS 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 8323$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 8324if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then : 8325 GUI_X_LIBS="-lXp $GUI_X_LIBS" 8326fi 8327 8328 fi 8329 LDFLAGS=$ldflags_save 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 8332$as_echo_n "checking for extra X11 defines... " >&6; } 8333 NARROW_PROTO= 8334 rm -fr conftestdir 8335 if mkdir conftestdir; then 8336 cd conftestdir 8337 cat > Imakefile <<'EOF' 8338acfindx: 8339 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 8340EOF 8341 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8342 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8343 fi 8344 cd .. 8345 rm -fr conftestdir 8346 fi 8347 if test -z "$NARROW_PROTO"; then 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8349$as_echo "no" >&6; } 8350 else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 8352$as_echo "$NARROW_PROTO" >&6; } 8353 fi 8354 8355fi 8356 8357if test "$enable_xsmp" = "yes"; then 8358 cppflags_save=$CPPFLAGS 8359 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8360 for ac_header in X11/SM/SMlib.h 8361do : 8362 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 8363if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 8364 cat >>confdefs.h <<_ACEOF 8365#define HAVE_X11_SM_SMLIB_H 1 8366_ACEOF 8367 8368fi 8369 8370done 8371 8372 CPPFLAGS=$cppflags_save 8373fi 8374 8375 8376if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then 8377 cppflags_save=$CPPFLAGS 8378 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8379 for ac_header in X11/xpm.h X11/Sunkeysym.h 8380do : 8381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8382ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8383eval as_val=\$$as_ac_Header 8384 if test "x$as_val" = x""yes; then : 8385 cat >>confdefs.h <<_ACEOF 8386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8387_ACEOF 8388 8389fi 8390 8391done 8392 8393 8394 if test ! "$enable_xim" = "no"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 8396$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399#include <X11/Xlib.h> 8400_ACEOF 8401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8402 $EGREP "XIMText" >/dev/null 2>&1; then : 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8404$as_echo "yes" >&6; } 8405else 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 8407$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" 8408fi 8409rm -f conftest* 8410 8411 fi 8412 CPPFLAGS=$cppflags_save 8413 8414 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 8415 -a "x$GUITYPE" != "xNONE" ; then 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 8417$as_echo "X GUI selected; xim has been enabled" >&6; } 8418 enable_xim="yes" 8419 fi 8420fi 8421 8422if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8423 cppflags_save=$CPPFLAGS 8424 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 8426$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428/* end confdefs.h. */ 8429 8430#include <X11/Intrinsic.h> 8431#include <X11/Xmu/Editres.h> 8432int 8433main () 8434{ 8435int i; i = 0; 8436 ; 8437 return 0; 8438} 8439_ACEOF 8440if ac_fn_c_try_compile "$LINENO"; then : 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8442$as_echo "yes" >&6; } 8443 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 8444 8445else 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447$as_echo "no" >&6; } 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8450 CPPFLAGS=$cppflags_save 8451fi 8452 8453if test -z "$SKIP_MOTIF"; then 8454 cppflags_save=$CPPFLAGS 8455 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8456 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ 8457 Xm/UnhighlightT.h Xm/Notebook.h 8458do : 8459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8460ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8461eval as_val=\$$as_ac_Header 8462 if test "x$as_val" = x""yes; then : 8463 cat >>confdefs.h <<_ACEOF 8464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8465_ACEOF 8466 8467fi 8468 8469done 8470 8471 8472 if test $ac_cv_header_Xm_XpmP_h = yes; then 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 8474$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477#include <Xm/XpmP.h> 8478int 8479main () 8480{ 8481XpmAttributes_21 attr; 8482 ; 8483 return 0; 8484} 8485_ACEOF 8486if ac_fn_c_try_compile "$LINENO"; then : 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8488$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 8489 8490else 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8492$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8493 8494 8495fi 8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8497 else 8498 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 8499 8500 fi 8501 CPPFLAGS=$cppflags_save 8502fi 8503 8504if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 8506$as_echo "no GUI selected; xim has been disabled" >&6; } 8507 enable_xim="no" 8508fi 8509if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 8511$as_echo "no GUI selected; fontset has been disabled" >&6; } 8512 enable_fontset="no" 8513fi 8514if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 8516$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 8517 enable_fontset="no" 8518fi 8519 8520if test -z "$SKIP_PHOTON"; then 8521 GUITYPE=PHOTONGUI 8522fi 8523 8524 8525 8526 8527 8528 8529if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 8530 as_fn_error "cannot use workshop without Motif" "$LINENO" 5 8531fi 8532 8533if test "$enable_xim" = "yes"; then 8534 $as_echo "#define FEAT_XIM 1" >>confdefs.h 8535 8536fi 8537if test "$enable_fontset" = "yes"; then 8538 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 8539 8540fi 8541 8542 8543 8544 8545if test "$enable_hangulinput" = "yes"; then 8546 if test "x$GUITYPE" = "xNONE"; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 8548$as_echo "no GUI selected; hangul input has been disabled" >&6; } 8549 enable_hangulinput=no 8550 else 8551 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 8552 8553 HANGULIN_SRC=hangulin.c 8554 8555 HANGULIN_OBJ=objects/hangulin.o 8556 8557 fi 8558fi 8559 8560 8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 8562$as_echo_n "checking whether toupper is broken... " >&6; } 8563if test "${vim_cv_toupper_broken+set}" = set; then : 8564 $as_echo_n "(cached) " >&6 8565else 8566 8567 if test "$cross_compiling" = yes; then : 8568 8569 as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 8570 8571else 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573/* end confdefs.h. */ 8574 8575#include "confdefs.h" 8576#include <ctype.h> 8577#if STDC_HEADERS 8578# include <stdlib.h> 8579# include <stddef.h> 8580#endif 8581main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 8582 8583_ACEOF 8584if ac_fn_c_try_run "$LINENO"; then : 8585 8586 vim_cv_toupper_broken=yes 8587 8588else 8589 8590 vim_cv_toupper_broken=no 8591 8592fi 8593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8594 conftest.$ac_objext conftest.beam conftest.$ac_ext 8595fi 8596 8597fi 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 8599$as_echo "$vim_cv_toupper_broken" >&6; } 8600 8601if test "x$vim_cv_toupper_broken" = "xyes" ; then 8602 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 8603 8604fi 8605 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 8607$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 8608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610#include <stdio.h> 8611int 8612main () 8613{ 8614printf("(" __DATE__ " " __TIME__ ")"); 8615 ; 8616 return 0; 8617} 8618_ACEOF 8619if ac_fn_c_try_compile "$LINENO"; then : 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8621$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 8622 8623else 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8625$as_echo "no" >&6; } 8626fi 8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8628 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 8630$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 8631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8632/* end confdefs.h. */ 8633#include <stdio.h> 8634int 8635main () 8636{ 8637int x __attribute__((unused)); 8638 ; 8639 return 0; 8640} 8641_ACEOF 8642if ac_fn_c_try_compile "$LINENO"; then : 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8644$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 8645 8646else 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8648$as_echo "no" >&6; } 8649fi 8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8651 8652ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 8653if test "x$ac_cv_header_elf_h" = x""yes; then : 8654 HAS_ELF=1 8655fi 8656 8657 8658if test "$HAS_ELF" = 1; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 8660$as_echo_n "checking for main in -lelf... " >&6; } 8661if test "${ac_cv_lib_elf_main+set}" = set; then : 8662 $as_echo_n "(cached) " >&6 8663else 8664 ac_check_lib_save_LIBS=$LIBS 8665LIBS="-lelf $LIBS" 8666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8667/* end confdefs.h. */ 8668 8669 8670int 8671main () 8672{ 8673return main (); 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678if ac_fn_c_try_link "$LINENO"; then : 8679 ac_cv_lib_elf_main=yes 8680else 8681 ac_cv_lib_elf_main=no 8682fi 8683rm -f core conftest.err conftest.$ac_objext \ 8684 conftest$ac_exeext conftest.$ac_ext 8685LIBS=$ac_check_lib_save_LIBS 8686fi 8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 8688$as_echo "$ac_cv_lib_elf_main" >&6; } 8689if test "x$ac_cv_lib_elf_main" = x""yes; then : 8690 cat >>confdefs.h <<_ACEOF 8691#define HAVE_LIBELF 1 8692_ACEOF 8693 8694 LIBS="-lelf $LIBS" 8695 8696fi 8697 8698fi 8699 8700ac_header_dirent=no 8701for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8702 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8704$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710#include <sys/types.h> 8711#include <$ac_hdr> 8712 8713int 8714main () 8715{ 8716if ((DIR *) 0) 8717return 0; 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_compile "$LINENO"; then : 8723 eval "$as_ac_Header=yes" 8724else 8725 eval "$as_ac_Header=no" 8726fi 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8728fi 8729eval ac_res=\$$as_ac_Header 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8731$as_echo "$ac_res" >&6; } 8732eval as_val=\$$as_ac_Header 8733 if test "x$as_val" = x""yes; then : 8734 cat >>confdefs.h <<_ACEOF 8735#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8736_ACEOF 8737 8738ac_header_dirent=$ac_hdr; break 8739fi 8740 8741done 8742# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8743if test $ac_header_dirent = dirent.h; then 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8745$as_echo_n "checking for library containing opendir... " >&6; } 8746if test "${ac_cv_search_opendir+set}" = set; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 ac_func_search_save_LIBS=$LIBS 8750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752 8753/* Override any GCC internal prototype to avoid an error. 8754 Use char because int might match the return type of a GCC 8755 builtin and then its argument prototype would still apply. */ 8756#ifdef __cplusplus 8757extern "C" 8758#endif 8759char opendir (); 8760int 8761main () 8762{ 8763return opendir (); 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768for ac_lib in '' dir; do 8769 if test -z "$ac_lib"; then 8770 ac_res="none required" 8771 else 8772 ac_res=-l$ac_lib 8773 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8774 fi 8775 if ac_fn_c_try_link "$LINENO"; then : 8776 ac_cv_search_opendir=$ac_res 8777fi 8778rm -f core conftest.err conftest.$ac_objext \ 8779 conftest$ac_exeext 8780 if test "${ac_cv_search_opendir+set}" = set; then : 8781 break 8782fi 8783done 8784if test "${ac_cv_search_opendir+set}" = set; then : 8785 8786else 8787 ac_cv_search_opendir=no 8788fi 8789rm conftest.$ac_ext 8790LIBS=$ac_func_search_save_LIBS 8791fi 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8793$as_echo "$ac_cv_search_opendir" >&6; } 8794ac_res=$ac_cv_search_opendir 8795if test "$ac_res" != no; then : 8796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8797 8798fi 8799 8800else 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8802$as_echo_n "checking for library containing opendir... " >&6; } 8803if test "${ac_cv_search_opendir+set}" = set; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 ac_func_search_save_LIBS=$LIBS 8807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809 8810/* Override any GCC internal prototype to avoid an error. 8811 Use char because int might match the return type of a GCC 8812 builtin and then its argument prototype would still apply. */ 8813#ifdef __cplusplus 8814extern "C" 8815#endif 8816char opendir (); 8817int 8818main () 8819{ 8820return opendir (); 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825for ac_lib in '' x; do 8826 if test -z "$ac_lib"; then 8827 ac_res="none required" 8828 else 8829 ac_res=-l$ac_lib 8830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8831 fi 8832 if ac_fn_c_try_link "$LINENO"; then : 8833 ac_cv_search_opendir=$ac_res 8834fi 8835rm -f core conftest.err conftest.$ac_objext \ 8836 conftest$ac_exeext 8837 if test "${ac_cv_search_opendir+set}" = set; then : 8838 break 8839fi 8840done 8841if test "${ac_cv_search_opendir+set}" = set; then : 8842 8843else 8844 ac_cv_search_opendir=no 8845fi 8846rm conftest.$ac_ext 8847LIBS=$ac_func_search_save_LIBS 8848fi 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8850$as_echo "$ac_cv_search_opendir" >&6; } 8851ac_res=$ac_cv_search_opendir 8852if test "$ac_res" != no; then : 8853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8854 8855fi 8856 8857fi 8858 8859 8860if test $ac_cv_header_sys_wait_h = no; then 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 8862$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865#include <sys/wait.h> 8866int 8867main () 8868{ 8869union wait xx, yy; xx = yy 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO"; then : 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8876$as_echo "yes" >&6; } 8877 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8878 8879 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 8880 8881else 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8883$as_echo "no" >&6; } 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8886fi 8887 8888for ac_header in stdarg.h stdint.h stdlib.h string.h \ 8889 sys/select.h sys/utsname.h termcap.h fcntl.h \ 8890 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 8891 termio.h iconv.h inttypes.h langinfo.h math.h \ 8892 unistd.h stropts.h errno.h sys/resource.h \ 8893 sys/systeminfo.h locale.h sys/stream.h termios.h \ 8894 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 8895 utime.h sys/param.h libintl.h libgen.h \ 8896 util/debug.h util/msg18n.h frame.h sys/acl.h \ 8897 sys/access.h sys/sysinfo.h wchar.h wctype.h 8898do : 8899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8901eval as_val=\$$as_ac_Header 8902 if test "x$as_val" = x""yes; then : 8903 cat >>confdefs.h <<_ACEOF 8904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8905_ACEOF 8906 8907fi 8908 8909done 8910 8911 8912for ac_header in sys/ptem.h 8913do : 8914 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 8915# include <sys/stream.h> 8916#endif 8917" 8918if test "x$ac_cv_header_sys_ptem_h" = x""yes; then : 8919 cat >>confdefs.h <<_ACEOF 8920#define HAVE_SYS_PTEM_H 1 8921_ACEOF 8922 8923fi 8924 8925done 8926 8927 8928for ac_header in sys/sysctl.h 8929do : 8930 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 8931# include <sys/param.h> 8932#endif 8933" 8934if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then : 8935 cat >>confdefs.h <<_ACEOF 8936#define HAVE_SYS_SYSCTL_H 1 8937_ACEOF 8938 8939fi 8940 8941done 8942 8943 8944 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 8946$as_echo_n "checking for pthread_np.h... " >&6; } 8947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949 8950#include <pthread.h> 8951#include <pthread_np.h> 8952int 8953main () 8954{ 8955int i; i = 0; 8956 ; 8957 return 0; 8958} 8959_ACEOF 8960if ac_fn_c_try_compile "$LINENO"; then : 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8962$as_echo "yes" >&6; } 8963 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 8964 8965else 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8967$as_echo "no" >&6; } 8968fi 8969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8970 8971for ac_header in strings.h 8972do : 8973 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 8974if test "x$ac_cv_header_strings_h" = x""yes; then : 8975 cat >>confdefs.h <<_ACEOF 8976#define HAVE_STRINGS_H 1 8977_ACEOF 8978 8979fi 8980 8981done 8982 8983if test "x$MACOSX" = "xyes"; then 8984 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 8985 8986else 8987 8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 8989$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 8990cppflags_save=$CPPFLAGS 8991CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993/* end confdefs.h. */ 8994 8995#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 8996# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 8997 /* but don't do it on AIX 5.1 (Uribarri) */ 8998#endif 8999#ifdef HAVE_XM_XM_H 9000# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 9001#endif 9002#ifdef HAVE_STRING_H 9003# include <string.h> 9004#endif 9005#if defined(HAVE_STRINGS_H) 9006# include <strings.h> 9007#endif 9008 9009int 9010main () 9011{ 9012int i; i = 0; 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO"; then : 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9019$as_echo "yes" >&6; } 9020else 9021 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024$as_echo "no" >&6; } 9025fi 9026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9027CPPFLAGS=$cppflags_save 9028fi 9029 9030if test $ac_cv_c_compiler_gnu = yes; then 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 9032$as_echo_n "checking whether $CC needs -traditional... " >&6; } 9033if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 ac_pattern="Autoconf.*'x'" 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038/* end confdefs.h. */ 9039#include <sgtty.h> 9040Autoconf TIOCGETP 9041_ACEOF 9042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9043 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 9044 ac_cv_prog_gcc_traditional=yes 9045else 9046 ac_cv_prog_gcc_traditional=no 9047fi 9048rm -f conftest* 9049 9050 9051 if test $ac_cv_prog_gcc_traditional = no; then 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054#include <termio.h> 9055Autoconf TCGETA 9056_ACEOF 9057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9058 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 9059 ac_cv_prog_gcc_traditional=yes 9060fi 9061rm -f conftest* 9062 9063 fi 9064fi 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 9066$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 9067 if test $ac_cv_prog_gcc_traditional = yes; then 9068 CC="$CC -traditional" 9069 fi 9070fi 9071 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9073$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9074if test "${ac_cv_c_const+set}" = set; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078/* end confdefs.h. */ 9079 9080int 9081main () 9082{ 9083/* FIXME: Include the comments suggested by Paul. */ 9084#ifndef __cplusplus 9085 /* Ultrix mips cc rejects this. */ 9086 typedef int charset[2]; 9087 const charset cs; 9088 /* SunOS 4.1.1 cc rejects this. */ 9089 char const *const *pcpcc; 9090 char **ppc; 9091 /* NEC SVR4.0.2 mips cc rejects this. */ 9092 struct point {int x, y;}; 9093 static struct point const zero = {0,0}; 9094 /* AIX XL C 1.02.0.0 rejects this. 9095 It does not let you subtract one const X* pointer from another in 9096 an arm of an if-expression whose if-part is not a constant 9097 expression */ 9098 const char *g = "string"; 9099 pcpcc = &g + (g ? g-g : 0); 9100 /* HPUX 7.0 cc rejects these. */ 9101 ++pcpcc; 9102 ppc = (char**) pcpcc; 9103 pcpcc = (char const *const *) ppc; 9104 { /* SCO 3.2v4 cc rejects this. */ 9105 char *t; 9106 char const *s = 0 ? (char *) 0 : (char const *) 0; 9107 9108 *t++ = 0; 9109 if (s) return 0; 9110 } 9111 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9112 int x[] = {25, 17}; 9113 const int *foo = &x[0]; 9114 ++foo; 9115 } 9116 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9117 typedef const int *iptr; 9118 iptr p = 0; 9119 ++p; 9120 } 9121 { /* AIX XL C 1.02.0.0 rejects this saying 9122 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9123 struct s { int j; const int *ap[3]; }; 9124 struct s *b; b->j = 5; 9125 } 9126 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9127 const int foo = 10; 9128 if (!foo) return 0; 9129 } 9130 return !cs[0] && !zero.x; 9131#endif 9132 9133 ; 9134 return 0; 9135} 9136_ACEOF 9137if ac_fn_c_try_compile "$LINENO"; then : 9138 ac_cv_c_const=yes 9139else 9140 ac_cv_c_const=no 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9143fi 9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9145$as_echo "$ac_cv_c_const" >&6; } 9146if test $ac_cv_c_const = no; then 9147 9148$as_echo "#define const /**/" >>confdefs.h 9149 9150fi 9151 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9153$as_echo_n "checking for working volatile... " >&6; } 9154if test "${ac_cv_c_volatile+set}" = set; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159 9160int 9161main () 9162{ 9163 9164volatile int x; 9165int * volatile y = (int *) 0; 9166return !x && !y; 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO"; then : 9172 ac_cv_c_volatile=yes 9173else 9174 ac_cv_c_volatile=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9177fi 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9179$as_echo "$ac_cv_c_volatile" >&6; } 9180if test $ac_cv_c_volatile = no; then 9181 9182$as_echo "#define volatile /**/" >>confdefs.h 9183 9184fi 9185 9186ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 9187if test "x$ac_cv_type_mode_t" = x""yes; then : 9188 9189else 9190 9191cat >>confdefs.h <<_ACEOF 9192#define mode_t int 9193_ACEOF 9194 9195fi 9196 9197ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 9198if test "x$ac_cv_type_off_t" = x""yes; then : 9199 9200else 9201 9202cat >>confdefs.h <<_ACEOF 9203#define off_t long int 9204_ACEOF 9205 9206fi 9207 9208ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 9209if test "x$ac_cv_type_pid_t" = x""yes; then : 9210 9211else 9212 9213cat >>confdefs.h <<_ACEOF 9214#define pid_t int 9215_ACEOF 9216 9217fi 9218 9219ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 9220if test "x$ac_cv_type_size_t" = x""yes; then : 9221 9222else 9223 9224cat >>confdefs.h <<_ACEOF 9225#define size_t unsigned int 9226_ACEOF 9227 9228fi 9229 9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9231$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9232if test "${ac_cv_type_uid_t+set}" = set; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237#include <sys/types.h> 9238 9239_ACEOF 9240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9241 $EGREP "uid_t" >/dev/null 2>&1; then : 9242 ac_cv_type_uid_t=yes 9243else 9244 ac_cv_type_uid_t=no 9245fi 9246rm -f conftest* 9247 9248fi 9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9250$as_echo "$ac_cv_type_uid_t" >&6; } 9251if test $ac_cv_type_uid_t = no; then 9252 9253$as_echo "#define uid_t int" >>confdefs.h 9254 9255 9256$as_echo "#define gid_t int" >>confdefs.h 9257 9258fi 9259 9260ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 9261case $ac_cv_c_uint32_t in #( 9262 no|yes) ;; #( 9263 *) 9264 9265$as_echo "#define _UINT32_T 1" >>confdefs.h 9266 9267 9268cat >>confdefs.h <<_ACEOF 9269#define uint32_t $ac_cv_c_uint32_t 9270_ACEOF 9271;; 9272 esac 9273 9274 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9276$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9277if test "${ac_cv_header_time+set}" = set; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282#include <sys/types.h> 9283#include <sys/time.h> 9284#include <time.h> 9285 9286int 9287main () 9288{ 9289if ((struct tm *) 0) 9290return 0; 9291 ; 9292 return 0; 9293} 9294_ACEOF 9295if ac_fn_c_try_compile "$LINENO"; then : 9296 ac_cv_header_time=yes 9297else 9298 ac_cv_header_time=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9303$as_echo "$ac_cv_header_time" >&6; } 9304if test $ac_cv_header_time = yes; then 9305 9306$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9307 9308fi 9309 9310ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 9311if test "x$ac_cv_type_ino_t" = x""yes; then : 9312 9313else 9314 9315cat >>confdefs.h <<_ACEOF 9316#define ino_t long 9317_ACEOF 9318 9319fi 9320 9321ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 9322if test "x$ac_cv_type_dev_t" = x""yes; then : 9323 9324else 9325 9326cat >>confdefs.h <<_ACEOF 9327#define dev_t unsigned 9328_ACEOF 9329 9330fi 9331 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9333$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9334if test "${ac_cv_c_bigendian+set}" = set; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 ac_cv_c_bigendian=unknown 9338 # See if we're dealing with a universal compiler. 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341#ifndef __APPLE_CC__ 9342 not a universal capable compiler 9343 #endif 9344 typedef int dummy; 9345 9346_ACEOF 9347if ac_fn_c_try_compile "$LINENO"; then : 9348 9349 # Check for potential -arch flags. It is not universal unless 9350 # there are at least two -arch flags with different values. 9351 ac_arch= 9352 ac_prev= 9353 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9354 if test -n "$ac_prev"; then 9355 case $ac_word in 9356 i?86 | x86_64 | ppc | ppc64) 9357 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9358 ac_arch=$ac_word 9359 else 9360 ac_cv_c_bigendian=universal 9361 break 9362 fi 9363 ;; 9364 esac 9365 ac_prev= 9366 elif test "x$ac_word" = "x-arch"; then 9367 ac_prev=arch 9368 fi 9369 done 9370fi 9371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9372 if test $ac_cv_c_bigendian = unknown; then 9373 # See if sys/param.h defines the BYTE_ORDER macro. 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9375/* end confdefs.h. */ 9376#include <sys/types.h> 9377 #include <sys/param.h> 9378 9379int 9380main () 9381{ 9382#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9383 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9384 && LITTLE_ENDIAN) 9385 bogus endian macros 9386 #endif 9387 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_compile "$LINENO"; then : 9393 # It does; now see whether it defined to BIG_ENDIAN or not. 9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395/* end confdefs.h. */ 9396#include <sys/types.h> 9397 #include <sys/param.h> 9398 9399int 9400main () 9401{ 9402#if BYTE_ORDER != BIG_ENDIAN 9403 not big endian 9404 #endif 9405 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410if ac_fn_c_try_compile "$LINENO"; then : 9411 ac_cv_c_bigendian=yes 9412else 9413 ac_cv_c_bigendian=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9418 fi 9419 if test $ac_cv_c_bigendian = unknown; then 9420 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9422/* end confdefs.h. */ 9423#include <limits.h> 9424 9425int 9426main () 9427{ 9428#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9429 bogus endian macros 9430 #endif 9431 9432 ; 9433 return 0; 9434} 9435_ACEOF 9436if ac_fn_c_try_compile "$LINENO"; then : 9437 # It does; now see whether it defined to _BIG_ENDIAN or not. 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440#include <limits.h> 9441 9442int 9443main () 9444{ 9445#ifndef _BIG_ENDIAN 9446 not big endian 9447 #endif 9448 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_compile "$LINENO"; then : 9454 ac_cv_c_bigendian=yes 9455else 9456 ac_cv_c_bigendian=no 9457fi 9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9461 fi 9462 if test $ac_cv_c_bigendian = unknown; then 9463 # Compile a test program. 9464 if test "$cross_compiling" = yes; then : 9465 # Try to guess by grepping values from an object file. 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468short int ascii_mm[] = 9469 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9470 short int ascii_ii[] = 9471 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9472 int use_ascii (int i) { 9473 return ascii_mm[i] + ascii_ii[i]; 9474 } 9475 short int ebcdic_ii[] = 9476 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9477 short int ebcdic_mm[] = 9478 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9479 int use_ebcdic (int i) { 9480 return ebcdic_mm[i] + ebcdic_ii[i]; 9481 } 9482 extern int foo; 9483 9484int 9485main () 9486{ 9487return use_ascii (foo) == use_ebcdic (foo); 9488 ; 9489 return 0; 9490} 9491_ACEOF 9492if ac_fn_c_try_compile "$LINENO"; then : 9493 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9494 ac_cv_c_bigendian=yes 9495 fi 9496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9497 if test "$ac_cv_c_bigendian" = unknown; then 9498 ac_cv_c_bigendian=no 9499 else 9500 # finding both strings is unlikely to happen, but who knows? 9501 ac_cv_c_bigendian=unknown 9502 fi 9503 fi 9504fi 9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9506else 9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9508/* end confdefs.h. */ 9509$ac_includes_default 9510int 9511main () 9512{ 9513 9514 /* Are we little or big endian? From Harbison&Steele. */ 9515 union 9516 { 9517 long int l; 9518 char c[sizeof (long int)]; 9519 } u; 9520 u.l = 1; 9521 return u.c[sizeof (long int) - 1] == 1; 9522 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527if ac_fn_c_try_run "$LINENO"; then : 9528 ac_cv_c_bigendian=no 9529else 9530 ac_cv_c_bigendian=yes 9531fi 9532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9533 conftest.$ac_objext conftest.beam conftest.$ac_ext 9534fi 9535 9536 fi 9537fi 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9539$as_echo "$ac_cv_c_bigendian" >&6; } 9540 case $ac_cv_c_bigendian in #( 9541 yes) 9542 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9543;; #( 9544 no) 9545 ;; #( 9546 universal) 9547 9548$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9549 9550 ;; #( 9551 *) 9552 as_fn_error "unknown endianness 9553 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9554 esac 9555 9556 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 9558$as_echo_n "checking for rlim_t... " >&6; } 9559if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 9561$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 9562else 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564/* end confdefs.h. */ 9565 9566#include <sys/types.h> 9567#if STDC_HEADERS 9568# include <stdlib.h> 9569# include <stddef.h> 9570#endif 9571#ifdef HAVE_SYS_RESOURCE_H 9572# include <sys/resource.h> 9573#endif 9574 9575_ACEOF 9576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9577 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 9578 ac_cv_type_rlim_t=yes 9579else 9580 ac_cv_type_rlim_t=no 9581fi 9582rm -f conftest* 9583 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 9585$as_echo "$ac_cv_type_rlim_t" >&6; } 9586fi 9587if test $ac_cv_type_rlim_t = no; then 9588 cat >> confdefs.h <<\EOF 9589#define rlim_t unsigned long 9590EOF 9591fi 9592 9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 9594$as_echo_n "checking for stack_t... " >&6; } 9595if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 9597$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 9598else 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601 9602#include <sys/types.h> 9603#if STDC_HEADERS 9604# include <stdlib.h> 9605# include <stddef.h> 9606#endif 9607#include <signal.h> 9608 9609_ACEOF 9610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9611 $EGREP "stack_t" >/dev/null 2>&1; then : 9612 ac_cv_type_stack_t=yes 9613else 9614 ac_cv_type_stack_t=no 9615fi 9616rm -f conftest* 9617 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 9619$as_echo "$ac_cv_type_stack_t" >&6; } 9620fi 9621if test $ac_cv_type_stack_t = no; then 9622 cat >> confdefs.h <<\EOF 9623#define stack_t struct sigaltstack 9624EOF 9625fi 9626 9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 9628$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 9629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631 9632#include <sys/types.h> 9633#if STDC_HEADERS 9634# include <stdlib.h> 9635# include <stddef.h> 9636#endif 9637#include <signal.h> 9638#include "confdefs.h" 9639 9640int 9641main () 9642{ 9643stack_t sigstk; sigstk.ss_base = 0; 9644 ; 9645 return 0; 9646} 9647_ACEOF 9648if ac_fn_c_try_compile "$LINENO"; then : 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9650$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 9651 9652else 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9654$as_echo "no" >&6; } 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657 9658olibs="$LIBS" 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 9660$as_echo_n "checking --with-tlib argument... " >&6; } 9661 9662# Check whether --with-tlib was given. 9663if test "${with_tlib+set}" = set; then : 9664 withval=$with_tlib; 9665fi 9666 9667if test -n "$with_tlib"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 9669$as_echo "$with_tlib" >&6; } 9670 LIBS="$LIBS -l$with_tlib" 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 9672$as_echo_n "checking for linking with $with_tlib library... " >&6; } 9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9674/* end confdefs.h. */ 9675 9676int 9677main () 9678{ 9679 9680 ; 9681 return 0; 9682} 9683_ACEOF 9684if ac_fn_c_try_link "$LINENO"; then : 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 9686$as_echo "OK" >&6; } 9687else 9688 as_fn_error "FAILED" "$LINENO" 5 9689fi 9690rm -f core conftest.err conftest.$ac_objext \ 9691 conftest$ac_exeext conftest.$ac_ext 9692 olibs="$LIBS" 9693else 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 9695$as_echo "empty: automatic terminal library selection" >&6; } 9696 case "`uname -s 2>/dev/null`" in 9697 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; 9698 *) tlibs="ncurses termlib termcap curses";; 9699 esac 9700 for libname in $tlibs; do 9701 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 9703$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 9704if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 ac_check_lib_save_LIBS=$LIBS 9708LIBS="-l${libname} $LIBS" 9709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9710/* end confdefs.h. */ 9711 9712/* Override any GCC internal prototype to avoid an error. 9713 Use char because int might match the return type of a GCC 9714 builtin and then its argument prototype would still apply. */ 9715#ifdef __cplusplus 9716extern "C" 9717#endif 9718char tgetent (); 9719int 9720main () 9721{ 9722return tgetent (); 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727if ac_fn_c_try_link "$LINENO"; then : 9728 eval "$as_ac_Lib=yes" 9729else 9730 eval "$as_ac_Lib=no" 9731fi 9732rm -f core conftest.err conftest.$ac_objext \ 9733 conftest$ac_exeext conftest.$ac_ext 9734LIBS=$ac_check_lib_save_LIBS 9735fi 9736eval ac_res=\$$as_ac_Lib 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9738$as_echo "$ac_res" >&6; } 9739eval as_val=\$$as_ac_Lib 9740 if test "x$as_val" = x""yes; then : 9741 cat >>confdefs.h <<_ACEOF 9742#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 9743_ACEOF 9744 9745 LIBS="-l${libname} $LIBS" 9746 9747fi 9748 9749 if test "x$olibs" != "x$LIBS"; then 9750 if test "$cross_compiling" = yes; then : 9751 res="FAIL" 9752else 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755 9756#ifdef HAVE_TERMCAP_H 9757# include <termcap.h> 9758#endif 9759#if STDC_HEADERS 9760# include <stdlib.h> 9761# include <stddef.h> 9762#endif 9763main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 9764_ACEOF 9765if ac_fn_c_try_run "$LINENO"; then : 9766 res="OK" 9767else 9768 res="FAIL" 9769fi 9770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9771 conftest.$ac_objext conftest.beam conftest.$ac_ext 9772fi 9773 9774 if test "$res" = "OK"; then 9775 break 9776 fi 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 9778$as_echo "$libname library is not usable" >&6; } 9779 LIBS="$olibs" 9780 fi 9781 done 9782 if test "x$olibs" = "x$LIBS"; then 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 9784$as_echo "no terminal library found" >&6; } 9785 fi 9786fi 9787 9788if test "x$olibs" = "x$LIBS"; then 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 9790$as_echo_n "checking for tgetent()... " >&6; } 9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9792/* end confdefs.h. */ 9793 9794int 9795main () 9796{ 9797char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 9798 ; 9799 return 0; 9800} 9801_ACEOF 9802if ac_fn_c_try_link "$LINENO"; then : 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9804$as_echo "yes" >&6; } 9805else 9806 as_fn_error "NOT FOUND! 9807 You need to install a terminal library; for example ncurses. 9808 Or specify the name of the library with --with-tlib." "$LINENO" 5 9809fi 9810rm -f core conftest.err conftest.$ac_objext \ 9811 conftest$ac_exeext conftest.$ac_ext 9812fi 9813 9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 9815$as_echo_n "checking whether we talk terminfo... " >&6; } 9816if test "${vim_cv_terminfo+set}" = set; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 9820 if test "$cross_compiling" = yes; then : 9821 9822 as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 9823 9824else 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827 9828#include "confdefs.h" 9829#ifdef HAVE_TERMCAP_H 9830# include <termcap.h> 9831#endif 9832#ifdef HAVE_STRING_H 9833# include <string.h> 9834#endif 9835#if STDC_HEADERS 9836# include <stdlib.h> 9837# include <stddef.h> 9838#endif 9839main() 9840{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 9841 9842_ACEOF 9843if ac_fn_c_try_run "$LINENO"; then : 9844 9845 vim_cv_terminfo=no 9846 9847else 9848 9849 vim_cv_terminfo=yes 9850 9851fi 9852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9853 conftest.$ac_objext conftest.beam conftest.$ac_ext 9854fi 9855 9856 9857fi 9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 9859$as_echo "$vim_cv_terminfo" >&6; } 9860 9861if test "x$vim_cv_terminfo" = "xyes" ; then 9862 $as_echo "#define TERMINFO 1" >>confdefs.h 9863 9864fi 9865 9866if test "x$olibs" != "x$LIBS"; then 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 9868$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 9869if test "${vim_cv_tgent+set}" = set; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 9873 if test "$cross_compiling" = yes; then : 9874 9875 as_fn_error "failed to compile test program." "$LINENO" 5 9876 9877else 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880 9881#include "confdefs.h" 9882#ifdef HAVE_TERMCAP_H 9883# include <termcap.h> 9884#endif 9885#if STDC_HEADERS 9886# include <stdlib.h> 9887# include <stddef.h> 9888#endif 9889main() 9890{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 9891 9892_ACEOF 9893if ac_fn_c_try_run "$LINENO"; then : 9894 9895 vim_cv_tgent=zero 9896 9897else 9898 9899 vim_cv_tgent=non-zero 9900 9901fi 9902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9903 conftest.$ac_objext conftest.beam conftest.$ac_ext 9904fi 9905 9906 9907fi 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 9909$as_echo "$vim_cv_tgent" >&6; } 9910 9911 if test "x$vim_cv_tgent" = "xzero" ; then 9912 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 9913 9914 fi 9915fi 9916 9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 9918$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 9919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921 9922#ifdef HAVE_TERMCAP_H 9923# include <termcap.h> 9924#endif 9925 9926int 9927main () 9928{ 9929ospeed = 20000 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_link "$LINENO"; then : 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9936$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 9937 9938else 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9940$as_echo "no" >&6; } 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 9942$as_echo_n "checking whether ospeed can be extern... " >&6; } 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945 9946#ifdef HAVE_TERMCAP_H 9947# include <termcap.h> 9948#endif 9949extern short ospeed; 9950 9951int 9952main () 9953{ 9954ospeed = 20000 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO"; then : 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9961$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 9962 9963else 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9965$as_echo "no" >&6; } 9966fi 9967rm -f core conftest.err conftest.$ac_objext \ 9968 conftest$ac_exeext conftest.$ac_ext 9969 9970fi 9971rm -f core conftest.err conftest.$ac_objext \ 9972 conftest$ac_exeext conftest.$ac_ext 9973 9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 9975$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 9976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9977/* end confdefs.h. */ 9978 9979#ifdef HAVE_TERMCAP_H 9980# include <termcap.h> 9981#endif 9982 9983int 9984main () 9985{ 9986if (UP == 0 && BC == 0) PC = 1 9987 ; 9988 return 0; 9989} 9990_ACEOF 9991if ac_fn_c_try_link "$LINENO"; then : 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9993$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 9994 9995else 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9997$as_echo "no" >&6; } 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 9999$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002 10003#ifdef HAVE_TERMCAP_H 10004# include <termcap.h> 10005#endif 10006extern char *UP, *BC, PC; 10007 10008int 10009main () 10010{ 10011if (UP == 0 && BC == 0) PC = 1 10012 ; 10013 return 0; 10014} 10015_ACEOF 10016if ac_fn_c_try_link "$LINENO"; then : 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10018$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 10019 10020else 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10022$as_echo "no" >&6; } 10023fi 10024rm -f core conftest.err conftest.$ac_objext \ 10025 conftest$ac_exeext conftest.$ac_ext 10026 10027fi 10028rm -f core conftest.err conftest.$ac_objext \ 10029 conftest$ac_exeext conftest.$ac_ext 10030 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 10032$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 10033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10034/* end confdefs.h. */ 10035 10036#ifdef HAVE_TERMCAP_H 10037# include <termcap.h> 10038#endif 10039 10040int 10041main () 10042{ 10043extern int xx(); tputs("test", 1, (outfuntype)xx) 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_compile "$LINENO"; then : 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10050$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 10051 10052else 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10054$as_echo "no" >&6; } 10055fi 10056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10057 10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 10059$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 10060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062 10063#include <sys/types.h> 10064#include <sys/time.h> 10065#include <sys/select.h> 10066int 10067main () 10068{ 10069 10070 ; 10071 return 0; 10072} 10073_ACEOF 10074if ac_fn_c_try_compile "$LINENO"; then : 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10076$as_echo "yes" >&6; } 10077 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 10078 10079else 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10081$as_echo "no" >&6; } 10082fi 10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10084 10085 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 10087$as_echo_n "checking for /dev/ptc... " >&6; } 10088if test -r /dev/ptc; then 10089 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10092$as_echo "yes" >&6; } 10093else 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10095$as_echo "no" >&6; } 10096fi 10097 10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 10099$as_echo_n "checking for SVR4 ptys... " >&6; } 10100if test -c /dev/ptmx ; then 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103 10104int 10105main () 10106{ 10107ptsname(0);grantpt(0);unlockpt(0); 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112if ac_fn_c_try_link "$LINENO"; then : 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10114$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 10115 10116else 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10118$as_echo "no" >&6; } 10119fi 10120rm -f core conftest.err conftest.$ac_objext \ 10121 conftest$ac_exeext conftest.$ac_ext 10122else 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10124$as_echo "no" >&6; } 10125fi 10126 10127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 10128$as_echo_n "checking for ptyranges... " >&6; } 10129if test -d /dev/ptym ; then 10130 pdir='/dev/ptym' 10131else 10132 pdir='/dev' 10133fi 10134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136#ifdef M_UNIX 10137 yes; 10138#endif 10139 10140_ACEOF 10141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10142 $EGREP "yes" >/dev/null 2>&1; then : 10143 ptys=`echo /dev/ptyp??` 10144else 10145 ptys=`echo $pdir/pty??` 10146fi 10147rm -f conftest* 10148 10149if test "$ptys" != "$pdir/pty??" ; then 10150 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 10151 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 10152 cat >>confdefs.h <<_ACEOF 10153#define PTYRANGE0 "$p0" 10154_ACEOF 10155 10156 cat >>confdefs.h <<_ACEOF 10157#define PTYRANGE1 "$p1" 10158_ACEOF 10159 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 10161$as_echo "$p0 / $p1" >&6; } 10162else 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 10164$as_echo "don't know" >&6; } 10165fi 10166 10167rm -f conftest_grp 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 10169$as_echo_n "checking default tty permissions/group... " >&6; } 10170if test "${vim_cv_tty_group+set}" = set; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 10174 if test "$cross_compiling" = yes; then : 10175 10176 as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 10177 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181 10182#include "confdefs.h" 10183#include <sys/types.h> 10184#if STDC_HEADERS 10185# include <stdlib.h> 10186# include <stddef.h> 10187#endif 10188#ifdef HAVE_UNISTD_H 10189#include <unistd.h> 10190#endif 10191#include <sys/stat.h> 10192#include <stdio.h> 10193main() 10194{ 10195 struct stat sb; 10196 char *x,*ttyname(); 10197 int om, m; 10198 FILE *fp; 10199 10200 if (!(x = ttyname(0))) exit(1); 10201 if (stat(x, &sb)) exit(1); 10202 om = sb.st_mode; 10203 if (om & 002) exit(0); 10204 m = system("mesg y"); 10205 if (m == -1 || m == 127) exit(1); 10206 if (stat(x, &sb)) exit(1); 10207 m = sb.st_mode; 10208 if (chmod(x, om)) exit(1); 10209 if (m & 002) exit(0); 10210 if (sb.st_gid == getgid()) exit(1); 10211 if (!(fp=fopen("conftest_grp", "w"))) 10212 exit(1); 10213 fprintf(fp, "%d\n", sb.st_gid); 10214 fclose(fp); 10215 exit(0); 10216} 10217 10218_ACEOF 10219if ac_fn_c_try_run "$LINENO"; then : 10220 10221 if test -f conftest_grp; then 10222 vim_cv_tty_group=`cat conftest_grp` 10223 if test "x$vim_cv_tty_mode" = "x" ; then 10224 vim_cv_tty_mode=0620 10225 fi 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 10227$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 10228 else 10229 vim_cv_tty_group=world 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 10231$as_echo "ptys are world accessible" >&6; } 10232 fi 10233 10234else 10235 10236 vim_cv_tty_group=world 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 10238$as_echo "can't determine - assume ptys are world accessible" >&6; } 10239 10240fi 10241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10242 conftest.$ac_objext conftest.beam conftest.$ac_ext 10243fi 10244 10245 10246fi 10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 10248$as_echo "$vim_cv_tty_group" >&6; } 10249rm -f conftest_grp 10250 10251if test "x$vim_cv_tty_group" != "xworld" ; then 10252 cat >>confdefs.h <<_ACEOF 10253#define PTYGROUP $vim_cv_tty_group 10254_ACEOF 10255 10256 if test "x$vim_cv_tty_mode" = "x" ; then 10257 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 10258 else 10259 $as_echo "#define PTYMODE 0620" >>confdefs.h 10260 10261 fi 10262fi 10263 10264 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 10266$as_echo_n "checking return type of signal handlers... " >&6; } 10267if test "${ac_cv_type_signal+set}" = set; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272#include <sys/types.h> 10273#include <signal.h> 10274 10275int 10276main () 10277{ 10278return *(signal (0, 0)) (0) == 1; 10279 ; 10280 return 0; 10281} 10282_ACEOF 10283if ac_fn_c_try_compile "$LINENO"; then : 10284 ac_cv_type_signal=int 10285else 10286 ac_cv_type_signal=void 10287fi 10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 10291$as_echo "$ac_cv_type_signal" >&6; } 10292 10293cat >>confdefs.h <<_ACEOF 10294#define RETSIGTYPE $ac_cv_type_signal 10295_ACEOF 10296 10297 10298 10299if test $ac_cv_type_signal = void; then 10300 $as_echo "#define SIGRETURN return" >>confdefs.h 10301 10302else 10303 $as_echo "#define SIGRETURN return 0" >>confdefs.h 10304 10305fi 10306 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 10308$as_echo_n "checking for struct sigcontext... " >&6; } 10309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311 10312#include <signal.h> 10313test_sig() 10314{ 10315 struct sigcontext *scont; 10316 scont = (struct sigcontext *)0; 10317 return 1; 10318} 10319int 10320main () 10321{ 10322 10323 ; 10324 return 0; 10325} 10326_ACEOF 10327if ac_fn_c_try_compile "$LINENO"; then : 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10329$as_echo "yes" >&6; } 10330 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 10331 10332else 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10334$as_echo "no" >&6; } 10335fi 10336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10337 10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 10339$as_echo_n "checking getcwd implementation is broken... " >&6; } 10340if test "${vim_cv_getcwd_broken+set}" = set; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 10344 if test "$cross_compiling" = yes; then : 10345 10346 as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 10347 10348else 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351 10352#include "confdefs.h" 10353#ifdef HAVE_UNISTD_H 10354#include <unistd.h> 10355#endif 10356char *dagger[] = { "IFS=pwd", 0 }; 10357main() 10358{ 10359 char buffer[500]; 10360 extern char **environ; 10361 environ = dagger; 10362 return getcwd(buffer, 500) ? 0 : 1; 10363} 10364 10365_ACEOF 10366if ac_fn_c_try_run "$LINENO"; then : 10367 10368 vim_cv_getcwd_broken=no 10369 10370else 10371 10372 vim_cv_getcwd_broken=yes 10373 10374fi 10375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10376 conftest.$ac_objext conftest.beam conftest.$ac_ext 10377fi 10378 10379 10380fi 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 10382$as_echo "$vim_cv_getcwd_broken" >&6; } 10383 10384if test "x$vim_cv_getcwd_broken" = "xyes" ; then 10385 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 10386 10387fi 10388 10389for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 10390 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 10391 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 10392 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 10393 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 10394 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 10395 usleep utime utimes 10396do : 10397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10399eval as_val=\$$as_ac_var 10400 if test "x$as_val" = x""yes; then : 10401 cat >>confdefs.h <<_ACEOF 10402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10403_ACEOF 10404 10405fi 10406done 10407 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 10409$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 10410if test "${ac_cv_sys_largefile_source+set}" = set; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 while :; do 10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10415/* end confdefs.h. */ 10416#include <sys/types.h> /* for off_t */ 10417 #include <stdio.h> 10418int 10419main () 10420{ 10421int (*fp) (FILE *, off_t, int) = fseeko; 10422 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427if ac_fn_c_try_link "$LINENO"; then : 10428 ac_cv_sys_largefile_source=no; break 10429fi 10430rm -f core conftest.err conftest.$ac_objext \ 10431 conftest$ac_exeext conftest.$ac_ext 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434#define _LARGEFILE_SOURCE 1 10435#include <sys/types.h> /* for off_t */ 10436 #include <stdio.h> 10437int 10438main () 10439{ 10440int (*fp) (FILE *, off_t, int) = fseeko; 10441 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10442 ; 10443 return 0; 10444} 10445_ACEOF 10446if ac_fn_c_try_link "$LINENO"; then : 10447 ac_cv_sys_largefile_source=1; break 10448fi 10449rm -f core conftest.err conftest.$ac_objext \ 10450 conftest$ac_exeext conftest.$ac_ext 10451 ac_cv_sys_largefile_source=unknown 10452 break 10453done 10454fi 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 10456$as_echo "$ac_cv_sys_largefile_source" >&6; } 10457case $ac_cv_sys_largefile_source in #( 10458 no | unknown) ;; 10459 *) 10460cat >>confdefs.h <<_ACEOF 10461#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 10462_ACEOF 10463;; 10464esac 10465rm -rf conftest* 10466 10467# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 10468# in glibc 2.1.3, but that breaks too many other things. 10469# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 10470if test $ac_cv_sys_largefile_source != unknown; then 10471 10472$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 10473 10474fi 10475 10476 10477# Check whether --enable-largefile was given. 10478if test "${enable_largefile+set}" = set; then : 10479 enableval=$enable_largefile; 10480fi 10481 10482if test "$enable_largefile" != no; then 10483 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10485$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10486if test "${ac_cv_sys_largefile_CC+set}" = set; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 ac_cv_sys_largefile_CC=no 10490 if test "$GCC" != yes; then 10491 ac_save_CC=$CC 10492 while :; do 10493 # IRIX 6.2 and later do not support large files by default, 10494 # so use the C compiler's -n32 option if that helps. 10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10496/* end confdefs.h. */ 10497#include <sys/types.h> 10498 /* Check that off_t can represent 2**63 - 1 correctly. 10499 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10500 since some C++ compilers masquerading as C compilers 10501 incorrectly reject 9223372036854775807. */ 10502#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10504 && LARGE_OFF_T % 2147483647 == 1) 10505 ? 1 : -1]; 10506int 10507main () 10508{ 10509 10510 ; 10511 return 0; 10512} 10513_ACEOF 10514 if ac_fn_c_try_compile "$LINENO"; then : 10515 break 10516fi 10517rm -f core conftest.err conftest.$ac_objext 10518 CC="$CC -n32" 10519 if ac_fn_c_try_compile "$LINENO"; then : 10520 ac_cv_sys_largefile_CC=' -n32'; break 10521fi 10522rm -f core conftest.err conftest.$ac_objext 10523 break 10524 done 10525 CC=$ac_save_CC 10526 rm -f conftest.$ac_ext 10527 fi 10528fi 10529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10530$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10531 if test "$ac_cv_sys_largefile_CC" != no; then 10532 CC=$CC$ac_cv_sys_largefile_CC 10533 fi 10534 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10536$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10537if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 while :; do 10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543#include <sys/types.h> 10544 /* Check that off_t can represent 2**63 - 1 correctly. 10545 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10546 since some C++ compilers masquerading as C compilers 10547 incorrectly reject 9223372036854775807. */ 10548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10550 && LARGE_OFF_T % 2147483647 == 1) 10551 ? 1 : -1]; 10552int 10553main () 10554{ 10555 10556 ; 10557 return 0; 10558} 10559_ACEOF 10560if ac_fn_c_try_compile "$LINENO"; then : 10561 ac_cv_sys_file_offset_bits=no; break 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566#define _FILE_OFFSET_BITS 64 10567#include <sys/types.h> 10568 /* Check that off_t can represent 2**63 - 1 correctly. 10569 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10570 since some C++ compilers masquerading as C compilers 10571 incorrectly reject 9223372036854775807. */ 10572#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10574 && LARGE_OFF_T % 2147483647 == 1) 10575 ? 1 : -1]; 10576int 10577main () 10578{ 10579 10580 ; 10581 return 0; 10582} 10583_ACEOF 10584if ac_fn_c_try_compile "$LINENO"; then : 10585 ac_cv_sys_file_offset_bits=64; break 10586fi 10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10588 ac_cv_sys_file_offset_bits=unknown 10589 break 10590done 10591fi 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10593$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10594case $ac_cv_sys_file_offset_bits in #( 10595 no | unknown) ;; 10596 *) 10597cat >>confdefs.h <<_ACEOF 10598#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10599_ACEOF 10600;; 10601esac 10602rm -rf conftest* 10603 if test $ac_cv_sys_file_offset_bits = unknown; then 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10605$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10606if test "${ac_cv_sys_large_files+set}" = set; then : 10607 $as_echo_n "(cached) " >&6 10608else 10609 while :; do 10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10611/* end confdefs.h. */ 10612#include <sys/types.h> 10613 /* Check that off_t can represent 2**63 - 1 correctly. 10614 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10615 since some C++ compilers masquerading as C compilers 10616 incorrectly reject 9223372036854775807. */ 10617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10619 && LARGE_OFF_T % 2147483647 == 1) 10620 ? 1 : -1]; 10621int 10622main () 10623{ 10624 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_compile "$LINENO"; then : 10630 ac_cv_sys_large_files=no; break 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635#define _LARGE_FILES 1 10636#include <sys/types.h> 10637 /* Check that off_t can represent 2**63 - 1 correctly. 10638 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10639 since some C++ compilers masquerading as C compilers 10640 incorrectly reject 9223372036854775807. */ 10641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10643 && LARGE_OFF_T % 2147483647 == 1) 10644 ? 1 : -1]; 10645int 10646main () 10647{ 10648 10649 ; 10650 return 0; 10651} 10652_ACEOF 10653if ac_fn_c_try_compile "$LINENO"; then : 10654 ac_cv_sys_large_files=1; break 10655fi 10656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10657 ac_cv_sys_large_files=unknown 10658 break 10659done 10660fi 10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10662$as_echo "$ac_cv_sys_large_files" >&6; } 10663case $ac_cv_sys_large_files in #( 10664 no | unknown) ;; 10665 *) 10666cat >>confdefs.h <<_ACEOF 10667#define _LARGE_FILES $ac_cv_sys_large_files 10668_ACEOF 10669;; 10670esac 10671rm -rf conftest* 10672 fi 10673fi 10674 10675 10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 10677$as_echo_n "checking for st_blksize... " >&6; } 10678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10679/* end confdefs.h. */ 10680#include <sys/types.h> 10681#include <sys/stat.h> 10682int 10683main () 10684{ 10685 struct stat st; 10686 int n; 10687 10688 stat("/", &st); 10689 n = (int)st.st_blksize; 10690 ; 10691 return 0; 10692} 10693_ACEOF 10694if ac_fn_c_try_compile "$LINENO"; then : 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10696$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 10697 10698else 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10700$as_echo "no" >&6; } 10701fi 10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10703 10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 10705$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 10706if test "${vim_cv_stat_ignores_slash+set}" = set; then : 10707 $as_echo_n "(cached) " >&6 10708else 10709 10710 if test "$cross_compiling" = yes; then : 10711 10712 as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 10713 10714else 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717 10718#include "confdefs.h" 10719#if STDC_HEADERS 10720# include <stdlib.h> 10721# include <stddef.h> 10722#endif 10723#include <sys/types.h> 10724#include <sys/stat.h> 10725main() {struct stat st; exit(stat("configure/", &st) != 0); } 10726 10727_ACEOF 10728if ac_fn_c_try_run "$LINENO"; then : 10729 10730 vim_cv_stat_ignores_slash=yes 10731 10732else 10733 10734 vim_cv_stat_ignores_slash=no 10735 10736fi 10737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10738 conftest.$ac_objext conftest.beam conftest.$ac_ext 10739fi 10740 10741 10742fi 10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 10744$as_echo "$vim_cv_stat_ignores_slash" >&6; } 10745 10746if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 10747 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 10748 10749fi 10750 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 10752$as_echo_n "checking for iconv_open()... " >&6; } 10753save_LIBS="$LIBS" 10754LIBS="$LIBS -liconv" 10755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756/* end confdefs.h. */ 10757 10758#ifdef HAVE_ICONV_H 10759# include <iconv.h> 10760#endif 10761 10762int 10763main () 10764{ 10765iconv_open("fr", "to"); 10766 ; 10767 return 0; 10768} 10769_ACEOF 10770if ac_fn_c_try_link "$LINENO"; then : 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 10772$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10773 10774else 10775 LIBS="$save_LIBS" 10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777/* end confdefs.h. */ 10778 10779#ifdef HAVE_ICONV_H 10780# include <iconv.h> 10781#endif 10782 10783int 10784main () 10785{ 10786iconv_open("fr", "to"); 10787 ; 10788 return 0; 10789} 10790_ACEOF 10791if ac_fn_c_try_link "$LINENO"; then : 10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10793$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10794 10795else 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10797$as_echo "no" >&6; } 10798fi 10799rm -f core conftest.err conftest.$ac_objext \ 10800 conftest$ac_exeext conftest.$ac_ext 10801fi 10802rm -f core conftest.err conftest.$ac_objext \ 10803 conftest$ac_exeext conftest.$ac_ext 10804 10805 10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 10807$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 10808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10809/* end confdefs.h. */ 10810 10811#ifdef HAVE_LANGINFO_H 10812# include <langinfo.h> 10813#endif 10814 10815int 10816main () 10817{ 10818char *cs = nl_langinfo(CODESET); 10819 ; 10820 return 0; 10821} 10822_ACEOF 10823if ac_fn_c_try_link "$LINENO"; then : 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10825$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 10826 10827else 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10829$as_echo "no" >&6; } 10830fi 10831rm -f core conftest.err conftest.$ac_objext \ 10832 conftest$ac_exeext conftest.$ac_ext 10833 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 10835$as_echo_n "checking for strtod in -lm... " >&6; } 10836if test "${ac_cv_lib_m_strtod+set}" = set; then : 10837 $as_echo_n "(cached) " >&6 10838else 10839 ac_check_lib_save_LIBS=$LIBS 10840LIBS="-lm $LIBS" 10841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843 10844/* Override any GCC internal prototype to avoid an error. 10845 Use char because int might match the return type of a GCC 10846 builtin and then its argument prototype would still apply. */ 10847#ifdef __cplusplus 10848extern "C" 10849#endif 10850char strtod (); 10851int 10852main () 10853{ 10854return strtod (); 10855 ; 10856 return 0; 10857} 10858_ACEOF 10859if ac_fn_c_try_link "$LINENO"; then : 10860 ac_cv_lib_m_strtod=yes 10861else 10862 ac_cv_lib_m_strtod=no 10863fi 10864rm -f core conftest.err conftest.$ac_objext \ 10865 conftest$ac_exeext conftest.$ac_ext 10866LIBS=$ac_check_lib_save_LIBS 10867fi 10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 10869$as_echo "$ac_cv_lib_m_strtod" >&6; } 10870if test "x$ac_cv_lib_m_strtod" = x""yes; then : 10871 cat >>confdefs.h <<_ACEOF 10872#define HAVE_LIBM 1 10873_ACEOF 10874 10875 LIBS="-lm $LIBS" 10876 10877fi 10878 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 10880$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 10881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882/* end confdefs.h. */ 10883 10884#ifdef HAVE_MATH_H 10885# include <math.h> 10886#endif 10887#if STDC_HEADERS 10888# include <stdlib.h> 10889# include <stddef.h> 10890#endif 10891 10892int 10893main () 10894{ 10895char *s; double d; 10896 d = strtod("1.1", &s); 10897 d = fabs(1.11); 10898 d = ceil(1.11); 10899 d = floor(1.11); 10900 d = log10(1.11); 10901 d = pow(1.11, 2.22); 10902 d = sqrt(1.11); 10903 d = sin(1.11); 10904 d = cos(1.11); 10905 d = atan(1.11); 10906 10907 ; 10908 return 0; 10909} 10910_ACEOF 10911if ac_fn_c_try_link "$LINENO"; then : 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10913$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 10914 10915else 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10917$as_echo "no" >&6; } 10918fi 10919rm -f core conftest.err conftest.$ac_objext \ 10920 conftest$ac_exeext conftest.$ac_ext 10921 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 10923$as_echo_n "checking --disable-acl argument... " >&6; } 10924# Check whether --enable-acl was given. 10925if test "${enable_acl+set}" = set; then : 10926 enableval=$enable_acl; 10927else 10928 enable_acl="yes" 10929fi 10930 10931if test "$enable_acl" = "yes"; then 10932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10933$as_echo "no" >&6; } 10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 10935$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 10936if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then : 10937 $as_echo_n "(cached) " >&6 10938else 10939 ac_check_lib_save_LIBS=$LIBS 10940LIBS="-lposix1e $LIBS" 10941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944/* Override any GCC internal prototype to avoid an error. 10945 Use char because int might match the return type of a GCC 10946 builtin and then its argument prototype would still apply. */ 10947#ifdef __cplusplus 10948extern "C" 10949#endif 10950char acl_get_file (); 10951int 10952main () 10953{ 10954return acl_get_file (); 10955 ; 10956 return 0; 10957} 10958_ACEOF 10959if ac_fn_c_try_link "$LINENO"; then : 10960 ac_cv_lib_posix1e_acl_get_file=yes 10961else 10962 ac_cv_lib_posix1e_acl_get_file=no 10963fi 10964rm -f core conftest.err conftest.$ac_objext \ 10965 conftest$ac_exeext conftest.$ac_ext 10966LIBS=$ac_check_lib_save_LIBS 10967fi 10968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 10969$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 10970if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then : 10971 LIBS="$LIBS -lposix1e" 10972else 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 10974$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 10975if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then : 10976 $as_echo_n "(cached) " >&6 10977else 10978 ac_check_lib_save_LIBS=$LIBS 10979LIBS="-lacl $LIBS" 10980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10981/* end confdefs.h. */ 10982 10983/* Override any GCC internal prototype to avoid an error. 10984 Use char because int might match the return type of a GCC 10985 builtin and then its argument prototype would still apply. */ 10986#ifdef __cplusplus 10987extern "C" 10988#endif 10989char acl_get_file (); 10990int 10991main () 10992{ 10993return acl_get_file (); 10994 ; 10995 return 0; 10996} 10997_ACEOF 10998if ac_fn_c_try_link "$LINENO"; then : 10999 ac_cv_lib_acl_acl_get_file=yes 11000else 11001 ac_cv_lib_acl_acl_get_file=no 11002fi 11003rm -f core conftest.err conftest.$ac_objext \ 11004 conftest$ac_exeext conftest.$ac_ext 11005LIBS=$ac_check_lib_save_LIBS 11006fi 11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 11008$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 11009if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then : 11010 LIBS="$LIBS -lacl" 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 11012$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 11013if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_check_lib_save_LIBS=$LIBS 11017LIBS="-lattr $LIBS" 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* Override any GCC internal prototype to avoid an error. 11022 Use char because int might match the return type of a GCC 11023 builtin and then its argument prototype would still apply. */ 11024#ifdef __cplusplus 11025extern "C" 11026#endif 11027char fgetxattr (); 11028int 11029main () 11030{ 11031return fgetxattr (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036if ac_fn_c_try_link "$LINENO"; then : 11037 ac_cv_lib_attr_fgetxattr=yes 11038else 11039 ac_cv_lib_attr_fgetxattr=no 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043LIBS=$ac_check_lib_save_LIBS 11044fi 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 11046$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 11047if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then : 11048 LIBS="$LIBS -lattr" 11049fi 11050 11051fi 11052 11053fi 11054 11055 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 11057$as_echo_n "checking for POSIX ACL support... " >&6; } 11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060 11061#include <sys/types.h> 11062#ifdef HAVE_SYS_ACL_H 11063# include <sys/acl.h> 11064#endif 11065acl_t acl; 11066int 11067main () 11068{ 11069acl = acl_get_file("foo", ACL_TYPE_ACCESS); 11070 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 11071 acl_free(acl); 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076if ac_fn_c_try_link "$LINENO"; then : 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11078$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 11079 11080else 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11082$as_echo "no" >&6; } 11083fi 11084rm -f core conftest.err conftest.$ac_objext \ 11085 conftest$ac_exeext conftest.$ac_ext 11086 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 11088$as_echo_n "checking for Solaris ACL support... " >&6; } 11089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090/* end confdefs.h. */ 11091 11092#ifdef HAVE_SYS_ACL_H 11093# include <sys/acl.h> 11094#endif 11095int 11096main () 11097{ 11098acl("foo", GETACLCNT, 0, NULL); 11099 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if ac_fn_c_try_link "$LINENO"; then : 11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11106$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 11107 11108else 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11110$as_echo "no" >&6; } 11111fi 11112rm -f core conftest.err conftest.$ac_objext \ 11113 conftest$ac_exeext conftest.$ac_ext 11114 11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 11116$as_echo_n "checking for AIX ACL support... " >&6; } 11117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11118/* end confdefs.h. */ 11119 11120#if STDC_HEADERS 11121# include <stdlib.h> 11122# include <stddef.h> 11123#endif 11124#ifdef HAVE_SYS_ACL_H 11125# include <sys/acl.h> 11126#endif 11127#ifdef HAVE_SYS_ACCESS_H 11128# include <sys/access.h> 11129#endif 11130#define _ALL_SOURCE 11131 11132#include <sys/stat.h> 11133 11134int aclsize; 11135struct acl *aclent; 11136int 11137main () 11138{ 11139aclsize = sizeof(struct acl); 11140 aclent = (void *)malloc(aclsize); 11141 statacl("foo", STX_NORMAL, aclent, aclsize); 11142 11143 ; 11144 return 0; 11145} 11146_ACEOF 11147if ac_fn_c_try_link "$LINENO"; then : 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11149$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 11150 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154fi 11155rm -f core conftest.err conftest.$ac_objext \ 11156 conftest$ac_exeext conftest.$ac_ext 11157else 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11159$as_echo "yes" >&6; } 11160fi 11161 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 11163$as_echo_n "checking --disable-gpm argument... " >&6; } 11164# Check whether --enable-gpm was given. 11165if test "${enable_gpm+set}" = set; then : 11166 enableval=$enable_gpm; 11167else 11168 enable_gpm="yes" 11169fi 11170 11171 11172if test "$enable_gpm" = "yes"; then 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11174$as_echo "no" >&6; } 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 11176$as_echo_n "checking for gpm... " >&6; } 11177if test "${vi_cv_have_gpm+set}" = set; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 olibs="$LIBS" ; LIBS="-lgpm" 11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11182/* end confdefs.h. */ 11183#include <gpm.h> 11184 #include <linux/keyboard.h> 11185int 11186main () 11187{ 11188Gpm_GetLibVersion(NULL); 11189 ; 11190 return 0; 11191} 11192_ACEOF 11193if ac_fn_c_try_link "$LINENO"; then : 11194 vi_cv_have_gpm=yes 11195else 11196 vi_cv_have_gpm=no 11197fi 11198rm -f core conftest.err conftest.$ac_objext \ 11199 conftest$ac_exeext conftest.$ac_ext 11200 LIBS="$olibs" 11201 11202fi 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 11204$as_echo "$vi_cv_have_gpm" >&6; } 11205 if test $vi_cv_have_gpm = yes; then 11206 LIBS="$LIBS -lgpm" 11207 $as_echo "#define HAVE_GPM 1" >>confdefs.h 11208 11209 fi 11210else 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11212$as_echo "yes" >&6; } 11213fi 11214 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 11216$as_echo_n "checking --disable-sysmouse argument... " >&6; } 11217# Check whether --enable-sysmouse was given. 11218if test "${enable_sysmouse+set}" = set; then : 11219 enableval=$enable_sysmouse; 11220else 11221 enable_sysmouse="yes" 11222fi 11223 11224 11225if test "$enable_sysmouse" = "yes"; then 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11227$as_echo "no" >&6; } 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 11229$as_echo_n "checking for sysmouse... " >&6; } 11230if test "${vi_cv_have_sysmouse+set}" = set; then : 11231 $as_echo_n "(cached) " >&6 11232else 11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11234/* end confdefs.h. */ 11235#include <sys/consio.h> 11236 #include <signal.h> 11237 #include <sys/fbio.h> 11238int 11239main () 11240{ 11241struct mouse_info mouse; 11242 mouse.operation = MOUSE_MODE; 11243 mouse.operation = MOUSE_SHOW; 11244 mouse.u.mode.mode = 0; 11245 mouse.u.mode.signal = SIGUSR2; 11246 ; 11247 return 0; 11248} 11249_ACEOF 11250if ac_fn_c_try_link "$LINENO"; then : 11251 vi_cv_have_sysmouse=yes 11252else 11253 vi_cv_have_sysmouse=no 11254fi 11255rm -f core conftest.err conftest.$ac_objext \ 11256 conftest$ac_exeext conftest.$ac_ext 11257 11258fi 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 11260$as_echo "$vi_cv_have_sysmouse" >&6; } 11261 if test $vi_cv_have_sysmouse = yes; then 11262 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 11263 11264 fi 11265else 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11267$as_echo "yes" >&6; } 11268fi 11269 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 11271$as_echo_n "checking for FD_CLOEXEC... " >&6; } 11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11273/* end confdefs.h. */ 11274#if HAVE_FCNTL_H 11275# include <fcntl.h> 11276#endif 11277int 11278main () 11279{ 11280 int flag = FD_CLOEXEC; 11281 ; 11282 return 0; 11283} 11284_ACEOF 11285if ac_fn_c_try_compile "$LINENO"; then : 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11287$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 11288 11289else 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11291$as_echo "not usable" >&6; } 11292fi 11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11294 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 11296$as_echo_n "checking for rename... " >&6; } 11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11298/* end confdefs.h. */ 11299#include <stdio.h> 11300int 11301main () 11302{ 11303rename("this", "that") 11304 ; 11305 return 0; 11306} 11307_ACEOF 11308if ac_fn_c_try_link "$LINENO"; then : 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11310$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 11311 11312else 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11314$as_echo "no" >&6; } 11315fi 11316rm -f core conftest.err conftest.$ac_objext \ 11317 conftest$ac_exeext conftest.$ac_ext 11318 11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 11320$as_echo_n "checking for sysctl... " >&6; } 11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323#include <sys/types.h> 11324#include <sys/sysctl.h> 11325int 11326main () 11327{ 11328 int mib[2], r; 11329 size_t len; 11330 11331 mib[0] = CTL_HW; 11332 mib[1] = HW_USERMEM; 11333 len = sizeof(r); 11334 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 11335 11336 ; 11337 return 0; 11338} 11339_ACEOF 11340if ac_fn_c_try_compile "$LINENO"; then : 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11342$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 11343 11344else 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11346$as_echo "not usable" >&6; } 11347fi 11348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11349 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 11351$as_echo_n "checking for sysinfo... " >&6; } 11352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353/* end confdefs.h. */ 11354#include <sys/types.h> 11355#include <sys/sysinfo.h> 11356int 11357main () 11358{ 11359 struct sysinfo sinfo; 11360 int t; 11361 11362 (void)sysinfo(&sinfo); 11363 t = sinfo.totalram; 11364 11365 ; 11366 return 0; 11367} 11368_ACEOF 11369if ac_fn_c_try_compile "$LINENO"; then : 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11371$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 11372 11373else 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11375$as_echo "not usable" >&6; } 11376fi 11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11378 11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 11380$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 11381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11382/* end confdefs.h. */ 11383#include <sys/types.h> 11384#include <sys/sysinfo.h> 11385int 11386main () 11387{ 11388 struct sysinfo sinfo; 11389 sinfo.mem_unit = 1; 11390 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395if ac_fn_c_try_compile "$LINENO"; then : 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11397$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 11398 11399else 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11401$as_echo "no" >&6; } 11402fi 11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11404 11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 11406$as_echo_n "checking for sysconf... " >&6; } 11407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11408/* end confdefs.h. */ 11409#include <unistd.h> 11410int 11411main () 11412{ 11413 (void)sysconf(_SC_PAGESIZE); 11414 (void)sysconf(_SC_PHYS_PAGES); 11415 11416 ; 11417 return 0; 11418} 11419_ACEOF 11420if ac_fn_c_try_compile "$LINENO"; then : 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11422$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 11423 11424else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 11426$as_echo "not usable" >&6; } 11427fi 11428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11429 11430# The cast to long int works around a bug in the HP C Compiler 11431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11433# This bug is HP SR number 8606223364. 11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11435$as_echo_n "checking size of int... " >&6; } 11436if test "${ac_cv_sizeof_int+set}" = set; then : 11437 $as_echo_n "(cached) " >&6 11438else 11439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 11440 11441else 11442 if test "$ac_cv_type_int" = yes; then 11443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11445{ as_fn_set_status 77 11446as_fn_error "cannot compute sizeof (int) 11447See \`config.log' for more details." "$LINENO" 5; }; } 11448 else 11449 ac_cv_sizeof_int=0 11450 fi 11451fi 11452 11453fi 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11455$as_echo "$ac_cv_sizeof_int" >&6; } 11456 11457 11458 11459cat >>confdefs.h <<_ACEOF 11460#define SIZEOF_INT $ac_cv_sizeof_int 11461_ACEOF 11462 11463 11464# The cast to long int works around a bug in the HP C Compiler 11465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11467# This bug is HP SR number 8606223364. 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11469$as_echo_n "checking size of long... " >&6; } 11470if test "${ac_cv_sizeof_long+set}" = set; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11474 11475else 11476 if test "$ac_cv_type_long" = yes; then 11477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11479{ as_fn_set_status 77 11480as_fn_error "cannot compute sizeof (long) 11481See \`config.log' for more details." "$LINENO" 5; }; } 11482 else 11483 ac_cv_sizeof_long=0 11484 fi 11485fi 11486 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11489$as_echo "$ac_cv_sizeof_long" >&6; } 11490 11491 11492 11493cat >>confdefs.h <<_ACEOF 11494#define SIZEOF_LONG $ac_cv_sizeof_long 11495_ACEOF 11496 11497 11498# The cast to long int works around a bug in the HP C Compiler 11499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11501# This bug is HP SR number 8606223364. 11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 11503$as_echo_n "checking size of time_t... " >&6; } 11504if test "${ac_cv_sizeof_time_t+set}" = set; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 11508 11509else 11510 if test "$ac_cv_type_time_t" = yes; then 11511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11513{ as_fn_set_status 77 11514as_fn_error "cannot compute sizeof (time_t) 11515See \`config.log' for more details." "$LINENO" 5; }; } 11516 else 11517 ac_cv_sizeof_time_t=0 11518 fi 11519fi 11520 11521fi 11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 11523$as_echo "$ac_cv_sizeof_time_t" >&6; } 11524 11525 11526 11527cat >>confdefs.h <<_ACEOF 11528#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 11529_ACEOF 11530 11531 11532# The cast to long int works around a bug in the HP C Compiler 11533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11535# This bug is HP SR number 8606223364. 11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 11537$as_echo_n "checking size of off_t... " >&6; } 11538if test "${ac_cv_sizeof_off_t+set}" = set; then : 11539 $as_echo_n "(cached) " >&6 11540else 11541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 11542 11543else 11544 if test "$ac_cv_type_off_t" = yes; then 11545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11547{ as_fn_set_status 77 11548as_fn_error "cannot compute sizeof (off_t) 11549See \`config.log' for more details." "$LINENO" 5; }; } 11550 else 11551 ac_cv_sizeof_off_t=0 11552 fi 11553fi 11554 11555fi 11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 11557$as_echo "$ac_cv_sizeof_off_t" >&6; } 11558 11559 11560 11561cat >>confdefs.h <<_ACEOF 11562#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 11563_ACEOF 11564 11565 11566 11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 11568$as_echo_n "checking uint32_t is 32 bits... " >&6; } 11569if test "$cross_compiling" = yes; then : 11570 as_fn_error "could not compile program using uint32_t." "$LINENO" 5 11571else 11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11573/* end confdefs.h. */ 11574 11575#ifdef HAVE_STDINT_H 11576# include <stdint.h> 11577#endif 11578#ifdef HAVE_INTTYPES_H 11579# include <inttypes.h> 11580#endif 11581main() { 11582 uint32_t nr1 = (uint32_t)-1; 11583 uint32_t nr2 = (uint32_t)0xffffffffUL; 11584 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 11585 exit(0); 11586} 11587_ACEOF 11588if ac_fn_c_try_run "$LINENO"; then : 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11590$as_echo "ok" >&6; } 11591else 11592 as_fn_error "WRONG! uint32_t not defined correctly." "$LINENO" 5 11593fi 11594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11595 conftest.$ac_objext conftest.beam conftest.$ac_ext 11596fi 11597 11598 11599 11600bcopy_test_prog=' 11601#include "confdefs.h" 11602#ifdef HAVE_STRING_H 11603# include <string.h> 11604#endif 11605#if STDC_HEADERS 11606# include <stdlib.h> 11607# include <stddef.h> 11608#endif 11609main() { 11610 char buf[10]; 11611 strcpy(buf, "abcdefghi"); 11612 mch_memmove(buf, buf + 2, 3); 11613 if (strncmp(buf, "ababcf", 6)) 11614 exit(1); 11615 strcpy(buf, "abcdefghi"); 11616 mch_memmove(buf + 2, buf, 3); 11617 if (strncmp(buf, "cdedef", 6)) 11618 exit(1); 11619 exit(0); /* libc version works properly. */ 11620}' 11621 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 11623$as_echo_n "checking whether memmove handles overlaps... " >&6; } 11624if test "${vim_cv_memmove_handles_overlap+set}" = set; then : 11625 $as_echo_n "(cached) " >&6 11626else 11627 11628 if test "$cross_compiling" = yes; then : 11629 11630 as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 11631 11632else 11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11634/* end confdefs.h. */ 11635#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 11636_ACEOF 11637if ac_fn_c_try_run "$LINENO"; then : 11638 11639 vim_cv_memmove_handles_overlap=yes 11640 11641else 11642 11643 vim_cv_memmove_handles_overlap=no 11644 11645fi 11646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11647 conftest.$ac_objext conftest.beam conftest.$ac_ext 11648fi 11649 11650 11651fi 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 11653$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 11654 11655if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 11656 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 11657 11658else 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 11660$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 11661if test "${vim_cv_bcopy_handles_overlap+set}" = set; then : 11662 $as_echo_n "(cached) " >&6 11663else 11664 11665 if test "$cross_compiling" = yes; then : 11666 11667 as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 11668 11669else 11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671/* end confdefs.h. */ 11672#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 11673_ACEOF 11674if ac_fn_c_try_run "$LINENO"; then : 11675 11676 vim_cv_bcopy_handles_overlap=yes 11677 11678else 11679 11680 vim_cv_bcopy_handles_overlap=no 11681 11682fi 11683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11684 conftest.$ac_objext conftest.beam conftest.$ac_ext 11685fi 11686 11687 11688fi 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 11690$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 11691 11692 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 11693 $as_echo "#define USEBCOPY 1" >>confdefs.h 11694 11695 else 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 11697$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 11698if test "${vim_cv_memcpy_handles_overlap+set}" = set; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 11702 if test "$cross_compiling" = yes; then : 11703 11704 as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 11705 11706else 11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11708/* end confdefs.h. */ 11709#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 11710_ACEOF 11711if ac_fn_c_try_run "$LINENO"; then : 11712 11713 vim_cv_memcpy_handles_overlap=yes 11714 11715else 11716 11717 vim_cv_memcpy_handles_overlap=no 11718 11719fi 11720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11721 conftest.$ac_objext conftest.beam conftest.$ac_ext 11722fi 11723 11724 11725fi 11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 11727$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 11728 11729 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 11730 $as_echo "#define USEMEMCPY 1" >>confdefs.h 11731 11732 fi 11733 fi 11734fi 11735 11736 11737 11738if test "$enable_multibyte" = "yes"; then 11739 cflags_save=$CFLAGS 11740 ldflags_save=$LDFLAGS 11741 if test "x$x_includes" != "xNONE" ; then 11742 CFLAGS="$CFLAGS -I$x_includes" 11743 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 11745$as_echo_n "checking whether X_LOCALE needed... " >&6; } 11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11747/* end confdefs.h. */ 11748#include <X11/Xlocale.h> 11749int 11750main () 11751{ 11752 11753 ; 11754 return 0; 11755} 11756_ACEOF 11757if ac_fn_c_try_compile "$LINENO"; then : 11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760 11761/* Override any GCC internal prototype to avoid an error. 11762 Use char because int might match the return type of a GCC 11763 builtin and then its argument prototype would still apply. */ 11764#ifdef __cplusplus 11765extern "C" 11766#endif 11767char _Xsetlocale (); 11768int 11769main () 11770{ 11771return _Xsetlocale (); 11772 ; 11773 return 0; 11774} 11775_ACEOF 11776if ac_fn_c_try_link "$LINENO"; then : 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11778$as_echo "yes" >&6; } 11779 $as_echo "#define X_LOCALE 1" >>confdefs.h 11780 11781else 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11783$as_echo "no" >&6; } 11784fi 11785rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787else 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789$as_echo "no" >&6; } 11790fi 11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11792 fi 11793 CFLAGS=$cflags_save 11794 LDFLAGS=$ldflags_save 11795fi 11796 11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 11798$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 11799if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then : 11800 $as_echo_n "(cached) " >&6 11801else 11802 ac_check_lib_save_LIBS=$LIBS 11803LIBS="-lxpg4 $LIBS" 11804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11805/* end confdefs.h. */ 11806 11807/* Override any GCC internal prototype to avoid an error. 11808 Use char because int might match the return type of a GCC 11809 builtin and then its argument prototype would still apply. */ 11810#ifdef __cplusplus 11811extern "C" 11812#endif 11813char _xpg4_setrunelocale (); 11814int 11815main () 11816{ 11817return _xpg4_setrunelocale (); 11818 ; 11819 return 0; 11820} 11821_ACEOF 11822if ac_fn_c_try_link "$LINENO"; then : 11823 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 11824else 11825 ac_cv_lib_xpg4__xpg4_setrunelocale=no 11826fi 11827rm -f core conftest.err conftest.$ac_objext \ 11828 conftest$ac_exeext conftest.$ac_ext 11829LIBS=$ac_check_lib_save_LIBS 11830fi 11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 11832$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 11833if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then : 11834 LIBS="$LIBS -lxpg4" 11835fi 11836 11837 11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 11839$as_echo_n "checking how to create tags... " >&6; } 11840test -f tags && mv tags tags.save 11841if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 11842 TAGPRG="ctags -I INIT+ --fields=+S" 11843else 11844 TAGPRG="ctags" 11845 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 11846 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 11847 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 11848 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 11849 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 11850 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 11851 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 11852fi 11853test -f tags.save && mv tags.save tags 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 11855$as_echo "$TAGPRG" >&6; } 11856 11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 11858$as_echo_n "checking how to run man with a section nr... " >&6; } 11859MANDEF="man" 11860(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 11862$as_echo "$MANDEF" >&6; } 11863if test "$MANDEF" = "man -s"; then 11864 $as_echo "#define USEMAN_S 1" >>confdefs.h 11865 11866fi 11867 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 11869$as_echo_n "checking --disable-nls argument... " >&6; } 11870# Check whether --enable-nls was given. 11871if test "${enable_nls+set}" = set; then : 11872 enableval=$enable_nls; 11873else 11874 enable_nls="yes" 11875fi 11876 11877 11878if test "$enable_nls" = "yes"; then 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11880$as_echo "no" >&6; } 11881 11882 INSTALL_LANGS=install-languages 11883 11884 INSTALL_TOOL_LANGS=install-tool-languages 11885 11886 11887 # Extract the first word of "msgfmt", so it can be a program name with args. 11888set dummy msgfmt; ac_word=$2 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11890$as_echo_n "checking for $ac_word... " >&6; } 11891if test "${ac_cv_prog_MSGFMT+set}" = set; then : 11892 $as_echo_n "(cached) " >&6 11893else 11894 if test -n "$MSGFMT"; then 11895 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 11896else 11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11898for as_dir in $PATH 11899do 11900 IFS=$as_save_IFS 11901 test -z "$as_dir" && as_dir=. 11902 for ac_exec_ext in '' $ac_executable_extensions; do 11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11904 ac_cv_prog_MSGFMT="msgfmt" 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11906 break 2 11907 fi 11908done 11909 done 11910IFS=$as_save_IFS 11911 11912fi 11913fi 11914MSGFMT=$ac_cv_prog_MSGFMT 11915if test -n "$MSGFMT"; then 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11917$as_echo "$MSGFMT" >&6; } 11918else 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11920$as_echo "no" >&6; } 11921fi 11922 11923 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 11925$as_echo_n "checking for NLS... " >&6; } 11926 if test -f po/Makefile; then 11927 have_gettext="no" 11928 if test -n "$MSGFMT"; then 11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931#include <libintl.h> 11932int 11933main () 11934{ 11935gettext("Test"); 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940if ac_fn_c_try_link "$LINENO"; then : 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 11942$as_echo "gettext() works" >&6; }; have_gettext="yes" 11943else 11944 olibs=$LIBS 11945 LIBS="$LIBS -lintl" 11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11947/* end confdefs.h. */ 11948#include <libintl.h> 11949int 11950main () 11951{ 11952gettext("Test"); 11953 ; 11954 return 0; 11955} 11956_ACEOF 11957if ac_fn_c_try_link "$LINENO"; then : 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 11959$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" 11960else 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 11962$as_echo "gettext() doesn't work" >&6; }; 11963 LIBS=$olibs 11964fi 11965rm -f core conftest.err conftest.$ac_objext \ 11966 conftest$ac_exeext conftest.$ac_ext 11967fi 11968rm -f core conftest.err conftest.$ac_objext \ 11969 conftest$ac_exeext conftest.$ac_ext 11970 else 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 11972$as_echo "msgfmt not found - disabled" >&6; }; 11973 fi 11974 if test $have_gettext = "yes"; then 11975 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 11976 11977 MAKEMO=yes 11978 11979 for ac_func in bind_textdomain_codeset 11980do : 11981 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 11982if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 11983 cat >>confdefs.h <<_ACEOF 11984#define HAVE_BIND_TEXTDOMAIN_CODESET 1 11985_ACEOF 11986 11987fi 11988done 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 11991$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11993/* end confdefs.h. */ 11994#include <libintl.h> 11995 extern int _nl_msg_cat_cntr; 11996int 11997main () 11998{ 11999++_nl_msg_cat_cntr; 12000 ; 12001 return 0; 12002} 12003_ACEOF 12004if ac_fn_c_try_link "$LINENO"; then : 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12006$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 12007 12008else 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12010$as_echo "no" >&6; } 12011fi 12012rm -f core conftest.err conftest.$ac_objext \ 12013 conftest$ac_exeext conftest.$ac_ext 12014 fi 12015 else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 12017$as_echo "no \"po/Makefile\" - disabled" >&6; }; 12018 fi 12019else 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12021$as_echo "yes" >&6; } 12022fi 12023 12024ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 12025if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 12026 DLL=dlfcn.h 12027else 12028 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 12029if test "x$ac_cv_header_dl_h" = x""yes; then : 12030 DLL=dl.h 12031fi 12032 12033 12034fi 12035 12036 12037if test x${DLL} = xdlfcn.h; then 12038 12039$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 12040 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 12042$as_echo_n "checking for dlopen()... " >&6; } 12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12044/* end confdefs.h. */ 12045 12046int 12047main () 12048{ 12049 12050 extern void* dlopen(); 12051 dlopen(); 12052 12053 ; 12054 return 0; 12055} 12056_ACEOF 12057if ac_fn_c_try_link "$LINENO"; then : 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12059$as_echo "yes" >&6; }; 12060 12061$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 12062 12063else 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12065$as_echo "no" >&6; }; 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 12067$as_echo_n "checking for dlopen() in -ldl... " >&6; } 12068 olibs=$LIBS 12069 LIBS="$LIBS -ldl" 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12071/* end confdefs.h. */ 12072 12073int 12074main () 12075{ 12076 12077 extern void* dlopen(); 12078 dlopen(); 12079 12080 ; 12081 return 0; 12082} 12083_ACEOF 12084if ac_fn_c_try_link "$LINENO"; then : 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12086$as_echo "yes" >&6; }; 12087 12088$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 12089 12090else 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12092$as_echo "no" >&6; }; 12093 LIBS=$olibs 12094fi 12095rm -f core conftest.err conftest.$ac_objext \ 12096 conftest$ac_exeext conftest.$ac_ext 12097fi 12098rm -f core conftest.err conftest.$ac_objext \ 12099 conftest$ac_exeext conftest.$ac_ext 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 12101$as_echo_n "checking for dlsym()... " >&6; } 12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12103/* end confdefs.h. */ 12104 12105int 12106main () 12107{ 12108 12109 extern void* dlsym(); 12110 dlsym(); 12111 12112 ; 12113 return 0; 12114} 12115_ACEOF 12116if ac_fn_c_try_link "$LINENO"; then : 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12118$as_echo "yes" >&6; }; 12119 12120$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 12121 12122else 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12124$as_echo "no" >&6; }; 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 12126$as_echo_n "checking for dlsym() in -ldl... " >&6; } 12127 olibs=$LIBS 12128 LIBS="$LIBS -ldl" 12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12130/* end confdefs.h. */ 12131 12132int 12133main () 12134{ 12135 12136 extern void* dlsym(); 12137 dlsym(); 12138 12139 ; 12140 return 0; 12141} 12142_ACEOF 12143if ac_fn_c_try_link "$LINENO"; then : 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12145$as_echo "yes" >&6; }; 12146 12147$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 12148 12149else 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12151$as_echo "no" >&6; }; 12152 LIBS=$olibs 12153fi 12154rm -f core conftest.err conftest.$ac_objext \ 12155 conftest$ac_exeext conftest.$ac_ext 12156fi 12157rm -f core conftest.err conftest.$ac_objext \ 12158 conftest$ac_exeext conftest.$ac_ext 12159elif test x${DLL} = xdl.h; then 12160 12161$as_echo "#define HAVE_DL_H 1" >>confdefs.h 12162 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 12164$as_echo_n "checking for shl_load()... " >&6; } 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167 12168int 12169main () 12170{ 12171 12172 extern void* shl_load(); 12173 shl_load(); 12174 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179if ac_fn_c_try_link "$LINENO"; then : 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12181$as_echo "yes" >&6; }; 12182 12183$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12184 12185else 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187$as_echo "no" >&6; }; 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 12189$as_echo_n "checking for shl_load() in -ldld... " >&6; } 12190 olibs=$LIBS 12191 LIBS="$LIBS -ldld" 12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12193/* end confdefs.h. */ 12194 12195int 12196main () 12197{ 12198 12199 extern void* shl_load(); 12200 shl_load(); 12201 12202 ; 12203 return 0; 12204} 12205_ACEOF 12206if ac_fn_c_try_link "$LINENO"; then : 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12208$as_echo "yes" >&6; }; 12209 12210$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12211 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12214$as_echo "no" >&6; }; 12215 LIBS=$olibs 12216fi 12217rm -f core conftest.err conftest.$ac_objext \ 12218 conftest$ac_exeext conftest.$ac_ext 12219fi 12220rm -f core conftest.err conftest.$ac_objext \ 12221 conftest$ac_exeext conftest.$ac_ext 12222fi 12223for ac_header in setjmp.h 12224do : 12225 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 12226if test "x$ac_cv_header_setjmp_h" = x""yes; then : 12227 cat >>confdefs.h <<_ACEOF 12228#define HAVE_SETJMP_H 1 12229_ACEOF 12230 12231fi 12232 12233done 12234 12235 12236if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 12237 if echo $LIBS | grep -e '-ldl' >/dev/null; then 12238 LIBS=`echo $LIBS | sed s/-ldl//` 12239 PERL_LIBS="$PERL_LIBS -ldl" 12240 fi 12241fi 12242 12243if test "x$MACOSX" = "xyes"; then 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 12245$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 12246 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 12247 LIBS=$"$LIBS -framework Cocoa" 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12249$as_echo "yes" >&6; } 12250 else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252$as_echo "no" >&6; } 12253 fi 12254fi 12255if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 12256 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 12257fi 12258 12259DEPEND_CFLAGS_FILTER= 12260if test "$GCC" = yes; then 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 12262$as_echo_n "checking for GCC 3 or later... " >&6; } 12263 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 12264 if test "$gccmajor" -gt "2"; then 12265 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12267$as_echo "yes" >&6; } 12268 else 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12270$as_echo "no" >&6; } 12271 fi 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 12273$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 12274 if test "$gccmajor" -gt "3"; then 12275 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12277$as_echo "yes" >&6; } 12278 else 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12280$as_echo "no" >&6; } 12281 fi 12282fi 12283 12284 12285ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 12286 12287cat >confcache <<\_ACEOF 12288# This file is a shell script that caches the results of configure 12289# tests run on this system so they can be shared between configure 12290# scripts and configure runs, see configure's option --config-cache. 12291# It is not useful on other systems. If it contains results you don't 12292# want to keep, you may remove or edit it. 12293# 12294# config.status only pays attention to the cache file if you give it 12295# the --recheck option to rerun configure. 12296# 12297# `ac_cv_env_foo' variables (set or unset) will be overridden when 12298# loading this file, other *unset* `ac_cv_foo' will be assigned the 12299# following values. 12300 12301_ACEOF 12302 12303# The following way of writing the cache mishandles newlines in values, 12304# but we know of no workaround that is simple, portable, and efficient. 12305# So, we kill variables containing newlines. 12306# Ultrix sh set writes to stderr and can't be redirected directly, 12307# and sets the high bit in the cache file unless we assign to the vars. 12308( 12309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12310 eval ac_val=\$$ac_var 12311 case $ac_val in #( 12312 *${as_nl}*) 12313 case $ac_var in #( 12314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12316 esac 12317 case $ac_var in #( 12318 _ | IFS | as_nl) ;; #( 12319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12320 *) { eval $ac_var=; unset $ac_var;} ;; 12321 esac ;; 12322 esac 12323 done 12324 12325 (set) 2>&1 | 12326 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12327 *${as_nl}ac_space=\ *) 12328 # `set' does not quote correctly, so add quotes: double-quote 12329 # substitution turns \\\\ into \\, and sed turns \\ into \. 12330 sed -n \ 12331 "s/'/'\\\\''/g; 12332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12333 ;; #( 12334 *) 12335 # `set' quotes correctly as required by POSIX, so do not add quotes. 12336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12337 ;; 12338 esac | 12339 sort 12340) | 12341 sed ' 12342 /^ac_cv_env_/b end 12343 t clear 12344 :clear 12345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12346 t end 12347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12348 :end' >>confcache 12349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12350 if test -w "$cache_file"; then 12351 test "x$cache_file" != "x/dev/null" && 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12353$as_echo "$as_me: updating cache $cache_file" >&6;} 12354 cat confcache >$cache_file 12355 else 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12357$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12358 fi 12359fi 12360rm -f confcache 12361 12362test "x$prefix" = xNONE && prefix=$ac_default_prefix 12363# Let make expand exec_prefix. 12364test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12365 12366DEFS=-DHAVE_CONFIG_H 12367 12368ac_libobjs= 12369ac_ltlibobjs= 12370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12371 # 1. Remove the extension, and $U if already installed. 12372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12375 # will be set to the directory where LIBOBJS objects are built. 12376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12378done 12379LIBOBJS=$ac_libobjs 12380 12381LTLIBOBJS=$ac_ltlibobjs 12382 12383 12384 12385 12386: ${CONFIG_STATUS=./config.status} 12387ac_write_fail=0 12388ac_clean_files_save=$ac_clean_files 12389ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12391$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12392as_write_fail=0 12393cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12394#! $SHELL 12395# Generated by $as_me. 12396# Run this file to recreate the current configuration. 12397# Compiler output produced by configure, useful for debugging 12398# configure, is in config.log if it exists. 12399 12400debug=false 12401ac_cs_recheck=false 12402ac_cs_silent=false 12403 12404SHELL=\${CONFIG_SHELL-$SHELL} 12405export SHELL 12406_ASEOF 12407cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12408## -------------------- ## 12409## M4sh Initialization. ## 12410## -------------------- ## 12411 12412# Be more Bourne compatible 12413DUALCASE=1; export DUALCASE # for MKS sh 12414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12415 emulate sh 12416 NULLCMD=: 12417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12418 # is contrary to our usage. Disable this feature. 12419 alias -g '${1+"$@"}'='"$@"' 12420 setopt NO_GLOB_SUBST 12421else 12422 case `(set -o) 2>/dev/null` in #( 12423 *posix*) : 12424 set -o posix ;; #( 12425 *) : 12426 ;; 12427esac 12428fi 12429 12430 12431as_nl=' 12432' 12433export as_nl 12434# Printing a long string crashes Solaris 7 /usr/bin/printf. 12435as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12438# Prefer a ksh shell builtin over an external printf program on Solaris, 12439# but without wasting forks for bash or zsh. 12440if test -z "$BASH_VERSION$ZSH_VERSION" \ 12441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12442 as_echo='print -r --' 12443 as_echo_n='print -rn --' 12444elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12445 as_echo='printf %s\n' 12446 as_echo_n='printf %s' 12447else 12448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12449 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12450 as_echo_n='/usr/ucb/echo -n' 12451 else 12452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12453 as_echo_n_body='eval 12454 arg=$1; 12455 case $arg in #( 12456 *"$as_nl"*) 12457 expr "X$arg" : "X\\(.*\\)$as_nl"; 12458 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12459 esac; 12460 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12461 ' 12462 export as_echo_n_body 12463 as_echo_n='sh -c $as_echo_n_body as_echo' 12464 fi 12465 export as_echo_body 12466 as_echo='sh -c $as_echo_body as_echo' 12467fi 12468 12469# The user is always right. 12470if test "${PATH_SEPARATOR+set}" != set; then 12471 PATH_SEPARATOR=: 12472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12474 PATH_SEPARATOR=';' 12475 } 12476fi 12477 12478 12479# IFS 12480# We need space, tab and new line, in precisely that order. Quoting is 12481# there to prevent editors from complaining about space-tab. 12482# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12483# splitting by setting IFS to empty value.) 12484IFS=" "" $as_nl" 12485 12486# Find who we are. Look in the path if we contain no directory separator. 12487case $0 in #(( 12488 *[\\/]* ) as_myself=$0 ;; 12489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490for as_dir in $PATH 12491do 12492 IFS=$as_save_IFS 12493 test -z "$as_dir" && as_dir=. 12494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12495 done 12496IFS=$as_save_IFS 12497 12498 ;; 12499esac 12500# We did not find ourselves, most probably we were run as `sh COMMAND' 12501# in which case we are not to be found in the path. 12502if test "x$as_myself" = x; then 12503 as_myself=$0 12504fi 12505if test ! -f "$as_myself"; then 12506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12507 exit 1 12508fi 12509 12510# Unset variables that we do not need and which cause bugs (e.g. in 12511# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12512# suppresses any "Segmentation fault" message there. '((' could 12513# trigger a bug in pdksh 5.2.14. 12514for as_var in BASH_ENV ENV MAIL MAILPATH 12515do eval test x\${$as_var+set} = xset \ 12516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12517done 12518PS1='$ ' 12519PS2='> ' 12520PS4='+ ' 12521 12522# NLS nuisances. 12523LC_ALL=C 12524export LC_ALL 12525LANGUAGE=C 12526export LANGUAGE 12527 12528# CDPATH. 12529(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12530 12531 12532# as_fn_error ERROR [LINENO LOG_FD] 12533# --------------------------------- 12534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12536# script with status $?, using 1 if that was 0. 12537as_fn_error () 12538{ 12539 as_status=$?; test $as_status -eq 0 && as_status=1 12540 if test "$3"; then 12541 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12543 fi 12544 $as_echo "$as_me: error: $1" >&2 12545 as_fn_exit $as_status 12546} # as_fn_error 12547 12548 12549# as_fn_set_status STATUS 12550# ----------------------- 12551# Set $? to STATUS, without forking. 12552as_fn_set_status () 12553{ 12554 return $1 12555} # as_fn_set_status 12556 12557# as_fn_exit STATUS 12558# ----------------- 12559# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12560as_fn_exit () 12561{ 12562 set +e 12563 as_fn_set_status $1 12564 exit $1 12565} # as_fn_exit 12566 12567# as_fn_unset VAR 12568# --------------- 12569# Portably unset VAR. 12570as_fn_unset () 12571{ 12572 { eval $1=; unset $1;} 12573} 12574as_unset=as_fn_unset 12575# as_fn_append VAR VALUE 12576# ---------------------- 12577# Append the text in VALUE to the end of the definition contained in VAR. Take 12578# advantage of any shell optimizations that allow amortized linear growth over 12579# repeated appends, instead of the typical quadratic growth present in naive 12580# implementations. 12581if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12582 eval 'as_fn_append () 12583 { 12584 eval $1+=\$2 12585 }' 12586else 12587 as_fn_append () 12588 { 12589 eval $1=\$$1\$2 12590 } 12591fi # as_fn_append 12592 12593# as_fn_arith ARG... 12594# ------------------ 12595# Perform arithmetic evaluation on the ARGs, and store the result in the 12596# global $as_val. Take advantage of shells that can avoid forks. The arguments 12597# must be portable across $(()) and expr. 12598if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12599 eval 'as_fn_arith () 12600 { 12601 as_val=$(( $* )) 12602 }' 12603else 12604 as_fn_arith () 12605 { 12606 as_val=`expr "$@" || test $? -eq 1` 12607 } 12608fi # as_fn_arith 12609 12610 12611if expr a : '\(a\)' >/dev/null 2>&1 && 12612 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12613 as_expr=expr 12614else 12615 as_expr=false 12616fi 12617 12618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12619 as_basename=basename 12620else 12621 as_basename=false 12622fi 12623 12624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12625 as_dirname=dirname 12626else 12627 as_dirname=false 12628fi 12629 12630as_me=`$as_basename -- "$0" || 12631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12632 X"$0" : 'X\(//\)$' \| \ 12633 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12634$as_echo X/"$0" | 12635 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12636 s//\1/ 12637 q 12638 } 12639 /^X\/\(\/\/\)$/{ 12640 s//\1/ 12641 q 12642 } 12643 /^X\/\(\/\).*/{ 12644 s//\1/ 12645 q 12646 } 12647 s/.*/./; q'` 12648 12649# Avoid depending upon Character Ranges. 12650as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12652as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12653as_cr_digits='0123456789' 12654as_cr_alnum=$as_cr_Letters$as_cr_digits 12655 12656ECHO_C= ECHO_N= ECHO_T= 12657case `echo -n x` in #((((( 12658-n*) 12659 case `echo 'xy\c'` in 12660 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12661 xy) ECHO_C='\c';; 12662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12663 ECHO_T=' ';; 12664 esac;; 12665*) 12666 ECHO_N='-n';; 12667esac 12668 12669rm -f conf$$ conf$$.exe conf$$.file 12670if test -d conf$$.dir; then 12671 rm -f conf$$.dir/conf$$.file 12672else 12673 rm -f conf$$.dir 12674 mkdir conf$$.dir 2>/dev/null 12675fi 12676if (echo >conf$$.file) 2>/dev/null; then 12677 if ln -s conf$$.file conf$$ 2>/dev/null; then 12678 as_ln_s='ln -s' 12679 # ... but there are two gotchas: 12680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12682 # In both cases, we have to default to `cp -p'. 12683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12684 as_ln_s='cp -p' 12685 elif ln conf$$.file conf$$ 2>/dev/null; then 12686 as_ln_s=ln 12687 else 12688 as_ln_s='cp -p' 12689 fi 12690else 12691 as_ln_s='cp -p' 12692fi 12693rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12694rmdir conf$$.dir 2>/dev/null 12695 12696 12697# as_fn_mkdir_p 12698# ------------- 12699# Create "$as_dir" as a directory, including parents if necessary. 12700as_fn_mkdir_p () 12701{ 12702 12703 case $as_dir in #( 12704 -*) as_dir=./$as_dir;; 12705 esac 12706 test -d "$as_dir" || eval $as_mkdir_p || { 12707 as_dirs= 12708 while :; do 12709 case $as_dir in #( 12710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12711 *) as_qdir=$as_dir;; 12712 esac 12713 as_dirs="'$as_qdir' $as_dirs" 12714 as_dir=`$as_dirname -- "$as_dir" || 12715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12716 X"$as_dir" : 'X\(//\)[^/]' \| \ 12717 X"$as_dir" : 'X\(//\)$' \| \ 12718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12719$as_echo X"$as_dir" | 12720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12721 s//\1/ 12722 q 12723 } 12724 /^X\(\/\/\)[^/].*/{ 12725 s//\1/ 12726 q 12727 } 12728 /^X\(\/\/\)$/{ 12729 s//\1/ 12730 q 12731 } 12732 /^X\(\/\).*/{ 12733 s//\1/ 12734 q 12735 } 12736 s/.*/./; q'` 12737 test -d "$as_dir" && break 12738 done 12739 test -z "$as_dirs" || eval "mkdir $as_dirs" 12740 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12741 12742 12743} # as_fn_mkdir_p 12744if mkdir -p . 2>/dev/null; then 12745 as_mkdir_p='mkdir -p "$as_dir"' 12746else 12747 test -d ./-p && rmdir ./-p 12748 as_mkdir_p=false 12749fi 12750 12751if test -x / >/dev/null 2>&1; then 12752 as_test_x='test -x' 12753else 12754 if ls -dL / >/dev/null 2>&1; then 12755 as_ls_L_option=L 12756 else 12757 as_ls_L_option= 12758 fi 12759 as_test_x=' 12760 eval sh -c '\'' 12761 if test -d "$1"; then 12762 test -d "$1/."; 12763 else 12764 case $1 in #( 12765 -*)set "./$1";; 12766 esac; 12767 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12768 ???[sx]*):;;*)false;;esac;fi 12769 '\'' sh 12770 ' 12771fi 12772as_executable_p=$as_test_x 12773 12774# Sed expression to map a string onto a valid CPP name. 12775as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12776 12777# Sed expression to map a string onto a valid variable name. 12778as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12779 12780 12781exec 6>&1 12782## ----------------------------------- ## 12783## Main body of $CONFIG_STATUS script. ## 12784## ----------------------------------- ## 12785_ASEOF 12786test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12787 12788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12789# Save the log message, to keep $0 and so on meaningful, and to 12790# report actual input values of CONFIG_FILES etc. instead of their 12791# values after options handling. 12792ac_log=" 12793This file was extended by $as_me, which was 12794generated by GNU Autoconf 2.65. Invocation command line was 12795 12796 CONFIG_FILES = $CONFIG_FILES 12797 CONFIG_HEADERS = $CONFIG_HEADERS 12798 CONFIG_LINKS = $CONFIG_LINKS 12799 CONFIG_COMMANDS = $CONFIG_COMMANDS 12800 $ $0 $@ 12801 12802on `(hostname || uname -n) 2>/dev/null | sed 1q` 12803" 12804 12805_ACEOF 12806 12807case $ac_config_files in *" 12808"*) set x $ac_config_files; shift; ac_config_files=$*;; 12809esac 12810 12811case $ac_config_headers in *" 12812"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12813esac 12814 12815 12816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12817# Files that config.status was made for. 12818config_files="$ac_config_files" 12819config_headers="$ac_config_headers" 12820 12821_ACEOF 12822 12823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12824ac_cs_usage="\ 12825\`$as_me' instantiates files and other configuration actions 12826from templates according to the current configuration. Unless the files 12827and actions are specified as TAGs, all are instantiated by default. 12828 12829Usage: $0 [OPTION]... [TAG]... 12830 12831 -h, --help print this help, then exit 12832 -V, --version print version number and configuration settings, then exit 12833 --config print configuration, then exit 12834 -q, --quiet, --silent 12835 do not print progress messages 12836 -d, --debug don't remove temporary files 12837 --recheck update $as_me by reconfiguring in the same conditions 12838 --file=FILE[:TEMPLATE] 12839 instantiate the configuration file FILE 12840 --header=FILE[:TEMPLATE] 12841 instantiate the configuration header FILE 12842 12843Configuration files: 12844$config_files 12845 12846Configuration headers: 12847$config_headers 12848 12849Report bugs to the package provider." 12850 12851_ACEOF 12852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12853ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12854ac_cs_version="\\ 12855config.status 12856configured by $0, generated by GNU Autoconf 2.65, 12857 with options \\"\$ac_cs_config\\" 12858 12859Copyright (C) 2009 Free Software Foundation, Inc. 12860This config.status script is free software; the Free Software Foundation 12861gives unlimited permission to copy, distribute and modify it." 12862 12863ac_pwd='$ac_pwd' 12864srcdir='$srcdir' 12865AWK='$AWK' 12866test -n "\$AWK" || AWK=awk 12867_ACEOF 12868 12869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12870# The default lists apply if the user does not specify any file. 12871ac_need_defaults=: 12872while test $# != 0 12873do 12874 case $1 in 12875 --*=*) 12876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12878 ac_shift=: 12879 ;; 12880 *) 12881 ac_option=$1 12882 ac_optarg=$2 12883 ac_shift=shift 12884 ;; 12885 esac 12886 12887 case $ac_option in 12888 # Handling of the options. 12889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12890 ac_cs_recheck=: ;; 12891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12892 $as_echo "$ac_cs_version"; exit ;; 12893 --config | --confi | --conf | --con | --co | --c ) 12894 $as_echo "$ac_cs_config"; exit ;; 12895 --debug | --debu | --deb | --de | --d | -d ) 12896 debug=: ;; 12897 --file | --fil | --fi | --f ) 12898 $ac_shift 12899 case $ac_optarg in 12900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12901 esac 12902 as_fn_append CONFIG_FILES " '$ac_optarg'" 12903 ac_need_defaults=false;; 12904 --header | --heade | --head | --hea ) 12905 $ac_shift 12906 case $ac_optarg in 12907 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12908 esac 12909 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12910 ac_need_defaults=false;; 12911 --he | --h) 12912 # Conflict between --help and --header 12913 as_fn_error "ambiguous option: \`$1' 12914Try \`$0 --help' for more information.";; 12915 --help | --hel | -h ) 12916 $as_echo "$ac_cs_usage"; exit ;; 12917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12918 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12919 ac_cs_silent=: ;; 12920 12921 # This is an error. 12922 -*) as_fn_error "unrecognized option: \`$1' 12923Try \`$0 --help' for more information." ;; 12924 12925 *) as_fn_append ac_config_targets " $1" 12926 ac_need_defaults=false ;; 12927 12928 esac 12929 shift 12930done 12931 12932ac_configure_extra_args= 12933 12934if $ac_cs_silent; then 12935 exec 6>/dev/null 12936 ac_configure_extra_args="$ac_configure_extra_args --silent" 12937fi 12938 12939_ACEOF 12940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12941if \$ac_cs_recheck; then 12942 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12943 shift 12944 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12945 CONFIG_SHELL='$SHELL' 12946 export CONFIG_SHELL 12947 exec "\$@" 12948fi 12949 12950_ACEOF 12951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12952exec 5>>auto/config.log 12953{ 12954 echo 12955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12956## Running $as_me. ## 12957_ASBOX 12958 $as_echo "$ac_log" 12959} >&5 12960 12961_ACEOF 12962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12963_ACEOF 12964 12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12966 12967# Handling of arguments. 12968for ac_config_target in $ac_config_targets 12969do 12970 case $ac_config_target in 12971 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 12972 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 12973 12974 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12975 esac 12976done 12977 12978 12979# If the user did not use the arguments to specify the items to instantiate, 12980# then the envvar interface is used. Set only those that are not. 12981# We use the long form for the default assignment because of an extremely 12982# bizarre bug on SunOS 4.1.3. 12983if $ac_need_defaults; then 12984 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12985 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12986fi 12987 12988# Have a temporary directory for convenience. Make it in the build tree 12989# simply because there is no reason against having it here, and in addition, 12990# creating and moving files from /tmp can sometimes cause problems. 12991# Hook for its removal unless debugging. 12992# Note that there is a small window in which the directory will not be cleaned: 12993# after its creation but before its name has been assigned to `$tmp'. 12994$debug || 12995{ 12996 tmp= 12997 trap 'exit_status=$? 12998 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12999' 0 13000 trap 'as_fn_exit 1' 1 2 13 15 13001} 13002# Create a (secure) tmp directory for tmp files. 13003 13004{ 13005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13006 test -n "$tmp" && test -d "$tmp" 13007} || 13008{ 13009 tmp=./conf$$-$RANDOM 13010 (umask 077 && mkdir "$tmp") 13011} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13012 13013# Set up the scripts for CONFIG_FILES section. 13014# No need to generate them if there are no CONFIG_FILES. 13015# This happens for instance with `./config.status config.h'. 13016if test -n "$CONFIG_FILES"; then 13017 13018 13019ac_cr=`echo X | tr X '\015'` 13020# On cygwin, bash can eat \r inside `` if the user requested igncr. 13021# But we know of no other shell where ac_cr would be empty at this 13022# point, so we can use a bashism as a fallback. 13023if test "x$ac_cr" = x; then 13024 eval ac_cr=\$\'\\r\' 13025fi 13026ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13027if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13028 ac_cs_awk_cr='\r' 13029else 13030 ac_cs_awk_cr=$ac_cr 13031fi 13032 13033echo 'BEGIN {' >"$tmp/subs1.awk" && 13034_ACEOF 13035 13036 13037{ 13038 echo "cat >conf$$subs.awk <<_ACEOF" && 13039 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13040 echo "_ACEOF" 13041} >conf$$subs.sh || 13042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13043ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13044ac_delim='%!_!# ' 13045for ac_last_try in false false false false false :; do 13046 . ./conf$$subs.sh || 13047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13048 13049 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13050 if test $ac_delim_n = $ac_delim_num; then 13051 break 13052 elif $ac_last_try; then 13053 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13054 else 13055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13056 fi 13057done 13058rm -f conf$$subs.sh 13059 13060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13061cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13062_ACEOF 13063sed -n ' 13064h 13065s/^/S["/; s/!.*/"]=/ 13066p 13067g 13068s/^[^!]*!// 13069:repl 13070t repl 13071s/'"$ac_delim"'$// 13072t delim 13073:nl 13074h 13075s/\(.\{148\}\)..*/\1/ 13076t more1 13077s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13078p 13079n 13080b repl 13081:more1 13082s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13083p 13084g 13085s/.\{148\}// 13086t nl 13087:delim 13088h 13089s/\(.\{148\}\)..*/\1/ 13090t more2 13091s/["\\]/\\&/g; s/^/"/; s/$/"/ 13092p 13093b 13094:more2 13095s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13096p 13097g 13098s/.\{148\}// 13099t delim 13100' <conf$$subs.awk | sed ' 13101/^[^""]/{ 13102 N 13103 s/\n// 13104} 13105' >>$CONFIG_STATUS || ac_write_fail=1 13106rm -f conf$$subs.awk 13107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13108_ACAWK 13109cat >>"\$tmp/subs1.awk" <<_ACAWK && 13110 for (key in S) S_is_set[key] = 1 13111 FS = "" 13112 13113} 13114{ 13115 line = $ 0 13116 nfields = split(line, field, "@") 13117 substed = 0 13118 len = length(field[1]) 13119 for (i = 2; i < nfields; i++) { 13120 key = field[i] 13121 keylen = length(key) 13122 if (S_is_set[key]) { 13123 value = S[key] 13124 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13125 len += length(value) + length(field[++i]) 13126 substed = 1 13127 } else 13128 len += 1 + keylen 13129 } 13130 13131 print line 13132} 13133 13134_ACAWK 13135_ACEOF 13136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13137if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13138 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13139else 13140 cat 13141fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13142 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13143_ACEOF 13144 13145# VPATH may cause trouble with some makes, so we remove $(srcdir), 13146# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13147# trailing colons and then remove the whole line if VPATH becomes empty 13148# (actually we leave an empty line to preserve line numbers). 13149if test "x$srcdir" = x.; then 13150 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13151s/:*\$(srcdir):*/:/ 13152s/:*\${srcdir}:*/:/ 13153s/:*@srcdir@:*/:/ 13154s/^\([^=]*=[ ]*\):*/\1/ 13155s/:*$// 13156s/^[^=]*=[ ]*$// 13157}' 13158fi 13159 13160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13161fi # test -n "$CONFIG_FILES" 13162 13163# Set up the scripts for CONFIG_HEADERS section. 13164# No need to generate them if there are no CONFIG_HEADERS. 13165# This happens for instance with `./config.status Makefile'. 13166if test -n "$CONFIG_HEADERS"; then 13167cat >"$tmp/defines.awk" <<\_ACAWK || 13168BEGIN { 13169_ACEOF 13170 13171# Transform confdefs.h into an awk script `defines.awk', embedded as 13172# here-document in config.status, that substitutes the proper values into 13173# config.h.in to produce config.h. 13174 13175# Create a delimiter string that does not exist in confdefs.h, to ease 13176# handling of long lines. 13177ac_delim='%!_!# ' 13178for ac_last_try in false false :; do 13179 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13180 if test -z "$ac_t"; then 13181 break 13182 elif $ac_last_try; then 13183 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13184 else 13185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13186 fi 13187done 13188 13189# For the awk script, D is an array of macro values keyed by name, 13190# likewise P contains macro parameters if any. Preserve backslash 13191# newline sequences. 13192 13193ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13194sed -n ' 13195s/.\{148\}/&'"$ac_delim"'/g 13196t rset 13197:rset 13198s/^[ ]*#[ ]*define[ ][ ]*/ / 13199t def 13200d 13201:def 13202s/\\$// 13203t bsnl 13204s/["\\]/\\&/g 13205s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13206D["\1"]=" \3"/p 13207s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13208d 13209:bsnl 13210s/["\\]/\\&/g 13211s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13212D["\1"]=" \3\\\\\\n"\\/p 13213t cont 13214s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13215t cont 13216d 13217:cont 13218n 13219s/.\{148\}/&'"$ac_delim"'/g 13220t clear 13221:clear 13222s/\\$// 13223t bsnlc 13224s/["\\]/\\&/g; s/^/"/; s/$/"/p 13225d 13226:bsnlc 13227s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13228b cont 13229' <confdefs.h | sed ' 13230s/'"$ac_delim"'/"\\\ 13231"/g' >>$CONFIG_STATUS || ac_write_fail=1 13232 13233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13234 for (key in D) D_is_set[key] = 1 13235 FS = "" 13236} 13237/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13238 line = \$ 0 13239 split(line, arg, " ") 13240 if (arg[1] == "#") { 13241 defundef = arg[2] 13242 mac1 = arg[3] 13243 } else { 13244 defundef = substr(arg[1], 2) 13245 mac1 = arg[2] 13246 } 13247 split(mac1, mac2, "(") #) 13248 macro = mac2[1] 13249 prefix = substr(line, 1, index(line, defundef) - 1) 13250 if (D_is_set[macro]) { 13251 # Preserve the white space surrounding the "#". 13252 print prefix "define", macro P[macro] D[macro] 13253 next 13254 } else { 13255 # Replace #undef with comments. This is necessary, for example, 13256 # in the case of _POSIX_SOURCE, which is predefined and required 13257 # on some systems where configure will not decide to define it. 13258 if (defundef == "undef") { 13259 print "/*", prefix defundef, macro, "*/" 13260 next 13261 } 13262 } 13263} 13264{ print } 13265_ACAWK 13266_ACEOF 13267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13268 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13269fi # test -n "$CONFIG_HEADERS" 13270 13271 13272eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13273shift 13274for ac_tag 13275do 13276 case $ac_tag in 13277 :[FHLC]) ac_mode=$ac_tag; continue;; 13278 esac 13279 case $ac_mode$ac_tag in 13280 :[FHL]*:*);; 13281 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13282 :[FH]-) ac_tag=-:-;; 13283 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13284 esac 13285 ac_save_IFS=$IFS 13286 IFS=: 13287 set x $ac_tag 13288 IFS=$ac_save_IFS 13289 shift 13290 ac_file=$1 13291 shift 13292 13293 case $ac_mode in 13294 :L) ac_source=$1;; 13295 :[FH]) 13296 ac_file_inputs= 13297 for ac_f 13298 do 13299 case $ac_f in 13300 -) ac_f="$tmp/stdin";; 13301 *) # Look for the file first in the build tree, then in the source tree 13302 # (if the path is not absolute). The absolute path cannot be DOS-style, 13303 # because $ac_f cannot contain `:'. 13304 test -f "$ac_f" || 13305 case $ac_f in 13306 [\\/$]*) false;; 13307 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13308 esac || 13309 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13310 esac 13311 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13312 as_fn_append ac_file_inputs " '$ac_f'" 13313 done 13314 13315 # Let's still pretend it is `configure' which instantiates (i.e., don't 13316 # use $as_me), people would be surprised to read: 13317 # /* config.h. Generated by config.status. */ 13318 configure_input='Generated from '` 13319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13320 `' by configure.' 13321 if test x"$ac_file" != x-; then 13322 configure_input="$ac_file. $configure_input" 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13324$as_echo "$as_me: creating $ac_file" >&6;} 13325 fi 13326 # Neutralize special characters interpreted by sed in replacement strings. 13327 case $configure_input in #( 13328 *\&* | *\|* | *\\* ) 13329 ac_sed_conf_input=`$as_echo "$configure_input" | 13330 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13331 *) ac_sed_conf_input=$configure_input;; 13332 esac 13333 13334 case $ac_tag in 13335 *:-:* | *:-) cat >"$tmp/stdin" \ 13336 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13337 esac 13338 ;; 13339 esac 13340 13341 ac_dir=`$as_dirname -- "$ac_file" || 13342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13343 X"$ac_file" : 'X\(//\)[^/]' \| \ 13344 X"$ac_file" : 'X\(//\)$' \| \ 13345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13346$as_echo X"$ac_file" | 13347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13348 s//\1/ 13349 q 13350 } 13351 /^X\(\/\/\)[^/].*/{ 13352 s//\1/ 13353 q 13354 } 13355 /^X\(\/\/\)$/{ 13356 s//\1/ 13357 q 13358 } 13359 /^X\(\/\).*/{ 13360 s//\1/ 13361 q 13362 } 13363 s/.*/./; q'` 13364 as_dir="$ac_dir"; as_fn_mkdir_p 13365 ac_builddir=. 13366 13367case "$ac_dir" in 13368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13369*) 13370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13371 # A ".." for each directory in $ac_dir_suffix. 13372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13373 case $ac_top_builddir_sub in 13374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13376 esac ;; 13377esac 13378ac_abs_top_builddir=$ac_pwd 13379ac_abs_builddir=$ac_pwd$ac_dir_suffix 13380# for backward compatibility: 13381ac_top_builddir=$ac_top_build_prefix 13382 13383case $srcdir in 13384 .) # We are building in place. 13385 ac_srcdir=. 13386 ac_top_srcdir=$ac_top_builddir_sub 13387 ac_abs_top_srcdir=$ac_pwd ;; 13388 [\\/]* | ?:[\\/]* ) # Absolute name. 13389 ac_srcdir=$srcdir$ac_dir_suffix; 13390 ac_top_srcdir=$srcdir 13391 ac_abs_top_srcdir=$srcdir ;; 13392 *) # Relative name. 13393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13394 ac_top_srcdir=$ac_top_build_prefix$srcdir 13395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13396esac 13397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13398 13399 13400 case $ac_mode in 13401 :F) 13402 # 13403 # CONFIG_FILE 13404 # 13405 13406_ACEOF 13407 13408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13409# If the template does not know about datarootdir, expand it. 13410# FIXME: This hack should be removed a few years after 2.60. 13411ac_datarootdir_hack=; ac_datarootdir_seen= 13412ac_sed_dataroot=' 13413/datarootdir/ { 13414 p 13415 q 13416} 13417/@datadir@/p 13418/@docdir@/p 13419/@infodir@/p 13420/@localedir@/p 13421/@mandir@/p' 13422case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13423*datarootdir*) ac_datarootdir_seen=yes;; 13424*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13426$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13427_ACEOF 13428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13429 ac_datarootdir_hack=' 13430 s&@datadir@&$datadir&g 13431 s&@docdir@&$docdir&g 13432 s&@infodir@&$infodir&g 13433 s&@localedir@&$localedir&g 13434 s&@mandir@&$mandir&g 13435 s&\\\${datarootdir}&$datarootdir&g' ;; 13436esac 13437_ACEOF 13438 13439# Neutralize VPATH when `$srcdir' = `.'. 13440# Shell code in configure.ac might set extrasub. 13441# FIXME: do we really want to maintain this feature? 13442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13443ac_sed_extra="$ac_vpsub 13444$extrasub 13445_ACEOF 13446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13447:t 13448/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13449s|@configure_input@|$ac_sed_conf_input|;t t 13450s&@top_builddir@&$ac_top_builddir_sub&;t t 13451s&@top_build_prefix@&$ac_top_build_prefix&;t t 13452s&@srcdir@&$ac_srcdir&;t t 13453s&@abs_srcdir@&$ac_abs_srcdir&;t t 13454s&@top_srcdir@&$ac_top_srcdir&;t t 13455s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13456s&@builddir@&$ac_builddir&;t t 13457s&@abs_builddir@&$ac_abs_builddir&;t t 13458s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13459$ac_datarootdir_hack 13460" 13461eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13462 || as_fn_error "could not create $ac_file" "$LINENO" 5 13463 13464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13468which seems to be undefined. Please make sure it is defined." >&5 13469$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13470which seems to be undefined. Please make sure it is defined." >&2;} 13471 13472 rm -f "$tmp/stdin" 13473 case $ac_file in 13474 -) cat "$tmp/out" && rm -f "$tmp/out";; 13475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13476 esac \ 13477 || as_fn_error "could not create $ac_file" "$LINENO" 5 13478 ;; 13479 :H) 13480 # 13481 # CONFIG_HEADER 13482 # 13483 if test x"$ac_file" != x-; then 13484 { 13485 $as_echo "/* $configure_input */" \ 13486 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13487 } >"$tmp/config.h" \ 13488 || as_fn_error "could not create $ac_file" "$LINENO" 5 13489 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13491$as_echo "$as_me: $ac_file is unchanged" >&6;} 13492 else 13493 rm -f "$ac_file" 13494 mv "$tmp/config.h" "$ac_file" \ 13495 || as_fn_error "could not create $ac_file" "$LINENO" 5 13496 fi 13497 else 13498 $as_echo "/* $configure_input */" \ 13499 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13500 || as_fn_error "could not create -" "$LINENO" 5 13501 fi 13502 ;; 13503 13504 13505 esac 13506 13507done # for ac_tag 13508 13509 13510as_fn_exit 0 13511_ACEOF 13512ac_clean_files=$ac_clean_files_save 13513 13514test $ac_write_fail = 0 || 13515 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13516 13517 13518# configure is writing to config.log, and then calls config.status. 13519# config.status does its own redirection, appending to config.log. 13520# Unfortunately, on DOS this fails, as config.log is still kept open 13521# by configure, so config.status won't be able to write to it; its 13522# output is simply discarded. So we exec the FD to /dev/null, 13523# effectively closing config.log, so it can be properly (re)opened and 13524# appended to by config.status. When coming back to configure, we 13525# need to make the FD available again. 13526if test "$no_create" != yes; then 13527 ac_cs_success=: 13528 ac_config_status_args= 13529 test "$silent" = yes && 13530 ac_config_status_args="$ac_config_status_args --quiet" 13531 exec 5>/dev/null 13532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13533 exec 5>>auto/config.log 13534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13535 # would make configure fail if this is the last instruction. 13536 $ac_cs_success || as_fn_exit $? 13537fi 13538if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13540$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13541fi 13542 13543 13544