1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664WORKSHOP_OBJ 665WORKSHOP_SRC 666RUBY_LIBS 667RUBY_CFLAGS 668RUBY_PRO 669RUBY_OBJ 670RUBY_SRC 671vi_cv_path_ruby 672TCL_LIBS 673TCL_CFLAGS 674TCL_PRO 675TCL_OBJ 676TCL_SRC 677vi_cv_path_tcl 678PYTHON3_OBJ 679PYTHON3_SRC 680PYTHON3_CFLAGS 681PYTHON3_LIBS 682PYTHON3_CONFDIR 683vi_cv_path_python3 684PYTHON_OBJ 685PYTHON_SRC 686PYTHON_CFLAGS 687PYTHON_GETPATH_CFLAGS 688PYTHON_LIBS 689PYTHON_CONFDIR 690vi_cv_path_python 691PERL_LIBS 692PERL_CFLAGS 693PERL_PRO 694PERL_OBJ 695PERL_SRC 696shrpenv 697vi_cv_perl_xsubpp 698vi_cv_perllib 699vi_cv_path_perl 700MZSCHEME_MZC 701MZSCHEME_EXTRA 702MZSCHEME_CFLAGS 703MZSCHEME_LIBS 704MZSCHEME_PRO 705MZSCHEME_OBJ 706MZSCHEME_SRC 707vi_cv_path_mzscheme 708LUA_CFLAGS 709LUA_LIBS 710LUA_PRO 711LUA_OBJ 712LUA_SRC 713vi_cv_path_plain_lua 714vi_cv_path_luajit 715vi_cv_path_lua 716compiledby 717dogvimdiff 718dovimdiff 719QUOTESED 720line_break 721VIEWNAME 722EXNAME 723VIMNAME 724OS_EXTRA_OBJ 725OS_EXTRA_SRC 726XCODE_SELECT 727CPP_MM 728CROSS_COMPILING 729STRIP 730AWK 731FGREP 732EGREP 733GREP 734CPP 735OBJEXT 736EXEEXT 737ac_ct_CC 738CPPFLAGS 739LDFLAGS 740CFLAGS 741CC 742SET_MAKE 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762runstatedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_fail_if_missing 786enable_darwin 787with_mac_arch 788with_developer_dir 789with_local_dir 790with_vim_name 791with_ex_name 792with_view_name 793with_global_runtime 794with_modified_by 795enable_smack 796enable_selinux 797with_features 798with_compiledby 799enable_xsmp 800enable_xsmp_interact 801enable_luainterp 802with_lua_prefix 803with_luajit 804enable_mzschemeinterp 805with_plthome 806enable_perlinterp 807enable_pythoninterp 808with_python_config_dir 809enable_python3interp 810with_python3_config_dir 811enable_tclinterp 812with_tclsh 813enable_rubyinterp 814with_ruby_command 815enable_cscope 816enable_workshop 817enable_netbeans 818enable_channel 819enable_terminal 820enable_autoservername 821enable_multibyte 822enable_hangulinput 823enable_xim 824enable_fontset 825with_x 826enable_gui 827enable_gtk2_check 828enable_gnome_check 829enable_gtk3_check 830enable_motif_check 831enable_athena_check 832enable_nextaw_check 833enable_carbon_check 834enable_gtktest 835with_gnome_includes 836with_gnome_libs 837with_gnome 838enable_icon_cache_update 839enable_desktop_database_update 840with_motif_lib 841with_tlib 842enable_largefile 843enable_acl 844enable_gpm 845enable_sysmouse 846enable_nls 847' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856CPP 857XMKMF' 858 859 860# Initialize some variables set by options. 861ac_init_help= 862ac_init_version=false 863ac_unrecognized_opts= 864ac_unrecognized_sep= 865# The variables have the same names as the options, with 866# dashes changed to underlines. 867cache_file=/dev/null 868exec_prefix=NONE 869no_create= 870no_recursion= 871prefix=NONE 872program_prefix=NONE 873program_suffix=NONE 874program_transform_name=s,x,x, 875silent= 876site= 877srcdir= 878verbose= 879x_includes=NONE 880x_libraries=NONE 881 882# Installation directory options. 883# These are left unexpanded so users can "make install exec_prefix=/foo" 884# and all the variables that are supposed to be based on exec_prefix 885# by default will actually change. 886# Use braces instead of parens because sh, perl, etc. also accept them. 887# (The list follows the same order as the GNU Coding Standards.) 888bindir='${exec_prefix}/bin' 889sbindir='${exec_prefix}/sbin' 890libexecdir='${exec_prefix}/libexec' 891datarootdir='${prefix}/share' 892datadir='${datarootdir}' 893sysconfdir='${prefix}/etc' 894sharedstatedir='${prefix}/com' 895localstatedir='${prefix}/var' 896runstatedir='${localstatedir}/run' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 # Accept the important Cygnus configure options, so we can diagnose typos. 927 928 case $ac_dashdash$ac_option in 929 --) 930 ac_dashdash=yes ;; 931 932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 933 ac_prev=bindir ;; 934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 935 bindir=$ac_optarg ;; 936 937 -build | --build | --buil | --bui | --bu) 938 ac_prev=build_alias ;; 939 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 940 build_alias=$ac_optarg ;; 941 942 -cache-file | --cache-file | --cache-fil | --cache-fi \ 943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 944 ac_prev=cache_file ;; 945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 947 cache_file=$ac_optarg ;; 948 949 --config-cache | -C) 950 cache_file=config.cache ;; 951 952 -datadir | --datadir | --datadi | --datad) 953 ac_prev=datadir ;; 954 -datadir=* | --datadir=* | --datadi=* | --datad=*) 955 datadir=$ac_optarg ;; 956 957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 958 | --dataroo | --dataro | --datar) 959 ac_prev=datarootdir ;; 960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 962 datarootdir=$ac_optarg ;; 963 964 -disable-* | --disable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=no ;; 979 980 -docdir | --docdir | --docdi | --doc | --do) 981 ac_prev=docdir ;; 982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 983 docdir=$ac_optarg ;; 984 985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 986 ac_prev=dvidir ;; 987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 988 dvidir=$ac_optarg ;; 989 990 -enable-* | --enable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=\$ac_optarg ;; 1005 1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1008 | --exec | --exe | --ex) 1009 ac_prev=exec_prefix ;; 1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1012 | --exec=* | --exe=* | --ex=*) 1013 exec_prefix=$ac_optarg ;; 1014 1015 -gas | --gas | --ga | --g) 1016 # Obsolete; use --with-gas. 1017 with_gas=yes ;; 1018 1019 -help | --help | --hel | --he | -h) 1020 ac_init_help=long ;; 1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1022 ac_init_help=recursive ;; 1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1024 ac_init_help=short ;; 1025 1026 -host | --host | --hos | --ho) 1027 ac_prev=host_alias ;; 1028 -host=* | --host=* | --hos=* | --ho=*) 1029 host_alias=$ac_optarg ;; 1030 1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1032 ac_prev=htmldir ;; 1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1034 | --ht=*) 1035 htmldir=$ac_optarg ;; 1036 1037 -includedir | --includedir | --includedi | --included | --include \ 1038 | --includ | --inclu | --incl | --inc) 1039 ac_prev=includedir ;; 1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1041 | --includ=* | --inclu=* | --incl=* | --inc=*) 1042 includedir=$ac_optarg ;; 1043 1044 -infodir | --infodir | --infodi | --infod | --info | --inf) 1045 ac_prev=infodir ;; 1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1047 infodir=$ac_optarg ;; 1048 1049 -libdir | --libdir | --libdi | --libd) 1050 ac_prev=libdir ;; 1051 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1052 libdir=$ac_optarg ;; 1053 1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1055 | --libexe | --libex | --libe) 1056 ac_prev=libexecdir ;; 1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1058 | --libexe=* | --libex=* | --libe=*) 1059 libexecdir=$ac_optarg ;; 1060 1061 -localedir | --localedir | --localedi | --localed | --locale) 1062 ac_prev=localedir ;; 1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1064 localedir=$ac_optarg ;; 1065 1066 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1067 | --localstate | --localstat | --localsta | --localst | --locals) 1068 ac_prev=localstatedir ;; 1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1071 localstatedir=$ac_optarg ;; 1072 1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1074 ac_prev=mandir ;; 1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1076 mandir=$ac_optarg ;; 1077 1078 -nfp | --nfp | --nf) 1079 # Obsolete; use --without-fp. 1080 with_fp=no ;; 1081 1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1083 | --no-cr | --no-c | -n) 1084 no_create=yes ;; 1085 1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1088 no_recursion=yes ;; 1089 1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1092 | --oldin | --oldi | --old | --ol | --o) 1093 ac_prev=oldincludedir ;; 1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1097 oldincludedir=$ac_optarg ;; 1098 1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1100 ac_prev=prefix ;; 1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1102 prefix=$ac_optarg ;; 1103 1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1105 | --program-pre | --program-pr | --program-p) 1106 ac_prev=program_prefix ;; 1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1109 program_prefix=$ac_optarg ;; 1110 1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1112 | --program-suf | --program-su | --program-s) 1113 ac_prev=program_suffix ;; 1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1116 program_suffix=$ac_optarg ;; 1117 1118 -program-transform-name | --program-transform-name \ 1119 | --program-transform-nam | --program-transform-na \ 1120 | --program-transform-n | --program-transform- \ 1121 | --program-transform | --program-transfor \ 1122 | --program-transfo | --program-transf \ 1123 | --program-trans | --program-tran \ 1124 | --progr-tra | --program-tr | --program-t) 1125 ac_prev=program_transform_name ;; 1126 -program-transform-name=* | --program-transform-name=* \ 1127 | --program-transform-nam=* | --program-transform-na=* \ 1128 | --program-transform-n=* | --program-transform-=* \ 1129 | --program-transform=* | --program-transfor=* \ 1130 | --program-transfo=* | --program-transf=* \ 1131 | --program-trans=* | --program-tran=* \ 1132 | --progr-tra=* | --program-tr=* | --program-t=*) 1133 program_transform_name=$ac_optarg ;; 1134 1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1136 ac_prev=pdfdir ;; 1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1138 pdfdir=$ac_optarg ;; 1139 1140 -psdir | --psdir | --psdi | --psd | --ps) 1141 ac_prev=psdir ;; 1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1143 psdir=$ac_optarg ;; 1144 1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1146 | -silent | --silent | --silen | --sile | --sil) 1147 silent=yes ;; 1148 1149 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1150 | --runstate | --runstat | --runsta | --runst | --runs \ 1151 | --run | --ru | --r) 1152 ac_prev=runstatedir ;; 1153 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1154 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1155 | --run=* | --ru=* | --r=*) 1156 runstatedir=$ac_optarg ;; 1157 1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1159 ac_prev=sbindir ;; 1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1161 | --sbi=* | --sb=*) 1162 sbindir=$ac_optarg ;; 1163 1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1166 | --sharedst | --shareds | --shared | --share | --shar \ 1167 | --sha | --sh) 1168 ac_prev=sharedstatedir ;; 1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1172 | --sha=* | --sh=*) 1173 sharedstatedir=$ac_optarg ;; 1174 1175 -site | --site | --sit) 1176 ac_prev=site ;; 1177 -site=* | --site=* | --sit=*) 1178 site=$ac_optarg ;; 1179 1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1181 ac_prev=srcdir ;; 1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1183 srcdir=$ac_optarg ;; 1184 1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1186 | --syscon | --sysco | --sysc | --sys | --sy) 1187 ac_prev=sysconfdir ;; 1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1190 sysconfdir=$ac_optarg ;; 1191 1192 -target | --target | --targe | --targ | --tar | --ta | --t) 1193 ac_prev=target_alias ;; 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1195 target_alias=$ac_optarg ;; 1196 1197 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1198 verbose=yes ;; 1199 1200 -version | --version | --versio | --versi | --vers | -V) 1201 ac_init_version=: ;; 1202 1203 -with-* | --with-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: $ac_useropt" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212"with_$ac_useropt" 1213"*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1254Try \`$0 --help' for more information" 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 case $ac_envvar in #( 1261 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1263 esac 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 as_fn_error $? "missing argument to $ac_option" 1281fi 1282 1283if test -n "$ac_unrecognized_opts"; then 1284 case $enable_option_checking in 1285 no) ;; 1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1288 esac 1289fi 1290 1291# Check all directory arguments for consistency. 1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1293 datadir sysconfdir sharedstatedir localstatedir includedir \ 1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1295 libdir localedir mandir runstatedir 1296do 1297 eval ac_val=\$$ac_var 1298 # Remove trailing slashes. 1299 case $ac_val in 1300 */ ) 1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1302 eval $ac_var=\$ac_val;; 1303 esac 1304 # Be sure to have absolute directory names. 1305 case $ac_val in 1306 [\\/$]* | ?:[\\/]* ) continue;; 1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1308 esac 1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 elif test "x$build_alias" != "x$host_alias"; then 1324 cross_compiling=yes 1325 fi 1326fi 1327 1328ac_tool_prefix= 1329test -n "$host_alias" && ac_tool_prefix=$host_alias- 1330 1331test "$silent" = yes && exec 6>/dev/null 1332 1333 1334ac_pwd=`pwd` && test -n "$ac_pwd" && 1335ac_ls_di=`ls -di .` && 1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1337 as_fn_error $? "working directory cannot be determined" 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 as_fn_error $? "pwd does not report name of working directory" 1340 1341 1342# Find the source files, if location was not specified. 1343if test -z "$srcdir"; then 1344 ac_srcdir_defaulted=yes 1345 # Try the directory containing this script, then the parent directory. 1346 ac_confdir=`$as_dirname -- "$as_myself" || 1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1348 X"$as_myself" : 'X\(//\)[^/]' \| \ 1349 X"$as_myself" : 'X\(//\)$' \| \ 1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1351$as_echo X"$as_myself" | 1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)[^/].*/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\).*/{ 1365 s//\1/ 1366 q 1367 } 1368 s/.*/./; q'` 1369 srcdir=$ac_confdir 1370 if test ! -r "$srcdir/$ac_unique_file"; then 1371 srcdir=.. 1372 fi 1373else 1374 ac_srcdir_defaulted=no 1375fi 1376if test ! -r "$srcdir/$ac_unique_file"; then 1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1383 pwd)` 1384# When building in place, set srcdir=. 1385if test "$ac_abs_confdir" = "$ac_pwd"; then 1386 srcdir=. 1387fi 1388# Remove unnecessary trailing slashes from srcdir. 1389# Double slashes in file names in object file debugging info 1390# mess up M-x gdb in Emacs. 1391case $srcdir in 1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1393esac 1394for ac_var in $ac_precious_vars; do 1395 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_env_${ac_var}_value=\$${ac_var} 1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1399done 1400 1401# 1402# Report the --help message. 1403# 1404if test "$ac_init_help" = "long"; then 1405 # Omit some internal or obsolete options to make the list less imposing. 1406 # This message is too long to be a string in the A/UX 3.1 sh. 1407 cat <<_ACEOF 1408\`configure' configures this package to adapt to many kinds of systems. 1409 1410Usage: $0 [OPTION]... [VAR=VALUE]... 1411 1412To assign environment variables (e.g., CC, CFLAGS...), specify them as 1413VAR=VALUE. See below for descriptions of some of the useful variables. 1414 1415Defaults for the options are specified in brackets. 1416 1417Configuration: 1418 -h, --help display this help and exit 1419 --help=short display options specific to this package 1420 --help=recursive display the short help of all the included packages 1421 -V, --version display version information and exit 1422 -q, --quiet, --silent do not print \`checking ...' messages 1423 --cache-file=FILE cache test results in FILE [disabled] 1424 -C, --config-cache alias for \`--cache-file=config.cache' 1425 -n, --no-create do not create output files 1426 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1427 1428Installation directories: 1429 --prefix=PREFIX install architecture-independent files in PREFIX 1430 [$ac_default_prefix] 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1432 [PREFIX] 1433 1434By default, \`make install' will install all the files in 1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1436an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1437for instance \`--prefix=\$HOME'. 1438 1439For better control, use the options below. 1440 1441Fine tuning of the installation directories: 1442 --bindir=DIR user executables [EPREFIX/bin] 1443 --sbindir=DIR system admin executables [EPREFIX/sbin] 1444 --libexecdir=DIR program executables [EPREFIX/libexec] 1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1448 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466X features: 1467 --x-includes=DIR X include files are in DIR 1468 --x-libraries=DIR X library files are in DIR 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-fail-if-missing Fail if dependencies on additional features 1481 specified on the command line are missing. 1482 --disable-darwin Disable Darwin (Mac OS X) support. 1483 --disable-smack Do not check for Smack support. 1484 --disable-selinux Do not check for SELinux support. 1485 --disable-xsmp Disable XSMP session management 1486 --disable-xsmp-interact Disable XSMP interaction 1487 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1488 --enable-mzschemeinterp Include MzScheme interpreter. 1489 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1494 --enable-cscope Include cscope interface. 1495 --enable-workshop Include Sun Visual Workshop support. 1496 --disable-netbeans Disable NetBeans integration support. 1497 --disable-channel Disable process communication support. 1498 --enable-terminal Enable terminal emulation support. 1499 --enable-autoservername Automatically define servername at vim startup. 1500 --enable-multibyte Include multibyte editing support. 1501 --enable-hangulinput Include Hangul input support. 1502 --enable-xim Include XIM input support. 1503 --enable-fontset Include X fontset output support. 1504 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1505 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1506 --enable-gnome-check If GTK GUI, check for GNOME default=no 1507 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1508 --enable-motif-check If auto-select GUI, check for Motif default=yes 1509 --enable-athena-check If auto-select GUI, check for Athena default=yes 1510 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1511 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1512 --disable-gtktest Do not try to compile and run a test GTK program 1513 --disable-icon-cache-update update disabled 1514 --disable-desktop-database-update update disabled 1515 --disable-largefile omit support for large files 1516 --disable-acl Don't check for ACL support. 1517 --disable-gpm Don't use gpm (Linux mouse daemon). 1518 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1519 --disable-nls Don't support NLS (gettext()). 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-mac-arch=ARCH current, intel, ppc or both 1525 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1526 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1527 --without-local-dir do not search /usr/local for local libraries. 1528 --with-vim-name=NAME what to call the Vim executable 1529 --with-ex-name=NAME what to call the Ex executable 1530 --with-view-name=NAME what to call the View executable 1531 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1532 --with-modified-by=NAME name of who modified a release version 1533 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1534 --with-compiledby=NAME name to show in :version message 1535 --with-lua-prefix=PFX Prefix where Lua is installed. 1536 --with-luajit Link with LuaJIT instead of Lua. 1537 --with-plthome=PLTHOME Use PLTHOME. 1538 --with-python-config-dir=PATH Python's config directory 1539 --with-python3-config-dir=PATH Python's config directory 1540 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1541 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1542 --with-x use the X Window System 1543 --with-gnome-includes=DIR Specify location of GNOME headers 1544 --with-gnome-libs=DIR Specify location of GNOME libs 1545 --with-gnome Specify prefix for GNOME files 1546 --with-motif-lib=STRING Library for Motif 1547 --with-tlib=library terminal library to be used 1548 1549Some influential environment variables: 1550 CC C compiler command 1551 CFLAGS C compiler flags 1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1553 nonstandard directory <lib dir> 1554 LIBS libraries to pass to the linker, e.g. -l<library> 1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1556 you have headers in a nonstandard directory <include dir> 1557 CPP C preprocessor 1558 XMKMF Path to xmkmf, Makefile generator for X Window System 1559 1560Use these variables to override the choices made by `configure' or to help 1561it to find libraries and programs with nonstandard names/locations. 1562 1563Report bugs to the package provider. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || 1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1573 continue 1574 ac_builddir=. 1575 1576case "$ac_dir" in 1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578*) 1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1580 # A ".." for each directory in $ac_dir_suffix. 1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1582 case $ac_top_builddir_sub in 1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1585 esac ;; 1586esac 1587ac_abs_top_builddir=$ac_pwd 1588ac_abs_builddir=$ac_pwd$ac_dir_suffix 1589# for backward compatibility: 1590ac_top_builddir=$ac_top_build_prefix 1591 1592case $srcdir in 1593 .) # We are building in place. 1594 ac_srcdir=. 1595 ac_top_srcdir=$ac_top_builddir_sub 1596 ac_abs_top_srcdir=$ac_pwd ;; 1597 [\\/]* | ?:[\\/]* ) # Absolute name. 1598 ac_srcdir=$srcdir$ac_dir_suffix; 1599 ac_top_srcdir=$srcdir 1600 ac_abs_top_srcdir=$srcdir ;; 1601 *) # Relative name. 1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1603 ac_top_srcdir=$ac_top_build_prefix$srcdir 1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1605esac 1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1607 1608 cd "$ac_dir" || { ac_status=$?; continue; } 1609 # Check for guested configure. 1610 if test -f "$ac_srcdir/configure.gnu"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1613 elif test -f "$ac_srcdir/configure"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure" --help=recursive 1616 else 1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1618 fi || ac_status=$? 1619 cd "$ac_pwd" || { ac_status=$?; break; } 1620 done 1621fi 1622 1623test -n "$ac_init_help" && exit $ac_status 1624if $ac_init_version; then 1625 cat <<\_ACEOF 1626configure 1627generated by GNU Autoconf 2.69 1628 1629Copyright (C) 2012 Free Software Foundation, Inc. 1630This configure script is free software; the Free Software Foundation 1631gives unlimited permission to copy, distribute and modify it. 1632_ACEOF 1633 exit 1634fi 1635 1636## ------------------------ ## 1637## Autoconf initialization. ## 1638## ------------------------ ## 1639 1640# ac_fn_c_try_compile LINENO 1641# -------------------------- 1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext 1647 if { { ac_try="$ac_compile" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_compile") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest.$ac_objext; then : 1666 ac_retval=0 1667else 1668 $as_echo "$as_me: failed program was:" >&5 1669sed 's/^/| /' conftest.$ac_ext >&5 1670 1671 ac_retval=1 1672fi 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_compile 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 test -x conftest$ac_exeext 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1753 # interfere with the next link command; also delete a directory that is 1754 # left behind by Apple's compiler. We do this before executing the actions. 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_link 1760 1761# ac_fn_c_try_run LINENO 1762# ---------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1764# that executables *can* be run. 1765ac_fn_c_try_run () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>&5 1776 ac_status=$? 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1779 { { case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_try") 2>&5 1786 ac_status=$? 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; }; }; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: program exited with status $ac_status" >&5 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=$ac_status 1796fi 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_run 1802 1803# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1806# the include files in INCLUDES and setting the cache variable VAR 1807# accordingly. 1808ac_fn_c_check_header_mongrel () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if eval \${$3+:} false; then : 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820else 1821 # Is the header compilable? 1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1823$as_echo_n "checking $2 usability... " >&6; } 1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826$4 1827#include <$2> 1828_ACEOF 1829if ac_fn_c_try_compile "$LINENO"; then : 1830 ac_header_compiler=yes 1831else 1832 ac_header_compiler=no 1833fi 1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1836$as_echo "$ac_header_compiler" >&6; } 1837 1838# Is the header present? 1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1840$as_echo_n "checking $2 presence... " >&6; } 1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843#include <$2> 1844_ACEOF 1845if ac_fn_c_try_cpp "$LINENO"; then : 1846 ac_header_preproc=yes 1847else 1848 ac_header_preproc=no 1849fi 1850rm -f conftest.err conftest.i conftest.$ac_ext 1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1852$as_echo "$ac_header_preproc" >&6; } 1853 1854# So? What about this header? 1855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1856 yes:no: ) 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1858$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1861 ;; 1862 no:yes:* ) 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1864$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1866$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1868$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1870$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1873 ;; 1874esac 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879else 1880 eval "$3=\$ac_header_compiler" 1881fi 1882eval ac_res=\$$3 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1884$as_echo "$ac_res" >&6; } 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 1888} # ac_fn_c_check_header_mongrel 1889 1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1891# ------------------------------------------------------- 1892# Tests whether HEADER exists and can be compiled using the include files in 1893# INCLUDES, setting the cache variable VAR accordingly. 1894ac_fn_c_check_header_compile () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898$as_echo_n "checking for $2... " >&6; } 1899if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901else 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 eval "$3=yes" 1909else 1910 eval "$3=no" 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913fi 1914eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916$as_echo "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919} # ac_fn_c_check_header_compile 1920 1921# ac_fn_c_check_func LINENO FUNC VAR 1922# ---------------------------------- 1923# Tests whether FUNC exists, setting the cache variable VAR accordingly 1924ac_fn_c_check_func () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928$as_echo_n "checking for $2... " >&6; } 1929if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1936#define $2 innocuous_$2 1937 1938/* System header to define __stub macros and hopefully few prototypes, 1939 which can conflict with char $2 (); below. 1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1941 <limits.h> exists even on freestanding compilers. */ 1942 1943#ifdef __STDC__ 1944# include <limits.h> 1945#else 1946# include <assert.h> 1947#endif 1948 1949#undef $2 1950 1951/* Override any GCC internal prototype to avoid an error. 1952 Use char because int might match the return type of a GCC 1953 builtin and then its argument prototype would still apply. */ 1954#ifdef __cplusplus 1955extern "C" 1956#endif 1957char $2 (); 1958/* The GNU C library defines this for functions which it implements 1959 to always fail with ENOSYS. Some functions are actually named 1960 something starting with __ and the normal name is an alias. */ 1961#if defined __stub_$2 || defined __stub___$2 1962choke me 1963#endif 1964 1965int 1966main () 1967{ 1968return $2 (); 1969 ; 1970 return 0; 1971} 1972_ACEOF 1973if ac_fn_c_try_link "$LINENO"; then : 1974 eval "$3=yes" 1975else 1976 eval "$3=no" 1977fi 1978rm -f core conftest.err conftest.$ac_objext \ 1979 conftest$ac_exeext conftest.$ac_ext 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_func 1987 1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1989# ------------------------------------------- 1990# Tests whether TYPE exists after having included INCLUDES, setting cache 1991# variable VAR accordingly. 1992ac_fn_c_check_type () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 eval "$3=no" 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007if (sizeof ($2)) 2008 return 0; 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020if (sizeof (($2))) 2021 return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 2028else 2029 eval "$3=yes" 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 2040} # ac_fn_c_check_type 2041 2042# ac_fn_c_find_uintX_t LINENO BITS VAR 2043# ------------------------------------ 2044# Finds an unsigned integer type with width BITS, setting cache variable VAR 2045# accordingly. 2046ac_fn_c_find_uintX_t () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2050$as_echo_n "checking for uint$2_t... " >&6; } 2051if eval \${$3+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 eval "$3=no" 2055 # Order is important - never check a type that is potentially smaller 2056 # than half of the expected target width. 2057 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2058 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$ac_includes_default 2062int 2063main () 2064{ 2065static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2066test_array [0] = 0; 2067return test_array [0]; 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 case $ac_type in #( 2075 uint$2_t) : 2076 eval "$3=yes" ;; #( 2077 *) : 2078 eval "$3=\$ac_type" ;; 2079esac 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 if eval test \"x\$"$3"\" = x"no"; then : 2083 2084else 2085 break 2086fi 2087 done 2088fi 2089eval ac_res=\$$3 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2091$as_echo "$ac_res" >&6; } 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 2094} # ac_fn_c_find_uintX_t 2095 2096# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2097# -------------------------------------------- 2098# Tries to find the compile-time value of EXPR in a program that includes 2099# INCLUDES, setting VAR accordingly. Returns whether the value could be 2100# computed 2101ac_fn_c_compute_int () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 if test "$cross_compiling" = yes; then 2105 # Depending upon the size, compute the lo and hi bounds. 2106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112static int test_array [1 - 2 * !(($2) >= 0)]; 2113test_array [0] = 0; 2114return test_array [0]; 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 ac_lo=0 ac_mid=0 2122 while :; do 2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124/* end confdefs.h. */ 2125$4 2126int 2127main () 2128{ 2129static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2130test_array [0] = 0; 2131return test_array [0]; 2132 2133 ; 2134 return 0; 2135} 2136_ACEOF 2137if ac_fn_c_try_compile "$LINENO"; then : 2138 ac_hi=$ac_mid; break 2139else 2140 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2141 if test $ac_lo -le $ac_mid; then 2142 ac_lo= ac_hi= 2143 break 2144 fi 2145 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2146fi 2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2148 done 2149else 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151/* end confdefs.h. */ 2152$4 2153int 2154main () 2155{ 2156static int test_array [1 - 2 * !(($2) < 0)]; 2157test_array [0] = 0; 2158return test_array [0]; 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 ac_hi=-1 ac_mid=-1 2166 while :; do 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2174test_array [0] = 0; 2175return test_array [0]; 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 ac_lo=$ac_mid; break 2183else 2184 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2185 if test $ac_mid -le $ac_hi; then 2186 ac_lo= ac_hi= 2187 break 2188 fi 2189 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2190fi 2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2192 done 2193else 2194 ac_lo= ac_hi= 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199# Binary search between lo and hi bounds. 2200while test "x$ac_lo" != "x$ac_hi"; do 2201 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_hi=$ac_mid 2218else 2219 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222done 2223case $ac_lo in #(( 2224?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2225'') ac_retval=1 ;; 2226esac 2227 else 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231static long int longval () { return $2; } 2232static unsigned long int ulongval () { return $2; } 2233#include <stdio.h> 2234#include <stdlib.h> 2235int 2236main () 2237{ 2238 2239 FILE *f = fopen ("conftest.val", "w"); 2240 if (! f) 2241 return 1; 2242 if (($2) < 0) 2243 { 2244 long int i = longval (); 2245 if (i != ($2)) 2246 return 1; 2247 fprintf (f, "%ld", i); 2248 } 2249 else 2250 { 2251 unsigned long int i = ulongval (); 2252 if (i != ($2)) 2253 return 1; 2254 fprintf (f, "%lu", i); 2255 } 2256 /* Do not output a trailing newline, as this causes \r\n confusion 2257 on some platforms. */ 2258 return ferror (f) || fclose (f) != 0; 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_run "$LINENO"; then : 2265 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2266else 2267 ac_retval=1 2268fi 2269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2270 conftest.$ac_objext conftest.beam conftest.$ac_ext 2271rm -f conftest.val 2272 2273 fi 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277} # ac_fn_c_compute_int 2278cat >auto/config.log <<_ACEOF 2279This file contains any messages produced by compilers while 2280running configure, to aid debugging if configure makes a mistake. 2281 2282It was created by $as_me, which was 2283generated by GNU Autoconf 2.69. Invocation command line was 2284 2285 $ $0 $@ 2286 2287_ACEOF 2288exec 5>>auto/config.log 2289{ 2290cat <<_ASUNAME 2291## --------- ## 2292## Platform. ## 2293## --------- ## 2294 2295hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2296uname -m = `(uname -m) 2>/dev/null || echo unknown` 2297uname -r = `(uname -r) 2>/dev/null || echo unknown` 2298uname -s = `(uname -s) 2>/dev/null || echo unknown` 2299uname -v = `(uname -v) 2>/dev/null || echo unknown` 2300 2301/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2302/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2303 2304/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2305/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2306/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2307/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2308/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2309/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2310/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2311 2312_ASUNAME 2313 2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2315for as_dir in $PATH 2316do 2317 IFS=$as_save_IFS 2318 test -z "$as_dir" && as_dir=. 2319 $as_echo "PATH: $as_dir" 2320 done 2321IFS=$as_save_IFS 2322 2323} >&5 2324 2325cat >&5 <<_ACEOF 2326 2327 2328## ----------- ## 2329## Core tests. ## 2330## ----------- ## 2331 2332_ACEOF 2333 2334 2335# Keep a trace of the command line. 2336# Strip out --no-create and --no-recursion so they do not pile up. 2337# Strip out --silent because we don't want to record it for future runs. 2338# Also quote any args containing shell meta-characters. 2339# Make two passes to allow for proper duplicate-argument suppression. 2340ac_configure_args= 2341ac_configure_args0= 2342ac_configure_args1= 2343ac_must_keep_next=false 2344for ac_pass in 1 2 2345do 2346 for ac_arg 2347 do 2348 case $ac_arg in 2349 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2351 | -silent | --silent | --silen | --sile | --sil) 2352 continue ;; 2353 *\'*) 2354 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2355 esac 2356 case $ac_pass in 2357 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2358 2) 2359 as_fn_append ac_configure_args1 " '$ac_arg'" 2360 if test $ac_must_keep_next = true; then 2361 ac_must_keep_next=false # Got value, back to normal. 2362 else 2363 case $ac_arg in 2364 *=* | --config-cache | -C | -disable-* | --disable-* \ 2365 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2366 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2367 | -with-* | --with-* | -without-* | --without-* | --x) 2368 case "$ac_configure_args0 " in 2369 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2370 esac 2371 ;; 2372 -* ) ac_must_keep_next=true ;; 2373 esac 2374 fi 2375 as_fn_append ac_configure_args " '$ac_arg'" 2376 ;; 2377 esac 2378 done 2379done 2380{ ac_configure_args0=; unset ac_configure_args0;} 2381{ ac_configure_args1=; unset ac_configure_args1;} 2382 2383# When interrupted or exit'd, cleanup temporary files, and complete 2384# config.log. We remove comments because anyway the quotes in there 2385# would cause problems or look ugly. 2386# WARNING: Use '\'' to represent an apostrophe within the trap. 2387# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2388trap 'exit_status=$? 2389 # Save into config.log some information that might help in debugging. 2390 { 2391 echo 2392 2393 $as_echo "## ---------------- ## 2394## Cache variables. ## 2395## ---------------- ##" 2396 echo 2397 # The following way of writing the cache mishandles newlines in values, 2398( 2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2400 eval ac_val=\$$ac_var 2401 case $ac_val in #( 2402 *${as_nl}*) 2403 case $ac_var in #( 2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2406 esac 2407 case $ac_var in #( 2408 _ | IFS | as_nl) ;; #( 2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2410 *) { eval $ac_var=; unset $ac_var;} ;; 2411 esac ;; 2412 esac 2413 done 2414 (set) 2>&1 | 2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2416 *${as_nl}ac_space=\ *) 2417 sed -n \ 2418 "s/'\''/'\''\\\\'\'''\''/g; 2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2420 ;; #( 2421 *) 2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2423 ;; 2424 esac | 2425 sort 2426) 2427 echo 2428 2429 $as_echo "## ----------------- ## 2430## Output variables. ## 2431## ----------------- ##" 2432 echo 2433 for ac_var in $ac_subst_vars 2434 do 2435 eval ac_val=\$$ac_var 2436 case $ac_val in 2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2438 esac 2439 $as_echo "$ac_var='\''$ac_val'\''" 2440 done | sort 2441 echo 2442 2443 if test -n "$ac_subst_files"; then 2444 $as_echo "## ------------------- ## 2445## File substitutions. ## 2446## ------------------- ##" 2447 echo 2448 for ac_var in $ac_subst_files 2449 do 2450 eval ac_val=\$$ac_var 2451 case $ac_val in 2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2453 esac 2454 $as_echo "$ac_var='\''$ac_val'\''" 2455 done | sort 2456 echo 2457 fi 2458 2459 if test -s confdefs.h; then 2460 $as_echo "## ----------- ## 2461## confdefs.h. ## 2462## ----------- ##" 2463 echo 2464 cat confdefs.h 2465 echo 2466 fi 2467 test "$ac_signal" != 0 && 2468 $as_echo "$as_me: caught signal $ac_signal" 2469 $as_echo "$as_me: exit $exit_status" 2470 } >&5 2471 rm -f core *.core core.conftest.* && 2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2473 exit $exit_status 2474' 0 2475for ac_signal in 1 2 13 15; do 2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2477done 2478ac_signal=0 2479 2480# confdefs.h avoids OS command line length limits that DEFS can exceed. 2481rm -f -r conftest* confdefs.h 2482 2483$as_echo "/* confdefs.h */" > confdefs.h 2484 2485# Predefined preprocessor variables. 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE_NAME "$PACKAGE_NAME" 2489_ACEOF 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2493_ACEOF 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_VERSION "$PACKAGE_VERSION" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_STRING "$PACKAGE_STRING" 2501_ACEOF 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_URL "$PACKAGE_URL" 2509_ACEOF 2510 2511 2512# Let the site file select an alternate cache file if it wants to. 2513# Prefer an explicitly selected file to automatically selected ones. 2514ac_site_file1=NONE 2515ac_site_file2=NONE 2516if test -n "$CONFIG_SITE"; then 2517 # We do not want a PATH search for config.site. 2518 case $CONFIG_SITE in #(( 2519 -*) ac_site_file1=./$CONFIG_SITE;; 2520 */*) ac_site_file1=$CONFIG_SITE;; 2521 *) ac_site_file1=./$CONFIG_SITE;; 2522 esac 2523elif test "x$prefix" != xNONE; then 2524 ac_site_file1=$prefix/share/config.site 2525 ac_site_file2=$prefix/etc/config.site 2526else 2527 ac_site_file1=$ac_default_prefix/share/config.site 2528 ac_site_file2=$ac_default_prefix/etc/config.site 2529fi 2530for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2531do 2532 test "x$ac_site_file" = xNONE && continue 2533 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2535$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2536 sed 's/^/| /' "$ac_site_file" >&5 2537 . "$ac_site_file" \ 2538 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2540as_fn_error $? "failed to load site script $ac_site_file 2541See \`config.log' for more details" "$LINENO" 5; } 2542 fi 2543done 2544 2545if test -r "$cache_file"; then 2546 # Some versions of bash will fail to source /dev/null (special files 2547 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2548 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2550$as_echo "$as_me: loading cache $cache_file" >&6;} 2551 case $cache_file in 2552 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2553 *) . "./$cache_file";; 2554 esac 2555 fi 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2558$as_echo "$as_me: creating cache $cache_file" >&6;} 2559 >$cache_file 2560fi 2561 2562# Check that the precious variables saved in the cache have kept the same 2563# value. 2564ac_cache_corrupted=false 2565for ac_var in $ac_precious_vars; do 2566 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2567 eval ac_new_set=\$ac_env_${ac_var}_set 2568 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2569 eval ac_new_val=\$ac_env_${ac_var}_value 2570 case $ac_old_set,$ac_new_set in 2571 set,) 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2574 ac_cache_corrupted=: ;; 2575 ,set) 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2578 ac_cache_corrupted=: ;; 2579 ,);; 2580 *) 2581 if test "x$ac_old_val" != "x$ac_new_val"; then 2582 # differences in whitespace do not lead to failure. 2583 ac_old_val_w=`echo x $ac_old_val` 2584 ac_new_val_w=`echo x $ac_new_val` 2585 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2588 ac_cache_corrupted=: 2589 else 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2592 eval $ac_var=\$ac_old_val 2593 fi 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2595$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2597$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2598 fi;; 2599 esac 2600 # Pass precious variables to config.status. 2601 if test "$ac_new_set" = set; then 2602 case $ac_new_val in 2603 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2604 *) ac_arg=$ac_var=$ac_new_val ;; 2605 esac 2606 case " $ac_configure_args " in 2607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2608 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2609 esac 2610 fi 2611done 2612if $ac_cache_corrupted; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2617 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2618fi 2619## -------------------- ## 2620## Main body of script. ## 2621## -------------------- ## 2622 2623ac_ext=c 2624ac_cpp='$CPP $CPPFLAGS' 2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2627ac_compiler_gnu=$ac_cv_c_compiler_gnu 2628 2629 2630ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2631 2632 2633$as_echo "#define UNIX 1" >>confdefs.h 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2636$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2637set x ${MAKE-make} 2638ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2639if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2640 $as_echo_n "(cached) " >&6 2641else 2642 cat >conftest.make <<\_ACEOF 2643SHELL = /bin/sh 2644all: 2645 @echo '@@@%%%=$(MAKE)=@@@%%%' 2646_ACEOF 2647# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2648case `${MAKE-make} -f conftest.make 2>/dev/null` in 2649 *@@@%%%=?*=@@@%%%*) 2650 eval ac_cv_prog_make_${ac_make}_set=yes;; 2651 *) 2652 eval ac_cv_prog_make_${ac_make}_set=no;; 2653esac 2654rm -f conftest.make 2655fi 2656if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2658$as_echo "yes" >&6; } 2659 SET_MAKE= 2660else 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2662$as_echo "no" >&6; } 2663 SET_MAKE="MAKE=${MAKE-make}" 2664fi 2665 2666 2667ac_ext=c 2668ac_cpp='$CPP $CPPFLAGS' 2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2671ac_compiler_gnu=$ac_cv_c_compiler_gnu 2672if test -n "$ac_tool_prefix"; then 2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2674set dummy ${ac_tool_prefix}gcc; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_CC+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$CC"; then 2681 ac_cv_prog_CC="$CC" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700CC=$ac_cv_prog_CC 2701if test -n "$CC"; then 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2703$as_echo "$CC" >&6; } 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707fi 2708 2709 2710fi 2711if test -z "$ac_cv_prog_CC"; then 2712 ac_ct_CC=$CC 2713 # Extract the first word of "gcc", so it can be a program name with args. 2714set dummy gcc; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_ac_ct_CC+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$ac_ct_CC"; then 2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_ac_ct_CC="gcc" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740ac_ct_CC=$ac_cv_prog_ac_ct_CC 2741if test -n "$ac_ct_CC"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2743$as_echo "$ac_ct_CC" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 if test "x$ac_ct_CC" = x; then 2750 CC="" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2756ac_tool_warned=yes ;; 2757esac 2758 CC=$ac_ct_CC 2759 fi 2760else 2761 CC="$ac_cv_prog_CC" 2762fi 2763 2764if test -z "$CC"; then 2765 if test -n "$ac_tool_prefix"; then 2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2767set dummy ${ac_tool_prefix}cc; ac_word=$2 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769$as_echo_n "checking for $ac_word... " >&6; } 2770if ${ac_cv_prog_CC+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 if test -n "$CC"; then 2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_CC="${ac_tool_prefix}cc" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796$as_echo "$CC" >&6; } 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800fi 2801 2802 2803 fi 2804fi 2805if test -z "$CC"; then 2806 # Extract the first word of "cc", so it can be a program name with args. 2807set dummy cc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816 ac_prog_rejected=no 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2825 ac_prog_rejected=yes 2826 continue 2827 fi 2828 ac_cv_prog_CC="cc" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836if test $ac_prog_rejected = yes; then 2837 # We found a bogon in the path, so make sure we never use it. 2838 set dummy $ac_cv_prog_CC 2839 shift 2840 if test $# != 0; then 2841 # We chose a different compiler from the bogus one. 2842 # However, it has the same basename, so the bogon will be chosen 2843 # first if we set CC to just the basename; use the full file name. 2844 shift 2845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2846 fi 2847fi 2848fi 2849fi 2850CC=$ac_cv_prog_CC 2851if test -n "$CC"; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2853$as_echo "$CC" >&6; } 2854else 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857fi 2858 2859 2860fi 2861if test -z "$CC"; then 2862 if test -n "$ac_tool_prefix"; then 2863 for ac_prog in cl.exe 2864 do 2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2866set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868$as_echo_n "checking for $ac_word... " >&6; } 2869if ${ac_cv_prog_CC+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if test -n "$CC"; then 2873 ac_cv_prog_CC="$CC" # Let the user override the test. 2874else 2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH 2877do 2878 IFS=$as_save_IFS 2879 test -z "$as_dir" && as_dir=. 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892CC=$ac_cv_prog_CC 2893if test -n "$CC"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2895$as_echo "$CC" >&6; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898$as_echo "no" >&6; } 2899fi 2900 2901 2902 test -n "$CC" && break 2903 done 2904fi 2905if test -z "$CC"; then 2906 ac_ct_CC=$CC 2907 for ac_prog in cl.exe 2908do 2909 # Extract the first word of "$ac_prog", so it can be a program name with args. 2910set dummy $ac_prog; ac_word=$2 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912$as_echo_n "checking for $ac_word... " >&6; } 2913if ${ac_cv_prog_ac_ct_CC+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 if test -n "$ac_ct_CC"; then 2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2918else 2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920for as_dir in $PATH 2921do 2922 IFS=$as_save_IFS 2923 test -z "$as_dir" && as_dir=. 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2926 ac_cv_prog_ac_ct_CC="$ac_prog" 2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930done 2931 done 2932IFS=$as_save_IFS 2933 2934fi 2935fi 2936ac_ct_CC=$ac_cv_prog_ac_ct_CC 2937if test -n "$ac_ct_CC"; then 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2939$as_echo "$ac_ct_CC" >&6; } 2940else 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942$as_echo "no" >&6; } 2943fi 2944 2945 2946 test -n "$ac_ct_CC" && break 2947done 2948 2949 if test "x$ac_ct_CC" = x; then 2950 CC="" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 CC=$ac_ct_CC 2959 fi 2960fi 2961 2962fi 2963 2964 2965test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2967as_fn_error $? "no acceptable C compiler found in \$PATH 2968See \`config.log' for more details" "$LINENO" 5; } 2969 2970# Provide some information about the compiler. 2971$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2972set X $ac_compile 2973ac_compiler=$2 2974for ac_option in --version -v -V -qversion; do 2975 { { ac_try="$ac_compiler $ac_option >&5" 2976case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2981$as_echo "$ac_try_echo"; } >&5 2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2983 ac_status=$? 2984 if test -s conftest.err; then 2985 sed '10a\ 2986... rest of stderr output deleted ... 2987 10q' conftest.err >conftest.er1 2988 cat conftest.er1 >&5 2989 fi 2990 rm -f conftest.er1 conftest.err 2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2992 test $ac_status = 0; } 2993done 2994 2995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006ac_clean_files_save=$ac_clean_files 3007ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3008# Try to create an executable without -o first, disregard a.out. 3009# It will help us diagnose broken compilers, and finding out an intuition 3010# of exeext. 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3012$as_echo_n "checking whether the C compiler works... " >&6; } 3013ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3014 3015# The possible output files: 3016ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3017 3018ac_rmfiles= 3019for ac_file in $ac_files 3020do 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3024 esac 3025done 3026rm -f $ac_rmfiles 3027 3028if { { ac_try="$ac_link_default" 3029case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032esac 3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3034$as_echo "$ac_try_echo"; } >&5 3035 (eval "$ac_link_default") 2>&5 3036 ac_status=$? 3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3038 test $ac_status = 0; }; then : 3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3040# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3041# in a Makefile. We should not override ac_cv_exeext if it was cached, 3042# so that the user can short-circuit this test for compilers unknown to 3043# Autoconf. 3044for ac_file in $ac_files '' 3045do 3046 test -f "$ac_file" || continue 3047 case $ac_file in 3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3049 ;; 3050 [ab].out ) 3051 # We found the default executable, but exeext='' is most 3052 # certainly right. 3053 break;; 3054 *.* ) 3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3056 then :; else 3057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3058 fi 3059 # We set ac_cv_exeext here because the later test for it is not 3060 # safe: cross compilers may not add the suffix if given an `-o' 3061 # argument, so we may need to know it at that point already. 3062 # Even if this section looks crufty: it has the advantage of 3063 # actually working. 3064 break;; 3065 * ) 3066 break;; 3067 esac 3068done 3069test "$ac_cv_exeext" = no && ac_cv_exeext= 3070 3071else 3072 ac_file='' 3073fi 3074if test -z "$ac_file"; then : 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077$as_echo "$as_me: failed program was:" >&5 3078sed 's/^/| /' conftest.$ac_ext >&5 3079 3080{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082as_fn_error 77 "C compiler cannot create executables 3083See \`config.log' for more details" "$LINENO" 5; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3086$as_echo "yes" >&6; } 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3089$as_echo_n "checking for C compiler default output file name... " >&6; } 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3091$as_echo "$ac_file" >&6; } 3092ac_exeext=$ac_cv_exeext 3093 3094rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3095ac_clean_files=$ac_clean_files_save 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3097$as_echo_n "checking for suffix of executables... " >&6; } 3098if { { ac_try="$ac_link" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3104$as_echo "$ac_try_echo"; } >&5 3105 (eval "$ac_link") 2>&5 3106 ac_status=$? 3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3108 test $ac_status = 0; }; then : 3109 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3110# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3111# work properly (i.e., refer to `conftest.exe'), while it won't with 3112# `rm'. 3113for ac_file in conftest.exe conftest conftest.*; do 3114 test -f "$ac_file" || continue 3115 case $ac_file in 3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3118 break;; 3119 * ) break;; 3120 esac 3121done 3122else 3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3125as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3126See \`config.log' for more details" "$LINENO" 5; } 3127fi 3128rm -f conftest conftest$ac_cv_exeext 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3130$as_echo "$ac_cv_exeext" >&6; } 3131 3132rm -f conftest.$ac_ext 3133EXEEXT=$ac_cv_exeext 3134ac_exeext=$EXEEXT 3135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3136/* end confdefs.h. */ 3137#include <stdio.h> 3138int 3139main () 3140{ 3141FILE *f = fopen ("conftest.out", "w"); 3142 return ferror (f) || fclose (f) != 0; 3143 3144 ; 3145 return 0; 3146} 3147_ACEOF 3148ac_clean_files="$ac_clean_files conftest.out" 3149# Check that the compiler produces executables we can run. If not, either 3150# the compiler is broken, or we cross compile. 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3152$as_echo_n "checking whether we are cross compiling... " >&6; } 3153if test "$cross_compiling" != yes; then 3154 { { ac_try="$ac_link" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3160$as_echo "$ac_try_echo"; } >&5 3161 (eval "$ac_link") 2>&5 3162 ac_status=$? 3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3164 test $ac_status = 0; } 3165 if { ac_try='./conftest$ac_cv_exeext' 3166 { { case "(($ac_try" in 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3168 *) ac_try_echo=$ac_try;; 3169esac 3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3171$as_echo "$ac_try_echo"; } >&5 3172 (eval "$ac_try") 2>&5 3173 ac_status=$? 3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3175 test $ac_status = 0; }; }; then 3176 cross_compiling=no 3177 else 3178 if test "$cross_compiling" = maybe; then 3179 cross_compiling=yes 3180 else 3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3183as_fn_error $? "cannot run C compiled programs. 3184If you meant to cross compile, use \`--host'. 3185See \`config.log' for more details" "$LINENO" 5; } 3186 fi 3187 fi 3188fi 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3190$as_echo "$cross_compiling" >&6; } 3191 3192rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3193ac_clean_files=$ac_clean_files_save 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3195$as_echo_n "checking for suffix of object files... " >&6; } 3196if ${ac_cv_objext+:} false; then : 3197 $as_echo_n "(cached) " >&6 3198else 3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.o conftest.obj 3211if { { ac_try="$ac_compile" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3217$as_echo "$ac_try_echo"; } >&5 3218 (eval "$ac_compile") 2>&5 3219 ac_status=$? 3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3221 test $ac_status = 0; }; then : 3222 for ac_file in conftest.o conftest.obj conftest.*; do 3223 test -f "$ac_file" || continue; 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3227 break;; 3228 esac 3229done 3230else 3231 $as_echo "$as_me: failed program was:" >&5 3232sed 's/^/| /' conftest.$ac_ext >&5 3233 3234{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3236as_fn_error $? "cannot compute suffix of object files: cannot compile 3237See \`config.log' for more details" "$LINENO" 5; } 3238fi 3239rm -f conftest.$ac_cv_objext conftest.$ac_ext 3240fi 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3242$as_echo "$ac_cv_objext" >&6; } 3243OBJEXT=$ac_cv_objext 3244ac_objext=$OBJEXT 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3246$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3247if ${ac_cv_c_compiler_gnu+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252 3253int 3254main () 3255{ 3256#ifndef __GNUC__ 3257 choke me 3258#endif 3259 3260 ; 3261 return 0; 3262} 3263_ACEOF 3264if ac_fn_c_try_compile "$LINENO"; then : 3265 ac_compiler_gnu=yes 3266else 3267 ac_compiler_gnu=no 3268fi 3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3270ac_cv_c_compiler_gnu=$ac_compiler_gnu 3271 3272fi 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3274$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3275if test $ac_compiler_gnu = yes; then 3276 GCC=yes 3277else 3278 GCC= 3279fi 3280ac_test_CFLAGS=${CFLAGS+set} 3281ac_save_CFLAGS=$CFLAGS 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3283$as_echo_n "checking whether $CC accepts -g... " >&6; } 3284if ${ac_cv_prog_cc_g+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 ac_save_c_werror_flag=$ac_c_werror_flag 3288 ac_c_werror_flag=yes 3289 ac_cv_prog_cc_g=no 3290 CFLAGS="-g" 3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302if ac_fn_c_try_compile "$LINENO"; then : 3303 ac_cv_prog_cc_g=yes 3304else 3305 CFLAGS="" 3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317if ac_fn_c_try_compile "$LINENO"; then : 3318 3319else 3320 ac_c_werror_flag=$ac_save_c_werror_flag 3321 CFLAGS="-g" 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324 3325int 3326main () 3327{ 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333if ac_fn_c_try_compile "$LINENO"; then : 3334 ac_cv_prog_cc_g=yes 3335fi 3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3337fi 3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341 ac_c_werror_flag=$ac_save_c_werror_flag 3342fi 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3344$as_echo "$ac_cv_prog_cc_g" >&6; } 3345if test "$ac_test_CFLAGS" = set; then 3346 CFLAGS=$ac_save_CFLAGS 3347elif test $ac_cv_prog_cc_g = yes; then 3348 if test "$GCC" = yes; then 3349 CFLAGS="-g -O2" 3350 else 3351 CFLAGS="-g" 3352 fi 3353else 3354 if test "$GCC" = yes; then 3355 CFLAGS="-O2" 3356 else 3357 CFLAGS= 3358 fi 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3361$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3362if ${ac_cv_prog_cc_c89+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 ac_cv_prog_cc_c89=no 3366ac_save_CC=$CC 3367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369#include <stdarg.h> 3370#include <stdio.h> 3371struct stat; 3372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3373struct buf { int x; }; 3374FILE * (*rcsopen) (struct buf *, struct stat *, int); 3375static char *e (p, i) 3376 char **p; 3377 int i; 3378{ 3379 return p[i]; 3380} 3381static char *f (char * (*g) (char **, int), char **p, ...) 3382{ 3383 char *s; 3384 va_list v; 3385 va_start (v,p); 3386 s = g (p, va_arg (v,int)); 3387 va_end (v); 3388 return s; 3389} 3390 3391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3392 function prototypes and stuff, but not '\xHH' hex character constants. 3393 These don't provoke an error unfortunately, instead are silently treated 3394 as 'x'. The following induces an error, until -std is added to get 3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3396 array size at least. It's necessary to write '\x00'==0 to get something 3397 that's true only with -std. */ 3398int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3399 3400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3401 inside strings and character constants. */ 3402#define FOO(x) 'x' 3403int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3404 3405int test (int i, double x); 3406struct s1 {int (*f) (int a);}; 3407struct s2 {int (*f) (double a);}; 3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3409int argc; 3410char **argv; 3411int 3412main () 3413{ 3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3421do 3422 CC="$ac_save_CC $ac_arg" 3423 if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_c89=$ac_arg 3425fi 3426rm -f core conftest.err conftest.$ac_objext 3427 test "x$ac_cv_prog_cc_c89" != "xno" && break 3428done 3429rm -f conftest.$ac_ext 3430CC=$ac_save_CC 3431 3432fi 3433# AC_CACHE_VAL 3434case "x$ac_cv_prog_cc_c89" in 3435 x) 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3437$as_echo "none needed" >&6; } ;; 3438 xno) 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3440$as_echo "unsupported" >&6; } ;; 3441 *) 3442 CC="$CC $ac_cv_prog_cc_c89" 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3444$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3445esac 3446if test "x$ac_cv_prog_cc_c89" != xno; then : 3447 3448fi 3449 3450ac_ext=c 3451ac_cpp='$CPP $CPPFLAGS' 3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3455 ac_ext=c 3456ac_cpp='$CPP $CPPFLAGS' 3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3459ac_compiler_gnu=$ac_cv_c_compiler_gnu 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3461$as_echo_n "checking how to run the C preprocessor... " >&6; } 3462# On Suns, sometimes $CPP names a directory. 3463if test -n "$CPP" && test -d "$CPP"; then 3464 CPP= 3465fi 3466if test -z "$CPP"; then 3467 if ${ac_cv_prog_CPP+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 # Double quotes because CPP needs to be expanded 3471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3472 do 3473 ac_preproc_ok=false 3474for ac_c_preproc_warn_flag in '' yes 3475do 3476 # Use a header file that comes with gcc, so configuring glibc 3477 # with a fresh cross-compiler works. 3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3479 # <limits.h> exists even on freestanding compilers. 3480 # On the NeXT, cc -E runs the code through the compiler's parser, 3481 # not just through cpp. "Syntax error" is here to catch this case. 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484#ifdef __STDC__ 3485# include <limits.h> 3486#else 3487# include <assert.h> 3488#endif 3489 Syntax error 3490_ACEOF 3491if ac_fn_c_try_cpp "$LINENO"; then : 3492 3493else 3494 # Broken: fails on valid input. 3495continue 3496fi 3497rm -f conftest.err conftest.i conftest.$ac_ext 3498 3499 # OK, works on sane cases. Now check whether nonexistent headers 3500 # can be detected and how. 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503#include <ac_nonexistent.h> 3504_ACEOF 3505if ac_fn_c_try_cpp "$LINENO"; then : 3506 # Broken: success on invalid input. 3507continue 3508else 3509 # Passes both tests. 3510ac_preproc_ok=: 3511break 3512fi 3513rm -f conftest.err conftest.i conftest.$ac_ext 3514 3515done 3516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3517rm -f conftest.i conftest.err conftest.$ac_ext 3518if $ac_preproc_ok; then : 3519 break 3520fi 3521 3522 done 3523 ac_cv_prog_CPP=$CPP 3524 3525fi 3526 CPP=$ac_cv_prog_CPP 3527else 3528 ac_cv_prog_CPP=$CPP 3529fi 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3531$as_echo "$CPP" >&6; } 3532ac_preproc_ok=false 3533for ac_c_preproc_warn_flag in '' yes 3534do 3535 # Use a header file that comes with gcc, so configuring glibc 3536 # with a fresh cross-compiler works. 3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3538 # <limits.h> exists even on freestanding compilers. 3539 # On the NeXT, cc -E runs the code through the compiler's parser, 3540 # not just through cpp. "Syntax error" is here to catch this case. 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543#ifdef __STDC__ 3544# include <limits.h> 3545#else 3546# include <assert.h> 3547#endif 3548 Syntax error 3549_ACEOF 3550if ac_fn_c_try_cpp "$LINENO"; then : 3551 3552else 3553 # Broken: fails on valid input. 3554continue 3555fi 3556rm -f conftest.err conftest.i conftest.$ac_ext 3557 3558 # OK, works on sane cases. Now check whether nonexistent headers 3559 # can be detected and how. 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562#include <ac_nonexistent.h> 3563_ACEOF 3564if ac_fn_c_try_cpp "$LINENO"; then : 3565 # Broken: success on invalid input. 3566continue 3567else 3568 # Passes both tests. 3569ac_preproc_ok=: 3570break 3571fi 3572rm -f conftest.err conftest.i conftest.$ac_ext 3573 3574done 3575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3576rm -f conftest.i conftest.err conftest.$ac_ext 3577if $ac_preproc_ok; then : 3578 3579else 3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3582as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3583See \`config.log' for more details" "$LINENO" 5; } 3584fi 3585 3586ac_ext=c 3587ac_cpp='$CPP $CPPFLAGS' 3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3590ac_compiler_gnu=$ac_cv_c_compiler_gnu 3591 3592 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3594$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3595if ${ac_cv_path_GREP+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if test -z "$GREP"; then 3599 ac_path_GREP_found=false 3600 # Loop through the user's path and test for each of PROGNAME-LIST 3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3603do 3604 IFS=$as_save_IFS 3605 test -z "$as_dir" && as_dir=. 3606 for ac_prog in grep ggrep; do 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3609 as_fn_executable_p "$ac_path_GREP" || continue 3610# Check for GNU ac_path_GREP and select it if it is found. 3611 # Check for GNU $ac_path_GREP 3612case `"$ac_path_GREP" --version 2>&1` in 3613*GNU*) 3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3615*) 3616 ac_count=0 3617 $as_echo_n 0123456789 >"conftest.in" 3618 while : 3619 do 3620 cat "conftest.in" "conftest.in" >"conftest.tmp" 3621 mv "conftest.tmp" "conftest.in" 3622 cp "conftest.in" "conftest.nl" 3623 $as_echo 'GREP' >> "conftest.nl" 3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3626 as_fn_arith $ac_count + 1 && ac_count=$as_val 3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3628 # Best one so far, save it but keep looking for a better one 3629 ac_cv_path_GREP="$ac_path_GREP" 3630 ac_path_GREP_max=$ac_count 3631 fi 3632 # 10*(2^10) chars as input seems more than enough 3633 test $ac_count -gt 10 && break 3634 done 3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3636esac 3637 3638 $ac_path_GREP_found && break 3 3639 done 3640 done 3641 done 3642IFS=$as_save_IFS 3643 if test -z "$ac_cv_path_GREP"; then 3644 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3645 fi 3646else 3647 ac_cv_path_GREP=$GREP 3648fi 3649 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3652$as_echo "$ac_cv_path_GREP" >&6; } 3653 GREP="$ac_cv_path_GREP" 3654 3655 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3657$as_echo_n "checking for egrep... " >&6; } 3658if ${ac_cv_path_EGREP+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3662 then ac_cv_path_EGREP="$GREP -E" 3663 else 3664 if test -z "$EGREP"; then 3665 ac_path_EGREP_found=false 3666 # Loop through the user's path and test for each of PROGNAME-LIST 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for ac_prog in egrep; do 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3675 as_fn_executable_p "$ac_path_EGREP" || continue 3676# Check for GNU ac_path_EGREP and select it if it is found. 3677 # Check for GNU $ac_path_EGREP 3678case `"$ac_path_EGREP" --version 2>&1` in 3679*GNU*) 3680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3681*) 3682 ac_count=0 3683 $as_echo_n 0123456789 >"conftest.in" 3684 while : 3685 do 3686 cat "conftest.in" "conftest.in" >"conftest.tmp" 3687 mv "conftest.tmp" "conftest.in" 3688 cp "conftest.in" "conftest.nl" 3689 $as_echo 'EGREP' >> "conftest.nl" 3690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3692 as_fn_arith $ac_count + 1 && ac_count=$as_val 3693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3694 # Best one so far, save it but keep looking for a better one 3695 ac_cv_path_EGREP="$ac_path_EGREP" 3696 ac_path_EGREP_max=$ac_count 3697 fi 3698 # 10*(2^10) chars as input seems more than enough 3699 test $ac_count -gt 10 && break 3700 done 3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3702esac 3703 3704 $ac_path_EGREP_found && break 3 3705 done 3706 done 3707 done 3708IFS=$as_save_IFS 3709 if test -z "$ac_cv_path_EGREP"; then 3710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3711 fi 3712else 3713 ac_cv_path_EGREP=$EGREP 3714fi 3715 3716 fi 3717fi 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3719$as_echo "$ac_cv_path_EGREP" >&6; } 3720 EGREP="$ac_cv_path_EGREP" 3721 3722 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726_ACEOF 3727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3728 $EGREP "" >/dev/null 2>&1; then : 3729 3730fi 3731rm -f conftest* 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3733$as_echo_n "checking for fgrep... " >&6; } 3734if ${ac_cv_path_FGREP+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3738 then ac_cv_path_FGREP="$GREP -F" 3739 else 3740 if test -z "$FGREP"; then 3741 ac_path_FGREP_found=false 3742 # Loop through the user's path and test for each of PROGNAME-LIST 3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3744for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3745do 3746 IFS=$as_save_IFS 3747 test -z "$as_dir" && as_dir=. 3748 for ac_prog in fgrep; do 3749 for ac_exec_ext in '' $ac_executable_extensions; do 3750 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3751 as_fn_executable_p "$ac_path_FGREP" || continue 3752# Check for GNU ac_path_FGREP and select it if it is found. 3753 # Check for GNU $ac_path_FGREP 3754case `"$ac_path_FGREP" --version 2>&1` in 3755*GNU*) 3756 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3757*) 3758 ac_count=0 3759 $as_echo_n 0123456789 >"conftest.in" 3760 while : 3761 do 3762 cat "conftest.in" "conftest.in" >"conftest.tmp" 3763 mv "conftest.tmp" "conftest.in" 3764 cp "conftest.in" "conftest.nl" 3765 $as_echo 'FGREP' >> "conftest.nl" 3766 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3768 as_fn_arith $ac_count + 1 && ac_count=$as_val 3769 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3770 # Best one so far, save it but keep looking for a better one 3771 ac_cv_path_FGREP="$ac_path_FGREP" 3772 ac_path_FGREP_max=$ac_count 3773 fi 3774 # 10*(2^10) chars as input seems more than enough 3775 test $ac_count -gt 10 && break 3776 done 3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3778esac 3779 3780 $ac_path_FGREP_found && break 3 3781 done 3782 done 3783 done 3784IFS=$as_save_IFS 3785 if test -z "$ac_cv_path_FGREP"; then 3786 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3787 fi 3788else 3789 ac_cv_path_FGREP=$FGREP 3790fi 3791 3792 fi 3793fi 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3795$as_echo "$ac_cv_path_FGREP" >&6; } 3796 FGREP="$ac_cv_path_FGREP" 3797 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3799$as_echo_n "checking for library containing strerror... " >&6; } 3800if ${ac_cv_search_strerror+:} false; then : 3801 $as_echo_n "(cached) " >&6 3802else 3803 ac_func_search_save_LIBS=$LIBS 3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807/* Override any GCC internal prototype to avoid an error. 3808 Use char because int might match the return type of a GCC 3809 builtin and then its argument prototype would still apply. */ 3810#ifdef __cplusplus 3811extern "C" 3812#endif 3813char strerror (); 3814int 3815main () 3816{ 3817return strerror (); 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822for ac_lib in '' cposix; do 3823 if test -z "$ac_lib"; then 3824 ac_res="none required" 3825 else 3826 ac_res=-l$ac_lib 3827 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3828 fi 3829 if ac_fn_c_try_link "$LINENO"; then : 3830 ac_cv_search_strerror=$ac_res 3831fi 3832rm -f core conftest.err conftest.$ac_objext \ 3833 conftest$ac_exeext 3834 if ${ac_cv_search_strerror+:} false; then : 3835 break 3836fi 3837done 3838if ${ac_cv_search_strerror+:} false; then : 3839 3840else 3841 ac_cv_search_strerror=no 3842fi 3843rm conftest.$ac_ext 3844LIBS=$ac_func_search_save_LIBS 3845fi 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3847$as_echo "$ac_cv_search_strerror" >&6; } 3848ac_res=$ac_cv_search_strerror 3849if test "$ac_res" != no; then : 3850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3851 3852fi 3853 for ac_prog in gawk mawk nawk awk 3854do 3855 # Extract the first word of "$ac_prog", so it can be a program name with args. 3856set dummy $ac_prog; ac_word=$2 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3858$as_echo_n "checking for $ac_word... " >&6; } 3859if ${ac_cv_prog_AWK+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 if test -n "$AWK"; then 3863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3864else 3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH 3867do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3872 ac_cv_prog_AWK="$ac_prog" 3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3874 break 2 3875 fi 3876done 3877 done 3878IFS=$as_save_IFS 3879 3880fi 3881fi 3882AWK=$ac_cv_prog_AWK 3883if test -n "$AWK"; then 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3885$as_echo "$AWK" >&6; } 3886else 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3888$as_echo "no" >&6; } 3889fi 3890 3891 3892 test -n "$AWK" && break 3893done 3894 3895# Extract the first word of "strip", so it can be a program name with args. 3896set dummy strip; ac_word=$2 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898$as_echo_n "checking for $ac_word... " >&6; } 3899if ${ac_cv_prog_STRIP+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -n "$STRIP"; then 3903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3904else 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3912 ac_cv_prog_STRIP="strip" 3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917 done 3918IFS=$as_save_IFS 3919 3920 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3921fi 3922fi 3923STRIP=$ac_cv_prog_STRIP 3924if test -n "$STRIP"; then 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3926$as_echo "$STRIP" >&6; } 3927else 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929$as_echo "no" >&6; } 3930fi 3931 3932 3933 3934 3935 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3937$as_echo_n "checking for ANSI C header files... " >&6; } 3938if ${ac_cv_header_stdc+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943#include <stdlib.h> 3944#include <stdarg.h> 3945#include <string.h> 3946#include <float.h> 3947 3948int 3949main () 3950{ 3951 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956if ac_fn_c_try_compile "$LINENO"; then : 3957 ac_cv_header_stdc=yes 3958else 3959 ac_cv_header_stdc=no 3960fi 3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962 3963if test $ac_cv_header_stdc = yes; then 3964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967#include <string.h> 3968 3969_ACEOF 3970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3971 $EGREP "memchr" >/dev/null 2>&1; then : 3972 3973else 3974 ac_cv_header_stdc=no 3975fi 3976rm -f conftest* 3977 3978fi 3979 3980if test $ac_cv_header_stdc = yes; then 3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984#include <stdlib.h> 3985 3986_ACEOF 3987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3988 $EGREP "free" >/dev/null 2>&1; then : 3989 3990else 3991 ac_cv_header_stdc=no 3992fi 3993rm -f conftest* 3994 3995fi 3996 3997if test $ac_cv_header_stdc = yes; then 3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3999 if test "$cross_compiling" = yes; then : 4000 : 4001else 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004#include <ctype.h> 4005#include <stdlib.h> 4006#if ((' ' & 0x0FF) == 0x020) 4007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4009#else 4010# define ISLOWER(c) \ 4011 (('a' <= (c) && (c) <= 'i') \ 4012 || ('j' <= (c) && (c) <= 'r') \ 4013 || ('s' <= (c) && (c) <= 'z')) 4014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4015#endif 4016 4017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4018int 4019main () 4020{ 4021 int i; 4022 for (i = 0; i < 256; i++) 4023 if (XOR (islower (i), ISLOWER (i)) 4024 || toupper (i) != TOUPPER (i)) 4025 return 2; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_run "$LINENO"; then : 4030 4031else 4032 ac_cv_header_stdc=no 4033fi 4034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4035 conftest.$ac_objext conftest.beam conftest.$ac_ext 4036fi 4037 4038fi 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4041$as_echo "$ac_cv_header_stdc" >&6; } 4042if test $ac_cv_header_stdc = yes; then 4043 4044$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4045 4046fi 4047 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4049$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4050if ${ac_cv_header_sys_wait_h+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055#include <sys/types.h> 4056#include <sys/wait.h> 4057#ifndef WEXITSTATUS 4058# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4059#endif 4060#ifndef WIFEXITED 4061# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4062#endif 4063 4064int 4065main () 4066{ 4067 int s; 4068 wait (&s); 4069 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074if ac_fn_c_try_compile "$LINENO"; then : 4075 ac_cv_header_sys_wait_h=yes 4076else 4077 ac_cv_header_sys_wait_h=no 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4082$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4083if test $ac_cv_header_sys_wait_h = yes; then 4084 4085$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4086 4087fi 4088 4089 4090 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4092$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4093# Check whether --enable-fail_if_missing was given. 4094if test "${enable_fail_if_missing+set}" = set; then : 4095 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4096else 4097 fail_if_missing="no" 4098fi 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4101$as_echo "$fail_if_missing" >&6; } 4102 4103if test -z "$CFLAGS"; then 4104 CFLAGS="-O" 4105 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4106fi 4107if test "$GCC" = yes; then 4108 gccversion=`$CC -dumpversion` 4109 if test "x$gccversion" = "x"; then 4110 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4111 fi 4112 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4113 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4114 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4115 else 4116 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4117 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4118 CFLAGS="$CFLAGS -fno-strength-reduce" 4119 fi 4120 fi 4121fi 4122 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4124$as_echo_n "checking for clang version... " >&6; } 4125CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4126if test x"$CLANG_VERSION_STRING" != x"" ; then 4127 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4128 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4129 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4130 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4132$as_echo "$CLANG_VERSION" >&6; } 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4134$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4135 if test "$CLANG_VERSION" -ge 500002075 ; then 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4137$as_echo "no" >&6; } 4138 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4139 else 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4141$as_echo "yes" >&6; } 4142 fi 4143else 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4145$as_echo "N/A" >&6; } 4146fi 4147 4148CROSS_COMPILING= 4149if test "$cross_compiling" = yes; then 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4151$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4152 CROSS_COMPILING=1 4153fi 4154 4155 4156test "$GCC" = yes && CPP_MM=M; 4157 4158if test -f ./toolcheck; then 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4160$as_echo "$as_me: checking for buggy tools..." >&6;} 4161 sh ./toolcheck 1>&6 4162fi 4163 4164OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4167$as_echo_n "checking for BeOS... " >&6; } 4168case `uname` in 4169 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4170 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4171$as_echo "yes" >&6; };; 4172 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173$as_echo "no" >&6; };; 4174esac 4175 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4177$as_echo_n "checking for QNX... " >&6; } 4178case `uname` in 4179 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4180 test -z "$with_x" && with_x=no 4181 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4182$as_echo "yes" >&6; };; 4183 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184$as_echo "no" >&6; };; 4185esac 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4188$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4189if test "`(uname) 2>/dev/null`" = Darwin; then 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4191$as_echo "yes" >&6; } 4192 MACOS_X=yes 4193 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4194 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4196$as_echo_n "checking --disable-darwin argument... " >&6; } 4197 # Check whether --enable-darwin was given. 4198if test "${enable_darwin+set}" = set; then : 4199 enableval=$enable_darwin; 4200else 4201 enable_darwin="yes" 4202fi 4203 4204 if test "$enable_darwin" = "yes"; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4206$as_echo "no" >&6; } 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4208$as_echo_n "checking if Darwin files are there... " >&6; } 4209 if test -f os_macosx.m; then 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4211$as_echo "yes" >&6; } 4212 else 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4214$as_echo "no, Darwin support disabled" >&6; } 4215 enable_darwin=no 4216 fi 4217 else 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4219$as_echo "yes, Darwin support excluded" >&6; } 4220 fi 4221 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4223$as_echo_n "checking --with-mac-arch argument... " >&6; } 4224 4225# Check whether --with-mac-arch was given. 4226if test "${with_mac_arch+set}" = set; then : 4227 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4228$as_echo "$MACARCH" >&6; } 4229else 4230 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4231$as_echo "defaulting to $MACARCH" >&6; } 4232fi 4233 4234 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4236$as_echo_n "checking --with-developer-dir argument... " >&6; } 4237 4238# Check whether --with-developer-dir was given. 4239if test "${with_developer_dir+set}" = set; then : 4240 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4241$as_echo "$DEVELOPER_DIR" >&6; } 4242else 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4244$as_echo "not present" >&6; } 4245fi 4246 4247 4248 if test "x$DEVELOPER_DIR" = "x"; then 4249 # Extract the first word of "xcode-select", so it can be a program name with args. 4250set dummy xcode-select; ac_word=$2 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4252$as_echo_n "checking for $ac_word... " >&6; } 4253if ${ac_cv_path_XCODE_SELECT+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 case $XCODE_SELECT in 4257 [\\/]* | ?:[\\/]*) 4258 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4259 ;; 4260 *) 4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4262for as_dir in $PATH 4263do 4264 IFS=$as_save_IFS 4265 test -z "$as_dir" && as_dir=. 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4268 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273 done 4274IFS=$as_save_IFS 4275 4276 ;; 4277esac 4278fi 4279XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4280if test -n "$XCODE_SELECT"; then 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4282$as_echo "$XCODE_SELECT" >&6; } 4283else 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4285$as_echo "no" >&6; } 4286fi 4287 4288 4289 if test "x$XCODE_SELECT" != "x"; then 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4291$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4292 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4294$as_echo "$DEVELOPER_DIR" >&6; } 4295 else 4296 DEVELOPER_DIR=/Developer 4297 fi 4298 fi 4299 4300 if test "x$MACARCH" = "xboth"; then 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4302$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4303 save_cppflags="$CPPFLAGS" 4304 save_cflags="$CFLAGS" 4305 save_ldflags="$LDFLAGS" 4306 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309 4310int 4311main () 4312{ 4313 4314 ; 4315 return 0; 4316} 4317_ACEOF 4318if ac_fn_c_try_link "$LINENO"; then : 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4320$as_echo "found" >&6; } 4321else 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4323$as_echo "not found" >&6; } 4324 CFLAGS="$save_cflags" 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4326$as_echo_n "checking if Intel architecture is supported... " >&6; } 4327 CPPFLAGS="$CPPFLAGS -arch i386" 4328 LDFLAGS="$save_ldflags -arch i386" 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331 4332int 4333main () 4334{ 4335 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340if ac_fn_c_try_link "$LINENO"; then : 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4342$as_echo "yes" >&6; }; MACARCH="intel" 4343else 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4345$as_echo "no" >&6; } 4346 MACARCH="ppc" 4347 CPPFLAGS="$save_cppflags -arch ppc" 4348 LDFLAGS="$save_ldflags -arch ppc" 4349fi 4350rm -f core conftest.err conftest.$ac_objext \ 4351 conftest$ac_exeext conftest.$ac_ext 4352fi 4353rm -f core conftest.err conftest.$ac_objext \ 4354 conftest$ac_exeext conftest.$ac_ext 4355 elif test "x$MACARCH" = "xintel"; then 4356 CPPFLAGS="$CPPFLAGS -arch intel" 4357 LDFLAGS="$LDFLAGS -arch intel" 4358 elif test "x$MACARCH" = "xppc"; then 4359 CPPFLAGS="$CPPFLAGS -arch ppc" 4360 LDFLAGS="$LDFLAGS -arch ppc" 4361 fi 4362 4363 if test "$enable_darwin" = "yes"; then 4364 MACOS_X_DARWIN=yes 4365 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4366 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4367 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4368 4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4371 inttypes.h stdint.h unistd.h 4372do : 4373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4375" 4376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4377 cat >>confdefs.h <<_ACEOF 4378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4379_ACEOF 4380 4381fi 4382 4383done 4384 4385 4386ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4387if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4388 CARBON=yes 4389fi 4390 4391 4392 if test "x$CARBON" = "xyes"; then 4393 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then 4394 with_x=no 4395 fi 4396 fi 4397 fi 4398 4399 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4400 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4401 fi 4402 4403else 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405$as_echo "no" >&6; } 4406fi 4407 4408for ac_header in AvailabilityMacros.h 4409do : 4410 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4411if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4412 cat >>confdefs.h <<_ACEOF 4413#define HAVE_AVAILABILITYMACROS_H 1 4414_ACEOF 4415 4416fi 4417 4418done 4419 4420 4421 4422 4423 4424if test "$cross_compiling" = no; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4426$as_echo_n "checking --with-local-dir argument... " >&6; } 4427 have_local_include='' 4428 have_local_lib='' 4429 4430# Check whether --with-local-dir was given. 4431if test "${with_local_dir+set}" = set; then : 4432 withval=$with_local_dir; 4433 local_dir="$withval" 4434 case "$withval" in 4435 */*) ;; 4436 no) 4437 # avoid adding local dir to LDFLAGS and CPPFLAGS 4438 have_local_include=yes 4439 have_local_lib=yes 4440 ;; 4441 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4442 esac 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4444$as_echo "$local_dir" >&6; } 4445 4446else 4447 4448 local_dir=/usr/local 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4450$as_echo "Defaulting to $local_dir" >&6; } 4451 4452fi 4453 4454 if test "$GCC" = yes -a "$local_dir" != no; then 4455 echo 'void f(){}' > conftest.c 4456 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4457 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4458 rm -f conftest.c conftest.o 4459 fi 4460 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4461 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4462 if test "$tt" = "$LDFLAGS"; then 4463 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4464 fi 4465 fi 4466 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4467 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4468 if test "$tt" = "$CPPFLAGS"; then 4469 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4470 fi 4471 fi 4472fi 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4475$as_echo_n "checking --with-vim-name argument... " >&6; } 4476 4477# Check whether --with-vim-name was given. 4478if test "${with_vim_name+set}" = set; then : 4479 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4480$as_echo "$VIMNAME" >&6; } 4481else 4482 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4483$as_echo "Defaulting to $VIMNAME" >&6; } 4484fi 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4488$as_echo_n "checking --with-ex-name argument... " >&6; } 4489 4490# Check whether --with-ex-name was given. 4491if test "${with_ex_name+set}" = set; then : 4492 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4493$as_echo "$EXNAME" >&6; } 4494else 4495 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4496$as_echo "Defaulting to ex" >&6; } 4497fi 4498 4499 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4501$as_echo_n "checking --with-view-name argument... " >&6; } 4502 4503# Check whether --with-view-name was given. 4504if test "${with_view_name+set}" = set; then : 4505 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4506$as_echo "$VIEWNAME" >&6; } 4507else 4508 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4509$as_echo "Defaulting to view" >&6; } 4510fi 4511 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4515$as_echo_n "checking --with-global-runtime argument... " >&6; } 4516 4517# Check whether --with-global-runtime was given. 4518if test "${with_global_runtime+set}" = set; then : 4519 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4520$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4521#define RUNTIME_GLOBAL "$withval" 4522_ACEOF 4523 4524else 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4526$as_echo "no" >&6; } 4527fi 4528 4529 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4531$as_echo_n "checking --with-modified-by argument... " >&6; } 4532 4533# Check whether --with-modified-by was given. 4534if test "${with_modified_by+set}" = set; then : 4535 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4536$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4537#define MODIFIED_BY "$withval" 4538_ACEOF 4539 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4547$as_echo_n "checking if character set is EBCDIC... " >&6; } 4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550 4551int 4552main () 4553{ 4554 /* TryCompile function for CharSet. 4555 Treat any failure as ASCII for compatibility with existing art. 4556 Use compile-time rather than run-time tests for cross-compiler 4557 tolerance. */ 4558#if '0'!=240 4559make an error "Character set is not EBCDIC" 4560#endif 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_compile "$LINENO"; then : 4566 # TryCompile action if true 4567cf_cv_ebcdic=yes 4568else 4569 # TryCompile action if false 4570cf_cv_ebcdic=no 4571fi 4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4573# end of TryCompile ]) 4574# end of CacheVal CvEbcdic 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4576$as_echo "$cf_cv_ebcdic" >&6; } 4577case "$cf_cv_ebcdic" in #(vi 4578 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4579 4580 line_break='"\\n"' 4581 ;; 4582 *) line_break='"\\012"';; 4583esac 4584 4585 4586if test "$cf_cv_ebcdic" = "yes"; then 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4588$as_echo_n "checking for z/OS Unix... " >&6; } 4589case `uname` in 4590 OS/390) zOSUnix="yes"; 4591 if test "$CC" = "cc"; then 4592 ccm="$_CC_CCMODE" 4593 ccn="CC" 4594 else 4595 if test "$CC" = "c89"; then 4596 ccm="$_CC_C89MODE" 4597 ccn="C89" 4598 else 4599 ccm=1 4600 fi 4601 fi 4602 if test "$ccm" != "1"; then 4603 echo "" 4604 echo "------------------------------------------" 4605 echo " On z/OS Unix, the environment variable" 4606 echo " _CC_${ccn}MODE must be set to \"1\"!" 4607 echo " Do:" 4608 echo " export _CC_${ccn}MODE=1" 4609 echo " and then call configure again." 4610 echo "------------------------------------------" 4611 exit 1 4612 fi 4613 # Set CFLAGS for configure process. 4614 # This will be reset later for config.mk. 4615 # Use haltonmsg to force error for missing H files. 4616 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4617 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4619$as_echo "yes" >&6; } 4620 ;; 4621 *) zOSUnix="no"; 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624 ;; 4625esac 4626fi 4627 4628if test "$zOSUnix" = "yes"; then 4629 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4630else 4631 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4632fi 4633 4634 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4637$as_echo_n "checking --disable-smack argument... " >&6; } 4638# Check whether --enable-smack was given. 4639if test "${enable_smack+set}" = set; then : 4640 enableval=$enable_smack; 4641else 4642 enable_smack="yes" 4643fi 4644 4645if test "$enable_smack" = "yes"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4649if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4650 true 4651else 4652 enable_smack="no" 4653fi 4654 4655 4656else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4658$as_echo "yes" >&6; } 4659fi 4660if test "$enable_smack" = "yes"; then 4661 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4662if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4663 true 4664else 4665 enable_smack="no" 4666fi 4667 4668 4669fi 4670if test "$enable_smack" = "yes"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4672$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675#include <linux/xattr.h> 4676_ACEOF 4677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4678 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4680$as_echo "yes" >&6; } 4681else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683$as_echo "no" >&6; }; enable_smack="no" 4684fi 4685rm -f conftest* 4686 4687fi 4688if test "$enable_smack" = "yes"; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4690$as_echo_n "checking for setxattr in -lattr... " >&6; } 4691if ${ac_cv_lib_attr_setxattr+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 ac_check_lib_save_LIBS=$LIBS 4695LIBS="-lattr $LIBS" 4696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4697/* end confdefs.h. */ 4698 4699/* Override any GCC internal prototype to avoid an error. 4700 Use char because int might match the return type of a GCC 4701 builtin and then its argument prototype would still apply. */ 4702#ifdef __cplusplus 4703extern "C" 4704#endif 4705char setxattr (); 4706int 4707main () 4708{ 4709return setxattr (); 4710 ; 4711 return 0; 4712} 4713_ACEOF 4714if ac_fn_c_try_link "$LINENO"; then : 4715 ac_cv_lib_attr_setxattr=yes 4716else 4717 ac_cv_lib_attr_setxattr=no 4718fi 4719rm -f core conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721LIBS=$ac_check_lib_save_LIBS 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4724$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4725if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4726 LIBS="$LIBS -lattr" 4727 found_smack="yes" 4728 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4729 4730fi 4731 4732fi 4733 4734if test "x$found_smack" = "x"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4736$as_echo_n "checking --disable-selinux argument... " >&6; } 4737 # Check whether --enable-selinux was given. 4738if test "${enable_selinux+set}" = set; then : 4739 enableval=$enable_selinux; 4740else 4741 enable_selinux="yes" 4742fi 4743 4744 if test "$enable_selinux" = "yes"; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4748$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4749if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 ac_check_lib_save_LIBS=$LIBS 4753LIBS="-lselinux $LIBS" 4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4755/* end confdefs.h. */ 4756 4757/* Override any GCC internal prototype to avoid an error. 4758 Use char because int might match the return type of a GCC 4759 builtin and then its argument prototype would still apply. */ 4760#ifdef __cplusplus 4761extern "C" 4762#endif 4763char is_selinux_enabled (); 4764int 4765main () 4766{ 4767return is_selinux_enabled (); 4768 ; 4769 return 0; 4770} 4771_ACEOF 4772if ac_fn_c_try_link "$LINENO"; then : 4773 ac_cv_lib_selinux_is_selinux_enabled=yes 4774else 4775 ac_cv_lib_selinux_is_selinux_enabled=no 4776fi 4777rm -f core conftest.err conftest.$ac_objext \ 4778 conftest$ac_exeext conftest.$ac_ext 4779LIBS=$ac_check_lib_save_LIBS 4780fi 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4782$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4783if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4784 LIBS="$LIBS -lselinux" 4785 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4786 4787fi 4788 4789 else 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4791$as_echo "yes" >&6; } 4792 fi 4793fi 4794 4795 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4797$as_echo_n "checking --with-features argument... " >&6; } 4798 4799# Check whether --with-features was given. 4800if test "${with_features+set}" = set; then : 4801 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4802$as_echo "$features" >&6; } 4803else 4804 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4805$as_echo "Defaulting to huge" >&6; } 4806fi 4807 4808 4809dovimdiff="" 4810dogvimdiff="" 4811case "$features" in 4812 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4813 ;; 4814 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4815 ;; 4816 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4817 dovimdiff="installvimdiff"; 4818 dogvimdiff="installgvimdiff" ;; 4819 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4820 dovimdiff="installvimdiff"; 4821 dogvimdiff="installgvimdiff" ;; 4822 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4823 dovimdiff="installvimdiff"; 4824 dogvimdiff="installgvimdiff" ;; 4825 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4826$as_echo "Sorry, $features is not supported" >&6; } ;; 4827esac 4828 4829 4830 4831 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4833$as_echo_n "checking --with-compiledby argument... " >&6; } 4834 4835# Check whether --with-compiledby was given. 4836if test "${with_compiledby+set}" = set; then : 4837 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4838$as_echo "$withval" >&6; } 4839else 4840 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841$as_echo "no" >&6; } 4842fi 4843 4844 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4847$as_echo_n "checking --disable-xsmp argument... " >&6; } 4848# Check whether --enable-xsmp was given. 4849if test "${enable_xsmp+set}" = set; then : 4850 enableval=$enable_xsmp; 4851else 4852 enable_xsmp="yes" 4853fi 4854 4855 4856if test "$enable_xsmp" = "yes"; then 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4858$as_echo "no" >&6; } 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4860$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4861 # Check whether --enable-xsmp-interact was given. 4862if test "${enable_xsmp_interact+set}" = set; then : 4863 enableval=$enable_xsmp_interact; 4864else 4865 enable_xsmp_interact="yes" 4866fi 4867 4868 if test "$enable_xsmp_interact" = "yes"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4870$as_echo "no" >&6; } 4871 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4872 4873 else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4875$as_echo "yes" >&6; } 4876 fi 4877else 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4879$as_echo "yes" >&6; } 4880fi 4881 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4883$as_echo_n "checking --enable-luainterp argument... " >&6; } 4884# Check whether --enable-luainterp was given. 4885if test "${enable_luainterp+set}" = set; then : 4886 enableval=$enable_luainterp; 4887else 4888 enable_luainterp="no" 4889fi 4890 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4892$as_echo "$enable_luainterp" >&6; } 4893 4894if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4895 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4896 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4897 fi 4898 4899 4900 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4902$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4903 4904# Check whether --with-lua_prefix was given. 4905if test "${with_lua_prefix+set}" = set; then : 4906 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4907$as_echo "$with_lua_prefix" >&6; } 4908else 4909 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4910$as_echo "no" >&6; } 4911fi 4912 4913 4914 if test "X$with_lua_prefix" != "X"; then 4915 vi_cv_path_lua_pfx="$with_lua_prefix" 4916 else 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4918$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4919 if test "X$LUA_PREFIX" != "X"; then 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4921$as_echo "\"$LUA_PREFIX\"" >&6; } 4922 vi_cv_path_lua_pfx="$LUA_PREFIX" 4923 else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4925$as_echo "not set, default to /usr" >&6; } 4926 vi_cv_path_lua_pfx="/usr" 4927 fi 4928 fi 4929 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4931$as_echo_n "checking --with-luajit... " >&6; } 4932 4933# Check whether --with-luajit was given. 4934if test "${with_luajit+set}" = set; then : 4935 withval=$with_luajit; vi_cv_with_luajit="$withval" 4936else 4937 vi_cv_with_luajit="no" 4938fi 4939 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4941$as_echo "$vi_cv_with_luajit" >&6; } 4942 4943 LUA_INC= 4944 if test "X$vi_cv_path_lua_pfx" != "X"; then 4945 if test "x$vi_cv_with_luajit" != "xno"; then 4946 # Extract the first word of "luajit", so it can be a program name with args. 4947set dummy luajit; ac_word=$2 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949$as_echo_n "checking for $ac_word... " >&6; } 4950if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 case $vi_cv_path_luajit in 4954 [\\/]* | ?:[\\/]*) 4955 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4956 ;; 4957 *) 4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4959for as_dir in $PATH 4960do 4961 IFS=$as_save_IFS 4962 test -z "$as_dir" && as_dir=. 4963 for ac_exec_ext in '' $ac_executable_extensions; do 4964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4965 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4967 break 2 4968 fi 4969done 4970 done 4971IFS=$as_save_IFS 4972 4973 ;; 4974esac 4975fi 4976vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4977if test -n "$vi_cv_path_luajit"; then 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4979$as_echo "$vi_cv_path_luajit" >&6; } 4980else 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982$as_echo "no" >&6; } 4983fi 4984 4985 4986 if test "X$vi_cv_path_luajit" != "X"; then 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4988$as_echo_n "checking LuaJIT version... " >&6; } 4989if ${vi_cv_version_luajit+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4995$as_echo "$vi_cv_version_luajit" >&6; } 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4997$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4998if ${vi_cv_version_lua_luajit+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5002fi 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5004$as_echo "$vi_cv_version_lua_luajit" >&6; } 5005 vi_cv_path_lua="$vi_cv_path_luajit" 5006 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5007 fi 5008 else 5009 # Extract the first word of "lua", so it can be a program name with args. 5010set dummy lua; ac_word=$2 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5012$as_echo_n "checking for $ac_word... " >&6; } 5013if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 case $vi_cv_path_plain_lua in 5017 [\\/]* | ?:[\\/]*) 5018 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5019 ;; 5020 *) 5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033 done 5034IFS=$as_save_IFS 5035 5036 ;; 5037esac 5038fi 5039vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5040if test -n "$vi_cv_path_plain_lua"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5042$as_echo "$vi_cv_path_plain_lua" >&6; } 5043else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045$as_echo "no" >&6; } 5046fi 5047 5048 5049 if test "X$vi_cv_path_plain_lua" != "X"; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5051$as_echo_n "checking Lua version... " >&6; } 5052if ${vi_cv_version_plain_lua+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5056fi 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5058$as_echo "$vi_cv_version_plain_lua" >&6; } 5059 fi 5060 vi_cv_path_lua="$vi_cv_path_plain_lua" 5061 vi_cv_version_lua="$vi_cv_version_plain_lua" 5062 fi 5063 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 5065$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5066 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5068$as_echo "yes" >&6; } 5069 LUA_INC=/luajit-$vi_cv_version_luajit 5070 fi 5071 fi 5072 if test "X$LUA_INC" = "X"; then 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5074$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5075 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5077$as_echo "yes" >&6; } 5078 else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080$as_echo "no" >&6; } 5081 { $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 5082$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5083 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5085$as_echo "yes" >&6; } 5086 LUA_INC=/lua$vi_cv_version_lua 5087 else 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5089$as_echo "no" >&6; } 5090 vi_cv_path_lua_pfx= 5091 fi 5092 fi 5093 fi 5094 fi 5095 5096 if test "X$vi_cv_path_lua_pfx" != "X"; then 5097 if test "x$vi_cv_with_luajit" != "xno"; then 5098 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5099 if test "X$multiarch" != "X"; then 5100 lib_multiarch="lib/${multiarch}" 5101 else 5102 lib_multiarch="lib" 5103 fi 5104 if test "X$vi_cv_version_lua" = "X"; then 5105 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5106 else 5107 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5108 fi 5109 else 5110 if test "X$LUA_INC" != "X"; then 5111 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5112 else 5113 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5114 fi 5115 fi 5116 if test "$enable_luainterp" = "dynamic"; then 5117 lua_ok="yes" 5118 else 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5120$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5121 libs_save=$LIBS 5122 LIBS="$LIBS $LUA_LIBS" 5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125 5126int 5127main () 5128{ 5129 5130 ; 5131 return 0; 5132} 5133_ACEOF 5134if ac_fn_c_try_link "$LINENO"; then : 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5136$as_echo "yes" >&6; }; lua_ok="yes" 5137else 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5139$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5140fi 5141rm -f core conftest.err conftest.$ac_objext \ 5142 conftest$ac_exeext conftest.$ac_ext 5143 LIBS=$libs_save 5144 fi 5145 if test "x$lua_ok" = "xyes"; then 5146 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5147 LUA_SRC="if_lua.c" 5148 LUA_OBJ="objects/if_lua.o" 5149 LUA_PRO="if_lua.pro" 5150 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5151 5152 fi 5153 if test "$enable_luainterp" = "dynamic"; then 5154 if test "x$vi_cv_with_luajit" != "xno"; then 5155 luajit="jit" 5156 fi 5157 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5158 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5159 else 5160 if test "x$MACOS_X" = "xyes"; then 5161 ext="dylib" 5162 indexes="" 5163 else 5164 ext="so" 5165 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5166 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5167 if test "X$multiarch" != "X"; then 5168 lib_multiarch="lib/${multiarch}" 5169 fi 5170 fi 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5172$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5173 for subdir in "${lib_multiarch}" lib64 lib; do 5174 if test -z "$subdir"; then 5175 continue 5176 fi 5177 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5178 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5179 for i in $indexes ""; do 5180 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5181 sover2="$i" 5182 break 3 5183 fi 5184 done 5185 done 5186 sover="" 5187 done 5188 if test "X$sover" = "X"; then 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5190$as_echo "no" >&6; } 5191 lua_ok="no" 5192 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5193 else 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5195$as_echo "yes" >&6; } 5196 lua_ok="yes" 5197 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5198 fi 5199 fi 5200 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5201 5202 LUA_LIBS="" 5203 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5204 fi 5205 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5206 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5207 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5208 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5209 fi 5210 fi 5211 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5212 as_fn_error $? "could not configure lua" "$LINENO" 5 5213 fi 5214 5215 5216 5217 5218 5219fi 5220 5221 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5223$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5224# Check whether --enable-mzschemeinterp was given. 5225if test "${enable_mzschemeinterp+set}" = set; then : 5226 enableval=$enable_mzschemeinterp; 5227else 5228 enable_mzschemeinterp="no" 5229fi 5230 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5232$as_echo "$enable_mzschemeinterp" >&6; } 5233 5234if test "$enable_mzschemeinterp" = "yes"; then 5235 5236 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5238$as_echo_n "checking --with-plthome argument... " >&6; } 5239 5240# Check whether --with-plthome was given. 5241if test "${with_plthome+set}" = set; then : 5242 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5243$as_echo "$with_plthome" >&6; } 5244else 5245 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5246$as_echo "\"no\"" >&6; } 5247fi 5248 5249 5250 if test "X$with_plthome" != "X"; then 5251 vi_cv_path_mzscheme_pfx="$with_plthome" 5252 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5253 else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5255$as_echo_n "checking PLTHOME environment var... " >&6; } 5256 if test "X$PLTHOME" != "X"; then 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5258$as_echo "\"$PLTHOME\"" >&6; } 5259 vi_cv_path_mzscheme_pfx="$PLTHOME" 5260 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5261 else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5263$as_echo "not set" >&6; } 5264 # Extract the first word of "mzscheme", so it can be a program name with args. 5265set dummy mzscheme; ac_word=$2 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5267$as_echo_n "checking for $ac_word... " >&6; } 5268if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5269 $as_echo_n "(cached) " >&6 5270else 5271 case $vi_cv_path_mzscheme in 5272 [\\/]* | ?:[\\/]*) 5273 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5274 ;; 5275 *) 5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5277for as_dir in $PATH 5278do 5279 IFS=$as_save_IFS 5280 test -z "$as_dir" && as_dir=. 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5283 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288 done 5289IFS=$as_save_IFS 5290 5291 ;; 5292esac 5293fi 5294vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5295if test -n "$vi_cv_path_mzscheme"; then 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5297$as_echo "$vi_cv_path_mzscheme" >&6; } 5298else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5300$as_echo "no" >&6; } 5301fi 5302 5303 5304 5305 if test "X$vi_cv_path_mzscheme" != "X"; then 5306 lsout=`ls -l $vi_cv_path_mzscheme` 5307 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5308 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5309 fi 5310 fi 5311 5312 if test "X$vi_cv_path_mzscheme" != "X"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5314$as_echo_n "checking MzScheme install prefix... " >&6; } 5315if ${vi_cv_path_mzscheme_pfx+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 echo "(display (simplify-path \ 5319 (build-path (call-with-values \ 5320 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5321 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5322 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5323 sed -e 's+/$++'` 5324fi 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5326$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5327 rm -f mzdirs.scm 5328 fi 5329 fi 5330 fi 5331 5332 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5334$as_echo_n "checking for racket include directory... " >&6; } 5335 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5336 if test "X$SCHEME_INC" != "X"; then 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5338$as_echo "${SCHEME_INC}" >&6; } 5339 else 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5341$as_echo "not found" >&6; } 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5343$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5344 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5345 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5347$as_echo "yes" >&6; } 5348 else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5352$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5353 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5355$as_echo "yes" >&6; } 5356 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5357 else 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5359$as_echo "no" >&6; } 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5361$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5362 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5364$as_echo "yes" >&6; } 5365 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5366 else 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5368$as_echo "no" >&6; } 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5370$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5371 if test -f /usr/include/plt/scheme.h; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5373$as_echo "yes" >&6; } 5374 SCHEME_INC=/usr/include/plt 5375 else 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5377$as_echo "no" >&6; } 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5379$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5380 if test -f /usr/include/racket/scheme.h; then 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5382$as_echo "yes" >&6; } 5383 SCHEME_INC=/usr/include/racket 5384 else 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386$as_echo "no" >&6; } 5387 vi_cv_path_mzscheme_pfx= 5388 fi 5389 fi 5390 fi 5391 fi 5392 fi 5393 fi 5394 fi 5395 5396 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5397 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5399$as_echo_n "checking for racket lib directory... " >&6; } 5400 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5401 if test "X$SCHEME_LIB" != "X"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5403$as_echo "${SCHEME_LIB}" >&6; } 5404 else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5406$as_echo "not found" >&6; } 5407 fi 5408 5409 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5410 if test "X$path" != "X"; then 5411 if test "x$MACOS_X" = "xyes"; then 5412 MZSCHEME_LIBS="-framework Racket" 5413 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5414 elif test -f "${path}/libmzscheme3m.a"; then 5415 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5416 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5417 elif test -f "${path}/libracket3m.a"; then 5418 MZSCHEME_LIBS="${path}/libracket3m.a" 5419 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5420 elif test -f "${path}/libracket.a"; then 5421 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5422 elif test -f "${path}/libmzscheme.a"; then 5423 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5424 else 5425 if test -f "${path}/libmzscheme3m.so"; then 5426 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5427 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5428 elif test -f "${path}/libracket3m.so"; then 5429 MZSCHEME_LIBS="-L${path} -lracket3m" 5430 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5431 elif test -f "${path}/libracket.so"; then 5432 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5433 else 5434 if test "$path" != "$SCHEME_LIB"; then 5435 continue 5436 fi 5437 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5438 fi 5439 if test "$GCC" = yes; then 5440 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5441 elif test "`(uname) 2>/dev/null`" = SunOS && 5442 uname -r | grep '^5' >/dev/null; then 5443 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5444 fi 5445 fi 5446 fi 5447 if test "X$MZSCHEME_LIBS" != "X"; then 5448 break 5449 fi 5450 done 5451 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5453$as_echo_n "checking if racket requires -pthread... " >&6; } 5454 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5456$as_echo "yes" >&6; } 5457 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5458 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5459 else 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5461$as_echo "no" >&6; } 5462 fi 5463 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5465$as_echo_n "checking for racket config directory... " >&6; } 5466 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5467 if test "X$SCHEME_CONFIGDIR" != "X"; then 5468 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5470$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5471 else 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5473$as_echo "not found" >&6; } 5474 fi 5475 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5477$as_echo_n "checking for racket collects directory... " >&6; } 5478 SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'` 5479 if test "X$SCHEME_COLLECTS" = "X"; then 5480 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5481 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5482 else 5483 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5484 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5485 else 5486 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5487 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5488 else 5489 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5490 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5491 fi 5492 fi 5493 fi 5494 fi 5495 fi 5496 if test "X$SCHEME_COLLECTS" != "X" ; then 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5498$as_echo "${SCHEME_COLLECTS}" >&6; } 5499 else 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5501$as_echo "not found" >&6; } 5502 fi 5503 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5505$as_echo_n "checking for mzscheme_base.c... " >&6; } 5506 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5507 MZSCHEME_EXTRA="mzscheme_base.c" 5508 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5509 MZSCHEME_MOD="++lib scheme/base" 5510 else 5511 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5512 MZSCHEME_EXTRA="mzscheme_base.c" 5513 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5514 MZSCHEME_MOD="++lib scheme/base" 5515 else 5516 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5517 MZSCHEME_EXTRA="mzscheme_base.c" 5518 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5519 MZSCHEME_MOD="" 5520 fi 5521 fi 5522 fi 5523 if test "X$MZSCHEME_EXTRA" != "X" ; then 5524 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5526$as_echo "needed" >&6; } 5527 else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5529$as_echo "not needed" >&6; } 5530 fi 5531 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5533$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5534if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536else 5537 ac_check_lib_save_LIBS=$LIBS 5538LIBS="-lffi $LIBS" 5539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541 5542/* Override any GCC internal prototype to avoid an error. 5543 Use char because int might match the return type of a GCC 5544 builtin and then its argument prototype would still apply. */ 5545#ifdef __cplusplus 5546extern "C" 5547#endif 5548char ffi_type_void (); 5549int 5550main () 5551{ 5552return ffi_type_void (); 5553 ; 5554 return 0; 5555} 5556_ACEOF 5557if ac_fn_c_try_link "$LINENO"; then : 5558 ac_cv_lib_ffi_ffi_type_void=yes 5559else 5560 ac_cv_lib_ffi_ffi_type_void=no 5561fi 5562rm -f core conftest.err conftest.$ac_objext \ 5563 conftest$ac_exeext conftest.$ac_ext 5564LIBS=$ac_check_lib_save_LIBS 5565fi 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5567$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5568if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5569 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5570fi 5571 5572 5573 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5574 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5575 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5577$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5578 cflags_save=$CFLAGS 5579 libs_save=$LIBS 5580 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5581 LIBS="$LIBS $MZSCHEME_LIBS" 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5583/* end confdefs.h. */ 5584 5585int 5586main () 5587{ 5588 5589 ; 5590 return 0; 5591} 5592_ACEOF 5593if ac_fn_c_try_link "$LINENO"; then : 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5595$as_echo "yes" >&6; }; mzs_ok=yes 5596else 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5598$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5599fi 5600rm -f core conftest.err conftest.$ac_objext \ 5601 conftest$ac_exeext conftest.$ac_ext 5602 CFLAGS=$cflags_save 5603 LIBS=$libs_save 5604 if test $mzs_ok = yes; then 5605 MZSCHEME_SRC="if_mzsch.c" 5606 MZSCHEME_OBJ="objects/if_mzsch.o" 5607 MZSCHEME_PRO="if_mzsch.pro" 5608 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5609 5610 else 5611 MZSCHEME_CFLAGS= 5612 MZSCHEME_LIBS= 5613 MZSCHEME_EXTRA= 5614 MZSCHEME_MZC= 5615 fi 5616 fi 5617 5618 5619 5620 5621 5622 5623 5624fi 5625 5626 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5628$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5629# Check whether --enable-perlinterp was given. 5630if test "${enable_perlinterp+set}" = set; then : 5631 enableval=$enable_perlinterp; 5632else 5633 enable_perlinterp="no" 5634fi 5635 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5637$as_echo "$enable_perlinterp" >&6; } 5638if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5639 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5640 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5641 fi 5642 5643 # Extract the first word of "perl", so it can be a program name with args. 5644set dummy perl; ac_word=$2 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646$as_echo_n "checking for $ac_word... " >&6; } 5647if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 case $vi_cv_path_perl in 5651 [\\/]* | ?:[\\/]*) 5652 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5653 ;; 5654 *) 5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656for as_dir in $PATH 5657do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5662 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666done 5667 done 5668IFS=$as_save_IFS 5669 5670 ;; 5671esac 5672fi 5673vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5674if test -n "$vi_cv_path_perl"; then 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5676$as_echo "$vi_cv_path_perl" >&6; } 5677else 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5679$as_echo "no" >&6; } 5680fi 5681 5682 5683 if test "X$vi_cv_path_perl" != "X"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5685$as_echo_n "checking Perl version... " >&6; } 5686 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5687 eval `$vi_cv_path_perl -V:usethreads` 5688 eval `$vi_cv_path_perl -V:libperl` 5689 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5690 badthreads=no 5691 else 5692 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5693 eval `$vi_cv_path_perl -V:use5005threads` 5694 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5695 badthreads=no 5696 else 5697 badthreads=yes 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5699$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5700 fi 5701 else 5702 badthreads=yes 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5704$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5705 fi 5706 fi 5707 if test $badthreads = no; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5709$as_echo "OK" >&6; } 5710 eval `$vi_cv_path_perl -V:shrpenv` 5711 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5712 shrpenv="" 5713 fi 5714 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5715 5716 vi_cv_perl_extutils=unknown_perl_extutils_path 5717 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5718 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5719 if test -f "$xsubpp_path"; then 5720 vi_cv_perl_xsubpp="$xsubpp_path" 5721 fi 5722 done 5723 5724 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5725 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5726 -e 's/-fdebug-prefix-map[^ ]*//g' \ 5727 -e 's/-pipe //' \ 5728 -e 's/-W[^ ]*//g' \ 5729 -e 's/-D_FORTIFY_SOURCE=.//g'` 5730 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5731 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5732 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5733 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5734 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5735 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5737$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5738 cflags_save=$CFLAGS 5739 libs_save=$LIBS 5740 ldflags_save=$LDFLAGS 5741 CFLAGS="$CFLAGS $perlcppflags" 5742 LIBS="$LIBS $perllibs" 5743 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5744 LDFLAGS="$perlldflags $LDFLAGS" 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747 5748int 5749main () 5750{ 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756if ac_fn_c_try_link "$LINENO"; then : 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5758$as_echo "yes" >&6; }; perl_ok=yes 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5761$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5762fi 5763rm -f core conftest.err conftest.$ac_objext \ 5764 conftest$ac_exeext conftest.$ac_ext 5765 CFLAGS=$cflags_save 5766 LIBS=$libs_save 5767 LDFLAGS=$ldflags_save 5768 if test $perl_ok = yes; then 5769 if test "X$perlcppflags" != "X"; then 5770 PERL_CFLAGS=$perlcppflags 5771 fi 5772 if test "X$perlldflags" != "X"; then 5773 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5774 LDFLAGS="$perlldflags $LDFLAGS" 5775 fi 5776 fi 5777 PERL_LIBS=$perllibs 5778 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5779 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5780 PERL_PRO="if_perl.pro if_perlsfio.pro" 5781 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5782 5783 fi 5784 fi 5785 else 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5787$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5788 fi 5789 fi 5790 5791 if test "x$MACOS_X" = "xyes"; then 5792 dir=/System/Library/Perl 5793 darwindir=$dir/darwin 5794 if test -d $darwindir; then 5795 PERL=/usr/bin/perl 5796 else 5797 dir=/System/Library/Perl/5.8.1 5798 darwindir=$dir/darwin-thread-multi-2level 5799 if test -d $darwindir; then 5800 PERL=/usr/bin/perl 5801 fi 5802 fi 5803 if test -n "$PERL"; then 5804 PERL_DIR="$dir" 5805 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5806 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5807 PERL_LIBS="-L$darwindir/CORE -lperl" 5808 fi 5809 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5810 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5811 fi 5812 if test "$enable_perlinterp" = "dynamic"; then 5813 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5814 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5815 5816 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5817 fi 5818 fi 5819 5820 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5821 as_fn_error $? "could not configure perl" "$LINENO" 5 5822 fi 5823fi 5824 5825 5826 5827 5828 5829 5830 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5832$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5833# Check whether --enable-pythoninterp was given. 5834if test "${enable_pythoninterp+set}" = set; then : 5835 enableval=$enable_pythoninterp; 5836else 5837 enable_pythoninterp="no" 5838fi 5839 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5841$as_echo "$enable_pythoninterp" >&6; } 5842if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5843 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5844 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5845 fi 5846 5847 for ac_prog in python2 python 5848do 5849 # Extract the first word of "$ac_prog", so it can be a program name with args. 5850set dummy $ac_prog; ac_word=$2 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852$as_echo_n "checking for $ac_word... " >&6; } 5853if ${ac_cv_path_vi_cv_path_python+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 case $vi_cv_path_python in 5857 [\\/]* | ?:[\\/]*) 5858 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5859 ;; 5860 *) 5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862for as_dir in $PATH 5863do 5864 IFS=$as_save_IFS 5865 test -z "$as_dir" && as_dir=. 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5868 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873 done 5874IFS=$as_save_IFS 5875 5876 ;; 5877esac 5878fi 5879vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5880if test -n "$vi_cv_path_python"; then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5882$as_echo "$vi_cv_path_python" >&6; } 5883else 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885$as_echo "no" >&6; } 5886fi 5887 5888 5889 test -n "$vi_cv_path_python" && break 5890done 5891 5892 if test "X$vi_cv_path_python" != "X"; then 5893 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5895$as_echo_n "checking Python version... " >&6; } 5896if ${vi_cv_var_python_version+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 vi_cv_var_python_version=` 5900 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5901 5902fi 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5904$as_echo "$vi_cv_var_python_version" >&6; } 5905 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5907$as_echo_n "checking Python is 2.3 or better... " >&6; } 5908 if ${vi_cv_path_python} -c \ 5909 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5910 then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5912$as_echo "yep" >&6; } 5913 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5915$as_echo_n "checking Python's install prefix... " >&6; } 5916if ${vi_cv_path_python_pfx+:} false; then : 5917 $as_echo_n "(cached) " >&6 5918else 5919 vi_cv_path_python_pfx=` 5920 ${vi_cv_path_python} -c \ 5921 "import sys; print sys.prefix"` 5922fi 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5924$as_echo "$vi_cv_path_python_pfx" >&6; } 5925 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5927$as_echo_n "checking Python's execution prefix... " >&6; } 5928if ${vi_cv_path_python_epfx+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 vi_cv_path_python_epfx=` 5932 ${vi_cv_path_python} -c \ 5933 "import sys; print sys.exec_prefix"` 5934fi 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5936$as_echo "$vi_cv_path_python_epfx" >&6; } 5937 5938 5939 if ${vi_cv_path_pythonpath+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 vi_cv_path_pythonpath=` 5943 unset PYTHONPATH; 5944 ${vi_cv_path_python} -c \ 5945 "import sys, string; print string.join(sys.path,':')"` 5946fi 5947 5948 5949 5950 5951# Check whether --with-python-config-dir was given. 5952if test "${with_python_config_dir+set}" = set; then : 5953 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5954fi 5955 5956 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5958$as_echo_n "checking Python's configuration directory... " >&6; } 5959if ${vi_cv_path_python_conf+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 5963 vi_cv_path_python_conf= 5964 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5965 if test -d "$d" && test -f "$d/config.c"; then 5966 vi_cv_path_python_conf="$d" 5967 else 5968 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5969 for subdir in lib64 lib share; do 5970 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5971 if test -d "$d" && test -f "$d/config.c"; then 5972 vi_cv_path_python_conf="$d" 5973 fi 5974 done 5975 done 5976 fi 5977 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5980$as_echo "$vi_cv_path_python_conf" >&6; } 5981 5982 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5983 5984 if test "X$PYTHON_CONFDIR" = "X"; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5986$as_echo "can't find it!" >&6; } 5987 else 5988 5989 if ${vi_cv_path_python_plibs+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 5993 pwd=`pwd` 5994 tmp_mkf="$pwd/config-PyMake$$" 5995 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5996__: 5997 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5998 @echo "python_LIBS='$(LIBS)'" 5999 @echo "python_SYSLIBS='$(SYSLIBS)'" 6000 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6001 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6002 @echo "python_INSTSONAME='$(INSTSONAME)'" 6003 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6004 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6005 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6006eof 6007 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6008 rm -f -- "${tmp_mkf}" 6009 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6010 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6011 vi_cv_path_python_plibs="-framework Python" 6012 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6013 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6014 fi 6015 else 6016 if test "${vi_cv_var_python_version}" = "1.4"; then 6017 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 6018 else 6019 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6020 fi 6021 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6022 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6023 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6024 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6025 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6026 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6027 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6028 fi 6029 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6030 fi 6031 fi 6032 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6033 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6034 fi 6035 6036fi 6037 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6039$as_echo_n "checking Python's dll name... " >&6; } 6040if ${vi_cv_dll_name_python+:} false; then : 6041 $as_echo_n "(cached) " >&6 6042else 6043 6044 if test "X$python_DLLLIBRARY" != "X"; then 6045 vi_cv_dll_name_python="$python_DLLLIBRARY" 6046 else 6047 vi_cv_dll_name_python="$python_INSTSONAME" 6048 fi 6049 6050fi 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6052$as_echo "$vi_cv_dll_name_python" >&6; } 6053 6054 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6055 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6056 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6057 else 6058 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6059 fi 6060 PYTHON_SRC="if_python.c" 6061 PYTHON_OBJ="objects/if_python.o" 6062 if test "${vi_cv_var_python_version}" = "1.4"; then 6063 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6064 fi 6065 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6066 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6068$as_echo_n "checking if -pthread should be used... " >&6; } 6069 threadsafe_flag= 6070 thread_lib= 6071 if test "`(uname) 2>/dev/null`" != Darwin; then 6072 test "$GCC" = yes && threadsafe_flag="-pthread" 6073 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6074 threadsafe_flag="-D_THREAD_SAFE" 6075 thread_lib="-pthread" 6076 fi 6077 if test "`(uname) 2>/dev/null`" = SunOS; then 6078 threadsafe_flag="-pthreads" 6079 fi 6080 fi 6081 libs_save_old=$LIBS 6082 if test -n "$threadsafe_flag"; then 6083 cflags_save=$CFLAGS 6084 CFLAGS="$CFLAGS $threadsafe_flag" 6085 LIBS="$LIBS $thread_lib" 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088 6089int 6090main () 6091{ 6092 6093 ; 6094 return 0; 6095} 6096_ACEOF 6097if ac_fn_c_try_link "$LINENO"; then : 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6099$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6100else 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; }; LIBS=$libs_save_old 6103 6104fi 6105rm -f core conftest.err conftest.$ac_objext \ 6106 conftest$ac_exeext conftest.$ac_ext 6107 CFLAGS=$cflags_save 6108 else 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6110$as_echo "no" >&6; } 6111 fi 6112 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6114$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6115 cflags_save=$CFLAGS 6116 libs_save=$LIBS 6117 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6118 LIBS="$LIBS $PYTHON_LIBS" 6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6120/* end confdefs.h. */ 6121 6122int 6123main () 6124{ 6125 6126 ; 6127 return 0; 6128} 6129_ACEOF 6130if ac_fn_c_try_link "$LINENO"; then : 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6132$as_echo "yes" >&6; }; python_ok=yes 6133else 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6135$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6136fi 6137rm -f core conftest.err conftest.$ac_objext \ 6138 conftest$ac_exeext conftest.$ac_ext 6139 CFLAGS=$cflags_save 6140 LIBS=$libs_save 6141 if test $python_ok = yes; then 6142 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6143 6144 else 6145 LIBS=$libs_save_old 6146 PYTHON_SRC= 6147 PYTHON_OBJ= 6148 PYTHON_LIBS= 6149 PYTHON_CFLAGS= 6150 fi 6151 fi 6152 else 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6154$as_echo "too old" >&6; } 6155 fi 6156 fi 6157 6158 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6159 as_fn_error $? "could not configure python" "$LINENO" 5 6160 fi 6161fi 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6172$as_echo_n "checking --enable-python3interp argument... " >&6; } 6173# Check whether --enable-python3interp was given. 6174if test "${enable_python3interp+set}" = set; then : 6175 enableval=$enable_python3interp; 6176else 6177 enable_python3interp="no" 6178fi 6179 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6181$as_echo "$enable_python3interp" >&6; } 6182if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6183 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6184 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6185 fi 6186 6187 for ac_prog in python3 python 6188do 6189 # Extract the first word of "$ac_prog", so it can be a program name with args. 6190set dummy $ac_prog; ac_word=$2 6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6192$as_echo_n "checking for $ac_word... " >&6; } 6193if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 case $vi_cv_path_python3 in 6197 [\\/]* | ?:[\\/]*) 6198 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6199 ;; 6200 *) 6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6202for as_dir in $PATH 6203do 6204 IFS=$as_save_IFS 6205 test -z "$as_dir" && as_dir=. 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6208 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6210 break 2 6211 fi 6212done 6213 done 6214IFS=$as_save_IFS 6215 6216 ;; 6217esac 6218fi 6219vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6220if test -n "$vi_cv_path_python3"; then 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6222$as_echo "$vi_cv_path_python3" >&6; } 6223else 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225$as_echo "no" >&6; } 6226fi 6227 6228 6229 test -n "$vi_cv_path_python3" && break 6230done 6231 6232 if test "X$vi_cv_path_python3" != "X"; then 6233 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6235$as_echo_n "checking Python version... " >&6; } 6236if ${vi_cv_var_python3_version+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 vi_cv_var_python3_version=` 6240 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6241 6242fi 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6244$as_echo "$vi_cv_var_python3_version" >&6; } 6245 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6247$as_echo_n "checking Python is 3.0 or better... " >&6; } 6248 if ${vi_cv_path_python3} -c \ 6249 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6250 then 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6252$as_echo "yep" >&6; } 6253 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6255$as_echo_n "checking Python's abiflags... " >&6; } 6256if ${vi_cv_var_python3_abiflags+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 6260 vi_cv_var_python3_abiflags= 6261 if ${vi_cv_path_python3} -c \ 6262 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6263 then 6264 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6265 "import sys; print(sys.abiflags)"` 6266 fi 6267fi 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6269$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6270 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6272$as_echo_n "checking Python's install prefix... " >&6; } 6273if ${vi_cv_path_python3_pfx+:} false; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 vi_cv_path_python3_pfx=` 6277 ${vi_cv_path_python3} -c \ 6278 "import sys; print(sys.prefix)"` 6279fi 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6281$as_echo "$vi_cv_path_python3_pfx" >&6; } 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6284$as_echo_n "checking Python's execution prefix... " >&6; } 6285if ${vi_cv_path_python3_epfx+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 vi_cv_path_python3_epfx=` 6289 ${vi_cv_path_python3} -c \ 6290 "import sys; print(sys.exec_prefix)"` 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6293$as_echo "$vi_cv_path_python3_epfx" >&6; } 6294 6295 6296 if ${vi_cv_path_python3path+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 vi_cv_path_python3path=` 6300 unset PYTHONPATH; 6301 ${vi_cv_path_python3} -c \ 6302 "import sys, string; print(':'.join(sys.path))"` 6303fi 6304 6305 6306 6307 6308# Check whether --with-python3-config-dir was given. 6309if test "${with_python3_config_dir+set}" = set; then : 6310 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6311fi 6312 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6315$as_echo_n "checking Python's configuration directory... " >&6; } 6316if ${vi_cv_path_python3_conf+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 6320 vi_cv_path_python3_conf= 6321 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6322 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6323 if test -d "$d" && test -f "$d/config.c"; then 6324 vi_cv_path_python3_conf="$d" 6325 else 6326 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6327 for subdir in lib64 lib share; do 6328 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6329 if test -d "$d" && test -f "$d/config.c"; then 6330 vi_cv_path_python3_conf="$d" 6331 fi 6332 done 6333 done 6334 fi 6335 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6338$as_echo "$vi_cv_path_python3_conf" >&6; } 6339 6340 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6341 6342 if test "X$PYTHON3_CONFDIR" = "X"; then 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6344$as_echo "can't find it!" >&6; } 6345 else 6346 6347 if ${vi_cv_path_python3_plibs+:} false; then : 6348 $as_echo_n "(cached) " >&6 6349else 6350 6351 pwd=`pwd` 6352 tmp_mkf="$pwd/config-PyMake$$" 6353 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6354__: 6355 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6356 @echo "python3_LIBS='$(LIBS)'" 6357 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6358 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6359 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6360eof 6361 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6362 rm -f -- "${tmp_mkf}" 6363 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6364 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6365 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6366 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6367 6368fi 6369 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6371$as_echo_n "checking Python3's dll name... " >&6; } 6372if ${vi_cv_dll_name_python3+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 6376 if test "X$python3_DLLLIBRARY" != "X"; then 6377 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6378 else 6379 vi_cv_dll_name_python3="$python3_INSTSONAME" 6380 fi 6381 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6384$as_echo "$vi_cv_dll_name_python3" >&6; } 6385 6386 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6387 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6388 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6389 else 6390 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6391 fi 6392 PYTHON3_SRC="if_python3.c" 6393 PYTHON3_OBJ="objects/if_python3.o" 6394 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6396$as_echo_n "checking if -pthread should be used... " >&6; } 6397 threadsafe_flag= 6398 thread_lib= 6399 if test "`(uname) 2>/dev/null`" != Darwin; then 6400 test "$GCC" = yes && threadsafe_flag="-pthread" 6401 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6402 threadsafe_flag="-D_THREAD_SAFE" 6403 thread_lib="-pthread" 6404 fi 6405 if test "`(uname) 2>/dev/null`" = SunOS; then 6406 threadsafe_flag="-pthreads" 6407 fi 6408 fi 6409 libs_save_old=$LIBS 6410 if test -n "$threadsafe_flag"; then 6411 cflags_save=$CFLAGS 6412 CFLAGS="$CFLAGS $threadsafe_flag" 6413 LIBS="$LIBS $thread_lib" 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415/* end confdefs.h. */ 6416 6417int 6418main () 6419{ 6420 6421 ; 6422 return 0; 6423} 6424_ACEOF 6425if ac_fn_c_try_link "$LINENO"; then : 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6427$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6430$as_echo "no" >&6; }; LIBS=$libs_save_old 6431 6432fi 6433rm -f core conftest.err conftest.$ac_objext \ 6434 conftest$ac_exeext conftest.$ac_ext 6435 CFLAGS=$cflags_save 6436 else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6438$as_echo "no" >&6; } 6439 fi 6440 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6442$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6443 cflags_save=$CFLAGS 6444 libs_save=$LIBS 6445 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6446 LIBS="$LIBS $PYTHON3_LIBS" 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449 6450int 6451main () 6452{ 6453 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458if ac_fn_c_try_link "$LINENO"; then : 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6460$as_echo "yes" >&6; }; python3_ok=yes 6461else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6463$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6464fi 6465rm -f core conftest.err conftest.$ac_objext \ 6466 conftest$ac_exeext conftest.$ac_ext 6467 CFLAGS=$cflags_save 6468 LIBS=$libs_save 6469 if test "$python3_ok" = yes; then 6470 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6471 6472 else 6473 LIBS=$libs_save_old 6474 PYTHON3_SRC= 6475 PYTHON3_OBJ= 6476 PYTHON3_LIBS= 6477 PYTHON3_CFLAGS= 6478 fi 6479 fi 6480 else 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6482$as_echo "too old" >&6; } 6483 fi 6484 fi 6485 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6486 as_fn_error $? "could not configure python3" "$LINENO" 5 6487 fi 6488fi 6489 6490 6491 6492 6493 6494 6495 6496if test "$python_ok" = yes && test "$python3_ok" = yes; then 6497 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6498 6499 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6500 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6502$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6503 cflags_save=$CFLAGS 6504 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6505 libs_save=$LIBS 6506 LIBS="-ldl $LIBS" 6507 if test "$cross_compiling" = yes; then : 6508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6510as_fn_error $? "cannot run test program while cross compiling 6511See \`config.log' for more details" "$LINENO" 5; } 6512else 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514/* end confdefs.h. */ 6515 6516 #include <dlfcn.h> 6517 /* If this program fails, then RTLD_GLOBAL is needed. 6518 * RTLD_GLOBAL will be used and then it is not possible to 6519 * have both python versions enabled in the same vim instance. 6520 * Only the first python version used will be switched on. 6521 */ 6522 6523 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6524 { 6525 int needed = 0; 6526 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6527 if (pylib != 0) 6528 { 6529 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6530 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6531 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6532 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6533 (*pfx)(prefix); 6534 (*init)(); 6535 needed = (*simple)("import termios") == -1; 6536 (*final)(); 6537 dlclose(pylib); 6538 } 6539 return !needed; 6540 } 6541 6542 int main(int argc, char** argv) 6543 { 6544 int not_needed = 0; 6545 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6546 not_needed = 1; 6547 return !not_needed; 6548 } 6549_ACEOF 6550if ac_fn_c_try_run "$LINENO"; then : 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6552$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6553 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556$as_echo "no" >&6; } 6557fi 6558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6559 conftest.$ac_objext conftest.beam conftest.$ac_ext 6560fi 6561 6562 6563 CFLAGS=$cflags_save 6564 LIBS=$libs_save 6565 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6567$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6568 cflags_save=$CFLAGS 6569 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6570 libs_save=$LIBS 6571 LIBS="-ldl $LIBS" 6572 if test "$cross_compiling" = yes; then : 6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6575as_fn_error $? "cannot run test program while cross compiling 6576See \`config.log' for more details" "$LINENO" 5; } 6577else 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580 6581 #include <dlfcn.h> 6582 #include <wchar.h> 6583 /* If this program fails, then RTLD_GLOBAL is needed. 6584 * RTLD_GLOBAL will be used and then it is not possible to 6585 * have both python versions enabled in the same vim instance. 6586 * Only the first python version used will be switched on. 6587 */ 6588 6589 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6590 { 6591 int needed = 0; 6592 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6593 if (pylib != 0) 6594 { 6595 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6596 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6597 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6598 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6599 (*pfx)(prefix); 6600 (*init)(); 6601 needed = (*simple)("import termios") == -1; 6602 (*final)(); 6603 dlclose(pylib); 6604 } 6605 return !needed; 6606 } 6607 6608 int main(int argc, char** argv) 6609 { 6610 int not_needed = 0; 6611 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6612 not_needed = 1; 6613 return !not_needed; 6614 } 6615_ACEOF 6616if ac_fn_c_try_run "$LINENO"; then : 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6618$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6619 6620else 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6622$as_echo "no" >&6; } 6623fi 6624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6625 conftest.$ac_objext conftest.beam conftest.$ac_ext 6626fi 6627 6628 6629 CFLAGS=$cflags_save 6630 LIBS=$libs_save 6631 6632 PYTHON_SRC="if_python.c" 6633 PYTHON_OBJ="objects/if_python.o" 6634 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6635 PYTHON_LIBS= 6636 PYTHON3_SRC="if_python3.c" 6637 PYTHON3_OBJ="objects/if_python3.o" 6638 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6639 PYTHON3_LIBS= 6640elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6641 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6642 6643 PYTHON_SRC="if_python.c" 6644 PYTHON_OBJ="objects/if_python.o" 6645 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6646 PYTHON_LIBS= 6647elif test "$python_ok" = yes; then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6649$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6650 cflags_save=$CFLAGS 6651 libs_save=$LIBS 6652 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6653 LIBS="$LIBS $PYTHON_LIBS" 6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656 6657int 6658main () 6659{ 6660 6661 ; 6662 return 0; 6663} 6664_ACEOF 6665if ac_fn_c_try_link "$LINENO"; then : 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6667$as_echo "yes" >&6; }; fpie_ok=yes 6668else 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6670$as_echo "no" >&6; }; fpie_ok=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext \ 6673 conftest$ac_exeext conftest.$ac_ext 6674 CFLAGS=$cflags_save 6675 LIBS=$libs_save 6676 if test $fpie_ok = yes; then 6677 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6678 fi 6679elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6680 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6681 6682 PYTHON3_SRC="if_python3.c" 6683 PYTHON3_OBJ="objects/if_python3.o" 6684 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6685 PYTHON3_LIBS= 6686elif test "$python3_ok" = yes; then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6688$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6689 cflags_save=$CFLAGS 6690 libs_save=$LIBS 6691 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6692 LIBS="$LIBS $PYTHON3_LIBS" 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695 6696int 6697main () 6698{ 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704if ac_fn_c_try_link "$LINENO"; then : 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6706$as_echo "yes" >&6; }; fpie_ok=yes 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; }; fpie_ok=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext \ 6712 conftest$ac_exeext conftest.$ac_ext 6713 CFLAGS=$cflags_save 6714 LIBS=$libs_save 6715 if test $fpie_ok = yes; then 6716 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6717 fi 6718fi 6719 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6721$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6722# Check whether --enable-tclinterp was given. 6723if test "${enable_tclinterp+set}" = set; then : 6724 enableval=$enable_tclinterp; 6725else 6726 enable_tclinterp="no" 6727fi 6728 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6730$as_echo "$enable_tclinterp" >&6; } 6731 6732if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6733 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6735$as_echo_n "checking --with-tclsh argument... " >&6; } 6736 6737# Check whether --with-tclsh was given. 6738if test "${with_tclsh+set}" = set; then : 6739 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6740$as_echo "$tclsh_name" >&6; } 6741else 6742 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 6746 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6747set dummy $tclsh_name; ac_word=$2 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6749$as_echo_n "checking for $ac_word... " >&6; } 6750if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 case $vi_cv_path_tcl in 6754 [\\/]* | ?:[\\/]*) 6755 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6756 ;; 6757 *) 6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773 ;; 6774esac 6775fi 6776vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6777if test -n "$vi_cv_path_tcl"; then 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6779$as_echo "$vi_cv_path_tcl" >&6; } 6780else 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6782$as_echo "no" >&6; } 6783fi 6784 6785 6786 6787 6788 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6789 tclsh_name="tclsh8.4" 6790 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6791set dummy $tclsh_name; ac_word=$2 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6793$as_echo_n "checking for $ac_word... " >&6; } 6794if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 case $vi_cv_path_tcl in 6798 [\\/]* | ?:[\\/]*) 6799 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6800 ;; 6801 *) 6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817 ;; 6818esac 6819fi 6820vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6821if test -n "$vi_cv_path_tcl"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6823$as_echo "$vi_cv_path_tcl" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826$as_echo "no" >&6; } 6827fi 6828 6829 6830 fi 6831 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6832 tclsh_name="tclsh8.2" 6833 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6834set dummy $tclsh_name; ac_word=$2 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6836$as_echo_n "checking for $ac_word... " >&6; } 6837if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 case $vi_cv_path_tcl in 6841 [\\/]* | ?:[\\/]*) 6842 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6843 ;; 6844 *) 6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6846for as_dir in $PATH 6847do 6848 IFS=$as_save_IFS 6849 test -z "$as_dir" && as_dir=. 6850 for ac_exec_ext in '' $ac_executable_extensions; do 6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6852 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6854 break 2 6855 fi 6856done 6857 done 6858IFS=$as_save_IFS 6859 6860 ;; 6861esac 6862fi 6863vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6864if test -n "$vi_cv_path_tcl"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6866$as_echo "$vi_cv_path_tcl" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873 fi 6874 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6875 tclsh_name="tclsh8.0" 6876 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6877set dummy $tclsh_name; ac_word=$2 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6879$as_echo_n "checking for $ac_word... " >&6; } 6880if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 case $vi_cv_path_tcl in 6884 [\\/]* | ?:[\\/]*) 6885 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6886 ;; 6887 *) 6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889for as_dir in $PATH 6890do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6895 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899done 6900 done 6901IFS=$as_save_IFS 6902 6903 ;; 6904esac 6905fi 6906vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6907if test -n "$vi_cv_path_tcl"; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6909$as_echo "$vi_cv_path_tcl" >&6; } 6910else 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6912$as_echo "no" >&6; } 6913fi 6914 6915 6916 fi 6917 if test "X$vi_cv_path_tcl" = "X"; then 6918 tclsh_name="tclsh" 6919 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6920set dummy $tclsh_name; ac_word=$2 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6922$as_echo_n "checking for $ac_word... " >&6; } 6923if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 case $vi_cv_path_tcl in 6927 [\\/]* | ?:[\\/]*) 6928 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6929 ;; 6930 *) 6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932for as_dir in $PATH 6933do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 for ac_exec_ext in '' $ac_executable_extensions; do 6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6938 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6940 break 2 6941 fi 6942done 6943 done 6944IFS=$as_save_IFS 6945 6946 ;; 6947esac 6948fi 6949vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6950if test -n "$vi_cv_path_tcl"; then 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6952$as_echo "$vi_cv_path_tcl" >&6; } 6953else 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6955$as_echo "no" >&6; } 6956fi 6957 6958 6959 fi 6960 if test "X$vi_cv_path_tcl" != "X"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6962$as_echo_n "checking Tcl version... " >&6; } 6963 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6964 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6966$as_echo "$tclver - OK" >&6; }; 6967 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 -` 6968 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6969 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6971$as_echo_n "checking for location of Tcl include... " >&6; } 6972 if test "x$MACOS_X" != "xyes"; then 6973 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6974 else 6975 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6976 fi 6977 TCL_INC= 6978 for try in $tclinc; do 6979 if test -f "$try/tcl.h"; then 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6981$as_echo "$try/tcl.h" >&6; } 6982 TCL_INC=$try 6983 break 6984 fi 6985 done 6986 if test -z "$TCL_INC"; then 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6988$as_echo "<not found>" >&6; } 6989 SKIP_TCL=YES 6990 fi 6991 if test -z "$SKIP_TCL"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6993$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6994 if test "x$MACOS_X" != "xyes"; then 6995 tclcnf=`echo $tclinc | sed s/include/lib/g` 6996 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6997 else 6998 tclcnf="/System/Library/Frameworks/Tcl.framework" 6999 fi 7000 for try in $tclcnf; do 7001 if test -f "$try/tclConfig.sh"; then 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7003$as_echo "$try/tclConfig.sh" >&6; } 7004 . "$try/tclConfig.sh" 7005 if test "$enable_tclinterp" = "dynamic"; then 7006 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7007 else 7008 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7009 fi 7010 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'` 7011 break 7012 fi 7013 done 7014 if test -z "$TCL_LIBS"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7016$as_echo "<not found>" >&6; } 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7018$as_echo_n "checking for Tcl library by myself... " >&6; } 7019 tcllib=`echo $tclinc | sed s/include/lib/g` 7020 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7021 for ext in .so .a ; do 7022 for ver in "" $tclver ; do 7023 for try in $tcllib ; do 7024 trylib=tcl$ver$ext 7025 if test -f "$try/lib$trylib" ; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7027$as_echo "$try/lib$trylib" >&6; } 7028 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7029 if test "`(uname) 2>/dev/null`" = SunOS && 7030 uname -r | grep '^5' >/dev/null; then 7031 TCL_LIBS="$TCL_LIBS -R $try" 7032 fi 7033 break 3 7034 fi 7035 done 7036 done 7037 done 7038 if test -z "$TCL_LIBS"; then 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7040$as_echo "<not found>" >&6; } 7041 SKIP_TCL=YES 7042 fi 7043 fi 7044 if test -z "$SKIP_TCL"; then 7045 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7046 7047 TCL_SRC=if_tcl.c 7048 TCL_OBJ=objects/if_tcl.o 7049 TCL_PRO=if_tcl.pro 7050 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7051 fi 7052 fi 7053 else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7055$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7056 fi 7057 fi 7058 if test "$enable_tclinterp" = "dynamic"; then 7059 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7060 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7061 7062 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7063 fi 7064 fi 7065 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7066 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7067 fi 7068fi 7069 7070 7071 7072 7073 7074 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7076$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7077# Check whether --enable-rubyinterp was given. 7078if test "${enable_rubyinterp+set}" = set; then : 7079 enableval=$enable_rubyinterp; 7080else 7081 enable_rubyinterp="no" 7082fi 7083 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7085$as_echo "$enable_rubyinterp" >&6; } 7086if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7087 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7088 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7089 fi 7090 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7092$as_echo_n "checking --with-ruby-command argument... " >&6; } 7093 7094 7095# Check whether --with-ruby-command was given. 7096if test "${with_ruby_command+set}" = set; then : 7097 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7098$as_echo "$RUBY_CMD" >&6; } 7099else 7100 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7101$as_echo "defaulting to $RUBY_CMD" >&6; } 7102fi 7103 7104 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7105set dummy $RUBY_CMD; ac_word=$2 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7107$as_echo_n "checking for $ac_word... " >&6; } 7108if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 case $vi_cv_path_ruby in 7112 [\\/]* | ?:[\\/]*) 7113 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7114 ;; 7115 *) 7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7123 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127done 7128 done 7129IFS=$as_save_IFS 7130 7131 ;; 7132esac 7133fi 7134vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7135if test -n "$vi_cv_path_ruby"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7137$as_echo "$vi_cv_path_ruby" >&6; } 7138else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140$as_echo "no" >&6; } 7141fi 7142 7143 7144 if test "X$vi_cv_path_ruby" != "X"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7146$as_echo_n "checking Ruby version... " >&6; } 7147 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7149$as_echo "OK" >&6; } 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7151$as_echo_n "checking Ruby rbconfig... " >&6; } 7152 ruby_rbconfig="RbConfig" 7153 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7154 ruby_rbconfig="Config" 7155 fi 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7157$as_echo "$ruby_rbconfig" >&6; } 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7159$as_echo_n "checking Ruby header files... " >&6; } 7160 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7161 if test "X$rubyhdrdir" != "X"; then 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7163$as_echo "$rubyhdrdir" >&6; } 7164 RUBY_CFLAGS="-I$rubyhdrdir" 7165 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7166 if test -d "$rubyarchdir"; then 7167 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7168 fi 7169 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7170 if test "X$rubyversion" = "X"; then 7171 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7172 fi 7173 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7174 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7175 if test "X$rubylibs" != "X"; then 7176 RUBY_LIBS="$rubylibs" 7177 fi 7178 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7179 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7180 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7181 if test -f "$rubylibdir/$librubya"; then 7182 librubyarg="$librubyarg" 7183 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7184 elif test "$librubyarg" = "libruby.a"; then 7185 librubyarg="-lruby" 7186 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7187 fi 7188 7189 if test "X$librubyarg" != "X"; then 7190 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7191 fi 7192 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7193 if test "X$rubyldflags" != "X"; then 7194 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7195 if test "X$rubyldflags" != "X"; then 7196 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7197 LDFLAGS="$rubyldflags $LDFLAGS" 7198 fi 7199 fi 7200 fi 7201 RUBY_SRC="if_ruby.c" 7202 RUBY_OBJ="objects/if_ruby.o" 7203 RUBY_PRO="if_ruby.pro" 7204 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7205 7206 if test "$enable_rubyinterp" = "dynamic"; then 7207 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7208 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7209 7210 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7211 RUBY_LIBS= 7212 fi 7213 else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7215$as_echo "not found; disabling Ruby" >&6; } 7216 fi 7217 else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7219$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7220 fi 7221 fi 7222 7223 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7224 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7225 fi 7226fi 7227 7228 7229 7230 7231 7232 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7234$as_echo_n "checking --enable-cscope argument... " >&6; } 7235# Check whether --enable-cscope was given. 7236if test "${enable_cscope+set}" = set; then : 7237 enableval=$enable_cscope; 7238else 7239 enable_cscope="no" 7240fi 7241 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7243$as_echo "$enable_cscope" >&6; } 7244if test "$enable_cscope" = "yes"; then 7245 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7246 7247fi 7248 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7250$as_echo_n "checking --enable-workshop argument... " >&6; } 7251# Check whether --enable-workshop was given. 7252if test "${enable_workshop+set}" = set; then : 7253 enableval=$enable_workshop; 7254else 7255 enable_workshop="no" 7256fi 7257 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7259$as_echo "$enable_workshop" >&6; } 7260if test "$enable_workshop" = "yes"; then 7261 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7262 7263 WORKSHOP_SRC="workshop.c integration.c" 7264 7265 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7266 7267 if test "${enable_gui-xxx}" = xxx; then 7268 enable_gui=motif 7269 fi 7270fi 7271 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7273$as_echo_n "checking --disable-netbeans argument... " >&6; } 7274# Check whether --enable-netbeans was given. 7275if test "${enable_netbeans+set}" = set; then : 7276 enableval=$enable_netbeans; 7277else 7278 enable_netbeans="yes" 7279fi 7280 7281if test "$enable_netbeans" = "yes"; then 7282 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7284$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7285 enable_netbeans="no" 7286 else 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288$as_echo "no" >&6; } 7289 fi 7290else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7292$as_echo "yes" >&6; } 7293fi 7294 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7296$as_echo_n "checking --disable-channel argument... " >&6; } 7297# Check whether --enable-channel was given. 7298if test "${enable_channel+set}" = set; then : 7299 enableval=$enable_channel; 7300else 7301 enable_channel="yes" 7302fi 7303 7304if test "$enable_channel" = "yes"; then 7305 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7307$as_echo "cannot use channels with tiny or small features" >&6; } 7308 enable_channel="no" 7309 else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311$as_echo "no" >&6; } 7312 fi 7313else 7314 if test "$enable_netbeans" = "yes"; then 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7316$as_echo "yes, netbeans also disabled" >&6; } 7317 enable_netbeans="no" 7318 else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7320$as_echo "yes" >&6; } 7321 fi 7322fi 7323 7324if test "$enable_channel" = "yes"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7326$as_echo_n "checking for socket in -lsocket... " >&6; } 7327if ${ac_cv_lib_socket_socket+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 ac_check_lib_save_LIBS=$LIBS 7331LIBS="-lsocket $LIBS" 7332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334 7335/* Override any GCC internal prototype to avoid an error. 7336 Use char because int might match the return type of a GCC 7337 builtin and then its argument prototype would still apply. */ 7338#ifdef __cplusplus 7339extern "C" 7340#endif 7341char socket (); 7342int 7343main () 7344{ 7345return socket (); 7346 ; 7347 return 0; 7348} 7349_ACEOF 7350if ac_fn_c_try_link "$LINENO"; then : 7351 ac_cv_lib_socket_socket=yes 7352else 7353 ac_cv_lib_socket_socket=no 7354fi 7355rm -f core conftest.err conftest.$ac_objext \ 7356 conftest$ac_exeext conftest.$ac_ext 7357LIBS=$ac_check_lib_save_LIBS 7358fi 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7360$as_echo "$ac_cv_lib_socket_socket" >&6; } 7361if test "x$ac_cv_lib_socket_socket" = xyes; then : 7362 cat >>confdefs.h <<_ACEOF 7363#define HAVE_LIBSOCKET 1 7364_ACEOF 7365 7366 LIBS="-lsocket $LIBS" 7367 7368fi 7369 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7371$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7372if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 ac_check_lib_save_LIBS=$LIBS 7376LIBS="-lnsl $LIBS" 7377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380/* Override any GCC internal prototype to avoid an error. 7381 Use char because int might match the return type of a GCC 7382 builtin and then its argument prototype would still apply. */ 7383#ifdef __cplusplus 7384extern "C" 7385#endif 7386char gethostbyname (); 7387int 7388main () 7389{ 7390return gethostbyname (); 7391 ; 7392 return 0; 7393} 7394_ACEOF 7395if ac_fn_c_try_link "$LINENO"; then : 7396 ac_cv_lib_nsl_gethostbyname=yes 7397else 7398 ac_cv_lib_nsl_gethostbyname=no 7399fi 7400rm -f core conftest.err conftest.$ac_objext \ 7401 conftest$ac_exeext conftest.$ac_ext 7402LIBS=$ac_check_lib_save_LIBS 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7405$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7406if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7407 cat >>confdefs.h <<_ACEOF 7408#define HAVE_LIBNSL 1 7409_ACEOF 7410 7411 LIBS="-lnsl $LIBS" 7412 7413fi 7414 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7416$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419 7420#include <stdio.h> 7421#include <stdlib.h> 7422#include <stdarg.h> 7423#include <fcntl.h> 7424#include <netdb.h> 7425#include <netinet/in.h> 7426#include <errno.h> 7427#include <sys/types.h> 7428#include <sys/socket.h> 7429 /* Check bitfields */ 7430 struct nbbuf { 7431 unsigned int initDone:1; 7432 unsigned short signmaplen; 7433 }; 7434 7435int 7436main () 7437{ 7438 7439 /* Check creating a socket. */ 7440 struct sockaddr_in server; 7441 (void)socket(AF_INET, SOCK_STREAM, 0); 7442 (void)htons(100); 7443 (void)gethostbyname("microsoft.com"); 7444 if (errno == ECONNREFUSED) 7445 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451if ac_fn_c_try_link "$LINENO"; then : 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7453$as_echo "yes" >&6; } 7454else 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7456$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7457fi 7458rm -f core conftest.err conftest.$ac_objext \ 7459 conftest$ac_exeext conftest.$ac_ext 7460fi 7461if test "$enable_netbeans" = "yes"; then 7462 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7463 7464 NETBEANS_SRC="netbeans.c" 7465 7466 NETBEANS_OBJ="objects/netbeans.o" 7467 7468fi 7469if test "$enable_channel" = "yes"; then 7470 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7471 7472 CHANNEL_SRC="channel.c" 7473 7474 CHANNEL_OBJ="objects/channel.o" 7475 7476fi 7477 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7479$as_echo_n "checking --enable-terminal argument... " >&6; } 7480# Check whether --enable-terminal was given. 7481if test "${enable_terminal+set}" = set; then : 7482 enableval=$enable_terminal; 7483else 7484 enable_terminal="auto" 7485fi 7486 7487if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7488 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7490$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7491 enable_terminal="no" 7492 else 7493 if test "$enable_terminal" = "auto"; then 7494 enable_terminal="yes" 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7496$as_echo "defaulting to yes" >&6; } 7497 else 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7499$as_echo "yes" >&6; } 7500 fi 7501 fi 7502else 7503 if test "$enable_terminal" = "auto"; then 7504 enable_terminal="no" 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7506$as_echo "defaulting to no" >&6; } 7507 else 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7509$as_echo "no" >&6; } 7510 fi 7511fi 7512if test "$enable_terminal" = "yes"; then 7513 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7514 7515 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 7516 7517 TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o" 7518 7519fi 7520 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 7522$as_echo_n "checking --enable-autoservername argument... " >&6; } 7523# Check whether --enable-autoservername was given. 7524if test "${enable_autoservername+set}" = set; then : 7525 enableval=$enable_autoservername; 7526else 7527 enable_autoservername="no" 7528fi 7529 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 7531$as_echo "$enable_autoservername" >&6; } 7532if test "$enable_autoservername" = "yes"; then 7533 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 7534 7535fi 7536 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7538$as_echo_n "checking --enable-multibyte argument... " >&6; } 7539# Check whether --enable-multibyte was given. 7540if test "${enable_multibyte+set}" = set; then : 7541 enableval=$enable_multibyte; 7542else 7543 enable_multibyte="no" 7544fi 7545 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7547$as_echo "$enable_multibyte" >&6; } 7548if test "$enable_multibyte" = "yes"; then 7549 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7550 7551fi 7552 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7554$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7555# Check whether --enable-hangulinput was given. 7556if test "${enable_hangulinput+set}" = set; then : 7557 enableval=$enable_hangulinput; 7558else 7559 enable_hangulinput="no" 7560fi 7561 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7563$as_echo "$enable_hangulinput" >&6; } 7564 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7566$as_echo_n "checking --enable-xim argument... " >&6; } 7567# Check whether --enable-xim was given. 7568if test "${enable_xim+set}" = set; then : 7569 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7570$as_echo "$enable_xim" >&6; } 7571else 7572 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7573$as_echo "defaulting to auto" >&6; } 7574fi 7575 7576 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7578$as_echo_n "checking --enable-fontset argument... " >&6; } 7579# Check whether --enable-fontset was given. 7580if test "${enable_fontset+set}" = set; then : 7581 enableval=$enable_fontset; 7582else 7583 enable_fontset="no" 7584fi 7585 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7587$as_echo "$enable_fontset" >&6; } 7588 7589test -z "$with_x" && with_x=yes 7590test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7591if test "$with_x" = no; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7593$as_echo "defaulting to: don't HAVE_X11" >&6; } 7594else 7595 7596 # Extract the first word of "xmkmf", so it can be a program name with args. 7597set dummy xmkmf; ac_word=$2 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7599$as_echo_n "checking for $ac_word... " >&6; } 7600if ${ac_cv_path_xmkmfpath+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 case $xmkmfpath in 7604 [\\/]* | ?:[\\/]*) 7605 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7606 ;; 7607 *) 7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7609for as_dir in $PATH 7610do 7611 IFS=$as_save_IFS 7612 test -z "$as_dir" && as_dir=. 7613 for ac_exec_ext in '' $ac_executable_extensions; do 7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7615 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7617 break 2 7618 fi 7619done 7620 done 7621IFS=$as_save_IFS 7622 7623 ;; 7624esac 7625fi 7626xmkmfpath=$ac_cv_path_xmkmfpath 7627if test -n "$xmkmfpath"; then 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7629$as_echo "$xmkmfpath" >&6; } 7630else 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7632$as_echo "no" >&6; } 7633fi 7634 7635 7636 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7638$as_echo_n "checking for X... " >&6; } 7639 7640 7641# Check whether --with-x was given. 7642if test "${with_x+set}" = set; then : 7643 withval=$with_x; 7644fi 7645 7646# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7647if test "x$with_x" = xno; then 7648 # The user explicitly disabled X. 7649 have_x=disabled 7650else 7651 case $x_includes,$x_libraries in #( 7652 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7653 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 # One or both of the vars are not set, and there is no cached value. 7657ac_x_includes=no ac_x_libraries=no 7658rm -f -r conftest.dir 7659if mkdir conftest.dir; then 7660 cd conftest.dir 7661 cat >Imakefile <<'_ACEOF' 7662incroot: 7663 @echo incroot='${INCROOT}' 7664usrlibdir: 7665 @echo usrlibdir='${USRLIBDIR}' 7666libdir: 7667 @echo libdir='${LIBDIR}' 7668_ACEOF 7669 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7670 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7671 for ac_var in incroot usrlibdir libdir; do 7672 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7673 done 7674 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7675 for ac_extension in a so sl dylib la dll; do 7676 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7677 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7678 ac_im_usrlibdir=$ac_im_libdir; break 7679 fi 7680 done 7681 # Screen out bogus values from the imake configuration. They are 7682 # bogus both because they are the default anyway, and because 7683 # using them would break gcc on systems where it needs fixed includes. 7684 case $ac_im_incroot in 7685 /usr/include) ac_x_includes= ;; 7686 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7687 esac 7688 case $ac_im_usrlibdir in 7689 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7690 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7691 esac 7692 fi 7693 cd .. 7694 rm -f -r conftest.dir 7695fi 7696 7697# Standard set of common directories for X headers. 7698# Check X11 before X11Rn because it is often a symlink to the current release. 7699ac_x_header_dirs=' 7700/usr/X11/include 7701/usr/X11R7/include 7702/usr/X11R6/include 7703/usr/X11R5/include 7704/usr/X11R4/include 7705 7706/usr/include/X11 7707/usr/include/X11R7 7708/usr/include/X11R6 7709/usr/include/X11R5 7710/usr/include/X11R4 7711 7712/usr/local/X11/include 7713/usr/local/X11R7/include 7714/usr/local/X11R6/include 7715/usr/local/X11R5/include 7716/usr/local/X11R4/include 7717 7718/usr/local/include/X11 7719/usr/local/include/X11R7 7720/usr/local/include/X11R6 7721/usr/local/include/X11R5 7722/usr/local/include/X11R4 7723 7724/usr/X386/include 7725/usr/x386/include 7726/usr/XFree86/include/X11 7727 7728/usr/include 7729/usr/local/include 7730/usr/unsupported/include 7731/usr/athena/include 7732/usr/local/x11r5/include 7733/usr/lpp/Xamples/include 7734 7735/usr/openwin/include 7736/usr/openwin/share/include' 7737 7738if test "$ac_x_includes" = no; then 7739 # Guess where to find include files, by looking for Xlib.h. 7740 # First, try using that file with no special directory specified. 7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743#include <X11/Xlib.h> 7744_ACEOF 7745if ac_fn_c_try_cpp "$LINENO"; then : 7746 # We can compile using X headers with no special include directory. 7747ac_x_includes= 7748else 7749 for ac_dir in $ac_x_header_dirs; do 7750 if test -r "$ac_dir/X11/Xlib.h"; then 7751 ac_x_includes=$ac_dir 7752 break 7753 fi 7754done 7755fi 7756rm -f conftest.err conftest.i conftest.$ac_ext 7757fi # $ac_x_includes = no 7758 7759if test "$ac_x_libraries" = no; then 7760 # Check for the libraries. 7761 # See if we find them without any special options. 7762 # Don't add to $LIBS permanently. 7763 ac_save_LIBS=$LIBS 7764 LIBS="-lX11 $LIBS" 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767#include <X11/Xlib.h> 7768int 7769main () 7770{ 7771XrmInitialize () 7772 ; 7773 return 0; 7774} 7775_ACEOF 7776if ac_fn_c_try_link "$LINENO"; then : 7777 LIBS=$ac_save_LIBS 7778# We can link X programs with no special library path. 7779ac_x_libraries= 7780else 7781 LIBS=$ac_save_LIBS 7782for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7783do 7784 # Don't even attempt the hair of trying to link an X program! 7785 for ac_extension in a so sl dylib la dll; do 7786 if test -r "$ac_dir/libX11.$ac_extension"; then 7787 ac_x_libraries=$ac_dir 7788 break 2 7789 fi 7790 done 7791done 7792fi 7793rm -f core conftest.err conftest.$ac_objext \ 7794 conftest$ac_exeext conftest.$ac_ext 7795fi # $ac_x_libraries = no 7796 7797case $ac_x_includes,$ac_x_libraries in #( 7798 no,* | *,no | *\'*) 7799 # Didn't find X, or a directory has "'" in its name. 7800 ac_cv_have_x="have_x=no";; #( 7801 *) 7802 # Record where we found X for the cache. 7803 ac_cv_have_x="have_x=yes\ 7804 ac_x_includes='$ac_x_includes'\ 7805 ac_x_libraries='$ac_x_libraries'" 7806esac 7807fi 7808;; #( 7809 *) have_x=yes;; 7810 esac 7811 eval "$ac_cv_have_x" 7812fi # $with_x != no 7813 7814if test "$have_x" != yes; then 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7816$as_echo "$have_x" >&6; } 7817 no_x=yes 7818else 7819 # If each of the values was on the command line, it overrides each guess. 7820 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7821 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7822 # Update the cache value to reflect the command line values. 7823 ac_cv_have_x="have_x=yes\ 7824 ac_x_includes='$x_includes'\ 7825 ac_x_libraries='$x_libraries'" 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7827$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7828fi 7829 7830if test "$no_x" = yes; then 7831 # Not all programs may use this symbol, but it does not hurt to define it. 7832 7833$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7834 7835 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7836else 7837 if test -n "$x_includes"; then 7838 X_CFLAGS="$X_CFLAGS -I$x_includes" 7839 fi 7840 7841 # It would also be nice to do this for all -L options, not just this one. 7842 if test -n "$x_libraries"; then 7843 X_LIBS="$X_LIBS -L$x_libraries" 7844 # For Solaris; some versions of Sun CC require a space after -R and 7845 # others require no space. Words are not sufficient . . . . 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7847$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7848 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7849 ac_xsave_c_werror_flag=$ac_c_werror_flag 7850 ac_c_werror_flag=yes 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854int 7855main () 7856{ 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_link "$LINENO"; then : 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7864$as_echo "no" >&6; } 7865 X_LIBS="$X_LIBS -R$x_libraries" 7866else 7867 LIBS="$ac_xsave_LIBS -R $x_libraries" 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870 7871int 7872main () 7873{ 7874 7875 ; 7876 return 0; 7877} 7878_ACEOF 7879if ac_fn_c_try_link "$LINENO"; then : 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7881$as_echo "yes" >&6; } 7882 X_LIBS="$X_LIBS -R $x_libraries" 7883else 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7885$as_echo "neither works" >&6; } 7886fi 7887rm -f core conftest.err conftest.$ac_objext \ 7888 conftest$ac_exeext conftest.$ac_ext 7889fi 7890rm -f core conftest.err conftest.$ac_objext \ 7891 conftest$ac_exeext conftest.$ac_ext 7892 ac_c_werror_flag=$ac_xsave_c_werror_flag 7893 LIBS=$ac_xsave_LIBS 7894 fi 7895 7896 # Check for system-dependent libraries X programs must link with. 7897 # Do this before checking for the system-independent R6 libraries 7898 # (-lICE), since we may need -lsocket or whatever for X linking. 7899 7900 if test "$ISC" = yes; then 7901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7902 else 7903 # Martyn Johnson says this is needed for Ultrix, if the X 7904 # libraries were built with DECnet support. And Karl Berry says 7905 # the Alpha needs dnet_stub (dnet does not exist). 7906 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909 7910/* Override any GCC internal prototype to avoid an error. 7911 Use char because int might match the return type of a GCC 7912 builtin and then its argument prototype would still apply. */ 7913#ifdef __cplusplus 7914extern "C" 7915#endif 7916char XOpenDisplay (); 7917int 7918main () 7919{ 7920return XOpenDisplay (); 7921 ; 7922 return 0; 7923} 7924_ACEOF 7925if ac_fn_c_try_link "$LINENO"; then : 7926 7927else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7929$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7930if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 ac_check_lib_save_LIBS=$LIBS 7934LIBS="-ldnet $LIBS" 7935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937 7938/* Override any GCC internal prototype to avoid an error. 7939 Use char because int might match the return type of a GCC 7940 builtin and then its argument prototype would still apply. */ 7941#ifdef __cplusplus 7942extern "C" 7943#endif 7944char dnet_ntoa (); 7945int 7946main () 7947{ 7948return dnet_ntoa (); 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953if ac_fn_c_try_link "$LINENO"; then : 7954 ac_cv_lib_dnet_dnet_ntoa=yes 7955else 7956 ac_cv_lib_dnet_dnet_ntoa=no 7957fi 7958rm -f core conftest.err conftest.$ac_objext \ 7959 conftest$ac_exeext conftest.$ac_ext 7960LIBS=$ac_check_lib_save_LIBS 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7963$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7964if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7965 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7966fi 7967 7968 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7970$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7971if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973else 7974 ac_check_lib_save_LIBS=$LIBS 7975LIBS="-ldnet_stub $LIBS" 7976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978 7979/* Override any GCC internal prototype to avoid an error. 7980 Use char because int might match the return type of a GCC 7981 builtin and then its argument prototype would still apply. */ 7982#ifdef __cplusplus 7983extern "C" 7984#endif 7985char dnet_ntoa (); 7986int 7987main () 7988{ 7989return dnet_ntoa (); 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO"; then : 7995 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7996else 7997 ac_cv_lib_dnet_stub_dnet_ntoa=no 7998fi 7999rm -f core conftest.err conftest.$ac_objext \ 8000 conftest$ac_exeext conftest.$ac_ext 8001LIBS=$ac_check_lib_save_LIBS 8002fi 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8004$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8005if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8007fi 8008 8009 fi 8010fi 8011rm -f core conftest.err conftest.$ac_objext \ 8012 conftest$ac_exeext conftest.$ac_ext 8013 LIBS="$ac_xsave_LIBS" 8014 8015 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8016 # to get the SysV transport functions. 8017 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8018 # needs -lnsl. 8019 # The nsl library prevents programs from opening the X display 8020 # on Irix 5.2, according to T.E. Dickey. 8021 # The functions gethostbyname, getservbyname, and inet_addr are 8022 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8023 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8024if test "x$ac_cv_func_gethostbyname" = xyes; then : 8025 8026fi 8027 8028 if test $ac_cv_func_gethostbyname = no; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8030$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8031if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 ac_check_lib_save_LIBS=$LIBS 8035LIBS="-lnsl $LIBS" 8036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038 8039/* Override any GCC internal prototype to avoid an error. 8040 Use char because int might match the return type of a GCC 8041 builtin and then its argument prototype would still apply. */ 8042#ifdef __cplusplus 8043extern "C" 8044#endif 8045char gethostbyname (); 8046int 8047main () 8048{ 8049return gethostbyname (); 8050 ; 8051 return 0; 8052} 8053_ACEOF 8054if ac_fn_c_try_link "$LINENO"; then : 8055 ac_cv_lib_nsl_gethostbyname=yes 8056else 8057 ac_cv_lib_nsl_gethostbyname=no 8058fi 8059rm -f core conftest.err conftest.$ac_objext \ 8060 conftest$ac_exeext conftest.$ac_ext 8061LIBS=$ac_check_lib_save_LIBS 8062fi 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8064$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8065if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8067fi 8068 8069 if test $ac_cv_lib_nsl_gethostbyname = no; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8071$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8072if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 ac_check_lib_save_LIBS=$LIBS 8076LIBS="-lbsd $LIBS" 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080/* Override any GCC internal prototype to avoid an error. 8081 Use char because int might match the return type of a GCC 8082 builtin and then its argument prototype would still apply. */ 8083#ifdef __cplusplus 8084extern "C" 8085#endif 8086char gethostbyname (); 8087int 8088main () 8089{ 8090return gethostbyname (); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 ac_cv_lib_bsd_gethostbyname=yes 8097else 8098 ac_cv_lib_bsd_gethostbyname=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102LIBS=$ac_check_lib_save_LIBS 8103fi 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8105$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8106if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8108fi 8109 8110 fi 8111 fi 8112 8113 # [email protected] says without -lsocket, 8114 # socket/setsockopt and other routines are undefined under SCO ODT 8115 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8116 # on later versions), says Simon Leinen: it contains gethostby* 8117 # variants that don't use the name server (or something). -lsocket 8118 # must be given before -lnsl if both are needed. We assume that 8119 # if connect needs -lnsl, so does gethostbyname. 8120 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8121if test "x$ac_cv_func_connect" = xyes; then : 8122 8123fi 8124 8125 if test $ac_cv_func_connect = no; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8127$as_echo_n "checking for connect in -lsocket... " >&6; } 8128if ${ac_cv_lib_socket_connect+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 ac_check_lib_save_LIBS=$LIBS 8132LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135 8136/* Override any GCC internal prototype to avoid an error. 8137 Use char because int might match the return type of a GCC 8138 builtin and then its argument prototype would still apply. */ 8139#ifdef __cplusplus 8140extern "C" 8141#endif 8142char connect (); 8143int 8144main () 8145{ 8146return connect (); 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151if ac_fn_c_try_link "$LINENO"; then : 8152 ac_cv_lib_socket_connect=yes 8153else 8154 ac_cv_lib_socket_connect=no 8155fi 8156rm -f core conftest.err conftest.$ac_objext \ 8157 conftest$ac_exeext conftest.$ac_ext 8158LIBS=$ac_check_lib_save_LIBS 8159fi 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8161$as_echo "$ac_cv_lib_socket_connect" >&6; } 8162if test "x$ac_cv_lib_socket_connect" = xyes; then : 8163 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8164fi 8165 8166 fi 8167 8168 # Guillermo Gomez says -lposix is necessary on A/UX. 8169 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8170if test "x$ac_cv_func_remove" = xyes; then : 8171 8172fi 8173 8174 if test $ac_cv_func_remove = no; then 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8176$as_echo_n "checking for remove in -lposix... " >&6; } 8177if ${ac_cv_lib_posix_remove+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 ac_check_lib_save_LIBS=$LIBS 8181LIBS="-lposix $LIBS" 8182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184 8185/* Override any GCC internal prototype to avoid an error. 8186 Use char because int might match the return type of a GCC 8187 builtin and then its argument prototype would still apply. */ 8188#ifdef __cplusplus 8189extern "C" 8190#endif 8191char remove (); 8192int 8193main () 8194{ 8195return remove (); 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_link "$LINENO"; then : 8201 ac_cv_lib_posix_remove=yes 8202else 8203 ac_cv_lib_posix_remove=no 8204fi 8205rm -f core conftest.err conftest.$ac_objext \ 8206 conftest$ac_exeext conftest.$ac_ext 8207LIBS=$ac_check_lib_save_LIBS 8208fi 8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8210$as_echo "$ac_cv_lib_posix_remove" >&6; } 8211if test "x$ac_cv_lib_posix_remove" = xyes; then : 8212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8213fi 8214 8215 fi 8216 8217 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8218 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8219if test "x$ac_cv_func_shmat" = xyes; then : 8220 8221fi 8222 8223 if test $ac_cv_func_shmat = no; then 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8225$as_echo_n "checking for shmat in -lipc... " >&6; } 8226if ${ac_cv_lib_ipc_shmat+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 ac_check_lib_save_LIBS=$LIBS 8230LIBS="-lipc $LIBS" 8231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8232/* end confdefs.h. */ 8233 8234/* Override any GCC internal prototype to avoid an error. 8235 Use char because int might match the return type of a GCC 8236 builtin and then its argument prototype would still apply. */ 8237#ifdef __cplusplus 8238extern "C" 8239#endif 8240char shmat (); 8241int 8242main () 8243{ 8244return shmat (); 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_link "$LINENO"; then : 8250 ac_cv_lib_ipc_shmat=yes 8251else 8252 ac_cv_lib_ipc_shmat=no 8253fi 8254rm -f core conftest.err conftest.$ac_objext \ 8255 conftest$ac_exeext conftest.$ac_ext 8256LIBS=$ac_check_lib_save_LIBS 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8259$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8260if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8262fi 8263 8264 fi 8265 fi 8266 8267 # Check for libraries that X11R6 Xt/Xaw programs need. 8268 ac_save_LDFLAGS=$LDFLAGS 8269 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8270 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8271 # check for ICE first), but we must link in the order -lSM -lICE or 8272 # we get undefined symbols. So assume we have SM if we have ICE. 8273 # These have to be linked with before -lX11, unlike the other 8274 # libraries we check for below, so use a different variable. 8275 # John Interrante, Karl Berry 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8277$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8278if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 ac_check_lib_save_LIBS=$LIBS 8282LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285 8286/* Override any GCC internal prototype to avoid an error. 8287 Use char because int might match the return type of a GCC 8288 builtin and then its argument prototype would still apply. */ 8289#ifdef __cplusplus 8290extern "C" 8291#endif 8292char IceConnectionNumber (); 8293int 8294main () 8295{ 8296return IceConnectionNumber (); 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301if ac_fn_c_try_link "$LINENO"; then : 8302 ac_cv_lib_ICE_IceConnectionNumber=yes 8303else 8304 ac_cv_lib_ICE_IceConnectionNumber=no 8305fi 8306rm -f core conftest.err conftest.$ac_objext \ 8307 conftest$ac_exeext conftest.$ac_ext 8308LIBS=$ac_check_lib_save_LIBS 8309fi 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8311$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8312if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8313 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8314fi 8315 8316 LDFLAGS=$ac_save_LDFLAGS 8317 8318fi 8319 8320 8321 if test "$zOSUnix" = "yes"; then 8322 CFLAGS="$CFLAGS -W c,dll" 8323 LDFLAGS="$LDFLAGS -W l,dll" 8324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8325 fi 8326 8327 8328 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8329 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8331$as_echo "Corrected X libraries to $x_libraries" >&6; } 8332 X_LIBS="$X_LIBS -L$x_libraries" 8333 if test "`(uname) 2>/dev/null`" = SunOS && 8334 uname -r | grep '^5' >/dev/null; then 8335 X_LIBS="$X_LIBS -R $x_libraries" 8336 fi 8337 fi 8338 8339 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8340 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8342$as_echo "Corrected X includes to $x_includes" >&6; } 8343 X_CFLAGS="$X_CFLAGS -I$x_includes" 8344 fi 8345 8346 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8347 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8348 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8349 8350 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8352$as_echo_n "checking if X11 header files can be found... " >&6; } 8353 cflags_save=$CFLAGS 8354 CFLAGS="$CFLAGS $X_CFLAGS" 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356/* end confdefs.h. */ 8357#include <X11/Xlib.h> 8358#include <X11/Intrinsic.h> 8359int 8360main () 8361{ 8362 8363 ; 8364 return 0; 8365} 8366_ACEOF 8367if ac_fn_c_try_compile "$LINENO"; then : 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8369$as_echo "yes" >&6; } 8370else 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8372$as_echo "no" >&6; }; no_x=yes 8373fi 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375 CFLAGS=$cflags_save 8376 8377 if test "${no_x-no}" = yes; then 8378 with_x=no 8379 else 8380 $as_echo "#define HAVE_X11 1" >>confdefs.h 8381 8382 X_LIB="-lXt -lX11"; 8383 8384 8385 ac_save_LDFLAGS="$LDFLAGS" 8386 LDFLAGS="-L$x_libraries $LDFLAGS" 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8389$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8390if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 ac_check_lib_save_LIBS=$LIBS 8394LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397 8398/* Override any GCC internal prototype to avoid an error. 8399 Use char because int might match the return type of a GCC 8400 builtin and then its argument prototype would still apply. */ 8401#ifdef __cplusplus 8402extern "C" 8403#endif 8404char _XdmcpAuthDoIt (); 8405int 8406main () 8407{ 8408return _XdmcpAuthDoIt (); 8409 ; 8410 return 0; 8411} 8412_ACEOF 8413if ac_fn_c_try_link "$LINENO"; then : 8414 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8415else 8416 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8417fi 8418rm -f core conftest.err conftest.$ac_objext \ 8419 conftest$ac_exeext conftest.$ac_ext 8420LIBS=$ac_check_lib_save_LIBS 8421fi 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8423$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8424if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8426fi 8427 8428 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8430$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8431if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 ac_check_lib_save_LIBS=$LIBS 8435LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438 8439/* Override any GCC internal prototype to avoid an error. 8440 Use char because int might match the return type of a GCC 8441 builtin and then its argument prototype would still apply. */ 8442#ifdef __cplusplus 8443extern "C" 8444#endif 8445char IceOpenConnection (); 8446int 8447main () 8448{ 8449return IceOpenConnection (); 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454if ac_fn_c_try_link "$LINENO"; then : 8455 ac_cv_lib_ICE_IceOpenConnection=yes 8456else 8457 ac_cv_lib_ICE_IceOpenConnection=no 8458fi 8459rm -f core conftest.err conftest.$ac_objext \ 8460 conftest$ac_exeext conftest.$ac_ext 8461LIBS=$ac_check_lib_save_LIBS 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8464$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8465if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8467fi 8468 8469 8470 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8472$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8473if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 ac_check_lib_save_LIBS=$LIBS 8477LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479/* end confdefs.h. */ 8480 8481/* Override any GCC internal prototype to avoid an error. 8482 Use char because int might match the return type of a GCC 8483 builtin and then its argument prototype would still apply. */ 8484#ifdef __cplusplus 8485extern "C" 8486#endif 8487char XpmCreatePixmapFromData (); 8488int 8489main () 8490{ 8491return XpmCreatePixmapFromData (); 8492 ; 8493 return 0; 8494} 8495_ACEOF 8496if ac_fn_c_try_link "$LINENO"; then : 8497 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8498else 8499 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8500fi 8501rm -f core conftest.err conftest.$ac_objext \ 8502 conftest$ac_exeext conftest.$ac_ext 8503LIBS=$ac_check_lib_save_LIBS 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8506$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8507if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8508 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8509fi 8510 8511 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8513$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8514 cflags_save=$CFLAGS 8515 if test "$GCC" = yes; then 8516 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8517 else 8518 CFLAGS="$CFLAGS $X_CFLAGS" 8519 fi 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522#include <X11/Xlib.h> 8523int 8524main () 8525{ 8526 8527 ; 8528 return 0; 8529} 8530_ACEOF 8531if ac_fn_c_try_compile "$LINENO"; then : 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533$as_echo "no" >&6; } 8534else 8535 CFLAGS="$CFLAGS -Wno-implicit-int" 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538#include <X11/Xlib.h> 8539int 8540main () 8541{ 8542 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO"; then : 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8549$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8550else 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8552$as_echo "test failed" >&6; } 8553 8554fi 8555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8556 8557fi 8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8559 CFLAGS=$cflags_save 8560 8561 LDFLAGS="$ac_save_LDFLAGS" 8562 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8564$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8565 if ${ac_cv_small_wchar_t+:} false; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 if test "$cross_compiling" = yes; then : 8569 as_fn_error $? "failed to compile test program" "$LINENO" 5 8570else 8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572/* end confdefs.h. */ 8573 8574#include <X11/Xlib.h> 8575#if STDC_HEADERS 8576# include <stdlib.h> 8577# include <stddef.h> 8578#endif 8579 main() 8580 { 8581 if (sizeof(wchar_t) <= 2) 8582 exit(1); 8583 exit(0); 8584 } 8585_ACEOF 8586if ac_fn_c_try_run "$LINENO"; then : 8587 ac_cv_small_wchar_t="no" 8588else 8589 ac_cv_small_wchar_t="yes" 8590fi 8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8592 conftest.$ac_objext conftest.beam conftest.$ac_ext 8593fi 8594 8595fi 8596 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8598$as_echo "$ac_cv_small_wchar_t" >&6; } 8599 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8600 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8601 8602 fi 8603 8604 fi 8605fi 8606 8607test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8608 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8610$as_echo_n "checking --enable-gui argument... " >&6; } 8611# Check whether --enable-gui was given. 8612if test "${enable_gui+set}" = set; then : 8613 enableval=$enable_gui; 8614else 8615 enable_gui="auto" 8616fi 8617 8618 8619enable_gui_canon=`echo "_$enable_gui" | \ 8620 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8621 8622SKIP_GTK2=YES 8623SKIP_GTK3=YES 8624SKIP_GNOME=YES 8625SKIP_MOTIF=YES 8626SKIP_ATHENA=YES 8627SKIP_NEXTAW=YES 8628SKIP_PHOTON=YES 8629SKIP_CARBON=YES 8630GUITYPE=NONE 8631 8632if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8633 SKIP_PHOTON= 8634 case "$enable_gui_canon" in 8635 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8636$as_echo "no GUI support" >&6; } 8637 SKIP_PHOTON=YES ;; 8638 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8639$as_echo "yes - automatic GUI support" >&6; } ;; 8640 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8641$as_echo "auto - automatic GUI support" >&6; } ;; 8642 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8643$as_echo "Photon GUI support" >&6; } ;; 8644 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8645$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8646 SKIP_PHOTON=YES ;; 8647 esac 8648 8649elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 8650 SKIP_CARBON= 8651 case "$enable_gui_canon" in 8652 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8653$as_echo "no GUI support" >&6; } 8654 SKIP_CARBON=YES ;; 8655 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8656$as_echo "yes - automatic GUI support" >&6; } ;; 8657 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8658$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8659 SKIP_CARBON=YES ;; 8660 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8661$as_echo "Carbon GUI support" >&6; } ;; 8662 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8663$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8664 SKIP_CARBON=YES ;; 8665 esac 8666 8667else 8668 8669 case "$enable_gui_canon" in 8670 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8671$as_echo "no GUI support" >&6; } ;; 8672 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8673$as_echo "yes/auto - automatic GUI support" >&6; } 8674 SKIP_GTK2= 8675 SKIP_GNOME= 8676 SKIP_MOTIF= 8677 SKIP_ATHENA= 8678 SKIP_NEXTAW= 8679 SKIP_CARBON=;; 8680 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8681$as_echo "GTK+ 2.x GUI support" >&6; } 8682 SKIP_GTK2=;; 8683 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8684$as_echo "GNOME 2.x GUI support" >&6; } 8685 SKIP_GNOME= 8686 SKIP_GTK2=;; 8687 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8688$as_echo "GTK+ 3.x GUI support" >&6; } 8689 SKIP_GTK3=;; 8690 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8691$as_echo "Motif GUI support" >&6; } 8692 SKIP_MOTIF=;; 8693 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8694$as_echo "Athena GUI support" >&6; } 8695 SKIP_ATHENA=;; 8696 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8697$as_echo "neXtaw GUI support" >&6; } 8698 SKIP_NEXTAW=;; 8699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8700$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8701 esac 8702 8703fi 8704 8705if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8706 -a "$enable_gui_canon" != "gnome2"; then 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8708$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8709 # Check whether --enable-gtk2-check was given. 8710if test "${enable_gtk2_check+set}" = set; then : 8711 enableval=$enable_gtk2_check; 8712else 8713 enable_gtk2_check="yes" 8714fi 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8717$as_echo "$enable_gtk2_check" >&6; } 8718 if test "x$enable_gtk2_check" = "xno"; then 8719 SKIP_GTK2=YES 8720 SKIP_GNOME=YES 8721 fi 8722fi 8723 8724if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8726$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8727 # Check whether --enable-gnome-check was given. 8728if test "${enable_gnome_check+set}" = set; then : 8729 enableval=$enable_gnome_check; 8730else 8731 enable_gnome_check="no" 8732fi 8733 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8735$as_echo "$enable_gnome_check" >&6; } 8736 if test "x$enable_gnome_check" = "xno"; then 8737 SKIP_GNOME=YES 8738 fi 8739fi 8740 8741if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8743$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8744 # Check whether --enable-gtk3-check was given. 8745if test "${enable_gtk3_check+set}" = set; then : 8746 enableval=$enable_gtk3_check; 8747else 8748 enable_gtk3_check="yes" 8749fi 8750 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8752$as_echo "$enable_gtk3_check" >&6; } 8753 if test "x$enable_gtk3_check" = "xno"; then 8754 SKIP_GTK3=YES 8755 fi 8756fi 8757 8758if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8760$as_echo_n "checking whether or not to look for Motif... " >&6; } 8761 # Check whether --enable-motif-check was given. 8762if test "${enable_motif_check+set}" = set; then : 8763 enableval=$enable_motif_check; 8764else 8765 enable_motif_check="yes" 8766fi 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8769$as_echo "$enable_motif_check" >&6; } 8770 if test "x$enable_motif_check" = "xno"; then 8771 SKIP_MOTIF=YES 8772 fi 8773fi 8774 8775if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8777$as_echo_n "checking whether or not to look for Athena... " >&6; } 8778 # Check whether --enable-athena-check was given. 8779if test "${enable_athena_check+set}" = set; then : 8780 enableval=$enable_athena_check; 8781else 8782 enable_athena_check="yes" 8783fi 8784 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8786$as_echo "$enable_athena_check" >&6; } 8787 if test "x$enable_athena_check" = "xno"; then 8788 SKIP_ATHENA=YES 8789 fi 8790fi 8791 8792if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8794$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8795 # Check whether --enable-nextaw-check was given. 8796if test "${enable_nextaw_check+set}" = set; then : 8797 enableval=$enable_nextaw_check; 8798else 8799 enable_nextaw_check="yes" 8800fi 8801 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8803$as_echo "$enable_nextaw_check" >&6; }; 8804 if test "x$enable_nextaw_check" = "xno"; then 8805 SKIP_NEXTAW=YES 8806 fi 8807fi 8808 8809if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8811$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8812 # Check whether --enable-carbon-check was given. 8813if test "${enable_carbon_check+set}" = set; then : 8814 enableval=$enable_carbon_check; 8815else 8816 enable_carbon_check="yes" 8817fi 8818 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8820$as_echo "$enable_carbon_check" >&6; }; 8821 if test "x$enable_carbon_check" = "xno"; then 8822 SKIP_CARBON=YES 8823 fi 8824fi 8825 8826 8827if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8829$as_echo_n "checking for Carbon GUI... " >&6; } 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8831$as_echo "yes" >&6; }; 8832 GUITYPE=CARBONGUI 8833 if test "$VIMNAME" = "vim"; then 8834 VIMNAME=Vim 8835 fi 8836 8837 if test "x$MACARCH" = "xboth"; then 8838 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8839 else 8840 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8841 fi 8842 8843 if test x$prefix = xNONE; then 8844 prefix=/Applications 8845 fi 8846 8847 datadir='${prefix}/Vim.app/Contents/Resources' 8848 8849 SKIP_GTK2=YES; 8850 SKIP_GNOME=YES; 8851 SKIP_MOTIF=YES; 8852 SKIP_ATHENA=YES; 8853 SKIP_NEXTAW=YES; 8854 SKIP_PHOTON=YES; 8855 SKIP_CARBON=YES 8856fi 8857 8858 8859 8860 8861 8862 8863 8864 8865if test -z "$SKIP_GTK2"; then 8866 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8868$as_echo_n "checking --disable-gtktest argument... " >&6; } 8869 # Check whether --enable-gtktest was given. 8870if test "${enable_gtktest+set}" = set; then : 8871 enableval=$enable_gtktest; 8872else 8873 enable_gtktest=yes 8874fi 8875 8876 if test "x$enable_gtktest" = "xyes" ; then 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8878$as_echo "gtk test enabled" >&6; } 8879 else 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8881$as_echo "gtk test disabled" >&6; } 8882 fi 8883 8884 if test "X$PKG_CONFIG" = "X"; then 8885 # Extract the first word of "pkg-config", so it can be a program name with args. 8886set dummy pkg-config; ac_word=$2 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8888$as_echo_n "checking for $ac_word... " >&6; } 8889if ${ac_cv_path_PKG_CONFIG+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891else 8892 case $PKG_CONFIG in 8893 [\\/]* | ?:[\\/]*) 8894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8895 ;; 8896 *) 8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8898for as_dir in $PATH 8899do 8900 IFS=$as_save_IFS 8901 test -z "$as_dir" && as_dir=. 8902 for ac_exec_ext in '' $ac_executable_extensions; do 8903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8904 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8906 break 2 8907 fi 8908done 8909 done 8910IFS=$as_save_IFS 8911 8912 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8913 ;; 8914esac 8915fi 8916PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8917if test -n "$PKG_CONFIG"; then 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8919$as_echo "$PKG_CONFIG" >&6; } 8920else 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8922$as_echo "no" >&6; } 8923fi 8924 8925 8926 fi 8927 8928 if test "x$PKG_CONFIG" != "xno"; then 8929 8930 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8931 { 8932 no_gtk="" 8933 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8934 && $PKG_CONFIG --exists gtk+-2.0; then 8935 { 8936 min_gtk_version=2.2.0 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8938$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8939 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8940 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8941 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8942 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8943 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8944 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8945 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8946 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8947 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8948 } 8949 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8950 && $PKG_CONFIG --exists gtk+-3.0; then 8951 { 8952 min_gtk_version=2.2.0 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8954$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8955 8956 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 8957 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 8958 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 8959 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8960 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8961 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8962 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8963 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8964 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8965 } 8966 else 8967 no_gtk=yes 8968 fi 8969 8970 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8971 { 8972 ac_save_CFLAGS="$CFLAGS" 8973 ac_save_LIBS="$LIBS" 8974 CFLAGS="$CFLAGS $GTK_CFLAGS" 8975 LIBS="$LIBS $GTK_LIBS" 8976 8977 rm -f conf.gtktest 8978 if test "$cross_compiling" = yes; then : 8979 echo $ac_n "cross compiling; assumed OK... $ac_c" 8980else 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983 8984#include <gtk/gtk.h> 8985#include <stdio.h> 8986#if STDC_HEADERS 8987# include <stdlib.h> 8988# include <stddef.h> 8989#endif 8990 8991int 8992main () 8993{ 8994int major, minor, micro; 8995char *tmp_version; 8996 8997system ("touch conf.gtktest"); 8998 8999/* HP/UX 9 (%@#!) writes to sscanf strings */ 9000tmp_version = g_strdup("$min_gtk_version"); 9001if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9002 printf("%s, bad version string\n", "$min_gtk_version"); 9003 exit(1); 9004 } 9005 9006if ((gtk_major_version > major) || 9007 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9008 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9009 (gtk_micro_version >= micro))) 9010{ 9011 return 0; 9012} 9013return 1; 9014} 9015 9016_ACEOF 9017if ac_fn_c_try_run "$LINENO"; then : 9018 9019else 9020 no_gtk=yes 9021fi 9022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9023 conftest.$ac_objext conftest.beam conftest.$ac_ext 9024fi 9025 9026 CFLAGS="$ac_save_CFLAGS" 9027 LIBS="$ac_save_LIBS" 9028 } 9029 fi 9030 if test "x$no_gtk" = x ; then 9031 if test "x$enable_gtktest" = "xyes"; then 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9033$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9034 else 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9036$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9037 fi 9038 GUI_LIB_LOC="$GTK_LIBDIR" 9039 GTK_LIBNAME="$GTK_LIBS" 9040 GUI_INC_LOC="$GTK_CFLAGS" 9041 else 9042 { 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9044$as_echo "no" >&6; } 9045 GTK_CFLAGS="" 9046 GTK_LIBS="" 9047 : 9048 } 9049 fi 9050 } 9051 else 9052 GTK_CFLAGS="" 9053 GTK_LIBS="" 9054 : 9055 fi 9056 9057 9058 rm -f conf.gtktest 9059 9060 if test "x$GTK_CFLAGS" != "x"; then 9061 SKIP_GTK3=YES 9062 SKIP_ATHENA=YES 9063 SKIP_NEXTAW=YES 9064 SKIP_MOTIF=YES 9065 GUITYPE=GTK 9066 9067 fi 9068 fi 9069 if test "x$GUITYPE" = "xGTK"; then 9070 if test -z "$SKIP_GNOME"; then 9071 { 9072 9073 9074 9075 9076 9077 9078# Check whether --with-gnome-includes was given. 9079if test "${with_gnome_includes+set}" = set; then : 9080 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9081 9082fi 9083 9084 9085 9086# Check whether --with-gnome-libs was given. 9087if test "${with_gnome_libs+set}" = set; then : 9088 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9089 9090fi 9091 9092 9093 9094# Check whether --with-gnome was given. 9095if test "${with_gnome+set}" = set; then : 9096 withval=$with_gnome; if test x$withval = xyes; then 9097 want_gnome=yes 9098 have_gnome=yes 9099 else 9100 if test "x$withval" = xno; then 9101 want_gnome=no 9102 else 9103 want_gnome=yes 9104 LDFLAGS="$LDFLAGS -L$withval/lib" 9105 CFLAGS="$CFLAGS -I$withval/include" 9106 gnome_prefix=$withval/lib 9107 fi 9108 fi 9109else 9110 want_gnome=yes 9111fi 9112 9113 9114 if test "x$want_gnome" = xyes; then 9115 { 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9117$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9118 if $PKG_CONFIG --exists libgnomeui-2.0; then 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9120$as_echo "yes" >&6; } 9121 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9122 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9123 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9124 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9126$as_echo_n "checking for FreeBSD... " >&6; } 9127 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9129$as_echo "yes" >&6; } 9130 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9131 GNOME_LIBS="$GNOME_LIBS -pthread" 9132 else 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9134$as_echo "no" >&6; } 9135 fi 9136 have_gnome=yes 9137 else 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9139$as_echo "not found" >&6; } 9140 if test "x" = xfail; then 9141 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9142 fi 9143 fi 9144 } 9145 fi 9146 9147 if test "x$have_gnome" = xyes ; then 9148 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9149 9150 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9151 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9152 fi 9153 } 9154 fi 9155 fi 9156fi 9157 9158 9159if test -z "$SKIP_GTK3"; then 9160 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9162$as_echo_n "checking --disable-gtktest argument... " >&6; } 9163 # Check whether --enable-gtktest was given. 9164if test "${enable_gtktest+set}" = set; then : 9165 enableval=$enable_gtktest; 9166else 9167 enable_gtktest=yes 9168fi 9169 9170 if test "x$enable_gtktest" = "xyes" ; then 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9172$as_echo "gtk test enabled" >&6; } 9173 else 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9175$as_echo "gtk test disabled" >&6; } 9176 fi 9177 9178 if test "X$PKG_CONFIG" = "X"; then 9179 # Extract the first word of "pkg-config", so it can be a program name with args. 9180set dummy pkg-config; ac_word=$2 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182$as_echo_n "checking for $ac_word... " >&6; } 9183if ${ac_cv_path_PKG_CONFIG+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 case $PKG_CONFIG in 9187 [\\/]* | ?:[\\/]*) 9188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9189 ;; 9190 *) 9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9192for as_dir in $PATH 9193do 9194 IFS=$as_save_IFS 9195 test -z "$as_dir" && as_dir=. 9196 for ac_exec_ext in '' $ac_executable_extensions; do 9197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9200 break 2 9201 fi 9202done 9203 done 9204IFS=$as_save_IFS 9205 9206 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9207 ;; 9208esac 9209fi 9210PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9211if test -n "$PKG_CONFIG"; then 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9213$as_echo "$PKG_CONFIG" >&6; } 9214else 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9216$as_echo "no" >&6; } 9217fi 9218 9219 9220 fi 9221 9222 if test "x$PKG_CONFIG" != "xno"; then 9223 9224 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9225 { 9226 no_gtk="" 9227 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9228 && $PKG_CONFIG --exists gtk+-2.0; then 9229 { 9230 min_gtk_version=3.0.0 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9232$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9233 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9234 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9235 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9236 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9237 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9238 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9239 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9240 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9241 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9242 } 9243 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9244 && $PKG_CONFIG --exists gtk+-3.0; then 9245 { 9246 min_gtk_version=3.0.0 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9248$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9249 9250 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9251 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9252 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9253 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9254 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9255 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9256 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9257 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9258 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9259 } 9260 else 9261 no_gtk=yes 9262 fi 9263 9264 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9265 { 9266 ac_save_CFLAGS="$CFLAGS" 9267 ac_save_LIBS="$LIBS" 9268 CFLAGS="$CFLAGS $GTK_CFLAGS" 9269 LIBS="$LIBS $GTK_LIBS" 9270 9271 rm -f conf.gtktest 9272 if test "$cross_compiling" = yes; then : 9273 echo $ac_n "cross compiling; assumed OK... $ac_c" 9274else 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276/* end confdefs.h. */ 9277 9278#include <gtk/gtk.h> 9279#include <stdio.h> 9280#if STDC_HEADERS 9281# include <stdlib.h> 9282# include <stddef.h> 9283#endif 9284 9285int 9286main () 9287{ 9288int major, minor, micro; 9289char *tmp_version; 9290 9291system ("touch conf.gtktest"); 9292 9293/* HP/UX 9 (%@#!) writes to sscanf strings */ 9294tmp_version = g_strdup("$min_gtk_version"); 9295if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9296 printf("%s, bad version string\n", "$min_gtk_version"); 9297 exit(1); 9298 } 9299 9300if ((gtk_major_version > major) || 9301 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9302 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9303 (gtk_micro_version >= micro))) 9304{ 9305 return 0; 9306} 9307return 1; 9308} 9309 9310_ACEOF 9311if ac_fn_c_try_run "$LINENO"; then : 9312 9313else 9314 no_gtk=yes 9315fi 9316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9317 conftest.$ac_objext conftest.beam conftest.$ac_ext 9318fi 9319 9320 CFLAGS="$ac_save_CFLAGS" 9321 LIBS="$ac_save_LIBS" 9322 } 9323 fi 9324 if test "x$no_gtk" = x ; then 9325 if test "x$enable_gtktest" = "xyes"; then 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9327$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9328 else 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9330$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9331 fi 9332 GUI_LIB_LOC="$GTK_LIBDIR" 9333 GTK_LIBNAME="$GTK_LIBS" 9334 GUI_INC_LOC="$GTK_CFLAGS" 9335 else 9336 { 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9338$as_echo "no" >&6; } 9339 GTK_CFLAGS="" 9340 GTK_LIBS="" 9341 : 9342 } 9343 fi 9344 } 9345 else 9346 GTK_CFLAGS="" 9347 GTK_LIBS="" 9348 : 9349 fi 9350 9351 9352 rm -f conf.gtktest 9353 9354 if test "x$GTK_CFLAGS" != "x"; then 9355 SKIP_GTK2=YES 9356 SKIP_GNOME=YES 9357 SKIP_ATHENA=YES 9358 SKIP_NEXTAW=YES 9359 SKIP_MOTIF=YES 9360 GUITYPE=GTK 9361 9362 $as_echo "#define USE_GTK3 1" >>confdefs.h 9363 9364 fi 9365 fi 9366fi 9367 9368if test "x$GUITYPE" = "xGTK"; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9370$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9371 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9372 if test "x$gdk_pixbuf_version" != x ; then 9373 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9374 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9375 if test "x$gdk_pixbuf_version_minor" != x -a \ 9376 $gdk_pixbuf_version_minor -ge 31 ; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9378$as_echo "OK." >&6; } 9379 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9380set dummy glib-compile-resources; ac_word=$2 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9382$as_echo_n "checking for $ac_word... " >&6; } 9383if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385else 9386 case $GLIB_COMPILE_RESOURCES in 9387 [\\/]* | ?:[\\/]*) 9388 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9389 ;; 9390 *) 9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9392for as_dir in $PATH 9393do 9394 IFS=$as_save_IFS 9395 test -z "$as_dir" && as_dir=. 9396 for ac_exec_ext in '' $ac_executable_extensions; do 9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9398 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9400 break 2 9401 fi 9402done 9403 done 9404IFS=$as_save_IFS 9405 9406 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9407 ;; 9408esac 9409fi 9410GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9411if test -n "$GLIB_COMPILE_RESOURCES"; then 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9413$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9414else 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9416$as_echo "no" >&6; } 9417fi 9418 9419 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9421$as_echo_n "checking glib-compile-resources... " >&6; } 9422 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9423 GLIB_COMPILE_RESOURCES="" 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9425$as_echo "cannot be found in PATH." >&6; } 9426 else 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9428$as_echo "usable." >&6; } 9429 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9430 9431 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9432 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9433 fi 9434 else 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9436$as_echo "not usable." >&6; } 9437 fi 9438 else 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9440$as_echo "cannot obtain from pkg_config." >&6; } 9441 fi 9442 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9444$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9445 # Check whether --enable-icon_cache_update was given. 9446if test "${enable_icon_cache_update+set}" = set; then : 9447 enableval=$enable_icon_cache_update; 9448else 9449 enable_icon_cache_update="yes" 9450fi 9451 9452 if test "$enable_icon_cache_update" = "yes"; then 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9454$as_echo "not set" >&6; } 9455 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9456set dummy gtk-update-icon-cache; ac_word=$2 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9458$as_echo_n "checking for $ac_word... " >&6; } 9459if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9460 $as_echo_n "(cached) " >&6 9461else 9462 case $GTK_UPDATE_ICON_CACHE in 9463 [\\/]* | ?:[\\/]*) 9464 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9465 ;; 9466 *) 9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9468for as_dir in $PATH 9469do 9470 IFS=$as_save_IFS 9471 test -z "$as_dir" && as_dir=. 9472 for ac_exec_ext in '' $ac_executable_extensions; do 9473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9474 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9476 break 2 9477 fi 9478done 9479 done 9480IFS=$as_save_IFS 9481 9482 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9483 ;; 9484esac 9485fi 9486GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 9487if test -n "$GTK_UPDATE_ICON_CACHE"; then 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 9489$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 9490else 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9492$as_echo "no" >&6; } 9493fi 9494 9495 9496 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9498$as_echo "not found in PATH." >&6; } 9499 fi 9500 else 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9502$as_echo "update disabled" >&6; } 9503 fi 9504 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 9506$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 9507 # Check whether --enable-desktop_database_update was given. 9508if test "${enable_desktop_database_update+set}" = set; then : 9509 enableval=$enable_desktop_database_update; 9510else 9511 enable_desktop_database_update="yes" 9512fi 9513 9514 if test "$enable_desktop_database_update" = "yes"; then 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9516$as_echo "not set" >&6; } 9517 # Extract the first word of "update-desktop-database", so it can be a program name with args. 9518set dummy update-desktop-database; ac_word=$2 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9520$as_echo_n "checking for $ac_word... " >&6; } 9521if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 case $UPDATE_DESKTOP_DATABASE in 9525 [\\/]* | ?:[\\/]*) 9526 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 9527 ;; 9528 *) 9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9530for as_dir in $PATH 9531do 9532 IFS=$as_save_IFS 9533 test -z "$as_dir" && as_dir=. 9534 for ac_exec_ext in '' $ac_executable_extensions; do 9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9536 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9538 break 2 9539 fi 9540done 9541 done 9542IFS=$as_save_IFS 9543 9544 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 9545 ;; 9546esac 9547fi 9548UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 9549if test -n "$UPDATE_DESKTOP_DATABASE"; then 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 9551$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 9552else 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9554$as_echo "no" >&6; } 9555fi 9556 9557 9558 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9560$as_echo "not found in PATH." >&6; } 9561 fi 9562 else 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9564$as_echo "update disabled" >&6; } 9565 fi 9566fi 9567 9568 9569 9570 9571 9572 9573 9574if test -z "$SKIP_MOTIF"; then 9575 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" 9576 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9577 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9579$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9580 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9581 GUI_INC_LOC= 9582 for try in $gui_includes; do 9583 if test -f "$try/Xm/Xm.h"; then 9584 GUI_INC_LOC=$try 9585 fi 9586 done 9587 if test -n "$GUI_INC_LOC"; then 9588 if test "$GUI_INC_LOC" = /usr/include; then 9589 GUI_INC_LOC= 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9591$as_echo "in default path" >&6; } 9592 else 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9594$as_echo "$GUI_INC_LOC" >&6; } 9595 fi 9596 else 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9598$as_echo "<not found>" >&6; } 9599 SKIP_MOTIF=YES 9600 fi 9601fi 9602 9603 9604if test -z "$SKIP_MOTIF"; then 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9606$as_echo_n "checking --with-motif-lib argument... " >&6; } 9607 9608# Check whether --with-motif-lib was given. 9609if test "${with_motif_lib+set}" = set; then : 9610 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9611fi 9612 9613 9614 if test -n "$MOTIF_LIBNAME"; then 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9616$as_echo "$MOTIF_LIBNAME" >&6; } 9617 GUI_LIB_LOC= 9618 else 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9620$as_echo "no" >&6; } 9621 9622 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9623 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9625$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9626 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 9627 GUI_LIB_LOC= 9628 for try in $gui_libs; do 9629 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9630 if test -f "$libtry"; then 9631 GUI_LIB_LOC=$try 9632 fi 9633 done 9634 done 9635 if test -n "$GUI_LIB_LOC"; then 9636 if test "$GUI_LIB_LOC" = /usr/lib \ 9637 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9638 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9639 GUI_LIB_LOC= 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9641$as_echo "in default path" >&6; } 9642 else 9643 if test -n "$GUI_LIB_LOC"; then 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9645$as_echo "$GUI_LIB_LOC" >&6; } 9646 if test "`(uname) 2>/dev/null`" = SunOS && 9647 uname -r | grep '^5' >/dev/null; then 9648 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9649 fi 9650 fi 9651 fi 9652 MOTIF_LIBNAME=-lXm 9653 else 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9655$as_echo "<not found>" >&6; } 9656 SKIP_MOTIF=YES 9657 fi 9658 fi 9659fi 9660 9661if test -z "$SKIP_MOTIF"; then 9662 SKIP_ATHENA=YES 9663 SKIP_NEXTAW=YES 9664 GUITYPE=MOTIF 9665 9666fi 9667 9668 9669GUI_X_LIBS= 9670 9671if test -z "$SKIP_ATHENA"; then 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9673$as_echo_n "checking if Athena header files can be found... " >&6; } 9674 cflags_save=$CFLAGS 9675 CFLAGS="$CFLAGS $X_CFLAGS" 9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678 9679#include <X11/Intrinsic.h> 9680#include <X11/Xaw/Paned.h> 9681int 9682main () 9683{ 9684 9685 ; 9686 return 0; 9687} 9688_ACEOF 9689if ac_fn_c_try_compile "$LINENO"; then : 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9691$as_echo "yes" >&6; } 9692else 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9694$as_echo "no" >&6; }; SKIP_ATHENA=YES 9695fi 9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9697 CFLAGS=$cflags_save 9698fi 9699 9700if test -z "$SKIP_ATHENA"; then 9701 GUITYPE=ATHENA 9702fi 9703 9704if test -z "$SKIP_NEXTAW"; then 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9706$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9707 cflags_save=$CFLAGS 9708 CFLAGS="$CFLAGS $X_CFLAGS" 9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9710/* end confdefs.h. */ 9711 9712#include <X11/Intrinsic.h> 9713#include <X11/neXtaw/Paned.h> 9714int 9715main () 9716{ 9717 9718 ; 9719 return 0; 9720} 9721_ACEOF 9722if ac_fn_c_try_compile "$LINENO"; then : 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9724$as_echo "yes" >&6; } 9725else 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9727$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9728fi 9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9730 CFLAGS=$cflags_save 9731fi 9732 9733if test -z "$SKIP_NEXTAW"; then 9734 GUITYPE=NEXTAW 9735fi 9736 9737if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9738 if test -n "$GUI_INC_LOC"; then 9739 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9740 fi 9741 if test -n "$GUI_LIB_LOC"; then 9742 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9743 fi 9744 9745 ldflags_save=$LDFLAGS 9746 LDFLAGS="$X_LIBS $LDFLAGS" 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9748$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9749if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 ac_check_lib_save_LIBS=$LIBS 9753LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756 9757/* Override any GCC internal prototype to avoid an error. 9758 Use char because int might match the return type of a GCC 9759 builtin and then its argument prototype would still apply. */ 9760#ifdef __cplusplus 9761extern "C" 9762#endif 9763char XShapeQueryExtension (); 9764int 9765main () 9766{ 9767return XShapeQueryExtension (); 9768 ; 9769 return 0; 9770} 9771_ACEOF 9772if ac_fn_c_try_link "$LINENO"; then : 9773 ac_cv_lib_Xext_XShapeQueryExtension=yes 9774else 9775 ac_cv_lib_Xext_XShapeQueryExtension=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext \ 9778 conftest$ac_exeext conftest.$ac_ext 9779LIBS=$ac_check_lib_save_LIBS 9780fi 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9782$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9783if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9784 GUI_X_LIBS="-lXext" 9785fi 9786 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9788$as_echo_n "checking for wslen in -lw... " >&6; } 9789if ${ac_cv_lib_w_wslen+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 ac_check_lib_save_LIBS=$LIBS 9793LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9795/* end confdefs.h. */ 9796 9797/* Override any GCC internal prototype to avoid an error. 9798 Use char because int might match the return type of a GCC 9799 builtin and then its argument prototype would still apply. */ 9800#ifdef __cplusplus 9801extern "C" 9802#endif 9803char wslen (); 9804int 9805main () 9806{ 9807return wslen (); 9808 ; 9809 return 0; 9810} 9811_ACEOF 9812if ac_fn_c_try_link "$LINENO"; then : 9813 ac_cv_lib_w_wslen=yes 9814else 9815 ac_cv_lib_w_wslen=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext \ 9818 conftest$ac_exeext conftest.$ac_ext 9819LIBS=$ac_check_lib_save_LIBS 9820fi 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9822$as_echo "$ac_cv_lib_w_wslen" >&6; } 9823if test "x$ac_cv_lib_w_wslen" = xyes; then : 9824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9825fi 9826 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9828$as_echo_n "checking for dlsym in -ldl... " >&6; } 9829if ${ac_cv_lib_dl_dlsym+:} false; then : 9830 $as_echo_n "(cached) " >&6 9831else 9832 ac_check_lib_save_LIBS=$LIBS 9833LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836 9837/* Override any GCC internal prototype to avoid an error. 9838 Use char because int might match the return type of a GCC 9839 builtin and then its argument prototype would still apply. */ 9840#ifdef __cplusplus 9841extern "C" 9842#endif 9843char dlsym (); 9844int 9845main () 9846{ 9847return dlsym (); 9848 ; 9849 return 0; 9850} 9851_ACEOF 9852if ac_fn_c_try_link "$LINENO"; then : 9853 ac_cv_lib_dl_dlsym=yes 9854else 9855 ac_cv_lib_dl_dlsym=no 9856fi 9857rm -f core conftest.err conftest.$ac_objext \ 9858 conftest$ac_exeext conftest.$ac_ext 9859LIBS=$ac_check_lib_save_LIBS 9860fi 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9862$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9863if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9865fi 9866 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9868$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9869if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 ac_check_lib_save_LIBS=$LIBS 9873LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876 9877/* Override any GCC internal prototype to avoid an error. 9878 Use char because int might match the return type of a GCC 9879 builtin and then its argument prototype would still apply. */ 9880#ifdef __cplusplus 9881extern "C" 9882#endif 9883char XmuCreateStippledPixmap (); 9884int 9885main () 9886{ 9887return XmuCreateStippledPixmap (); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_link "$LINENO"; then : 9893 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9894else 9895 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9896fi 9897rm -f core conftest.err conftest.$ac_objext \ 9898 conftest$ac_exeext conftest.$ac_ext 9899LIBS=$ac_check_lib_save_LIBS 9900fi 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9902$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9903if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9904 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9905fi 9906 9907 if test -z "$SKIP_MOTIF"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9909$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9910if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 ac_check_lib_save_LIBS=$LIBS 9914LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917 9918/* Override any GCC internal prototype to avoid an error. 9919 Use char because int might match the return type of a GCC 9920 builtin and then its argument prototype would still apply. */ 9921#ifdef __cplusplus 9922extern "C" 9923#endif 9924char XpEndJob (); 9925int 9926main () 9927{ 9928return XpEndJob (); 9929 ; 9930 return 0; 9931} 9932_ACEOF 9933if ac_fn_c_try_link "$LINENO"; then : 9934 ac_cv_lib_Xp_XpEndJob=yes 9935else 9936 ac_cv_lib_Xp_XpEndJob=no 9937fi 9938rm -f core conftest.err conftest.$ac_objext \ 9939 conftest$ac_exeext conftest.$ac_ext 9940LIBS=$ac_check_lib_save_LIBS 9941fi 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9943$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9944if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9945 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9946fi 9947 9948 fi 9949 LDFLAGS=$ldflags_save 9950 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9952$as_echo_n "checking for extra X11 defines... " >&6; } 9953 NARROW_PROTO= 9954 rm -fr conftestdir 9955 if mkdir conftestdir; then 9956 cd conftestdir 9957 cat > Imakefile <<'EOF' 9958acfindx: 9959 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9960EOF 9961 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9962 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9963 fi 9964 cd .. 9965 rm -fr conftestdir 9966 fi 9967 if test -z "$NARROW_PROTO"; then 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9969$as_echo "no" >&6; } 9970 else 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9972$as_echo "$NARROW_PROTO" >&6; } 9973 fi 9974 9975fi 9976 9977if test "$enable_xsmp" = "yes"; then 9978 cppflags_save=$CPPFLAGS 9979 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9980 for ac_header in X11/SM/SMlib.h 9981do : 9982 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9983if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9984 cat >>confdefs.h <<_ACEOF 9985#define HAVE_X11_SM_SMLIB_H 1 9986_ACEOF 9987 9988fi 9989 9990done 9991 9992 CPPFLAGS=$cppflags_save 9993fi 9994 9995 9996if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 9997 cppflags_save=$CPPFLAGS 9998 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9999 for ac_header in X11/xpm.h X11/Sunkeysym.h 10000do : 10001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10004 cat >>confdefs.h <<_ACEOF 10005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10006_ACEOF 10007 10008fi 10009 10010done 10011 10012 10013 if test ! "$enable_xim" = "no"; then 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10015$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018#include <X11/Xlib.h> 10019_ACEOF 10020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10021 $EGREP "XIMText" >/dev/null 2>&1; then : 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10023$as_echo "yes" >&6; } 10024else 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10026$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10027fi 10028rm -f conftest* 10029 10030 fi 10031 CPPFLAGS=$cppflags_save 10032 10033 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10034 -a "x$GUITYPE" != "xNONE" ; then 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10036$as_echo "X GUI selected; xim has been enabled" >&6; } 10037 enable_xim="yes" 10038 fi 10039fi 10040 10041if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10042 cppflags_save=$CPPFLAGS 10043 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10045$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10047/* end confdefs.h. */ 10048 10049#include <X11/Intrinsic.h> 10050#include <X11/Xmu/Editres.h> 10051int 10052main () 10053{ 10054int i; i = 0; 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_compile "$LINENO"; then : 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10061$as_echo "yes" >&6; } 10062 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10063 10064else 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10066$as_echo "no" >&6; } 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10069 CPPFLAGS=$cppflags_save 10070fi 10071 10072if test -z "$SKIP_MOTIF"; then 10073 cppflags_save=$CPPFLAGS 10074 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10075 if test "$zOSUnix" = "yes"; then 10076 xmheader="Xm/Xm.h" 10077 else 10078 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10079 Xm/UnhighlightT.h Xm/Notebook.h" 10080 fi 10081 for ac_header in $xmheader 10082do : 10083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10086 cat >>confdefs.h <<_ACEOF 10087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10088_ACEOF 10089 10090fi 10091 10092done 10093 10094 10095 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10097$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100#include <Xm/XpmP.h> 10101int 10102main () 10103{ 10104XpmAttributes_21 attr; 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109if ac_fn_c_try_compile "$LINENO"; then : 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10111$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10112 10113else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10116 10117 10118fi 10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10120 else 10121 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10122 10123 fi 10124 CPPFLAGS=$cppflags_save 10125fi 10126 10127if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10129$as_echo "no GUI selected; xim has been disabled" >&6; } 10130 enable_xim="no" 10131fi 10132if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10134$as_echo "no GUI selected; fontset has been disabled" >&6; } 10135 enable_fontset="no" 10136fi 10137if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10139$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10140 enable_fontset="no" 10141fi 10142 10143if test -z "$SKIP_PHOTON"; then 10144 GUITYPE=PHOTONGUI 10145fi 10146 10147 10148 10149 10150 10151 10152if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10153 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10154fi 10155 10156if test "$enable_xim" = "yes"; then 10157 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10158 10159fi 10160if test "$enable_fontset" = "yes"; then 10161 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10162 10163fi 10164 10165 10166 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10168$as_echo_n "checking for /proc link to executable... " >&6; } 10169if test -L "/proc/self/exe"; then 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10171$as_echo "/proc/self/exe" >&6; } 10172 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10173 10174elif test -L "/proc/self/path/a.out"; then 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10176$as_echo "/proc/self/path/a.out" >&6; } 10177 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10178 10179elif test -L "/proc/curproc/file"; then 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10181$as_echo "/proc/curproc/file" >&6; } 10182 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10183 10184else 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10186$as_echo "no" >&6; } 10187fi 10188 10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10190$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10191case `uname` in 10192 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10193$as_echo "yes" >&6; } 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10195$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10196 if test "x$with_x" = "xno" ; then 10197 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10199$as_echo "yes" >&6; } 10200 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10201 10202 else 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10204$as_echo "no - using X11" >&6; } 10205 fi ;; 10206 10207 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10208$as_echo "no" >&6; };; 10209esac 10210 10211if test "$enable_hangulinput" = "yes"; then 10212 if test "x$GUITYPE" = "xNONE"; then 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10214$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10215 enable_hangulinput=no 10216 else 10217 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10218 10219 HANGULIN_SRC=hangulin.c 10220 10221 HANGULIN_OBJ=objects/hangulin.o 10222 10223 fi 10224fi 10225 10226 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10228$as_echo_n "checking whether toupper is broken... " >&6; } 10229if ${vim_cv_toupper_broken+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 10233 if test "$cross_compiling" = yes; then : 10234 10235 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10236 10237else 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239/* end confdefs.h. */ 10240 10241#include "confdefs.h" 10242#include <ctype.h> 10243#if STDC_HEADERS 10244# include <stdlib.h> 10245# include <stddef.h> 10246#endif 10247main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10248 10249_ACEOF 10250if ac_fn_c_try_run "$LINENO"; then : 10251 10252 vim_cv_toupper_broken=yes 10253 10254else 10255 10256 vim_cv_toupper_broken=no 10257 10258fi 10259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10260 conftest.$ac_objext conftest.beam conftest.$ac_ext 10261fi 10262 10263fi 10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10265$as_echo "$vim_cv_toupper_broken" >&6; } 10266 10267if test "x$vim_cv_toupper_broken" = "xyes" ; then 10268 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10269 10270fi 10271 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10273$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10275/* end confdefs.h. */ 10276#include <stdio.h> 10277int 10278main () 10279{ 10280printf("(" __DATE__ " " __TIME__ ")"); 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285if ac_fn_c_try_compile "$LINENO"; then : 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10287$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10288 10289else 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10291$as_echo "no" >&6; } 10292fi 10293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10294 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10296$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299#include <stdio.h> 10300int 10301main () 10302{ 10303int x __attribute__((unused)); 10304 ; 10305 return 0; 10306} 10307_ACEOF 10308if ac_fn_c_try_compile "$LINENO"; then : 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10310$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10311 10312else 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10314$as_echo "no" >&6; } 10315fi 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10317 10318ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10319if test "x$ac_cv_header_elf_h" = xyes; then : 10320 HAS_ELF=1 10321fi 10322 10323 10324if test "$HAS_ELF" = 1; then 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10326$as_echo_n "checking for main in -lelf... " >&6; } 10327if ${ac_cv_lib_elf_main+:} false; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 ac_check_lib_save_LIBS=$LIBS 10331LIBS="-lelf $LIBS" 10332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10333/* end confdefs.h. */ 10334 10335 10336int 10337main () 10338{ 10339return main (); 10340 ; 10341 return 0; 10342} 10343_ACEOF 10344if ac_fn_c_try_link "$LINENO"; then : 10345 ac_cv_lib_elf_main=yes 10346else 10347 ac_cv_lib_elf_main=no 10348fi 10349rm -f core conftest.err conftest.$ac_objext \ 10350 conftest$ac_exeext conftest.$ac_ext 10351LIBS=$ac_check_lib_save_LIBS 10352fi 10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10354$as_echo "$ac_cv_lib_elf_main" >&6; } 10355if test "x$ac_cv_lib_elf_main" = xyes; then : 10356 cat >>confdefs.h <<_ACEOF 10357#define HAVE_LIBELF 1 10358_ACEOF 10359 10360 LIBS="-lelf $LIBS" 10361 10362fi 10363 10364fi 10365 10366ac_header_dirent=no 10367for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10368 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10370$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10371if eval \${$as_ac_Header+:} false; then : 10372 $as_echo_n "(cached) " >&6 10373else 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376#include <sys/types.h> 10377#include <$ac_hdr> 10378 10379int 10380main () 10381{ 10382if ((DIR *) 0) 10383return 0; 10384 ; 10385 return 0; 10386} 10387_ACEOF 10388if ac_fn_c_try_compile "$LINENO"; then : 10389 eval "$as_ac_Header=yes" 10390else 10391 eval "$as_ac_Header=no" 10392fi 10393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10394fi 10395eval ac_res=\$$as_ac_Header 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10397$as_echo "$ac_res" >&6; } 10398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10399 cat >>confdefs.h <<_ACEOF 10400#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10401_ACEOF 10402 10403ac_header_dirent=$ac_hdr; break 10404fi 10405 10406done 10407# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10408if test $ac_header_dirent = dirent.h; then 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10410$as_echo_n "checking for library containing opendir... " >&6; } 10411if ${ac_cv_search_opendir+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 ac_func_search_save_LIBS=$LIBS 10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417 10418/* Override any GCC internal prototype to avoid an error. 10419 Use char because int might match the return type of a GCC 10420 builtin and then its argument prototype would still apply. */ 10421#ifdef __cplusplus 10422extern "C" 10423#endif 10424char opendir (); 10425int 10426main () 10427{ 10428return opendir (); 10429 ; 10430 return 0; 10431} 10432_ACEOF 10433for ac_lib in '' dir; do 10434 if test -z "$ac_lib"; then 10435 ac_res="none required" 10436 else 10437 ac_res=-l$ac_lib 10438 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10439 fi 10440 if ac_fn_c_try_link "$LINENO"; then : 10441 ac_cv_search_opendir=$ac_res 10442fi 10443rm -f core conftest.err conftest.$ac_objext \ 10444 conftest$ac_exeext 10445 if ${ac_cv_search_opendir+:} false; then : 10446 break 10447fi 10448done 10449if ${ac_cv_search_opendir+:} false; then : 10450 10451else 10452 ac_cv_search_opendir=no 10453fi 10454rm conftest.$ac_ext 10455LIBS=$ac_func_search_save_LIBS 10456fi 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10458$as_echo "$ac_cv_search_opendir" >&6; } 10459ac_res=$ac_cv_search_opendir 10460if test "$ac_res" != no; then : 10461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10462 10463fi 10464 10465else 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10467$as_echo_n "checking for library containing opendir... " >&6; } 10468if ${ac_cv_search_opendir+:} false; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 ac_func_search_save_LIBS=$LIBS 10472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10473/* end confdefs.h. */ 10474 10475/* Override any GCC internal prototype to avoid an error. 10476 Use char because int might match the return type of a GCC 10477 builtin and then its argument prototype would still apply. */ 10478#ifdef __cplusplus 10479extern "C" 10480#endif 10481char opendir (); 10482int 10483main () 10484{ 10485return opendir (); 10486 ; 10487 return 0; 10488} 10489_ACEOF 10490for ac_lib in '' x; do 10491 if test -z "$ac_lib"; then 10492 ac_res="none required" 10493 else 10494 ac_res=-l$ac_lib 10495 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10496 fi 10497 if ac_fn_c_try_link "$LINENO"; then : 10498 ac_cv_search_opendir=$ac_res 10499fi 10500rm -f core conftest.err conftest.$ac_objext \ 10501 conftest$ac_exeext 10502 if ${ac_cv_search_opendir+:} false; then : 10503 break 10504fi 10505done 10506if ${ac_cv_search_opendir+:} false; then : 10507 10508else 10509 ac_cv_search_opendir=no 10510fi 10511rm conftest.$ac_ext 10512LIBS=$ac_func_search_save_LIBS 10513fi 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10515$as_echo "$ac_cv_search_opendir" >&6; } 10516ac_res=$ac_cv_search_opendir 10517if test "$ac_res" != no; then : 10518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10519 10520fi 10521 10522fi 10523 10524 10525if test $ac_cv_header_sys_wait_h = no; then 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10527$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530#include <sys/wait.h> 10531int 10532main () 10533{ 10534union wait xx, yy; xx = yy 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539if ac_fn_c_try_compile "$LINENO"; then : 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10541$as_echo "yes" >&6; } 10542 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10543 10544 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10545 10546else 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10548$as_echo "no" >&6; } 10549fi 10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10551fi 10552 10553for ac_header in stdint.h stdlib.h string.h \ 10554 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10555 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10556 termio.h iconv.h inttypes.h langinfo.h math.h \ 10557 unistd.h stropts.h errno.h sys/resource.h \ 10558 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10559 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10560 utime.h sys/param.h libintl.h libgen.h \ 10561 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10562 sys/access.h sys/sysinfo.h wchar.h wctype.h 10563do : 10564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10567 cat >>confdefs.h <<_ACEOF 10568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10569_ACEOF 10570 10571fi 10572 10573done 10574 10575 10576for ac_header in sys/ptem.h 10577do : 10578 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10579# include <sys/stream.h> 10580#endif 10581" 10582if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10583 cat >>confdefs.h <<_ACEOF 10584#define HAVE_SYS_PTEM_H 1 10585_ACEOF 10586 10587fi 10588 10589done 10590 10591 10592for ac_header in sys/sysctl.h 10593do : 10594 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10595# include <sys/param.h> 10596#endif 10597" 10598if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10599 cat >>confdefs.h <<_ACEOF 10600#define HAVE_SYS_SYSCTL_H 1 10601_ACEOF 10602 10603fi 10604 10605done 10606 10607 10608 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10610$as_echo_n "checking for pthread_np.h... " >&6; } 10611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612/* end confdefs.h. */ 10613 10614#include <pthread.h> 10615#include <pthread_np.h> 10616int 10617main () 10618{ 10619int i; i = 0; 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_c_try_compile "$LINENO"; then : 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10626$as_echo "yes" >&6; } 10627 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10628 10629else 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10631$as_echo "no" >&6; } 10632fi 10633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10634 10635for ac_header in strings.h 10636do : 10637 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10638if test "x$ac_cv_header_strings_h" = xyes; then : 10639 cat >>confdefs.h <<_ACEOF 10640#define HAVE_STRINGS_H 1 10641_ACEOF 10642 10643fi 10644 10645done 10646 10647if test "x$MACOS_X" = "xyes"; then 10648 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10649 10650else 10651 10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10653$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10654cppflags_save=$CPPFLAGS 10655CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658 10659#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10660# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10661 /* but don't do it on AIX 5.1 (Uribarri) */ 10662#endif 10663#ifdef HAVE_XM_XM_H 10664# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10665#endif 10666#ifdef HAVE_STRING_H 10667# include <string.h> 10668#endif 10669#if defined(HAVE_STRINGS_H) 10670# include <strings.h> 10671#endif 10672 10673int 10674main () 10675{ 10676int i; i = 0; 10677 ; 10678 return 0; 10679} 10680_ACEOF 10681if ac_fn_c_try_compile "$LINENO"; then : 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10683$as_echo "yes" >&6; } 10684else 10685 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10686 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10688$as_echo "no" >&6; } 10689fi 10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10691CPPFLAGS=$cppflags_save 10692fi 10693 10694if test $ac_cv_c_compiler_gnu = yes; then 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10696$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10697if ${ac_cv_prog_gcc_traditional+:} false; then : 10698 $as_echo_n "(cached) " >&6 10699else 10700 ac_pattern="Autoconf.*'x'" 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703#include <sgtty.h> 10704Autoconf TIOCGETP 10705_ACEOF 10706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10707 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10708 ac_cv_prog_gcc_traditional=yes 10709else 10710 ac_cv_prog_gcc_traditional=no 10711fi 10712rm -f conftest* 10713 10714 10715 if test $ac_cv_prog_gcc_traditional = no; then 10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717/* end confdefs.h. */ 10718#include <termio.h> 10719Autoconf TCGETA 10720_ACEOF 10721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10722 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10723 ac_cv_prog_gcc_traditional=yes 10724fi 10725rm -f conftest* 10726 10727 fi 10728fi 10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10730$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10731 if test $ac_cv_prog_gcc_traditional = yes; then 10732 CC="$CC -traditional" 10733 fi 10734fi 10735 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10737$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10738if ${ac_cv_c_const+:} false; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10742/* end confdefs.h. */ 10743 10744int 10745main () 10746{ 10747 10748#ifndef __cplusplus 10749 /* Ultrix mips cc rejects this sort of thing. */ 10750 typedef int charset[2]; 10751 const charset cs = { 0, 0 }; 10752 /* SunOS 4.1.1 cc rejects this. */ 10753 char const *const *pcpcc; 10754 char **ppc; 10755 /* NEC SVR4.0.2 mips cc rejects this. */ 10756 struct point {int x, y;}; 10757 static struct point const zero = {0,0}; 10758 /* AIX XL C 1.02.0.0 rejects this. 10759 It does not let you subtract one const X* pointer from another in 10760 an arm of an if-expression whose if-part is not a constant 10761 expression */ 10762 const char *g = "string"; 10763 pcpcc = &g + (g ? g-g : 0); 10764 /* HPUX 7.0 cc rejects these. */ 10765 ++pcpcc; 10766 ppc = (char**) pcpcc; 10767 pcpcc = (char const *const *) ppc; 10768 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10769 char tx; 10770 char *t = &tx; 10771 char const *s = 0 ? (char *) 0 : (char const *) 0; 10772 10773 *t++ = 0; 10774 if (s) return 0; 10775 } 10776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10777 int x[] = {25, 17}; 10778 const int *foo = &x[0]; 10779 ++foo; 10780 } 10781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10782 typedef const int *iptr; 10783 iptr p = 0; 10784 ++p; 10785 } 10786 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10788 struct s { int j; const int *ap[3]; } bx; 10789 struct s *b = &bx; b->j = 5; 10790 } 10791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10792 const int foo = 10; 10793 if (!foo) return 0; 10794 } 10795 return !cs[0] && !zero.x; 10796#endif 10797 10798 ; 10799 return 0; 10800} 10801_ACEOF 10802if ac_fn_c_try_compile "$LINENO"; then : 10803 ac_cv_c_const=yes 10804else 10805 ac_cv_c_const=no 10806fi 10807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10810$as_echo "$ac_cv_c_const" >&6; } 10811if test $ac_cv_c_const = no; then 10812 10813$as_echo "#define const /**/" >>confdefs.h 10814 10815fi 10816 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10818$as_echo_n "checking for working volatile... " >&6; } 10819if ${ac_cv_c_volatile+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821else 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824 10825int 10826main () 10827{ 10828 10829volatile int x; 10830int * volatile y = (int *) 0; 10831return !x && !y; 10832 ; 10833 return 0; 10834} 10835_ACEOF 10836if ac_fn_c_try_compile "$LINENO"; then : 10837 ac_cv_c_volatile=yes 10838else 10839 ac_cv_c_volatile=no 10840fi 10841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10842fi 10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10844$as_echo "$ac_cv_c_volatile" >&6; } 10845if test $ac_cv_c_volatile = no; then 10846 10847$as_echo "#define volatile /**/" >>confdefs.h 10848 10849fi 10850 10851ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10852if test "x$ac_cv_type_mode_t" = xyes; then : 10853 10854else 10855 10856cat >>confdefs.h <<_ACEOF 10857#define mode_t int 10858_ACEOF 10859 10860fi 10861 10862ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10863if test "x$ac_cv_type_off_t" = xyes; then : 10864 10865else 10866 10867cat >>confdefs.h <<_ACEOF 10868#define off_t long int 10869_ACEOF 10870 10871fi 10872 10873ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10874if test "x$ac_cv_type_pid_t" = xyes; then : 10875 10876else 10877 10878cat >>confdefs.h <<_ACEOF 10879#define pid_t int 10880_ACEOF 10881 10882fi 10883 10884ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10885if test "x$ac_cv_type_size_t" = xyes; then : 10886 10887else 10888 10889cat >>confdefs.h <<_ACEOF 10890#define size_t unsigned int 10891_ACEOF 10892 10893fi 10894 10895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10896$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10897if ${ac_cv_type_uid_t+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899else 10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10901/* end confdefs.h. */ 10902#include <sys/types.h> 10903 10904_ACEOF 10905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10906 $EGREP "uid_t" >/dev/null 2>&1; then : 10907 ac_cv_type_uid_t=yes 10908else 10909 ac_cv_type_uid_t=no 10910fi 10911rm -f conftest* 10912 10913fi 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10915$as_echo "$ac_cv_type_uid_t" >&6; } 10916if test $ac_cv_type_uid_t = no; then 10917 10918$as_echo "#define uid_t int" >>confdefs.h 10919 10920 10921$as_echo "#define gid_t int" >>confdefs.h 10922 10923fi 10924 10925ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10926case $ac_cv_c_uint32_t in #( 10927 no|yes) ;; #( 10928 *) 10929 10930$as_echo "#define _UINT32_T 1" >>confdefs.h 10931 10932 10933cat >>confdefs.h <<_ACEOF 10934#define uint32_t $ac_cv_c_uint32_t 10935_ACEOF 10936;; 10937 esac 10938 10939 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10941$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10942if ${ac_cv_header_time+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10946/* end confdefs.h. */ 10947#include <sys/types.h> 10948#include <sys/time.h> 10949#include <time.h> 10950 10951int 10952main () 10953{ 10954if ((struct tm *) 0) 10955return 0; 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960if ac_fn_c_try_compile "$LINENO"; then : 10961 ac_cv_header_time=yes 10962else 10963 ac_cv_header_time=no 10964fi 10965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10966fi 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10968$as_echo "$ac_cv_header_time" >&6; } 10969if test $ac_cv_header_time = yes; then 10970 10971$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10972 10973fi 10974 10975ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10976if test "x$ac_cv_type_ino_t" = xyes; then : 10977 10978else 10979 10980cat >>confdefs.h <<_ACEOF 10981#define ino_t long 10982_ACEOF 10983 10984fi 10985 10986ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10987if test "x$ac_cv_type_dev_t" = xyes; then : 10988 10989else 10990 10991cat >>confdefs.h <<_ACEOF 10992#define dev_t unsigned 10993_ACEOF 10994 10995fi 10996 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10998$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10999if ${ac_cv_c_bigendian+:} false; then : 11000 $as_echo_n "(cached) " >&6 11001else 11002 ac_cv_c_bigendian=unknown 11003 # See if we're dealing with a universal compiler. 11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006#ifndef __APPLE_CC__ 11007 not a universal capable compiler 11008 #endif 11009 typedef int dummy; 11010 11011_ACEOF 11012if ac_fn_c_try_compile "$LINENO"; then : 11013 11014 # Check for potential -arch flags. It is not universal unless 11015 # there are at least two -arch flags with different values. 11016 ac_arch= 11017 ac_prev= 11018 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11019 if test -n "$ac_prev"; then 11020 case $ac_word in 11021 i?86 | x86_64 | ppc | ppc64) 11022 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11023 ac_arch=$ac_word 11024 else 11025 ac_cv_c_bigendian=universal 11026 break 11027 fi 11028 ;; 11029 esac 11030 ac_prev= 11031 elif test "x$ac_word" = "x-arch"; then 11032 ac_prev=arch 11033 fi 11034 done 11035fi 11036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11037 if test $ac_cv_c_bigendian = unknown; then 11038 # See if sys/param.h defines the BYTE_ORDER macro. 11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041#include <sys/types.h> 11042 #include <sys/param.h> 11043 11044int 11045main () 11046{ 11047#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11048 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11049 && LITTLE_ENDIAN) 11050 bogus endian macros 11051 #endif 11052 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_compile "$LINENO"; then : 11058 # It does; now see whether it defined to BIG_ENDIAN or not. 11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11060/* end confdefs.h. */ 11061#include <sys/types.h> 11062 #include <sys/param.h> 11063 11064int 11065main () 11066{ 11067#if BYTE_ORDER != BIG_ENDIAN 11068 not big endian 11069 #endif 11070 11071 ; 11072 return 0; 11073} 11074_ACEOF 11075if ac_fn_c_try_compile "$LINENO"; then : 11076 ac_cv_c_bigendian=yes 11077else 11078 ac_cv_c_bigendian=no 11079fi 11080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11081fi 11082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11083 fi 11084 if test $ac_cv_c_bigendian = unknown; then 11085 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11087/* end confdefs.h. */ 11088#include <limits.h> 11089 11090int 11091main () 11092{ 11093#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11094 bogus endian macros 11095 #endif 11096 11097 ; 11098 return 0; 11099} 11100_ACEOF 11101if ac_fn_c_try_compile "$LINENO"; then : 11102 # It does; now see whether it defined to _BIG_ENDIAN or not. 11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11104/* end confdefs.h. */ 11105#include <limits.h> 11106 11107int 11108main () 11109{ 11110#ifndef _BIG_ENDIAN 11111 not big endian 11112 #endif 11113 11114 ; 11115 return 0; 11116} 11117_ACEOF 11118if ac_fn_c_try_compile "$LINENO"; then : 11119 ac_cv_c_bigendian=yes 11120else 11121 ac_cv_c_bigendian=no 11122fi 11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11124fi 11125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11126 fi 11127 if test $ac_cv_c_bigendian = unknown; then 11128 # Compile a test program. 11129 if test "$cross_compiling" = yes; then : 11130 # Try to guess by grepping values from an object file. 11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11132/* end confdefs.h. */ 11133short int ascii_mm[] = 11134 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11135 short int ascii_ii[] = 11136 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11137 int use_ascii (int i) { 11138 return ascii_mm[i] + ascii_ii[i]; 11139 } 11140 short int ebcdic_ii[] = 11141 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11142 short int ebcdic_mm[] = 11143 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11144 int use_ebcdic (int i) { 11145 return ebcdic_mm[i] + ebcdic_ii[i]; 11146 } 11147 extern int foo; 11148 11149int 11150main () 11151{ 11152return use_ascii (foo) == use_ebcdic (foo); 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157if ac_fn_c_try_compile "$LINENO"; then : 11158 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11159 ac_cv_c_bigendian=yes 11160 fi 11161 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11162 if test "$ac_cv_c_bigendian" = unknown; then 11163 ac_cv_c_bigendian=no 11164 else 11165 # finding both strings is unlikely to happen, but who knows? 11166 ac_cv_c_bigendian=unknown 11167 fi 11168 fi 11169fi 11170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11171else 11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11173/* end confdefs.h. */ 11174$ac_includes_default 11175int 11176main () 11177{ 11178 11179 /* Are we little or big endian? From Harbison&Steele. */ 11180 union 11181 { 11182 long int l; 11183 char c[sizeof (long int)]; 11184 } u; 11185 u.l = 1; 11186 return u.c[sizeof (long int) - 1] == 1; 11187 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_run "$LINENO"; then : 11193 ac_cv_c_bigendian=no 11194else 11195 ac_cv_c_bigendian=yes 11196fi 11197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11198 conftest.$ac_objext conftest.beam conftest.$ac_ext 11199fi 11200 11201 fi 11202fi 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11204$as_echo "$ac_cv_c_bigendian" >&6; } 11205 case $ac_cv_c_bigendian in #( 11206 yes) 11207 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11208;; #( 11209 no) 11210 ;; #( 11211 universal) 11212 11213$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11214 11215 ;; #( 11216 *) 11217 as_fn_error $? "unknown endianness 11218 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11219 esac 11220 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11222$as_echo_n "checking for inline... " >&6; } 11223if ${ac_cv_c_inline+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 ac_cv_c_inline=no 11227for ac_kw in inline __inline__ __inline; do 11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230#ifndef __cplusplus 11231typedef int foo_t; 11232static $ac_kw foo_t static_foo () {return 0; } 11233$ac_kw foo_t foo () {return 0; } 11234#endif 11235 11236_ACEOF 11237if ac_fn_c_try_compile "$LINENO"; then : 11238 ac_cv_c_inline=$ac_kw 11239fi 11240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11241 test "$ac_cv_c_inline" != no && break 11242done 11243 11244fi 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11246$as_echo "$ac_cv_c_inline" >&6; } 11247 11248case $ac_cv_c_inline in 11249 inline | yes) ;; 11250 *) 11251 case $ac_cv_c_inline in 11252 no) ac_val=;; 11253 *) ac_val=$ac_cv_c_inline;; 11254 esac 11255 cat >>confdefs.h <<_ACEOF 11256#ifndef __cplusplus 11257#define inline $ac_val 11258#endif 11259_ACEOF 11260 ;; 11261esac 11262 11263 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11265$as_echo_n "checking for rlim_t... " >&6; } 11266if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11268$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11269else 11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271/* end confdefs.h. */ 11272 11273#include <sys/types.h> 11274#if STDC_HEADERS 11275# include <stdlib.h> 11276# include <stddef.h> 11277#endif 11278#ifdef HAVE_SYS_RESOURCE_H 11279# include <sys/resource.h> 11280#endif 11281 11282_ACEOF 11283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11284 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11285 ac_cv_type_rlim_t=yes 11286else 11287 ac_cv_type_rlim_t=no 11288fi 11289rm -f conftest* 11290 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11292$as_echo "$ac_cv_type_rlim_t" >&6; } 11293fi 11294if test $ac_cv_type_rlim_t = no; then 11295 cat >> confdefs.h <<\EOF 11296#define rlim_t unsigned long 11297EOF 11298fi 11299 11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11301$as_echo_n "checking for stack_t... " >&6; } 11302if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11304$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11305else 11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309#include <sys/types.h> 11310#if STDC_HEADERS 11311# include <stdlib.h> 11312# include <stddef.h> 11313#endif 11314#include <signal.h> 11315 11316_ACEOF 11317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11318 $EGREP "stack_t" >/dev/null 2>&1; then : 11319 ac_cv_type_stack_t=yes 11320else 11321 ac_cv_type_stack_t=no 11322fi 11323rm -f conftest* 11324 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11326$as_echo "$ac_cv_type_stack_t" >&6; } 11327fi 11328if test $ac_cv_type_stack_t = no; then 11329 cat >> confdefs.h <<\EOF 11330#define stack_t struct sigaltstack 11331EOF 11332fi 11333 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11335$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11337/* end confdefs.h. */ 11338 11339#include <sys/types.h> 11340#if STDC_HEADERS 11341# include <stdlib.h> 11342# include <stddef.h> 11343#endif 11344#include <signal.h> 11345#include "confdefs.h" 11346 11347int 11348main () 11349{ 11350stack_t sigstk; sigstk.ss_base = 0; 11351 ; 11352 return 0; 11353} 11354_ACEOF 11355if ac_fn_c_try_compile "$LINENO"; then : 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11357$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11358 11359else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361$as_echo "no" >&6; } 11362fi 11363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11364 11365olibs="$LIBS" 11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11367$as_echo_n "checking --with-tlib argument... " >&6; } 11368 11369# Check whether --with-tlib was given. 11370if test "${with_tlib+set}" = set; then : 11371 withval=$with_tlib; 11372fi 11373 11374if test -n "$with_tlib"; then 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11376$as_echo "$with_tlib" >&6; } 11377 LIBS="$LIBS -l$with_tlib" 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11379$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11381/* end confdefs.h. */ 11382 11383int 11384main () 11385{ 11386 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391if ac_fn_c_try_link "$LINENO"; then : 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11393$as_echo "OK" >&6; } 11394else 11395 as_fn_error $? "FAILED" "$LINENO" 5 11396fi 11397rm -f core conftest.err conftest.$ac_objext \ 11398 conftest$ac_exeext conftest.$ac_ext 11399 olibs="$LIBS" 11400else 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11402$as_echo "empty: automatic terminal library selection" >&6; } 11403 case "`uname -s 2>/dev/null`" in 11404 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11405 *) tlibs="tinfo ncurses termlib termcap curses";; 11406 esac 11407 for libname in $tlibs; do 11408 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11410$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11411if eval \${$as_ac_Lib+:} false; then : 11412 $as_echo_n "(cached) " >&6 11413else 11414 ac_check_lib_save_LIBS=$LIBS 11415LIBS="-l${libname} $LIBS" 11416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11417/* end confdefs.h. */ 11418 11419/* Override any GCC internal prototype to avoid an error. 11420 Use char because int might match the return type of a GCC 11421 builtin and then its argument prototype would still apply. */ 11422#ifdef __cplusplus 11423extern "C" 11424#endif 11425char tgetent (); 11426int 11427main () 11428{ 11429return tgetent (); 11430 ; 11431 return 0; 11432} 11433_ACEOF 11434if ac_fn_c_try_link "$LINENO"; then : 11435 eval "$as_ac_Lib=yes" 11436else 11437 eval "$as_ac_Lib=no" 11438fi 11439rm -f core conftest.err conftest.$ac_objext \ 11440 conftest$ac_exeext conftest.$ac_ext 11441LIBS=$ac_check_lib_save_LIBS 11442fi 11443eval ac_res=\$$as_ac_Lib 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11445$as_echo "$ac_res" >&6; } 11446if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11447 cat >>confdefs.h <<_ACEOF 11448#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11449_ACEOF 11450 11451 LIBS="-l${libname} $LIBS" 11452 11453fi 11454 11455 if test "x$olibs" != "x$LIBS"; then 11456 if test "$cross_compiling" = yes; then : 11457 res="FAIL" 11458else 11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460/* end confdefs.h. */ 11461 11462#ifdef HAVE_TERMCAP_H 11463# include <termcap.h> 11464#endif 11465#if STDC_HEADERS 11466# include <stdlib.h> 11467# include <stddef.h> 11468#endif 11469main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11470_ACEOF 11471if ac_fn_c_try_run "$LINENO"; then : 11472 res="OK" 11473else 11474 res="FAIL" 11475fi 11476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11477 conftest.$ac_objext conftest.beam conftest.$ac_ext 11478fi 11479 11480 if test "$res" = "OK"; then 11481 break 11482 fi 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11484$as_echo "$libname library is not usable" >&6; } 11485 LIBS="$olibs" 11486 fi 11487 done 11488 if test "x$olibs" = "x$LIBS"; then 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11490$as_echo "no terminal library found" >&6; } 11491 fi 11492fi 11493 11494if test "x$olibs" = "x$LIBS"; then 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11496$as_echo_n "checking for tgetent()... " >&6; } 11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11498/* end confdefs.h. */ 11499 11500int 11501main () 11502{ 11503char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11504 ; 11505 return 0; 11506} 11507_ACEOF 11508if ac_fn_c_try_link "$LINENO"; then : 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11510$as_echo "yes" >&6; } 11511else 11512 as_fn_error $? "NOT FOUND! 11513 You need to install a terminal library; for example ncurses. 11514 Or specify the name of the library with --with-tlib." "$LINENO" 5 11515fi 11516rm -f core conftest.err conftest.$ac_objext \ 11517 conftest$ac_exeext conftest.$ac_ext 11518fi 11519 11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11521$as_echo_n "checking whether we talk terminfo... " >&6; } 11522if ${vim_cv_terminfo+:} false; then : 11523 $as_echo_n "(cached) " >&6 11524else 11525 11526 if test "$cross_compiling" = yes; then : 11527 11528 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11529 11530else 11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11532/* end confdefs.h. */ 11533 11534#include "confdefs.h" 11535#ifdef HAVE_TERMCAP_H 11536# include <termcap.h> 11537#endif 11538#ifdef HAVE_STRING_H 11539# include <string.h> 11540#endif 11541#if STDC_HEADERS 11542# include <stdlib.h> 11543# include <stddef.h> 11544#endif 11545main() 11546{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11547 11548_ACEOF 11549if ac_fn_c_try_run "$LINENO"; then : 11550 11551 vim_cv_terminfo=no 11552 11553else 11554 11555 vim_cv_terminfo=yes 11556 11557fi 11558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11559 conftest.$ac_objext conftest.beam conftest.$ac_ext 11560fi 11561 11562 11563fi 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11565$as_echo "$vim_cv_terminfo" >&6; } 11566 11567if test "x$vim_cv_terminfo" = "xyes" ; then 11568 $as_echo "#define TERMINFO 1" >>confdefs.h 11569 11570fi 11571 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11573$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11574if ${vim_cv_tgetent+:} false; then : 11575 $as_echo_n "(cached) " >&6 11576else 11577 11578 if test "$cross_compiling" = yes; then : 11579 11580 as_fn_error $? "failed to compile test program." "$LINENO" 5 11581 11582else 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584/* end confdefs.h. */ 11585 11586#include "confdefs.h" 11587#ifdef HAVE_TERMCAP_H 11588# include <termcap.h> 11589#endif 11590#if STDC_HEADERS 11591# include <stdlib.h> 11592# include <stddef.h> 11593#endif 11594main() 11595{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11596 11597_ACEOF 11598if ac_fn_c_try_run "$LINENO"; then : 11599 11600 vim_cv_tgetent=zero 11601 11602else 11603 11604 vim_cv_tgetent=non-zero 11605 11606fi 11607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11608 conftest.$ac_objext conftest.beam conftest.$ac_ext 11609fi 11610 11611 11612fi 11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 11614$as_echo "$vim_cv_tgetent" >&6; } 11615 11616if test "x$vim_cv_tgetent" = "xzero" ; then 11617 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11618 11619fi 11620 11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11622$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11624/* end confdefs.h. */ 11625 11626#ifdef HAVE_TERMCAP_H 11627# include <termcap.h> 11628#endif 11629 11630int 11631main () 11632{ 11633ospeed = 20000 11634 ; 11635 return 0; 11636} 11637_ACEOF 11638if ac_fn_c_try_link "$LINENO"; then : 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11640$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11641 11642else 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11644$as_echo "no" >&6; } 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11646$as_echo_n "checking whether ospeed can be extern... " >&6; } 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650#ifdef HAVE_TERMCAP_H 11651# include <termcap.h> 11652#endif 11653extern short ospeed; 11654 11655int 11656main () 11657{ 11658ospeed = 20000 11659 ; 11660 return 0; 11661} 11662_ACEOF 11663if ac_fn_c_try_link "$LINENO"; then : 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11665$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11666 11667else 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11669$as_echo "no" >&6; } 11670fi 11671rm -f core conftest.err conftest.$ac_objext \ 11672 conftest$ac_exeext conftest.$ac_ext 11673 11674fi 11675rm -f core conftest.err conftest.$ac_objext \ 11676 conftest$ac_exeext conftest.$ac_ext 11677 11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11679$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682 11683#ifdef HAVE_TERMCAP_H 11684# include <termcap.h> 11685#endif 11686 11687int 11688main () 11689{ 11690if (UP == 0 && BC == 0) PC = 1 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695if ac_fn_c_try_link "$LINENO"; then : 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11697$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11698 11699else 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11701$as_echo "no" >&6; } 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11703$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11705/* end confdefs.h. */ 11706 11707#ifdef HAVE_TERMCAP_H 11708# include <termcap.h> 11709#endif 11710extern char *UP, *BC, PC; 11711 11712int 11713main () 11714{ 11715if (UP == 0 && BC == 0) PC = 1 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_c_try_link "$LINENO"; then : 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11722$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11723 11724else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11726$as_echo "no" >&6; } 11727fi 11728rm -f core conftest.err conftest.$ac_objext \ 11729 conftest$ac_exeext conftest.$ac_ext 11730 11731fi 11732rm -f core conftest.err conftest.$ac_objext \ 11733 conftest$ac_exeext conftest.$ac_ext 11734 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11736$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11738/* end confdefs.h. */ 11739 11740#ifdef HAVE_TERMCAP_H 11741# include <termcap.h> 11742#endif 11743 11744int 11745main () 11746{ 11747extern int xx(); tputs("test", 1, (outfuntype)xx) 11748 ; 11749 return 0; 11750} 11751_ACEOF 11752if ac_fn_c_try_compile "$LINENO"; then : 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11754$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11755 11756else 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11758$as_echo "no" >&6; } 11759fi 11760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11761 11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11763$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11765/* end confdefs.h. */ 11766 11767#include <sys/types.h> 11768#include <sys/time.h> 11769#include <sys/select.h> 11770int 11771main () 11772{ 11773 11774 ; 11775 return 0; 11776} 11777_ACEOF 11778if ac_fn_c_try_compile "$LINENO"; then : 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11780$as_echo "yes" >&6; } 11781 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11782 11783else 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11785$as_echo "no" >&6; } 11786fi 11787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11788 11789 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11791$as_echo_n "checking for /dev/ptc... " >&6; } 11792if test -r /dev/ptc; then 11793 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11794 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11796$as_echo "yes" >&6; } 11797else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11799$as_echo "no" >&6; } 11800fi 11801 11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11803$as_echo_n "checking for SVR4 ptys... " >&6; } 11804if test -c /dev/ptmx ; then 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807 11808int 11809main () 11810{ 11811ptsname(0);grantpt(0);unlockpt(0); 11812 ; 11813 return 0; 11814} 11815_ACEOF 11816if ac_fn_c_try_link "$LINENO"; then : 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11818$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11819 11820else 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11822$as_echo "no" >&6; } 11823fi 11824rm -f core conftest.err conftest.$ac_objext \ 11825 conftest$ac_exeext conftest.$ac_ext 11826else 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11828$as_echo "no" >&6; } 11829fi 11830 11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11832$as_echo_n "checking for ptyranges... " >&6; } 11833if test -d /dev/ptym ; then 11834 pdir='/dev/ptym' 11835else 11836 pdir='/dev' 11837fi 11838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840#ifdef M_UNIX 11841 yes; 11842#endif 11843 11844_ACEOF 11845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11846 $EGREP "yes" >/dev/null 2>&1; then : 11847 ptys=`echo /dev/ptyp??` 11848else 11849 ptys=`echo $pdir/pty??` 11850fi 11851rm -f conftest* 11852 11853if test "$ptys" != "$pdir/pty??" ; then 11854 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11855 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11856 cat >>confdefs.h <<_ACEOF 11857#define PTYRANGE0 "$p0" 11858_ACEOF 11859 11860 cat >>confdefs.h <<_ACEOF 11861#define PTYRANGE1 "$p1" 11862_ACEOF 11863 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11865$as_echo "$p0 / $p1" >&6; } 11866else 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11868$as_echo "don't know" >&6; } 11869fi 11870 11871rm -f conftest_grp 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11873$as_echo_n "checking default tty permissions/group... " >&6; } 11874if ${vim_cv_tty_group+:} false; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 11878 if test "$cross_compiling" = yes; then : 11879 11880 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11881 11882else 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886#include "confdefs.h" 11887#include <sys/types.h> 11888#if STDC_HEADERS 11889# include <stdlib.h> 11890# include <stddef.h> 11891#endif 11892#ifdef HAVE_UNISTD_H 11893#include <unistd.h> 11894#endif 11895#include <sys/stat.h> 11896#include <stdio.h> 11897main() 11898{ 11899 struct stat sb; 11900 char *x,*ttyname(); 11901 int om, m; 11902 FILE *fp; 11903 11904 if (!(x = ttyname(0))) exit(1); 11905 if (stat(x, &sb)) exit(1); 11906 om = sb.st_mode; 11907 if (om & 002) exit(0); 11908 m = system("mesg y"); 11909 if (m == -1 || m == 127) exit(1); 11910 if (stat(x, &sb)) exit(1); 11911 m = sb.st_mode; 11912 if (chmod(x, om)) exit(1); 11913 if (m & 002) exit(0); 11914 if (sb.st_gid == getgid()) exit(1); 11915 if (!(fp=fopen("conftest_grp", "w"))) 11916 exit(1); 11917 fprintf(fp, "%d\n", sb.st_gid); 11918 fclose(fp); 11919 exit(0); 11920} 11921 11922_ACEOF 11923if ac_fn_c_try_run "$LINENO"; then : 11924 11925 if test -f conftest_grp; then 11926 vim_cv_tty_group=`cat conftest_grp` 11927 if test "x$vim_cv_tty_mode" = "x" ; then 11928 vim_cv_tty_mode=0620 11929 fi 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11931$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11932 else 11933 vim_cv_tty_group=world 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11935$as_echo "ptys are world accessible" >&6; } 11936 fi 11937 11938else 11939 11940 vim_cv_tty_group=world 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11942$as_echo "can't determine - assume ptys are world accessible" >&6; } 11943 11944fi 11945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11946 conftest.$ac_objext conftest.beam conftest.$ac_ext 11947fi 11948 11949 11950fi 11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11952$as_echo "$vim_cv_tty_group" >&6; } 11953rm -f conftest_grp 11954 11955if test "x$vim_cv_tty_group" != "xworld" ; then 11956 cat >>confdefs.h <<_ACEOF 11957#define PTYGROUP $vim_cv_tty_group 11958_ACEOF 11959 11960 if test "x$vim_cv_tty_mode" = "x" ; then 11961 as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5 11962 else 11963 $as_echo "#define PTYMODE 0620" >>confdefs.h 11964 11965 fi 11966fi 11967 11968 11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11970$as_echo_n "checking return type of signal handlers... " >&6; } 11971if ${ac_cv_type_signal+:} false; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11975/* end confdefs.h. */ 11976#include <sys/types.h> 11977#include <signal.h> 11978 11979int 11980main () 11981{ 11982return *(signal (0, 0)) (0) == 1; 11983 ; 11984 return 0; 11985} 11986_ACEOF 11987if ac_fn_c_try_compile "$LINENO"; then : 11988 ac_cv_type_signal=int 11989else 11990 ac_cv_type_signal=void 11991fi 11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11993fi 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11995$as_echo "$ac_cv_type_signal" >&6; } 11996 11997cat >>confdefs.h <<_ACEOF 11998#define RETSIGTYPE $ac_cv_type_signal 11999_ACEOF 12000 12001 12002 12003if test $ac_cv_type_signal = void; then 12004 $as_echo "#define SIGRETURN return" >>confdefs.h 12005 12006else 12007 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12008 12009fi 12010 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12012$as_echo_n "checking for struct sigcontext... " >&6; } 12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12014/* end confdefs.h. */ 12015 12016#include <signal.h> 12017test_sig() 12018{ 12019 struct sigcontext *scont; 12020 scont = (struct sigcontext *)0; 12021 return 1; 12022} 12023int 12024main () 12025{ 12026 12027 ; 12028 return 0; 12029} 12030_ACEOF 12031if ac_fn_c_try_compile "$LINENO"; then : 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12033$as_echo "yes" >&6; } 12034 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12035 12036else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12038$as_echo "no" >&6; } 12039fi 12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12041 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12043$as_echo_n "checking getcwd implementation is broken... " >&6; } 12044if ${vim_cv_getcwd_broken+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 12048 if test "$cross_compiling" = yes; then : 12049 12050 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12051 12052else 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055 12056#include "confdefs.h" 12057#ifdef HAVE_UNISTD_H 12058#include <unistd.h> 12059#endif 12060char *dagger[] = { "IFS=pwd", 0 }; 12061main() 12062{ 12063 char buffer[500]; 12064 extern char **environ; 12065 environ = dagger; 12066 return getcwd(buffer, 500) ? 0 : 1; 12067} 12068 12069_ACEOF 12070if ac_fn_c_try_run "$LINENO"; then : 12071 12072 vim_cv_getcwd_broken=no 12073 12074else 12075 12076 vim_cv_getcwd_broken=yes 12077 12078fi 12079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12080 conftest.$ac_objext conftest.beam conftest.$ac_ext 12081fi 12082 12083 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12086$as_echo "$vim_cv_getcwd_broken" >&6; } 12087 12088if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12089 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12090 12091fi 12092 12093for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12094 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12095 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12096 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12097 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12098 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12099 usleep utime utimes mblen ftruncate 12100do : 12101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12102ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12103if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12104 cat >>confdefs.h <<_ACEOF 12105#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12106_ACEOF 12107 12108fi 12109done 12110 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12112$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12113if ${ac_cv_sys_largefile_source+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 while :; do 12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119#include <sys/types.h> /* for off_t */ 12120 #include <stdio.h> 12121int 12122main () 12123{ 12124int (*fp) (FILE *, off_t, int) = fseeko; 12125 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12126 ; 12127 return 0; 12128} 12129_ACEOF 12130if ac_fn_c_try_link "$LINENO"; then : 12131 ac_cv_sys_largefile_source=no; break 12132fi 12133rm -f core conftest.err conftest.$ac_objext \ 12134 conftest$ac_exeext conftest.$ac_ext 12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136/* end confdefs.h. */ 12137#define _LARGEFILE_SOURCE 1 12138#include <sys/types.h> /* for off_t */ 12139 #include <stdio.h> 12140int 12141main () 12142{ 12143int (*fp) (FILE *, off_t, int) = fseeko; 12144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149if ac_fn_c_try_link "$LINENO"; then : 12150 ac_cv_sys_largefile_source=1; break 12151fi 12152rm -f core conftest.err conftest.$ac_objext \ 12153 conftest$ac_exeext conftest.$ac_ext 12154 ac_cv_sys_largefile_source=unknown 12155 break 12156done 12157fi 12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12159$as_echo "$ac_cv_sys_largefile_source" >&6; } 12160case $ac_cv_sys_largefile_source in #( 12161 no | unknown) ;; 12162 *) 12163cat >>confdefs.h <<_ACEOF 12164#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12165_ACEOF 12166;; 12167esac 12168rm -rf conftest* 12169 12170# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12171# in glibc 2.1.3, but that breaks too many other things. 12172# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12173if test $ac_cv_sys_largefile_source != unknown; then 12174 12175$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12176 12177fi 12178 12179 12180# Check whether --enable-largefile was given. 12181if test "${enable_largefile+set}" = set; then : 12182 enableval=$enable_largefile; 12183fi 12184 12185if test "$enable_largefile" != no; then 12186 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12188$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12189if ${ac_cv_sys_largefile_CC+:} false; then : 12190 $as_echo_n "(cached) " >&6 12191else 12192 ac_cv_sys_largefile_CC=no 12193 if test "$GCC" != yes; then 12194 ac_save_CC=$CC 12195 while :; do 12196 # IRIX 6.2 and later do not support large files by default, 12197 # so use the C compiler's -n32 option if that helps. 12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12199/* end confdefs.h. */ 12200#include <sys/types.h> 12201 /* Check that off_t can represent 2**63 - 1 correctly. 12202 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12203 since some C++ compilers masquerading as C compilers 12204 incorrectly reject 9223372036854775807. */ 12205#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12207 && LARGE_OFF_T % 2147483647 == 1) 12208 ? 1 : -1]; 12209int 12210main () 12211{ 12212 12213 ; 12214 return 0; 12215} 12216_ACEOF 12217 if ac_fn_c_try_compile "$LINENO"; then : 12218 break 12219fi 12220rm -f core conftest.err conftest.$ac_objext 12221 CC="$CC -n32" 12222 if ac_fn_c_try_compile "$LINENO"; then : 12223 ac_cv_sys_largefile_CC=' -n32'; break 12224fi 12225rm -f core conftest.err conftest.$ac_objext 12226 break 12227 done 12228 CC=$ac_save_CC 12229 rm -f conftest.$ac_ext 12230 fi 12231fi 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12233$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12234 if test "$ac_cv_sys_largefile_CC" != no; then 12235 CC=$CC$ac_cv_sys_largefile_CC 12236 fi 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12239$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12240if ${ac_cv_sys_file_offset_bits+:} false; then : 12241 $as_echo_n "(cached) " >&6 12242else 12243 while :; do 12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246#include <sys/types.h> 12247 /* Check that off_t can represent 2**63 - 1 correctly. 12248 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12249 since some C++ compilers masquerading as C compilers 12250 incorrectly reject 9223372036854775807. */ 12251#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12253 && LARGE_OFF_T % 2147483647 == 1) 12254 ? 1 : -1]; 12255int 12256main () 12257{ 12258 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263if ac_fn_c_try_compile "$LINENO"; then : 12264 ac_cv_sys_file_offset_bits=no; break 12265fi 12266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268/* end confdefs.h. */ 12269#define _FILE_OFFSET_BITS 64 12270#include <sys/types.h> 12271 /* Check that off_t can represent 2**63 - 1 correctly. 12272 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12273 since some C++ compilers masquerading as C compilers 12274 incorrectly reject 9223372036854775807. */ 12275#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12277 && LARGE_OFF_T % 2147483647 == 1) 12278 ? 1 : -1]; 12279int 12280main () 12281{ 12282 12283 ; 12284 return 0; 12285} 12286_ACEOF 12287if ac_fn_c_try_compile "$LINENO"; then : 12288 ac_cv_sys_file_offset_bits=64; break 12289fi 12290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12291 ac_cv_sys_file_offset_bits=unknown 12292 break 12293done 12294fi 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12296$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12297case $ac_cv_sys_file_offset_bits in #( 12298 no | unknown) ;; 12299 *) 12300cat >>confdefs.h <<_ACEOF 12301#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12302_ACEOF 12303;; 12304esac 12305rm -rf conftest* 12306 if test $ac_cv_sys_file_offset_bits = unknown; then 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12308$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12309if ${ac_cv_sys_large_files+:} false; then : 12310 $as_echo_n "(cached) " >&6 12311else 12312 while :; do 12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315#include <sys/types.h> 12316 /* Check that off_t can represent 2**63 - 1 correctly. 12317 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12318 since some C++ compilers masquerading as C compilers 12319 incorrectly reject 9223372036854775807. */ 12320#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12322 && LARGE_OFF_T % 2147483647 == 1) 12323 ? 1 : -1]; 12324int 12325main () 12326{ 12327 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332if ac_fn_c_try_compile "$LINENO"; then : 12333 ac_cv_sys_large_files=no; break 12334fi 12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12337/* end confdefs.h. */ 12338#define _LARGE_FILES 1 12339#include <sys/types.h> 12340 /* Check that off_t can represent 2**63 - 1 correctly. 12341 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12342 since some C++ compilers masquerading as C compilers 12343 incorrectly reject 9223372036854775807. */ 12344#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12346 && LARGE_OFF_T % 2147483647 == 1) 12347 ? 1 : -1]; 12348int 12349main () 12350{ 12351 12352 ; 12353 return 0; 12354} 12355_ACEOF 12356if ac_fn_c_try_compile "$LINENO"; then : 12357 ac_cv_sys_large_files=1; break 12358fi 12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12360 ac_cv_sys_large_files=unknown 12361 break 12362done 12363fi 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12365$as_echo "$ac_cv_sys_large_files" >&6; } 12366case $ac_cv_sys_large_files in #( 12367 no | unknown) ;; 12368 *) 12369cat >>confdefs.h <<_ACEOF 12370#define _LARGE_FILES $ac_cv_sys_large_files 12371_ACEOF 12372;; 12373esac 12374rm -rf conftest* 12375 fi 12376 12377 12378fi 12379 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12382$as_echo_n "checking for st_blksize... " >&6; } 12383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12384/* end confdefs.h. */ 12385#include <sys/types.h> 12386#include <sys/stat.h> 12387int 12388main () 12389{ 12390 struct stat st; 12391 int n; 12392 12393 stat("/", &st); 12394 n = (int)st.st_blksize; 12395 ; 12396 return 0; 12397} 12398_ACEOF 12399if ac_fn_c_try_compile "$LINENO"; then : 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12401$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12402 12403else 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405$as_echo "no" >&6; } 12406fi 12407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12408 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12410$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12411if ${vim_cv_stat_ignores_slash+:} false; then : 12412 $as_echo_n "(cached) " >&6 12413else 12414 12415 if test "$cross_compiling" = yes; then : 12416 12417 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12418 12419else 12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12421/* end confdefs.h. */ 12422 12423#include "confdefs.h" 12424#if STDC_HEADERS 12425# include <stdlib.h> 12426# include <stddef.h> 12427#endif 12428#include <sys/types.h> 12429#include <sys/stat.h> 12430main() {struct stat st; exit(stat("configure/", &st) != 0); } 12431 12432_ACEOF 12433if ac_fn_c_try_run "$LINENO"; then : 12434 12435 vim_cv_stat_ignores_slash=yes 12436 12437else 12438 12439 vim_cv_stat_ignores_slash=no 12440 12441fi 12442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12443 conftest.$ac_objext conftest.beam conftest.$ac_ext 12444fi 12445 12446 12447fi 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12449$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12450 12451if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12452 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12453 12454fi 12455 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12457$as_echo_n "checking for iconv_open()... " >&6; } 12458save_LIBS="$LIBS" 12459LIBS="$LIBS -liconv" 12460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461/* end confdefs.h. */ 12462 12463#ifdef HAVE_ICONV_H 12464# include <iconv.h> 12465#endif 12466 12467int 12468main () 12469{ 12470iconv_open("fr", "to"); 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475if ac_fn_c_try_link "$LINENO"; then : 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12477$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12478 12479else 12480 LIBS="$save_LIBS" 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12482/* end confdefs.h. */ 12483 12484#ifdef HAVE_ICONV_H 12485# include <iconv.h> 12486#endif 12487 12488int 12489main () 12490{ 12491iconv_open("fr", "to"); 12492 ; 12493 return 0; 12494} 12495_ACEOF 12496if ac_fn_c_try_link "$LINENO"; then : 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12498$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12499 12500else 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12502$as_echo "no" >&6; } 12503fi 12504rm -f core conftest.err conftest.$ac_objext \ 12505 conftest$ac_exeext conftest.$ac_ext 12506fi 12507rm -f core conftest.err conftest.$ac_objext \ 12508 conftest$ac_exeext conftest.$ac_ext 12509 12510 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12512$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515 12516#ifdef HAVE_LANGINFO_H 12517# include <langinfo.h> 12518#endif 12519 12520int 12521main () 12522{ 12523char *cs = nl_langinfo(CODESET); 12524 ; 12525 return 0; 12526} 12527_ACEOF 12528if ac_fn_c_try_link "$LINENO"; then : 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12530$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12531 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535fi 12536rm -f core conftest.err conftest.$ac_objext \ 12537 conftest$ac_exeext conftest.$ac_ext 12538 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12540$as_echo_n "checking for strtod in -lm... " >&6; } 12541if ${ac_cv_lib_m_strtod+:} false; then : 12542 $as_echo_n "(cached) " >&6 12543else 12544 ac_check_lib_save_LIBS=$LIBS 12545LIBS="-lm $LIBS" 12546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12547/* end confdefs.h. */ 12548 12549/* Override any GCC internal prototype to avoid an error. 12550 Use char because int might match the return type of a GCC 12551 builtin and then its argument prototype would still apply. */ 12552#ifdef __cplusplus 12553extern "C" 12554#endif 12555char strtod (); 12556int 12557main () 12558{ 12559return strtod (); 12560 ; 12561 return 0; 12562} 12563_ACEOF 12564if ac_fn_c_try_link "$LINENO"; then : 12565 ac_cv_lib_m_strtod=yes 12566else 12567 ac_cv_lib_m_strtod=no 12568fi 12569rm -f core conftest.err conftest.$ac_objext \ 12570 conftest$ac_exeext conftest.$ac_ext 12571LIBS=$ac_check_lib_save_LIBS 12572fi 12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12574$as_echo "$ac_cv_lib_m_strtod" >&6; } 12575if test "x$ac_cv_lib_m_strtod" = xyes; then : 12576 cat >>confdefs.h <<_ACEOF 12577#define HAVE_LIBM 1 12578_ACEOF 12579 12580 LIBS="-lm $LIBS" 12581 12582fi 12583 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12585$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588 12589#ifdef HAVE_MATH_H 12590# include <math.h> 12591#endif 12592#if STDC_HEADERS 12593# include <stdlib.h> 12594# include <stddef.h> 12595#endif 12596 12597int 12598main () 12599{ 12600char *s; double d; 12601 d = strtod("1.1", &s); 12602 d = fabs(1.11); 12603 d = ceil(1.11); 12604 d = floor(1.11); 12605 d = log10(1.11); 12606 d = pow(1.11, 2.22); 12607 d = sqrt(1.11); 12608 d = sin(1.11); 12609 d = cos(1.11); 12610 d = atan(1.11); 12611 12612 ; 12613 return 0; 12614} 12615_ACEOF 12616if ac_fn_c_try_link "$LINENO"; then : 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12618$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12619 12620else 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12622$as_echo "no" >&6; } 12623fi 12624rm -f core conftest.err conftest.$ac_objext \ 12625 conftest$ac_exeext conftest.$ac_ext 12626 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12628$as_echo_n "checking for isinf()... " >&6; } 12629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12630/* end confdefs.h. */ 12631 12632#ifdef HAVE_MATH_H 12633# include <math.h> 12634#endif 12635#if STDC_HEADERS 12636# include <stdlib.h> 12637# include <stddef.h> 12638#endif 12639 12640int 12641main () 12642{ 12643int r = isinf(1.11); 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_link "$LINENO"; then : 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12650$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12651 12652else 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654$as_echo "no" >&6; } 12655fi 12656rm -f core conftest.err conftest.$ac_objext \ 12657 conftest$ac_exeext conftest.$ac_ext 12658 12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12660$as_echo_n "checking for isnan()... " >&6; } 12661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12662/* end confdefs.h. */ 12663 12664#ifdef HAVE_MATH_H 12665# include <math.h> 12666#endif 12667#if STDC_HEADERS 12668# include <stdlib.h> 12669# include <stddef.h> 12670#endif 12671 12672int 12673main () 12674{ 12675int r = isnan(1.11); 12676 ; 12677 return 0; 12678} 12679_ACEOF 12680if ac_fn_c_try_link "$LINENO"; then : 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12682$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12683 12684else 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12686$as_echo "no" >&6; } 12687fi 12688rm -f core conftest.err conftest.$ac_objext \ 12689 conftest$ac_exeext conftest.$ac_ext 12690 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12692$as_echo_n "checking --disable-acl argument... " >&6; } 12693# Check whether --enable-acl was given. 12694if test "${enable_acl+set}" = set; then : 12695 enableval=$enable_acl; 12696else 12697 enable_acl="yes" 12698fi 12699 12700if test "$enable_acl" = "yes"; then 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12702$as_echo "no" >&6; } 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12704$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12705if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707else 12708 ac_check_lib_save_LIBS=$LIBS 12709LIBS="-lposix1e $LIBS" 12710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12711/* end confdefs.h. */ 12712 12713/* Override any GCC internal prototype to avoid an error. 12714 Use char because int might match the return type of a GCC 12715 builtin and then its argument prototype would still apply. */ 12716#ifdef __cplusplus 12717extern "C" 12718#endif 12719char acl_get_file (); 12720int 12721main () 12722{ 12723return acl_get_file (); 12724 ; 12725 return 0; 12726} 12727_ACEOF 12728if ac_fn_c_try_link "$LINENO"; then : 12729 ac_cv_lib_posix1e_acl_get_file=yes 12730else 12731 ac_cv_lib_posix1e_acl_get_file=no 12732fi 12733rm -f core conftest.err conftest.$ac_objext \ 12734 conftest$ac_exeext conftest.$ac_ext 12735LIBS=$ac_check_lib_save_LIBS 12736fi 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12738$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12739if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12740 LIBS="$LIBS -lposix1e" 12741else 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12743$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12744if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 ac_check_lib_save_LIBS=$LIBS 12748LIBS="-lacl $LIBS" 12749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750/* end confdefs.h. */ 12751 12752/* Override any GCC internal prototype to avoid an error. 12753 Use char because int might match the return type of a GCC 12754 builtin and then its argument prototype would still apply. */ 12755#ifdef __cplusplus 12756extern "C" 12757#endif 12758char acl_get_file (); 12759int 12760main () 12761{ 12762return acl_get_file (); 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 ac_cv_lib_acl_acl_get_file=yes 12769else 12770 ac_cv_lib_acl_acl_get_file=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774LIBS=$ac_check_lib_save_LIBS 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12777$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12778if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12779 LIBS="$LIBS -lacl" 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12781$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12782if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12783 $as_echo_n "(cached) " >&6 12784else 12785 ac_check_lib_save_LIBS=$LIBS 12786LIBS="-lattr $LIBS" 12787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12788/* end confdefs.h. */ 12789 12790/* Override any GCC internal prototype to avoid an error. 12791 Use char because int might match the return type of a GCC 12792 builtin and then its argument prototype would still apply. */ 12793#ifdef __cplusplus 12794extern "C" 12795#endif 12796char fgetxattr (); 12797int 12798main () 12799{ 12800return fgetxattr (); 12801 ; 12802 return 0; 12803} 12804_ACEOF 12805if ac_fn_c_try_link "$LINENO"; then : 12806 ac_cv_lib_attr_fgetxattr=yes 12807else 12808 ac_cv_lib_attr_fgetxattr=no 12809fi 12810rm -f core conftest.err conftest.$ac_objext \ 12811 conftest$ac_exeext conftest.$ac_ext 12812LIBS=$ac_check_lib_save_LIBS 12813fi 12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12815$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12816if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12817 LIBS="$LIBS -lattr" 12818fi 12819 12820fi 12821 12822fi 12823 12824 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12826$as_echo_n "checking for POSIX ACL support... " >&6; } 12827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12828/* end confdefs.h. */ 12829 12830#include <sys/types.h> 12831#ifdef HAVE_SYS_ACL_H 12832# include <sys/acl.h> 12833#endif 12834acl_t acl; 12835int 12836main () 12837{ 12838acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12839 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12840 acl_free(acl); 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_c_try_link "$LINENO"; then : 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12847$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12848 12849else 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12851$as_echo "no" >&6; } 12852fi 12853rm -f core conftest.err conftest.$ac_objext \ 12854 conftest$ac_exeext conftest.$ac_ext 12855 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12857$as_echo_n "checking for acl_get in -lsec... " >&6; } 12858if ${ac_cv_lib_sec_acl_get+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860else 12861 ac_check_lib_save_LIBS=$LIBS 12862LIBS="-lsec $LIBS" 12863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12864/* end confdefs.h. */ 12865 12866/* Override any GCC internal prototype to avoid an error. 12867 Use char because int might match the return type of a GCC 12868 builtin and then its argument prototype would still apply. */ 12869#ifdef __cplusplus 12870extern "C" 12871#endif 12872char acl_get (); 12873int 12874main () 12875{ 12876return acl_get (); 12877 ; 12878 return 0; 12879} 12880_ACEOF 12881if ac_fn_c_try_link "$LINENO"; then : 12882 ac_cv_lib_sec_acl_get=yes 12883else 12884 ac_cv_lib_sec_acl_get=no 12885fi 12886rm -f core conftest.err conftest.$ac_objext \ 12887 conftest$ac_exeext conftest.$ac_ext 12888LIBS=$ac_check_lib_save_LIBS 12889fi 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12891$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12892if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12893 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12894 12895else 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12897$as_echo_n "checking for Solaris ACL support... " >&6; } 12898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12899/* end confdefs.h. */ 12900 12901#ifdef HAVE_SYS_ACL_H 12902# include <sys/acl.h> 12903#endif 12904int 12905main () 12906{ 12907acl("foo", GETACLCNT, 0, NULL); 12908 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913if ac_fn_c_try_link "$LINENO"; then : 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12915$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12916 12917else 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919$as_echo "no" >&6; } 12920fi 12921rm -f core conftest.err conftest.$ac_objext \ 12922 conftest$ac_exeext conftest.$ac_ext 12923fi 12924 12925 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12927$as_echo_n "checking for AIX ACL support... " >&6; } 12928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930 12931#if STDC_HEADERS 12932# include <stdlib.h> 12933# include <stddef.h> 12934#endif 12935#ifdef HAVE_SYS_ACL_H 12936# include <sys/acl.h> 12937#endif 12938#ifdef HAVE_SYS_ACCESS_H 12939# include <sys/access.h> 12940#endif 12941#define _ALL_SOURCE 12942 12943#include <sys/stat.h> 12944 12945int aclsize; 12946struct acl *aclent; 12947int 12948main () 12949{ 12950aclsize = sizeof(struct acl); 12951 aclent = (void *)malloc(aclsize); 12952 statacl("foo", STX_NORMAL, aclent, aclsize); 12953 12954 ; 12955 return 0; 12956} 12957_ACEOF 12958if ac_fn_c_try_link "$LINENO"; then : 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12960$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12961 12962else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12964$as_echo "no" >&6; } 12965fi 12966rm -f core conftest.err conftest.$ac_objext \ 12967 conftest$ac_exeext conftest.$ac_ext 12968else 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12970$as_echo "yes" >&6; } 12971fi 12972 12973if test "x$GTK_CFLAGS" != "x"; then 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12975$as_echo_n "checking for pango_shape_full... " >&6; } 12976 ac_save_CFLAGS="$CFLAGS" 12977 ac_save_LIBS="$LIBS" 12978 CFLAGS="$CFLAGS $GTK_CFLAGS" 12979 LIBS="$LIBS $GTK_LIBS" 12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12981/* end confdefs.h. */ 12982#include <gtk/gtk.h> 12983int 12984main () 12985{ 12986 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12987 ; 12988 return 0; 12989} 12990_ACEOF 12991if ac_fn_c_try_link "$LINENO"; then : 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12993$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12994 12995else 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997$as_echo "no" >&6; } 12998fi 12999rm -f core conftest.err conftest.$ac_objext \ 13000 conftest$ac_exeext conftest.$ac_ext 13001 CFLAGS="$ac_save_CFLAGS" 13002 LIBS="$ac_save_LIBS" 13003fi 13004 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13006$as_echo_n "checking --disable-gpm argument... " >&6; } 13007# Check whether --enable-gpm was given. 13008if test "${enable_gpm+set}" = set; then : 13009 enableval=$enable_gpm; 13010else 13011 enable_gpm="yes" 13012fi 13013 13014 13015if test "$enable_gpm" = "yes"; then 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13017$as_echo "no" >&6; } 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13019$as_echo_n "checking for gpm... " >&6; } 13020if ${vi_cv_have_gpm+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 olibs="$LIBS" ; LIBS="-lgpm" 13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13025/* end confdefs.h. */ 13026#include <gpm.h> 13027 #include <linux/keyboard.h> 13028int 13029main () 13030{ 13031Gpm_GetLibVersion(NULL); 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036if ac_fn_c_try_link "$LINENO"; then : 13037 vi_cv_have_gpm=yes 13038else 13039 vi_cv_have_gpm=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext \ 13042 conftest$ac_exeext conftest.$ac_ext 13043 LIBS="$olibs" 13044 13045fi 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13047$as_echo "$vi_cv_have_gpm" >&6; } 13048 if test $vi_cv_have_gpm = yes; then 13049 LIBS="$LIBS -lgpm" 13050 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13051 13052 fi 13053else 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13055$as_echo "yes" >&6; } 13056fi 13057 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13059$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13060# Check whether --enable-sysmouse was given. 13061if test "${enable_sysmouse+set}" = set; then : 13062 enableval=$enable_sysmouse; 13063else 13064 enable_sysmouse="yes" 13065fi 13066 13067 13068if test "$enable_sysmouse" = "yes"; then 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13070$as_echo "no" >&6; } 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13072$as_echo_n "checking for sysmouse... " >&6; } 13073if ${vi_cv_have_sysmouse+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075else 13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13077/* end confdefs.h. */ 13078#include <sys/consio.h> 13079 #include <signal.h> 13080 #include <sys/fbio.h> 13081int 13082main () 13083{ 13084struct mouse_info mouse; 13085 mouse.operation = MOUSE_MODE; 13086 mouse.operation = MOUSE_SHOW; 13087 mouse.u.mode.mode = 0; 13088 mouse.u.mode.signal = SIGUSR2; 13089 ; 13090 return 0; 13091} 13092_ACEOF 13093if ac_fn_c_try_link "$LINENO"; then : 13094 vi_cv_have_sysmouse=yes 13095else 13096 vi_cv_have_sysmouse=no 13097fi 13098rm -f core conftest.err conftest.$ac_objext \ 13099 conftest$ac_exeext conftest.$ac_ext 13100 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13103$as_echo "$vi_cv_have_sysmouse" >&6; } 13104 if test $vi_cv_have_sysmouse = yes; then 13105 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13106 13107 fi 13108else 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13110$as_echo "yes" >&6; } 13111fi 13112 13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13114$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13116/* end confdefs.h. */ 13117#if HAVE_FCNTL_H 13118# include <fcntl.h> 13119#endif 13120int 13121main () 13122{ 13123 int flag = FD_CLOEXEC; 13124 ; 13125 return 0; 13126} 13127_ACEOF 13128if ac_fn_c_try_compile "$LINENO"; then : 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13130$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13131 13132else 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13134$as_echo "not usable" >&6; } 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13137 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13139$as_echo_n "checking for rename... " >&6; } 13140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142#include <stdio.h> 13143int 13144main () 13145{ 13146rename("this", "that") 13147 ; 13148 return 0; 13149} 13150_ACEOF 13151if ac_fn_c_try_link "$LINENO"; then : 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13153$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13154 13155else 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13157$as_echo "no" >&6; } 13158fi 13159rm -f core conftest.err conftest.$ac_objext \ 13160 conftest$ac_exeext conftest.$ac_ext 13161 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13163$as_echo_n "checking for sysctl... " >&6; } 13164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13165/* end confdefs.h. */ 13166#include <sys/types.h> 13167#include <sys/sysctl.h> 13168int 13169main () 13170{ 13171 int mib[2], r; 13172 size_t len; 13173 13174 mib[0] = CTL_HW; 13175 mib[1] = HW_USERMEM; 13176 len = sizeof(r); 13177 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13178 13179 ; 13180 return 0; 13181} 13182_ACEOF 13183if ac_fn_c_try_compile "$LINENO"; then : 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13185$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13186 13187else 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13189$as_echo "not usable" >&6; } 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13192 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13194$as_echo_n "checking for sysinfo... " >&6; } 13195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196/* end confdefs.h. */ 13197#include <sys/types.h> 13198#include <sys/sysinfo.h> 13199int 13200main () 13201{ 13202 struct sysinfo sinfo; 13203 int t; 13204 13205 (void)sysinfo(&sinfo); 13206 t = sinfo.totalram; 13207 13208 ; 13209 return 0; 13210} 13211_ACEOF 13212if ac_fn_c_try_compile "$LINENO"; then : 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13214$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13215 13216else 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13218$as_echo "not usable" >&6; } 13219fi 13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13221 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13223$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226#include <sys/types.h> 13227#include <sys/sysinfo.h> 13228int 13229main () 13230{ 13231 struct sysinfo sinfo; 13232 sinfo.mem_unit = 1; 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_compile "$LINENO"; then : 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13240$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13241 13242else 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13244$as_echo "no" >&6; } 13245fi 13246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13247 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13249$as_echo_n "checking for sysconf... " >&6; } 13250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252#include <unistd.h> 13253int 13254main () 13255{ 13256 (void)sysconf(_SC_PAGESIZE); 13257 (void)sysconf(_SC_PHYS_PAGES); 13258 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263if ac_fn_c_try_compile "$LINENO"; then : 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13265$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13266 13267else 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13269$as_echo "not usable" >&6; } 13270fi 13271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13272 13273# The cast to long int works around a bug in the HP C Compiler 13274# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13275# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13276# This bug is HP SR number 8606223364. 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13278$as_echo_n "checking size of int... " >&6; } 13279if ${ac_cv_sizeof_int+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13283 13284else 13285 if test "$ac_cv_type_int" = yes; then 13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13288as_fn_error 77 "cannot compute sizeof (int) 13289See \`config.log' for more details" "$LINENO" 5; } 13290 else 13291 ac_cv_sizeof_int=0 13292 fi 13293fi 13294 13295fi 13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13297$as_echo "$ac_cv_sizeof_int" >&6; } 13298 13299 13300 13301cat >>confdefs.h <<_ACEOF 13302#define SIZEOF_INT $ac_cv_sizeof_int 13303_ACEOF 13304 13305 13306# The cast to long int works around a bug in the HP C Compiler 13307# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13308# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13309# This bug is HP SR number 8606223364. 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13311$as_echo_n "checking size of long... " >&6; } 13312if ${ac_cv_sizeof_long+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13316 13317else 13318 if test "$ac_cv_type_long" = yes; then 13319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13321as_fn_error 77 "cannot compute sizeof (long) 13322See \`config.log' for more details" "$LINENO" 5; } 13323 else 13324 ac_cv_sizeof_long=0 13325 fi 13326fi 13327 13328fi 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13330$as_echo "$ac_cv_sizeof_long" >&6; } 13331 13332 13333 13334cat >>confdefs.h <<_ACEOF 13335#define SIZEOF_LONG $ac_cv_sizeof_long 13336_ACEOF 13337 13338 13339# The cast to long int works around a bug in the HP C Compiler 13340# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13341# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13342# This bug is HP SR number 8606223364. 13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13344$as_echo_n "checking size of time_t... " >&6; } 13345if ${ac_cv_sizeof_time_t+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347else 13348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13349 13350else 13351 if test "$ac_cv_type_time_t" = yes; then 13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13354as_fn_error 77 "cannot compute sizeof (time_t) 13355See \`config.log' for more details" "$LINENO" 5; } 13356 else 13357 ac_cv_sizeof_time_t=0 13358 fi 13359fi 13360 13361fi 13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13363$as_echo "$ac_cv_sizeof_time_t" >&6; } 13364 13365 13366 13367cat >>confdefs.h <<_ACEOF 13368#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13369_ACEOF 13370 13371 13372# The cast to long int works around a bug in the HP C Compiler 13373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13375# This bug is HP SR number 8606223364. 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13377$as_echo_n "checking size of off_t... " >&6; } 13378if ${ac_cv_sizeof_off_t+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13382 13383else 13384 if test "$ac_cv_type_off_t" = yes; then 13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13387as_fn_error 77 "cannot compute sizeof (off_t) 13388See \`config.log' for more details" "$LINENO" 5; } 13389 else 13390 ac_cv_sizeof_off_t=0 13391 fi 13392fi 13393 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13396$as_echo "$ac_cv_sizeof_off_t" >&6; } 13397 13398 13399 13400cat >>confdefs.h <<_ACEOF 13401#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13402_ACEOF 13403 13404 13405 13406cat >>confdefs.h <<_ACEOF 13407#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13408_ACEOF 13409 13410cat >>confdefs.h <<_ACEOF 13411#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13412_ACEOF 13413 13414 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13416$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13417if test "$cross_compiling" = yes; then : 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13419$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13420else 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422/* end confdefs.h. */ 13423 13424#ifdef HAVE_STDINT_H 13425# include <stdint.h> 13426#endif 13427#ifdef HAVE_INTTYPES_H 13428# include <inttypes.h> 13429#endif 13430main() { 13431 uint32_t nr1 = (uint32_t)-1; 13432 uint32_t nr2 = (uint32_t)0xffffffffUL; 13433 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13434 exit(0); 13435} 13436_ACEOF 13437if ac_fn_c_try_run "$LINENO"; then : 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13439$as_echo "ok" >&6; } 13440else 13441 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13442fi 13443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13444 conftest.$ac_objext conftest.beam conftest.$ac_ext 13445fi 13446 13447 13448 13449bcopy_test_prog=' 13450#include "confdefs.h" 13451#ifdef HAVE_STRING_H 13452# include <string.h> 13453#endif 13454#if STDC_HEADERS 13455# include <stdlib.h> 13456# include <stddef.h> 13457#endif 13458main() { 13459 char buf[10]; 13460 strcpy(buf, "abcdefghi"); 13461 mch_memmove(buf, buf + 2, 3); 13462 if (strncmp(buf, "ababcf", 6)) 13463 exit(1); 13464 strcpy(buf, "abcdefghi"); 13465 mch_memmove(buf + 2, buf, 3); 13466 if (strncmp(buf, "cdedef", 6)) 13467 exit(1); 13468 exit(0); /* libc version works properly. */ 13469}' 13470 13471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13472$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13473if ${vim_cv_memmove_handles_overlap+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 13477 if test "$cross_compiling" = yes; then : 13478 13479 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13480 13481else 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13485_ACEOF 13486if ac_fn_c_try_run "$LINENO"; then : 13487 13488 vim_cv_memmove_handles_overlap=yes 13489 13490else 13491 13492 vim_cv_memmove_handles_overlap=no 13493 13494fi 13495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13496 conftest.$ac_objext conftest.beam conftest.$ac_ext 13497fi 13498 13499 13500fi 13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13502$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13503 13504if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13505 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13506 13507else 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13509$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13510if ${vim_cv_bcopy_handles_overlap+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 13514 if test "$cross_compiling" = yes; then : 13515 13516 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13517 13518else 13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13522_ACEOF 13523if ac_fn_c_try_run "$LINENO"; then : 13524 13525 vim_cv_bcopy_handles_overlap=yes 13526 13527else 13528 13529 vim_cv_bcopy_handles_overlap=no 13530 13531fi 13532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13533 conftest.$ac_objext conftest.beam conftest.$ac_ext 13534fi 13535 13536 13537fi 13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13539$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13540 13541 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13542 $as_echo "#define USEBCOPY 1" >>confdefs.h 13543 13544 else 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13546$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13547if ${vim_cv_memcpy_handles_overlap+:} false; then : 13548 $as_echo_n "(cached) " >&6 13549else 13550 13551 if test "$cross_compiling" = yes; then : 13552 13553 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13554 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13559_ACEOF 13560if ac_fn_c_try_run "$LINENO"; then : 13561 13562 vim_cv_memcpy_handles_overlap=yes 13563 13564else 13565 13566 vim_cv_memcpy_handles_overlap=no 13567 13568fi 13569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13570 conftest.$ac_objext conftest.beam conftest.$ac_ext 13571fi 13572 13573 13574fi 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13576$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13577 13578 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13579 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13580 13581 fi 13582 fi 13583fi 13584 13585 13586if test "x$with_x" = "xyes"; then 13587 cflags_save=$CFLAGS 13588 libs_save=$LIBS 13589 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13590 CFLAGS="$CFLAGS $X_CFLAGS" 13591 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13593$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13595/* end confdefs.h. */ 13596#include <X11/Xlocale.h> 13597int 13598main () 13599{ 13600 13601 ; 13602 return 0; 13603} 13604_ACEOF 13605if ac_fn_c_try_compile "$LINENO"; then : 13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608 13609/* Override any GCC internal prototype to avoid an error. 13610 Use char because int might match the return type of a GCC 13611 builtin and then its argument prototype would still apply. */ 13612#ifdef __cplusplus 13613extern "C" 13614#endif 13615char _Xsetlocale (); 13616int 13617main () 13618{ 13619return _Xsetlocale (); 13620 ; 13621 return 0; 13622} 13623_ACEOF 13624if ac_fn_c_try_link "$LINENO"; then : 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13626$as_echo "yes" >&6; } 13627 $as_echo "#define X_LOCALE 1" >>confdefs.h 13628 13629else 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13631$as_echo "no" >&6; } 13632fi 13633rm -f core conftest.err conftest.$ac_objext \ 13634 conftest$ac_exeext conftest.$ac_ext 13635else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13637$as_echo "no" >&6; } 13638fi 13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13640 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13642$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13644/* end confdefs.h. */ 13645 13646/* Override any GCC internal prototype to avoid an error. 13647 Use char because int might match the return type of a GCC 13648 builtin and then its argument prototype would still apply. */ 13649#ifdef __cplusplus 13650extern "C" 13651#endif 13652char Xutf8SetWMProperties (); 13653int 13654main () 13655{ 13656return Xutf8SetWMProperties (); 13657 ; 13658 return 0; 13659} 13660_ACEOF 13661if ac_fn_c_try_link "$LINENO"; then : 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13663$as_echo "yes" >&6; } 13664 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13665 13666else 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13668$as_echo "no" >&6; } 13669fi 13670rm -f core conftest.err conftest.$ac_objext \ 13671 conftest$ac_exeext conftest.$ac_ext 13672 13673 CFLAGS=$cflags_save 13674 LIBS=$libs_save 13675fi 13676 13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13678$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13679if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13680 $as_echo_n "(cached) " >&6 13681else 13682 ac_check_lib_save_LIBS=$LIBS 13683LIBS="-lxpg4 $LIBS" 13684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685/* end confdefs.h. */ 13686 13687/* Override any GCC internal prototype to avoid an error. 13688 Use char because int might match the return type of a GCC 13689 builtin and then its argument prototype would still apply. */ 13690#ifdef __cplusplus 13691extern "C" 13692#endif 13693char _xpg4_setrunelocale (); 13694int 13695main () 13696{ 13697return _xpg4_setrunelocale (); 13698 ; 13699 return 0; 13700} 13701_ACEOF 13702if ac_fn_c_try_link "$LINENO"; then : 13703 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13704else 13705 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13706fi 13707rm -f core conftest.err conftest.$ac_objext \ 13708 conftest$ac_exeext conftest.$ac_ext 13709LIBS=$ac_check_lib_save_LIBS 13710fi 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13712$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13713if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13714 LIBS="$LIBS -lxpg4" 13715fi 13716 13717 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13719$as_echo_n "checking how to create tags... " >&6; } 13720test -f tags && mv tags tags.save 13721if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13722 TAGPRG="ctags -I INIT+ --fields=+S" 13723elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13724 TAGPRG="exctags -I INIT+ --fields=+S" 13725elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13726 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13727else 13728 TAGPRG="ctags" 13729 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13730 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13731 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13732 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13733 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13734 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13735 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13736fi 13737test -f tags.save && mv tags.save tags 13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13739$as_echo "$TAGPRG" >&6; } 13740 13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13742$as_echo_n "checking how to run man with a section nr... " >&6; } 13743MANDEF="man" 13744(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13746$as_echo "$MANDEF" >&6; } 13747if test "$MANDEF" = "man -s"; then 13748 $as_echo "#define USEMAN_S 1" >>confdefs.h 13749 13750fi 13751 13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13753$as_echo_n "checking --disable-nls argument... " >&6; } 13754# Check whether --enable-nls was given. 13755if test "${enable_nls+set}" = set; then : 13756 enableval=$enable_nls; 13757else 13758 enable_nls="yes" 13759fi 13760 13761 13762if test "$enable_nls" = "yes"; then 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13764$as_echo "no" >&6; } 13765 13766 INSTALL_LANGS=install-languages 13767 13768 INSTALL_TOOL_LANGS=install-tool-languages 13769 13770 13771 # Extract the first word of "msgfmt", so it can be a program name with args. 13772set dummy msgfmt; ac_word=$2 13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13774$as_echo_n "checking for $ac_word... " >&6; } 13775if ${ac_cv_prog_MSGFMT+:} false; then : 13776 $as_echo_n "(cached) " >&6 13777else 13778 if test -n "$MSGFMT"; then 13779 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13780else 13781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13782for as_dir in $PATH 13783do 13784 IFS=$as_save_IFS 13785 test -z "$as_dir" && as_dir=. 13786 for ac_exec_ext in '' $ac_executable_extensions; do 13787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13788 ac_cv_prog_MSGFMT="msgfmt" 13789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13790 break 2 13791 fi 13792done 13793 done 13794IFS=$as_save_IFS 13795 13796fi 13797fi 13798MSGFMT=$ac_cv_prog_MSGFMT 13799if test -n "$MSGFMT"; then 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13801$as_echo "$MSGFMT" >&6; } 13802else 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13804$as_echo "no" >&6; } 13805fi 13806 13807 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13809$as_echo_n "checking for NLS... " >&6; } 13810 if test -f po/Makefile; then 13811 have_gettext="no" 13812 if test -n "$MSGFMT"; then 13813 olibs=$LIBS 13814 LIBS="" 13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13816/* end confdefs.h. */ 13817#include <libintl.h> 13818int 13819main () 13820{ 13821gettext("Test"); 13822 ; 13823 return 0; 13824} 13825_ACEOF 13826if ac_fn_c_try_link "$LINENO"; then : 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13828$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13829else 13830 LIBS="-lintl" 13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13832/* end confdefs.h. */ 13833#include <libintl.h> 13834int 13835main () 13836{ 13837gettext("Test"); 13838 ; 13839 return 0; 13840} 13841_ACEOF 13842if ac_fn_c_try_link "$LINENO"; then : 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13844$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13845 LIBS="$olibs -lintl" 13846else 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13848$as_echo "gettext() doesn't work" >&6; }; 13849 LIBS=$olibs 13850fi 13851rm -f core conftest.err conftest.$ac_objext \ 13852 conftest$ac_exeext conftest.$ac_ext 13853fi 13854rm -f core conftest.err conftest.$ac_objext \ 13855 conftest$ac_exeext conftest.$ac_ext 13856 else 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13858$as_echo "msgfmt not found - disabled" >&6; }; 13859 fi 13860 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13861 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13862 13863 MAKEMO=yes 13864 13865 for ac_func in bind_textdomain_codeset 13866do : 13867 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13868if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13869 cat >>confdefs.h <<_ACEOF 13870#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13871_ACEOF 13872 13873fi 13874done 13875 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13877$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13879/* end confdefs.h. */ 13880#include <libintl.h> 13881 extern int _nl_msg_cat_cntr; 13882int 13883main () 13884{ 13885++_nl_msg_cat_cntr; 13886 ; 13887 return 0; 13888} 13889_ACEOF 13890if ac_fn_c_try_link "$LINENO"; then : 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13892$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13893 13894else 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13896$as_echo "no" >&6; } 13897fi 13898rm -f core conftest.err conftest.$ac_objext \ 13899 conftest$ac_exeext conftest.$ac_ext 13900 fi 13901 else 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13903$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13904 fi 13905else 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13907$as_echo "yes" >&6; } 13908fi 13909 13910ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13911if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13912 DLL=dlfcn.h 13913else 13914 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13915if test "x$ac_cv_header_dl_h" = xyes; then : 13916 DLL=dl.h 13917fi 13918 13919 13920fi 13921 13922 13923if test x${DLL} = xdlfcn.h; then 13924 13925$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13926 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13928$as_echo_n "checking for dlopen()... " >&6; } 13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930/* end confdefs.h. */ 13931 13932int 13933main () 13934{ 13935 13936 extern void* dlopen(); 13937 dlopen(); 13938 13939 ; 13940 return 0; 13941} 13942_ACEOF 13943if ac_fn_c_try_link "$LINENO"; then : 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13945$as_echo "yes" >&6; }; 13946 13947$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13948 13949else 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13951$as_echo "no" >&6; }; 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13953$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13954 olibs=$LIBS 13955 LIBS="$LIBS -ldl" 13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13957/* end confdefs.h. */ 13958 13959int 13960main () 13961{ 13962 13963 extern void* dlopen(); 13964 dlopen(); 13965 13966 ; 13967 return 0; 13968} 13969_ACEOF 13970if ac_fn_c_try_link "$LINENO"; then : 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13972$as_echo "yes" >&6; }; 13973 13974$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13975 13976else 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13978$as_echo "no" >&6; }; 13979 LIBS=$olibs 13980fi 13981rm -f core conftest.err conftest.$ac_objext \ 13982 conftest$ac_exeext conftest.$ac_ext 13983fi 13984rm -f core conftest.err conftest.$ac_objext \ 13985 conftest$ac_exeext conftest.$ac_ext 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13987$as_echo_n "checking for dlsym()... " >&6; } 13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989/* end confdefs.h. */ 13990 13991int 13992main () 13993{ 13994 13995 extern void* dlsym(); 13996 dlsym(); 13997 13998 ; 13999 return 0; 14000} 14001_ACEOF 14002if ac_fn_c_try_link "$LINENO"; then : 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14004$as_echo "yes" >&6; }; 14005 14006$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14007 14008else 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14010$as_echo "no" >&6; }; 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14012$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14013 olibs=$LIBS 14014 LIBS="$LIBS -ldl" 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017 14018int 14019main () 14020{ 14021 14022 extern void* dlsym(); 14023 dlsym(); 14024 14025 ; 14026 return 0; 14027} 14028_ACEOF 14029if ac_fn_c_try_link "$LINENO"; then : 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14031$as_echo "yes" >&6; }; 14032 14033$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14034 14035else 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14037$as_echo "no" >&6; }; 14038 LIBS=$olibs 14039fi 14040rm -f core conftest.err conftest.$ac_objext \ 14041 conftest$ac_exeext conftest.$ac_ext 14042fi 14043rm -f core conftest.err conftest.$ac_objext \ 14044 conftest$ac_exeext conftest.$ac_ext 14045elif test x${DLL} = xdl.h; then 14046 14047$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14048 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14050$as_echo_n "checking for shl_load()... " >&6; } 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053 14054int 14055main () 14056{ 14057 14058 extern void* shl_load(); 14059 shl_load(); 14060 14061 ; 14062 return 0; 14063} 14064_ACEOF 14065if ac_fn_c_try_link "$LINENO"; then : 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14067$as_echo "yes" >&6; }; 14068 14069$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14070 14071else 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14073$as_echo "no" >&6; }; 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14075$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14076 olibs=$LIBS 14077 LIBS="$LIBS -ldld" 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080 14081int 14082main () 14083{ 14084 14085 extern void* shl_load(); 14086 shl_load(); 14087 14088 ; 14089 return 0; 14090} 14091_ACEOF 14092if ac_fn_c_try_link "$LINENO"; then : 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14094$as_echo "yes" >&6; }; 14095 14096$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14097 14098else 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14100$as_echo "no" >&6; }; 14101 LIBS=$olibs 14102fi 14103rm -f core conftest.err conftest.$ac_objext \ 14104 conftest$ac_exeext conftest.$ac_ext 14105fi 14106rm -f core conftest.err conftest.$ac_objext \ 14107 conftest$ac_exeext conftest.$ac_ext 14108fi 14109for ac_header in setjmp.h 14110do : 14111 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14112if test "x$ac_cv_header_setjmp_h" = xyes; then : 14113 cat >>confdefs.h <<_ACEOF 14114#define HAVE_SETJMP_H 1 14115_ACEOF 14116 14117fi 14118 14119done 14120 14121 14122if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14123 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14124 LIBS=`echo $LIBS | sed s/-ldl//` 14125 PERL_LIBS="$PERL_LIBS -ldl" 14126 fi 14127fi 14128 14129if test "$MACOS_X" = "yes"; then 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14131$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14132 if test "$GUITYPE" = "CARBONGUI"; then 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14134$as_echo "yes, we need Carbon" >&6; } 14135 LIBS="$LIBS -framework Carbon" 14136 elif test "$MACOS_X_DARWIN" = "yes"; then 14137 if test "$features" = "tiny"; then 14138 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14139 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14140 if test "$enable_multibyte" = "yes"; then 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14142$as_echo "yes, we need CoreServices" >&6; } 14143 LIBS="$LIBS -framework CoreServices" 14144 else 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14146$as_echo "no" >&6; } 14147 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'` 14148 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'` 14149 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'` 14150 fi 14151 else 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14153$as_echo "yes, we need AppKit" >&6; } 14154 LIBS="$LIBS -framework AppKit" 14155 if test "$features" = "small" -a "$enable_multibyte" = "no"; then 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5 14157$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;} 14158 enable_multibyte=yes 14159 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 14160 14161 fi 14162 fi 14163 else 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14165$as_echo "no" >&6; } 14166 fi 14167fi 14168if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14169 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14170fi 14171 14172DEPEND_CFLAGS_FILTER= 14173if test "$GCC" = yes; then 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14175$as_echo_n "checking for GCC 3 or later... " >&6; } 14176 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14177 if test "$gccmajor" -gt "2"; then 14178 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14180$as_echo "yes" >&6; } 14181 else 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14183$as_echo "no" >&6; } 14184 fi 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14186$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14187 if test "$gccmajor" -gt "3"; then 14188 CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14190$as_echo "yes" >&6; } 14191 else 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193$as_echo "no" >&6; } 14194 fi 14195fi 14196 14197 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14199$as_echo_n "checking linker --as-needed support... " >&6; } 14200LINK_AS_NEEDED= 14201# Check if linker supports --as-needed and --no-as-needed options 14202if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14203 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14204 LINK_AS_NEEDED=yes 14205fi 14206if test "$LINK_AS_NEEDED" = yes; then 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14208$as_echo "yes" >&6; } 14209else 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14211$as_echo "no" >&6; } 14212fi 14213 14214 14215# IBM z/OS reset CFLAGS for config.mk 14216if test "$zOSUnix" = "yes"; then 14217 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14218fi 14219 14220ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14221 14222cat >confcache <<\_ACEOF 14223# This file is a shell script that caches the results of configure 14224# tests run on this system so they can be shared between configure 14225# scripts and configure runs, see configure's option --config-cache. 14226# It is not useful on other systems. If it contains results you don't 14227# want to keep, you may remove or edit it. 14228# 14229# config.status only pays attention to the cache file if you give it 14230# the --recheck option to rerun configure. 14231# 14232# `ac_cv_env_foo' variables (set or unset) will be overridden when 14233# loading this file, other *unset* `ac_cv_foo' will be assigned the 14234# following values. 14235 14236_ACEOF 14237 14238# The following way of writing the cache mishandles newlines in values, 14239# but we know of no workaround that is simple, portable, and efficient. 14240# So, we kill variables containing newlines. 14241# Ultrix sh set writes to stderr and can't be redirected directly, 14242# and sets the high bit in the cache file unless we assign to the vars. 14243( 14244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14245 eval ac_val=\$$ac_var 14246 case $ac_val in #( 14247 *${as_nl}*) 14248 case $ac_var in #( 14249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14251 esac 14252 case $ac_var in #( 14253 _ | IFS | as_nl) ;; #( 14254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14255 *) { eval $ac_var=; unset $ac_var;} ;; 14256 esac ;; 14257 esac 14258 done 14259 14260 (set) 2>&1 | 14261 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14262 *${as_nl}ac_space=\ *) 14263 # `set' does not quote correctly, so add quotes: double-quote 14264 # substitution turns \\\\ into \\, and sed turns \\ into \. 14265 sed -n \ 14266 "s/'/'\\\\''/g; 14267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14268 ;; #( 14269 *) 14270 # `set' quotes correctly as required by POSIX, so do not add quotes. 14271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14272 ;; 14273 esac | 14274 sort 14275) | 14276 sed ' 14277 /^ac_cv_env_/b end 14278 t clear 14279 :clear 14280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14281 t end 14282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14283 :end' >>confcache 14284if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14285 if test -w "$cache_file"; then 14286 if test "x$cache_file" != "x/dev/null"; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14288$as_echo "$as_me: updating cache $cache_file" >&6;} 14289 if test ! -f "$cache_file" || test -h "$cache_file"; then 14290 cat confcache >"$cache_file" 14291 else 14292 case $cache_file in #( 14293 */* | ?:*) 14294 mv -f confcache "$cache_file"$$ && 14295 mv -f "$cache_file"$$ "$cache_file" ;; #( 14296 *) 14297 mv -f confcache "$cache_file" ;; 14298 esac 14299 fi 14300 fi 14301 else 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14303$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14304 fi 14305fi 14306rm -f confcache 14307 14308test "x$prefix" = xNONE && prefix=$ac_default_prefix 14309# Let make expand exec_prefix. 14310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14311 14312DEFS=-DHAVE_CONFIG_H 14313 14314ac_libobjs= 14315ac_ltlibobjs= 14316U= 14317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14318 # 1. Remove the extension, and $U if already installed. 14319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14322 # will be set to the directory where LIBOBJS objects are built. 14323 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14324 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14325done 14326LIBOBJS=$ac_libobjs 14327 14328LTLIBOBJS=$ac_ltlibobjs 14329 14330 14331 14332 14333: "${CONFIG_STATUS=./config.status}" 14334ac_write_fail=0 14335ac_clean_files_save=$ac_clean_files 14336ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14338$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14339as_write_fail=0 14340cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14341#! $SHELL 14342# Generated by $as_me. 14343# Run this file to recreate the current configuration. 14344# Compiler output produced by configure, useful for debugging 14345# configure, is in config.log if it exists. 14346 14347debug=false 14348ac_cs_recheck=false 14349ac_cs_silent=false 14350 14351SHELL=\${CONFIG_SHELL-$SHELL} 14352export SHELL 14353_ASEOF 14354cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14355## -------------------- ## 14356## M4sh Initialization. ## 14357## -------------------- ## 14358 14359# Be more Bourne compatible 14360DUALCASE=1; export DUALCASE # for MKS sh 14361if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14362 emulate sh 14363 NULLCMD=: 14364 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14365 # is contrary to our usage. Disable this feature. 14366 alias -g '${1+"$@"}'='"$@"' 14367 setopt NO_GLOB_SUBST 14368else 14369 case `(set -o) 2>/dev/null` in #( 14370 *posix*) : 14371 set -o posix ;; #( 14372 *) : 14373 ;; 14374esac 14375fi 14376 14377 14378as_nl=' 14379' 14380export as_nl 14381# Printing a long string crashes Solaris 7 /usr/bin/printf. 14382as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14383as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14384as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14385# Prefer a ksh shell builtin over an external printf program on Solaris, 14386# but without wasting forks for bash or zsh. 14387if test -z "$BASH_VERSION$ZSH_VERSION" \ 14388 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14389 as_echo='print -r --' 14390 as_echo_n='print -rn --' 14391elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14392 as_echo='printf %s\n' 14393 as_echo_n='printf %s' 14394else 14395 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14396 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14397 as_echo_n='/usr/ucb/echo -n' 14398 else 14399 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14400 as_echo_n_body='eval 14401 arg=$1; 14402 case $arg in #( 14403 *"$as_nl"*) 14404 expr "X$arg" : "X\\(.*\\)$as_nl"; 14405 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14406 esac; 14407 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14408 ' 14409 export as_echo_n_body 14410 as_echo_n='sh -c $as_echo_n_body as_echo' 14411 fi 14412 export as_echo_body 14413 as_echo='sh -c $as_echo_body as_echo' 14414fi 14415 14416# The user is always right. 14417if test "${PATH_SEPARATOR+set}" != set; then 14418 PATH_SEPARATOR=: 14419 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14420 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14421 PATH_SEPARATOR=';' 14422 } 14423fi 14424 14425 14426# IFS 14427# We need space, tab and new line, in precisely that order. Quoting is 14428# there to prevent editors from complaining about space-tab. 14429# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14430# splitting by setting IFS to empty value.) 14431IFS=" "" $as_nl" 14432 14433# Find who we are. Look in the path if we contain no directory separator. 14434as_myself= 14435case $0 in #(( 14436 *[\\/]* ) as_myself=$0 ;; 14437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14438for as_dir in $PATH 14439do 14440 IFS=$as_save_IFS 14441 test -z "$as_dir" && as_dir=. 14442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14443 done 14444IFS=$as_save_IFS 14445 14446 ;; 14447esac 14448# We did not find ourselves, most probably we were run as `sh COMMAND' 14449# in which case we are not to be found in the path. 14450if test "x$as_myself" = x; then 14451 as_myself=$0 14452fi 14453if test ! -f "$as_myself"; then 14454 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14455 exit 1 14456fi 14457 14458# Unset variables that we do not need and which cause bugs (e.g. in 14459# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14460# suppresses any "Segmentation fault" message there. '((' could 14461# trigger a bug in pdksh 5.2.14. 14462for as_var in BASH_ENV ENV MAIL MAILPATH 14463do eval test x\${$as_var+set} = xset \ 14464 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14465done 14466PS1='$ ' 14467PS2='> ' 14468PS4='+ ' 14469 14470# NLS nuisances. 14471LC_ALL=C 14472export LC_ALL 14473LANGUAGE=C 14474export LANGUAGE 14475 14476# CDPATH. 14477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14478 14479 14480# as_fn_error STATUS ERROR [LINENO LOG_FD] 14481# ---------------------------------------- 14482# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14483# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14484# script with STATUS, using 1 if that was 0. 14485as_fn_error () 14486{ 14487 as_status=$1; test $as_status -eq 0 && as_status=1 14488 if test "$4"; then 14489 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14490 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14491 fi 14492 $as_echo "$as_me: error: $2" >&2 14493 as_fn_exit $as_status 14494} # as_fn_error 14495 14496 14497# as_fn_set_status STATUS 14498# ----------------------- 14499# Set $? to STATUS, without forking. 14500as_fn_set_status () 14501{ 14502 return $1 14503} # as_fn_set_status 14504 14505# as_fn_exit STATUS 14506# ----------------- 14507# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14508as_fn_exit () 14509{ 14510 set +e 14511 as_fn_set_status $1 14512 exit $1 14513} # as_fn_exit 14514 14515# as_fn_unset VAR 14516# --------------- 14517# Portably unset VAR. 14518as_fn_unset () 14519{ 14520 { eval $1=; unset $1;} 14521} 14522as_unset=as_fn_unset 14523# as_fn_append VAR VALUE 14524# ---------------------- 14525# Append the text in VALUE to the end of the definition contained in VAR. Take 14526# advantage of any shell optimizations that allow amortized linear growth over 14527# repeated appends, instead of the typical quadratic growth present in naive 14528# implementations. 14529if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14530 eval 'as_fn_append () 14531 { 14532 eval $1+=\$2 14533 }' 14534else 14535 as_fn_append () 14536 { 14537 eval $1=\$$1\$2 14538 } 14539fi # as_fn_append 14540 14541# as_fn_arith ARG... 14542# ------------------ 14543# Perform arithmetic evaluation on the ARGs, and store the result in the 14544# global $as_val. Take advantage of shells that can avoid forks. The arguments 14545# must be portable across $(()) and expr. 14546if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14547 eval 'as_fn_arith () 14548 { 14549 as_val=$(( $* )) 14550 }' 14551else 14552 as_fn_arith () 14553 { 14554 as_val=`expr "$@" || test $? -eq 1` 14555 } 14556fi # as_fn_arith 14557 14558 14559if expr a : '\(a\)' >/dev/null 2>&1 && 14560 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14561 as_expr=expr 14562else 14563 as_expr=false 14564fi 14565 14566if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14567 as_basename=basename 14568else 14569 as_basename=false 14570fi 14571 14572if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14573 as_dirname=dirname 14574else 14575 as_dirname=false 14576fi 14577 14578as_me=`$as_basename -- "$0" || 14579$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14580 X"$0" : 'X\(//\)$' \| \ 14581 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14582$as_echo X/"$0" | 14583 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14584 s//\1/ 14585 q 14586 } 14587 /^X\/\(\/\/\)$/{ 14588 s//\1/ 14589 q 14590 } 14591 /^X\/\(\/\).*/{ 14592 s//\1/ 14593 q 14594 } 14595 s/.*/./; q'` 14596 14597# Avoid depending upon Character Ranges. 14598as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14599as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14600as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14601as_cr_digits='0123456789' 14602as_cr_alnum=$as_cr_Letters$as_cr_digits 14603 14604ECHO_C= ECHO_N= ECHO_T= 14605case `echo -n x` in #((((( 14606-n*) 14607 case `echo 'xy\c'` in 14608 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14609 xy) ECHO_C='\c';; 14610 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14611 ECHO_T=' ';; 14612 esac;; 14613*) 14614 ECHO_N='-n';; 14615esac 14616 14617rm -f conf$$ conf$$.exe conf$$.file 14618if test -d conf$$.dir; then 14619 rm -f conf$$.dir/conf$$.file 14620else 14621 rm -f conf$$.dir 14622 mkdir conf$$.dir 2>/dev/null 14623fi 14624if (echo >conf$$.file) 2>/dev/null; then 14625 if ln -s conf$$.file conf$$ 2>/dev/null; then 14626 as_ln_s='ln -s' 14627 # ... but there are two gotchas: 14628 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14629 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14630 # In both cases, we have to default to `cp -pR'. 14631 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14632 as_ln_s='cp -pR' 14633 elif ln conf$$.file conf$$ 2>/dev/null; then 14634 as_ln_s=ln 14635 else 14636 as_ln_s='cp -pR' 14637 fi 14638else 14639 as_ln_s='cp -pR' 14640fi 14641rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14642rmdir conf$$.dir 2>/dev/null 14643 14644 14645# as_fn_mkdir_p 14646# ------------- 14647# Create "$as_dir" as a directory, including parents if necessary. 14648as_fn_mkdir_p () 14649{ 14650 14651 case $as_dir in #( 14652 -*) as_dir=./$as_dir;; 14653 esac 14654 test -d "$as_dir" || eval $as_mkdir_p || { 14655 as_dirs= 14656 while :; do 14657 case $as_dir in #( 14658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14659 *) as_qdir=$as_dir;; 14660 esac 14661 as_dirs="'$as_qdir' $as_dirs" 14662 as_dir=`$as_dirname -- "$as_dir" || 14663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14664 X"$as_dir" : 'X\(//\)[^/]' \| \ 14665 X"$as_dir" : 'X\(//\)$' \| \ 14666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14667$as_echo X"$as_dir" | 14668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14669 s//\1/ 14670 q 14671 } 14672 /^X\(\/\/\)[^/].*/{ 14673 s//\1/ 14674 q 14675 } 14676 /^X\(\/\/\)$/{ 14677 s//\1/ 14678 q 14679 } 14680 /^X\(\/\).*/{ 14681 s//\1/ 14682 q 14683 } 14684 s/.*/./; q'` 14685 test -d "$as_dir" && break 14686 done 14687 test -z "$as_dirs" || eval "mkdir $as_dirs" 14688 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14689 14690 14691} # as_fn_mkdir_p 14692if mkdir -p . 2>/dev/null; then 14693 as_mkdir_p='mkdir -p "$as_dir"' 14694else 14695 test -d ./-p && rmdir ./-p 14696 as_mkdir_p=false 14697fi 14698 14699 14700# as_fn_executable_p FILE 14701# ----------------------- 14702# Test if FILE is an executable regular file. 14703as_fn_executable_p () 14704{ 14705 test -f "$1" && test -x "$1" 14706} # as_fn_executable_p 14707as_test_x='test -x' 14708as_executable_p=as_fn_executable_p 14709 14710# Sed expression to map a string onto a valid CPP name. 14711as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14712 14713# Sed expression to map a string onto a valid variable name. 14714as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14715 14716 14717exec 6>&1 14718## ----------------------------------- ## 14719## Main body of $CONFIG_STATUS script. ## 14720## ----------------------------------- ## 14721_ASEOF 14722test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14723 14724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14725# Save the log message, to keep $0 and so on meaningful, and to 14726# report actual input values of CONFIG_FILES etc. instead of their 14727# values after options handling. 14728ac_log=" 14729This file was extended by $as_me, which was 14730generated by GNU Autoconf 2.69. Invocation command line was 14731 14732 CONFIG_FILES = $CONFIG_FILES 14733 CONFIG_HEADERS = $CONFIG_HEADERS 14734 CONFIG_LINKS = $CONFIG_LINKS 14735 CONFIG_COMMANDS = $CONFIG_COMMANDS 14736 $ $0 $@ 14737 14738on `(hostname || uname -n) 2>/dev/null | sed 1q` 14739" 14740 14741_ACEOF 14742 14743case $ac_config_files in *" 14744"*) set x $ac_config_files; shift; ac_config_files=$*;; 14745esac 14746 14747case $ac_config_headers in *" 14748"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14749esac 14750 14751 14752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14753# Files that config.status was made for. 14754config_files="$ac_config_files" 14755config_headers="$ac_config_headers" 14756 14757_ACEOF 14758 14759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14760ac_cs_usage="\ 14761\`$as_me' instantiates files and other configuration actions 14762from templates according to the current configuration. Unless the files 14763and actions are specified as TAGs, all are instantiated by default. 14764 14765Usage: $0 [OPTION]... [TAG]... 14766 14767 -h, --help print this help, then exit 14768 -V, --version print version number and configuration settings, then exit 14769 --config print configuration, then exit 14770 -q, --quiet, --silent 14771 do not print progress messages 14772 -d, --debug don't remove temporary files 14773 --recheck update $as_me by reconfiguring in the same conditions 14774 --file=FILE[:TEMPLATE] 14775 instantiate the configuration file FILE 14776 --header=FILE[:TEMPLATE] 14777 instantiate the configuration header FILE 14778 14779Configuration files: 14780$config_files 14781 14782Configuration headers: 14783$config_headers 14784 14785Report bugs to the package provider." 14786 14787_ACEOF 14788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14789ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14790ac_cs_version="\\ 14791config.status 14792configured by $0, generated by GNU Autoconf 2.69, 14793 with options \\"\$ac_cs_config\\" 14794 14795Copyright (C) 2012 Free Software Foundation, Inc. 14796This config.status script is free software; the Free Software Foundation 14797gives unlimited permission to copy, distribute and modify it." 14798 14799ac_pwd='$ac_pwd' 14800srcdir='$srcdir' 14801AWK='$AWK' 14802test -n "\$AWK" || AWK=awk 14803_ACEOF 14804 14805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14806# The default lists apply if the user does not specify any file. 14807ac_need_defaults=: 14808while test $# != 0 14809do 14810 case $1 in 14811 --*=?*) 14812 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14813 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14814 ac_shift=: 14815 ;; 14816 --*=) 14817 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14818 ac_optarg= 14819 ac_shift=: 14820 ;; 14821 *) 14822 ac_option=$1 14823 ac_optarg=$2 14824 ac_shift=shift 14825 ;; 14826 esac 14827 14828 case $ac_option in 14829 # Handling of the options. 14830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14831 ac_cs_recheck=: ;; 14832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14833 $as_echo "$ac_cs_version"; exit ;; 14834 --config | --confi | --conf | --con | --co | --c ) 14835 $as_echo "$ac_cs_config"; exit ;; 14836 --debug | --debu | --deb | --de | --d | -d ) 14837 debug=: ;; 14838 --file | --fil | --fi | --f ) 14839 $ac_shift 14840 case $ac_optarg in 14841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14842 '') as_fn_error $? "missing file argument" ;; 14843 esac 14844 as_fn_append CONFIG_FILES " '$ac_optarg'" 14845 ac_need_defaults=false;; 14846 --header | --heade | --head | --hea ) 14847 $ac_shift 14848 case $ac_optarg in 14849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14850 esac 14851 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14852 ac_need_defaults=false;; 14853 --he | --h) 14854 # Conflict between --help and --header 14855 as_fn_error $? "ambiguous option: \`$1' 14856Try \`$0 --help' for more information.";; 14857 --help | --hel | -h ) 14858 $as_echo "$ac_cs_usage"; exit ;; 14859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14860 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14861 ac_cs_silent=: ;; 14862 14863 # This is an error. 14864 -*) as_fn_error $? "unrecognized option: \`$1' 14865Try \`$0 --help' for more information." ;; 14866 14867 *) as_fn_append ac_config_targets " $1" 14868 ac_need_defaults=false ;; 14869 14870 esac 14871 shift 14872done 14873 14874ac_configure_extra_args= 14875 14876if $ac_cs_silent; then 14877 exec 6>/dev/null 14878 ac_configure_extra_args="$ac_configure_extra_args --silent" 14879fi 14880 14881_ACEOF 14882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14883if \$ac_cs_recheck; then 14884 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14885 shift 14886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14887 CONFIG_SHELL='$SHELL' 14888 export CONFIG_SHELL 14889 exec "\$@" 14890fi 14891 14892_ACEOF 14893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14894exec 5>>auto/config.log 14895{ 14896 echo 14897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14898## Running $as_me. ## 14899_ASBOX 14900 $as_echo "$ac_log" 14901} >&5 14902 14903_ACEOF 14904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14905_ACEOF 14906 14907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14908 14909# Handling of arguments. 14910for ac_config_target in $ac_config_targets 14911do 14912 case $ac_config_target in 14913 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14914 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14915 14916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14917 esac 14918done 14919 14920 14921# If the user did not use the arguments to specify the items to instantiate, 14922# then the envvar interface is used. Set only those that are not. 14923# We use the long form for the default assignment because of an extremely 14924# bizarre bug on SunOS 4.1.3. 14925if $ac_need_defaults; then 14926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14928fi 14929 14930# Have a temporary directory for convenience. Make it in the build tree 14931# simply because there is no reason against having it here, and in addition, 14932# creating and moving files from /tmp can sometimes cause problems. 14933# Hook for its removal unless debugging. 14934# Note that there is a small window in which the directory will not be cleaned: 14935# after its creation but before its name has been assigned to `$tmp'. 14936$debug || 14937{ 14938 tmp= ac_tmp= 14939 trap 'exit_status=$? 14940 : "${ac_tmp:=$tmp}" 14941 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14942' 0 14943 trap 'as_fn_exit 1' 1 2 13 15 14944} 14945# Create a (secure) tmp directory for tmp files. 14946 14947{ 14948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14949 test -d "$tmp" 14950} || 14951{ 14952 tmp=./conf$$-$RANDOM 14953 (umask 077 && mkdir "$tmp") 14954} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14955ac_tmp=$tmp 14956 14957# Set up the scripts for CONFIG_FILES section. 14958# No need to generate them if there are no CONFIG_FILES. 14959# This happens for instance with `./config.status config.h'. 14960if test -n "$CONFIG_FILES"; then 14961 14962 14963ac_cr=`echo X | tr X '\015'` 14964# On cygwin, bash can eat \r inside `` if the user requested igncr. 14965# But we know of no other shell where ac_cr would be empty at this 14966# point, so we can use a bashism as a fallback. 14967if test "x$ac_cr" = x; then 14968 eval ac_cr=\$\'\\r\' 14969fi 14970ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14971if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14972 ac_cs_awk_cr='\\r' 14973else 14974 ac_cs_awk_cr=$ac_cr 14975fi 14976 14977echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14978_ACEOF 14979 14980 14981{ 14982 echo "cat >conf$$subs.awk <<_ACEOF" && 14983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14984 echo "_ACEOF" 14985} >conf$$subs.sh || 14986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14987ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14988ac_delim='%!_!# ' 14989for ac_last_try in false false false false false :; do 14990 . ./conf$$subs.sh || 14991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14992 14993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14994 if test $ac_delim_n = $ac_delim_num; then 14995 break 14996 elif $ac_last_try; then 14997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14998 else 14999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15000 fi 15001done 15002rm -f conf$$subs.sh 15003 15004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15005cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15006_ACEOF 15007sed -n ' 15008h 15009s/^/S["/; s/!.*/"]=/ 15010p 15011g 15012s/^[^!]*!// 15013:repl 15014t repl 15015s/'"$ac_delim"'$// 15016t delim 15017:nl 15018h 15019s/\(.\{148\}\)..*/\1/ 15020t more1 15021s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15022p 15023n 15024b repl 15025:more1 15026s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15027p 15028g 15029s/.\{148\}// 15030t nl 15031:delim 15032h 15033s/\(.\{148\}\)..*/\1/ 15034t more2 15035s/["\\]/\\&/g; s/^/"/; s/$/"/ 15036p 15037b 15038:more2 15039s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15040p 15041g 15042s/.\{148\}// 15043t delim 15044' <conf$$subs.awk | sed ' 15045/^[^""]/{ 15046 N 15047 s/\n// 15048} 15049' >>$CONFIG_STATUS || ac_write_fail=1 15050rm -f conf$$subs.awk 15051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15052_ACAWK 15053cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15054 for (key in S) S_is_set[key] = 1 15055 FS = "" 15056 15057} 15058{ 15059 line = $ 0 15060 nfields = split(line, field, "@") 15061 substed = 0 15062 len = length(field[1]) 15063 for (i = 2; i < nfields; i++) { 15064 key = field[i] 15065 keylen = length(key) 15066 if (S_is_set[key]) { 15067 value = S[key] 15068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15069 len += length(value) + length(field[++i]) 15070 substed = 1 15071 } else 15072 len += 1 + keylen 15073 } 15074 15075 print line 15076} 15077 15078_ACAWK 15079_ACEOF 15080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15081if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15083else 15084 cat 15085fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15087_ACEOF 15088 15089# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15090# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15091# trailing colons and then remove the whole line if VPATH becomes empty 15092# (actually we leave an empty line to preserve line numbers). 15093if test "x$srcdir" = x.; then 15094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15095h 15096s/// 15097s/^/:/ 15098s/[ ]*$/:/ 15099s/:\$(srcdir):/:/g 15100s/:\${srcdir}:/:/g 15101s/:@srcdir@:/:/g 15102s/^:*// 15103s/:*$// 15104x 15105s/\(=[ ]*\).*/\1/ 15106G 15107s/\n// 15108s/^[^=]*=[ ]*$// 15109}' 15110fi 15111 15112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15113fi # test -n "$CONFIG_FILES" 15114 15115# Set up the scripts for CONFIG_HEADERS section. 15116# No need to generate them if there are no CONFIG_HEADERS. 15117# This happens for instance with `./config.status Makefile'. 15118if test -n "$CONFIG_HEADERS"; then 15119cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15120BEGIN { 15121_ACEOF 15122 15123# Transform confdefs.h into an awk script `defines.awk', embedded as 15124# here-document in config.status, that substitutes the proper values into 15125# config.h.in to produce config.h. 15126 15127# Create a delimiter string that does not exist in confdefs.h, to ease 15128# handling of long lines. 15129ac_delim='%!_!# ' 15130for ac_last_try in false false :; do 15131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15132 if test -z "$ac_tt"; then 15133 break 15134 elif $ac_last_try; then 15135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15136 else 15137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15138 fi 15139done 15140 15141# For the awk script, D is an array of macro values keyed by name, 15142# likewise P contains macro parameters if any. Preserve backslash 15143# newline sequences. 15144 15145ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15146sed -n ' 15147s/.\{148\}/&'"$ac_delim"'/g 15148t rset 15149:rset 15150s/^[ ]*#[ ]*define[ ][ ]*/ / 15151t def 15152d 15153:def 15154s/\\$// 15155t bsnl 15156s/["\\]/\\&/g 15157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15158D["\1"]=" \3"/p 15159s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15160d 15161:bsnl 15162s/["\\]/\\&/g 15163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15164D["\1"]=" \3\\\\\\n"\\/p 15165t cont 15166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15167t cont 15168d 15169:cont 15170n 15171s/.\{148\}/&'"$ac_delim"'/g 15172t clear 15173:clear 15174s/\\$// 15175t bsnlc 15176s/["\\]/\\&/g; s/^/"/; s/$/"/p 15177d 15178:bsnlc 15179s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15180b cont 15181' <confdefs.h | sed ' 15182s/'"$ac_delim"'/"\\\ 15183"/g' >>$CONFIG_STATUS || ac_write_fail=1 15184 15185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15186 for (key in D) D_is_set[key] = 1 15187 FS = "" 15188} 15189/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15190 line = \$ 0 15191 split(line, arg, " ") 15192 if (arg[1] == "#") { 15193 defundef = arg[2] 15194 mac1 = arg[3] 15195 } else { 15196 defundef = substr(arg[1], 2) 15197 mac1 = arg[2] 15198 } 15199 split(mac1, mac2, "(") #) 15200 macro = mac2[1] 15201 prefix = substr(line, 1, index(line, defundef) - 1) 15202 if (D_is_set[macro]) { 15203 # Preserve the white space surrounding the "#". 15204 print prefix "define", macro P[macro] D[macro] 15205 next 15206 } else { 15207 # Replace #undef with comments. This is necessary, for example, 15208 # in the case of _POSIX_SOURCE, which is predefined and required 15209 # on some systems where configure will not decide to define it. 15210 if (defundef == "undef") { 15211 print "/*", prefix defundef, macro, "*/" 15212 next 15213 } 15214 } 15215} 15216{ print } 15217_ACAWK 15218_ACEOF 15219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15221fi # test -n "$CONFIG_HEADERS" 15222 15223 15224eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15225shift 15226for ac_tag 15227do 15228 case $ac_tag in 15229 :[FHLC]) ac_mode=$ac_tag; continue;; 15230 esac 15231 case $ac_mode$ac_tag in 15232 :[FHL]*:*);; 15233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15234 :[FH]-) ac_tag=-:-;; 15235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15236 esac 15237 ac_save_IFS=$IFS 15238 IFS=: 15239 set x $ac_tag 15240 IFS=$ac_save_IFS 15241 shift 15242 ac_file=$1 15243 shift 15244 15245 case $ac_mode in 15246 :L) ac_source=$1;; 15247 :[FH]) 15248 ac_file_inputs= 15249 for ac_f 15250 do 15251 case $ac_f in 15252 -) ac_f="$ac_tmp/stdin";; 15253 *) # Look for the file first in the build tree, then in the source tree 15254 # (if the path is not absolute). The absolute path cannot be DOS-style, 15255 # because $ac_f cannot contain `:'. 15256 test -f "$ac_f" || 15257 case $ac_f in 15258 [\\/$]*) false;; 15259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15260 esac || 15261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15262 esac 15263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15264 as_fn_append ac_file_inputs " '$ac_f'" 15265 done 15266 15267 # Let's still pretend it is `configure' which instantiates (i.e., don't 15268 # use $as_me), people would be surprised to read: 15269 # /* config.h. Generated by config.status. */ 15270 configure_input='Generated from '` 15271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15272 `' by configure.' 15273 if test x"$ac_file" != x-; then 15274 configure_input="$ac_file. $configure_input" 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15276$as_echo "$as_me: creating $ac_file" >&6;} 15277 fi 15278 # Neutralize special characters interpreted by sed in replacement strings. 15279 case $configure_input in #( 15280 *\&* | *\|* | *\\* ) 15281 ac_sed_conf_input=`$as_echo "$configure_input" | 15282 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15283 *) ac_sed_conf_input=$configure_input;; 15284 esac 15285 15286 case $ac_tag in 15287 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15289 esac 15290 ;; 15291 esac 15292 15293 ac_dir=`$as_dirname -- "$ac_file" || 15294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15295 X"$ac_file" : 'X\(//\)[^/]' \| \ 15296 X"$ac_file" : 'X\(//\)$' \| \ 15297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15298$as_echo X"$ac_file" | 15299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15300 s//\1/ 15301 q 15302 } 15303 /^X\(\/\/\)[^/].*/{ 15304 s//\1/ 15305 q 15306 } 15307 /^X\(\/\/\)$/{ 15308 s//\1/ 15309 q 15310 } 15311 /^X\(\/\).*/{ 15312 s//\1/ 15313 q 15314 } 15315 s/.*/./; q'` 15316 as_dir="$ac_dir"; as_fn_mkdir_p 15317 ac_builddir=. 15318 15319case "$ac_dir" in 15320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15321*) 15322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15323 # A ".." for each directory in $ac_dir_suffix. 15324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15325 case $ac_top_builddir_sub in 15326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15328 esac ;; 15329esac 15330ac_abs_top_builddir=$ac_pwd 15331ac_abs_builddir=$ac_pwd$ac_dir_suffix 15332# for backward compatibility: 15333ac_top_builddir=$ac_top_build_prefix 15334 15335case $srcdir in 15336 .) # We are building in place. 15337 ac_srcdir=. 15338 ac_top_srcdir=$ac_top_builddir_sub 15339 ac_abs_top_srcdir=$ac_pwd ;; 15340 [\\/]* | ?:[\\/]* ) # Absolute name. 15341 ac_srcdir=$srcdir$ac_dir_suffix; 15342 ac_top_srcdir=$srcdir 15343 ac_abs_top_srcdir=$srcdir ;; 15344 *) # Relative name. 15345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15346 ac_top_srcdir=$ac_top_build_prefix$srcdir 15347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15348esac 15349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15350 15351 15352 case $ac_mode in 15353 :F) 15354 # 15355 # CONFIG_FILE 15356 # 15357 15358_ACEOF 15359 15360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15361# If the template does not know about datarootdir, expand it. 15362# FIXME: This hack should be removed a few years after 2.60. 15363ac_datarootdir_hack=; ac_datarootdir_seen= 15364ac_sed_dataroot=' 15365/datarootdir/ { 15366 p 15367 q 15368} 15369/@datadir@/p 15370/@docdir@/p 15371/@infodir@/p 15372/@localedir@/p 15373/@mandir@/p' 15374case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15375*datarootdir*) ac_datarootdir_seen=yes;; 15376*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15378$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15379_ACEOF 15380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15381 ac_datarootdir_hack=' 15382 s&@datadir@&$datadir&g 15383 s&@docdir@&$docdir&g 15384 s&@infodir@&$infodir&g 15385 s&@localedir@&$localedir&g 15386 s&@mandir@&$mandir&g 15387 s&\\\${datarootdir}&$datarootdir&g' ;; 15388esac 15389_ACEOF 15390 15391# Neutralize VPATH when `$srcdir' = `.'. 15392# Shell code in configure.ac might set extrasub. 15393# FIXME: do we really want to maintain this feature? 15394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15395ac_sed_extra="$ac_vpsub 15396$extrasub 15397_ACEOF 15398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15399:t 15400/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15401s|@configure_input@|$ac_sed_conf_input|;t t 15402s&@top_builddir@&$ac_top_builddir_sub&;t t 15403s&@top_build_prefix@&$ac_top_build_prefix&;t t 15404s&@srcdir@&$ac_srcdir&;t t 15405s&@abs_srcdir@&$ac_abs_srcdir&;t t 15406s&@top_srcdir@&$ac_top_srcdir&;t t 15407s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15408s&@builddir@&$ac_builddir&;t t 15409s&@abs_builddir@&$ac_abs_builddir&;t t 15410s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15411$ac_datarootdir_hack 15412" 15413eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15414 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15415 15416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15417 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15419 "$ac_tmp/out"`; test -z "$ac_out"; } && 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15421which seems to be undefined. Please make sure it is defined" >&5 15422$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15423which seems to be undefined. Please make sure it is defined" >&2;} 15424 15425 rm -f "$ac_tmp/stdin" 15426 case $ac_file in 15427 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15428 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15429 esac \ 15430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15431 ;; 15432 :H) 15433 # 15434 # CONFIG_HEADER 15435 # 15436 if test x"$ac_file" != x-; then 15437 { 15438 $as_echo "/* $configure_input */" \ 15439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15440 } >"$ac_tmp/config.h" \ 15441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15442 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15444$as_echo "$as_me: $ac_file is unchanged" >&6;} 15445 else 15446 rm -f "$ac_file" 15447 mv "$ac_tmp/config.h" "$ac_file" \ 15448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15449 fi 15450 else 15451 $as_echo "/* $configure_input */" \ 15452 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15453 || as_fn_error $? "could not create -" "$LINENO" 5 15454 fi 15455 ;; 15456 15457 15458 esac 15459 15460done # for ac_tag 15461 15462 15463as_fn_exit 0 15464_ACEOF 15465ac_clean_files=$ac_clean_files_save 15466 15467test $ac_write_fail = 0 || 15468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15469 15470 15471# configure is writing to config.log, and then calls config.status. 15472# config.status does its own redirection, appending to config.log. 15473# Unfortunately, on DOS this fails, as config.log is still kept open 15474# by configure, so config.status won't be able to write to it; its 15475# output is simply discarded. So we exec the FD to /dev/null, 15476# effectively closing config.log, so it can be properly (re)opened and 15477# appended to by config.status. When coming back to configure, we 15478# need to make the FD available again. 15479if test "$no_create" != yes; then 15480 ac_cs_success=: 15481 ac_config_status_args= 15482 test "$silent" = yes && 15483 ac_config_status_args="$ac_config_status_args --quiet" 15484 exec 5>/dev/null 15485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15486 exec 5>>auto/config.log 15487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15488 # would make configure fail if this is the last instruction. 15489 $ac_cs_success || as_fn_exit 1 15490fi 15491if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15493$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15494fi 15495 15496 15497