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 626MSGFMT_DESKTOP 627MAKEMO 628MSGFMT 629INSTALL_TOOL_LANGS 630INSTALL_LANGS 631TAGPRG 632GUI_X_LIBS 633GUITYPE 634GUI_LIB_LOC 635GUI_INC_LOC 636NARROW_PROTO 637MOTIF_LIBNAME 638GRESOURCE_OBJ 639GRESOURCE_SRC 640UPDATE_DESKTOP_DATABASE 641GTK_UPDATE_ICON_CACHE 642GLIB_COMPILE_RESOURCES 643GNOME_INCLUDEDIR 644GNOME_LIBDIR 645GNOME_LIBS 646GTK_LIBNAME 647GTK_LIBS 648GTK_CFLAGS 649PKG_CONFIG 650X_LIB 651X_EXTRA_LIBS 652X_LIBS 653X_PRE_LIBS 654X_CFLAGS 655XMKMF 656xmkmfpath 657TERM_TEST 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680vi_cv_path_python3 681PYTHON_OBJ 682PYTHON_SRC 683PYTHON_CFLAGS 684PYTHON_LIBS 685vi_cv_path_python 686PERL_LIBS 687PERL_CFLAGS 688PERL_PRO 689PERL_OBJ 690PERL_SRC 691shrpenv 692vi_cv_perl_xsubpp 693vi_cv_perllib 694vi_cv_path_perl 695MZSCHEME_MZC 696MZSCHEME_EXTRA 697MZSCHEME_CFLAGS 698MZSCHEME_LIBS 699MZSCHEME_PRO 700MZSCHEME_OBJ 701MZSCHEME_SRC 702vi_cv_path_mzscheme 703LUA_CFLAGS 704LUA_LIBS 705LUA_PRO 706LUA_OBJ 707LUA_SRC 708vi_cv_path_plain_lua 709vi_cv_path_luajit 710vi_cv_path_lua 711compiledby 712dogvimdiff 713dovimdiff 714QUOTESED 715line_break 716VIEWNAME 717EXNAME 718VIMNAME 719OS_EXTRA_OBJ 720OS_EXTRA_SRC 721XCODE_SELECT 722CPP_MM 723CROSS_COMPILING 724BUILD_DATE_MSG 725STRIP 726AWK 727FGREP 728EGREP 729GREP 730CPP 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738SET_MAKE 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758runstatedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_fail_if_missing 782enable_darwin 783with_mac_arch 784with_developer_dir 785with_local_dir 786with_vim_name 787with_ex_name 788with_view_name 789with_global_runtime 790with_modified_by 791enable_smack 792enable_selinux 793with_features 794with_compiledby 795enable_xsmp 796enable_xsmp_interact 797enable_luainterp 798with_lua_prefix 799with_luajit 800enable_mzschemeinterp 801with_plthome 802enable_perlinterp 803enable_pythoninterp 804with_python_command 805with_python_config_dir 806enable_python3interp 807with_python3_command 808with_python3_config_dir 809enable_tclinterp 810with_tclsh 811enable_rubyinterp 812with_ruby_command 813enable_cscope 814enable_netbeans 815enable_channel 816enable_terminal 817enable_autoservername 818enable_multibyte 819enable_rightleft 820enable_arabic 821enable_farsi 822enable_xim 823enable_fontset 824with_x 825enable_gui 826enable_gtk2_check 827enable_gnome_check 828enable_gtk3_check 829enable_motif_check 830enable_athena_check 831enable_nextaw_check 832enable_gtktest 833with_gnome_includes 834with_gnome_libs 835with_gnome 836enable_icon_cache_update 837enable_desktop_database_update 838with_motif_lib 839with_tlib 840enable_largefile 841enable_canberra 842enable_acl 843enable_gpm 844enable_sysmouse 845enable_nls 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856XMKMF' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 # Accept the important Cygnus configure options, so we can diagnose typos. 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures this package to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465X features: 1466 --x-includes=DIR X include files are in DIR 1467 --x-libraries=DIR X library files are in DIR 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-fail-if-missing Fail if dependencies on additional features 1480 specified on the command line are missing. 1481 --disable-darwin Disable Darwin (Mac OS X) support. 1482 --disable-smack Do not check for Smack support. 1483 --disable-selinux Do not check for SELinux support. 1484 --disable-xsmp Disable XSMP session management 1485 --disable-xsmp-interact Disable XSMP interaction 1486 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1487 --enable-mzschemeinterp Include MzScheme interpreter. 1488 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1489 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-cscope Include cscope interface. 1494 --disable-netbeans Disable NetBeans integration support. 1495 --disable-channel Disable process communication support. 1496 --enable-terminal Enable terminal emulation support. 1497 --enable-autoservername Automatically define servername at vim startup. 1498 --enable-multibyte Include multibyte editing support. 1499 --disable-rightleft Do not include Right-to-Left language support. 1500 --disable-arabic Do not include Arabic language support. 1501 --disable-farsi Deprecated. 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/haiku/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 --disable-gtktest Do not try to compile and run a test GTK program 1512 --disable-icon-cache-update update disabled 1513 --disable-desktop-database-update update disabled 1514 --disable-largefile omit support for large files 1515 --disable-canberra Do not use libcanberra. 1516 --disable-acl No 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', comma-separated for multiple directories 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-command=NAME name of the Python 2 command (default: python2 or python) 1539 --with-python-config-dir=PATH Python's config directory (deprecated) 1540 --with-python3-command=NAME name of the Python 3 command (default: python3 or python) 1541 --with-python3-config-dir=PATH Python's config directory (deprecated) 1542 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1543 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1544 --with-x use the X Window System 1545 --with-gnome-includes=DIR Specify location of GNOME headers 1546 --with-gnome-libs=DIR Specify location of GNOME libs 1547 --with-gnome Specify prefix for GNOME files 1548 --with-motif-lib=STRING Library for Motif 1549 --with-tlib=library terminal library to be used 1550 1551Some influential environment variables: 1552 CC C compiler command 1553 CFLAGS C compiler flags 1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1555 nonstandard directory <lib dir> 1556 LIBS libraries to pass to the linker, e.g. -l<library> 1557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1558 you have headers in a nonstandard directory <include dir> 1559 CPP C preprocessor 1560 XMKMF Path to xmkmf, Makefile generator for X Window System 1561 1562Use these variables to override the choices made by `configure' or to help 1563it to find libraries and programs with nonstandard names/locations. 1564 1565Report bugs to the package provider. 1566_ACEOF 1567ac_status=$? 1568fi 1569 1570if test "$ac_init_help" = "recursive"; then 1571 # If there are subdirs, report their specific --help. 1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1573 test -d "$ac_dir" || 1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1575 continue 1576 ac_builddir=. 1577 1578case "$ac_dir" in 1579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580*) 1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1582 # A ".." for each directory in $ac_dir_suffix. 1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1584 case $ac_top_builddir_sub in 1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1587 esac ;; 1588esac 1589ac_abs_top_builddir=$ac_pwd 1590ac_abs_builddir=$ac_pwd$ac_dir_suffix 1591# for backward compatibility: 1592ac_top_builddir=$ac_top_build_prefix 1593 1594case $srcdir in 1595 .) # We are building in place. 1596 ac_srcdir=. 1597 ac_top_srcdir=$ac_top_builddir_sub 1598 ac_abs_top_srcdir=$ac_pwd ;; 1599 [\\/]* | ?:[\\/]* ) # Absolute name. 1600 ac_srcdir=$srcdir$ac_dir_suffix; 1601 ac_top_srcdir=$srcdir 1602 ac_abs_top_srcdir=$srcdir ;; 1603 *) # Relative name. 1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1605 ac_top_srcdir=$ac_top_build_prefix$srcdir 1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1607esac 1608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1609 1610 cd "$ac_dir" || { ac_status=$?; continue; } 1611 # Check for guested configure. 1612 if test -f "$ac_srcdir/configure.gnu"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1615 elif test -f "$ac_srcdir/configure"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure" --help=recursive 1618 else 1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1620 fi || ac_status=$? 1621 cd "$ac_pwd" || { ac_status=$?; break; } 1622 done 1623fi 1624 1625test -n "$ac_init_help" && exit $ac_status 1626if $ac_init_version; then 1627 cat <<\_ACEOF 1628configure 1629generated by GNU Autoconf 2.69 1630 1631Copyright (C) 2012 Free Software Foundation, Inc. 1632This configure script is free software; the Free Software Foundation 1633gives unlimited permission to copy, distribute and modify it. 1634_ACEOF 1635 exit 1636fi 1637 1638## ------------------------ ## 1639## Autoconf initialization. ## 1640## ------------------------ ## 1641 1642# ac_fn_c_try_compile LINENO 1643# -------------------------- 1644# Try to compile conftest.$ac_ext, and return whether this succeeded. 1645ac_fn_c_try_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 rm -f conftest.$ac_objext 1649 if { { ac_try="$ac_compile" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_compile") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { 1665 test -z "$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 } && test -s conftest.$ac_objext; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678} # ac_fn_c_try_compile 1679 1680# ac_fn_c_try_cpp LINENO 1681# ---------------------- 1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_c_try_cpp () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 if { { ac_try="$ac_cpp conftest.$ac_ext" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } > conftest.i && { 1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_cpp 1716 1717# ac_fn_c_try_link LINENO 1718# ----------------------- 1719# Try to link conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_link () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 rm -f conftest.$ac_objext conftest$ac_exeext 1724 if { { ac_try="$ac_link" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { 1740 test -z "$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 } && test -s conftest$ac_exeext && { 1743 test "$cross_compiling" = yes || 1744 test -x conftest$ac_exeext 1745 }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1755 # interfere with the next link command; also delete a directory that is 1756 # left behind by Apple's compiler. We do this before executing the actions. 1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_link 1762 1763# ac_fn_c_try_run LINENO 1764# ---------------------- 1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1766# that executables *can* be run. 1767ac_fn_c_try_run () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if { { ac_try="$ac_link" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>&5 1778 ac_status=$? 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1781 { { case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_try") 2>&5 1788 ac_status=$? 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; }; }; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: program exited with status $ac_status" >&5 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=$ac_status 1798fi 1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_run 1804 1805# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1806# ------------------------------------------------------- 1807# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1808# the include files in INCLUDES and setting the cache variable VAR 1809# accordingly. 1810ac_fn_c_check_header_mongrel () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 if eval \${$3+:} false; then : 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822else 1823 # Is the header compilable? 1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1825$as_echo_n "checking $2 usability... " >&6; } 1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1827/* end confdefs.h. */ 1828$4 1829#include <$2> 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 ac_header_compiler=yes 1833else 1834 ac_header_compiler=no 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1838$as_echo "$ac_header_compiler" >&6; } 1839 1840# Is the header present? 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1842$as_echo_n "checking $2 presence... " >&6; } 1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845#include <$2> 1846_ACEOF 1847if ac_fn_c_try_cpp "$LINENO"; then : 1848 ac_header_preproc=yes 1849else 1850 ac_header_preproc=no 1851fi 1852rm -f conftest.err conftest.i conftest.$ac_ext 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1854$as_echo "$ac_header_preproc" >&6; } 1855 1856# So? What about this header? 1857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1858 yes:no: ) 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1860$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1863 ;; 1864 no:yes:* ) 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1866$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1868$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1870$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1872$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1875 ;; 1876esac 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1878$as_echo_n "checking for $2... " >&6; } 1879if eval \${$3+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881else 1882 eval "$3=\$ac_header_compiler" 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887fi 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 1890} # ac_fn_c_check_header_mongrel 1891 1892# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1893# ------------------------------------------------------- 1894# Tests whether HEADER exists and can be compiled using the include files in 1895# INCLUDES, setting the cache variable VAR accordingly. 1896ac_fn_c_check_header_compile () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1900$as_echo_n "checking for $2... " >&6; } 1901if eval \${$3+:} false; then : 1902 $as_echo_n "(cached) " >&6 1903else 1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907#include <$2> 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 eval "$3=yes" 1911else 1912 eval "$3=no" 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_header_compile 1922 1923# ac_fn_c_check_func LINENO FUNC VAR 1924# ---------------------------------- 1925# Tests whether FUNC exists, setting the cache variable VAR accordingly 1926ac_fn_c_check_func () 1927{ 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930$as_echo_n "checking for $2... " >&6; } 1931if eval \${$3+:} false; then : 1932 $as_echo_n "(cached) " >&6 1933else 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1938#define $2 innocuous_$2 1939 1940/* System header to define __stub macros and hopefully few prototypes, 1941 which can conflict with char $2 (); below. 1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1943 <limits.h> exists even on freestanding compilers. */ 1944 1945#ifdef __STDC__ 1946# include <limits.h> 1947#else 1948# include <assert.h> 1949#endif 1950 1951#undef $2 1952 1953/* Override any GCC internal prototype to avoid an error. 1954 Use char because int might match the return type of a GCC 1955 builtin and then its argument prototype would still apply. */ 1956#ifdef __cplusplus 1957extern "C" 1958#endif 1959char $2 (); 1960/* The GNU C library defines this for functions which it implements 1961 to always fail with ENOSYS. Some functions are actually named 1962 something starting with __ and the normal name is an alias. */ 1963#if defined __stub_$2 || defined __stub___$2 1964choke me 1965#endif 1966 1967int 1968main () 1969{ 1970return $2 (); 1971 ; 1972 return 0; 1973} 1974_ACEOF 1975if ac_fn_c_try_link "$LINENO"; then : 1976 eval "$3=yes" 1977else 1978 eval "$3=no" 1979fi 1980rm -f core conftest.err conftest.$ac_objext \ 1981 conftest$ac_exeext conftest.$ac_ext 1982fi 1983eval ac_res=\$$3 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985$as_echo "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988} # ac_fn_c_check_func 1989 1990# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1991# ------------------------------------------- 1992# Tests whether TYPE exists after having included INCLUDES, setting cache 1993# variable VAR accordingly. 1994ac_fn_c_check_type () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval \${$3+:} false; then : 2000 $as_echo_n "(cached) " >&6 2001else 2002 eval "$3=no" 2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004/* end confdefs.h. */ 2005$4 2006int 2007main () 2008{ 2009if (sizeof ($2)) 2010 return 0; 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main () 2021{ 2022if (sizeof (($2))) 2023 return 0; 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 2030else 2031 eval "$3=yes" 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036fi 2037eval ac_res=\$$3 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2039$as_echo "$ac_res" >&6; } 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_c_check_type 2043 2044# ac_fn_c_find_uintX_t LINENO BITS VAR 2045# ------------------------------------ 2046# Finds an unsigned integer type with width BITS, setting cache variable VAR 2047# accordingly. 2048ac_fn_c_find_uintX_t () 2049{ 2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2052$as_echo_n "checking for uint$2_t... " >&6; } 2053if eval \${$3+:} false; then : 2054 $as_echo_n "(cached) " >&6 2055else 2056 eval "$3=no" 2057 # Order is important - never check a type that is potentially smaller 2058 # than half of the expected target width. 2059 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2060 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$ac_includes_default 2064int 2065main () 2066{ 2067static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2068test_array [0] = 0; 2069return test_array [0]; 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 case $ac_type in #( 2077 uint$2_t) : 2078 eval "$3=yes" ;; #( 2079 *) : 2080 eval "$3=\$ac_type" ;; 2081esac 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2084 if eval test \"x\$"$3"\" = x"no"; then : 2085 2086else 2087 break 2088fi 2089 done 2090fi 2091eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093$as_echo "$ac_res" >&6; } 2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2095 2096} # ac_fn_c_find_uintX_t 2097 2098# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2099# -------------------------------------------- 2100# Tries to find the compile-time value of EXPR in a program that includes 2101# INCLUDES, setting VAR accordingly. Returns whether the value could be 2102# computed 2103ac_fn_c_compute_int () 2104{ 2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2106 if test "$cross_compiling" = yes; then 2107 # Depending upon the size, compute the lo and hi bounds. 2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111int 2112main () 2113{ 2114static int test_array [1 - 2 * !(($2) >= 0)]; 2115test_array [0] = 0; 2116return test_array [0]; 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO"; then : 2123 ac_lo=0 ac_mid=0 2124 while :; do 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2132test_array [0] = 0; 2133return test_array [0]; 2134 2135 ; 2136 return 0; 2137} 2138_ACEOF 2139if ac_fn_c_try_compile "$LINENO"; then : 2140 ac_hi=$ac_mid; break 2141else 2142 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2143 if test $ac_lo -le $ac_mid; then 2144 ac_lo= ac_hi= 2145 break 2146 fi 2147 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2148fi 2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2150 done 2151else 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$4 2155int 2156main () 2157{ 2158static int test_array [1 - 2 * !(($2) < 0)]; 2159test_array [0] = 0; 2160return test_array [0]; 2161 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166if ac_fn_c_try_compile "$LINENO"; then : 2167 ac_hi=-1 ac_mid=-1 2168 while :; do 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170/* end confdefs.h. */ 2171$4 2172int 2173main () 2174{ 2175static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2176test_array [0] = 0; 2177return test_array [0]; 2178 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183if ac_fn_c_try_compile "$LINENO"; then : 2184 ac_lo=$ac_mid; break 2185else 2186 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2187 if test $ac_mid -le $ac_hi; then 2188 ac_lo= ac_hi= 2189 break 2190 fi 2191 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2192fi 2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2194 done 2195else 2196 ac_lo= ac_hi= 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199fi 2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2201# Binary search between lo and hi bounds. 2202while test "x$ac_lo" != "x$ac_hi"; do 2203 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2211test_array [0] = 0; 2212return test_array [0]; 2213 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_compile "$LINENO"; then : 2219 ac_hi=$ac_mid 2220else 2221 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2222fi 2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2224done 2225case $ac_lo in #(( 2226?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2227'') ac_retval=1 ;; 2228esac 2229 else 2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231/* end confdefs.h. */ 2232$4 2233static long int longval () { return $2; } 2234static unsigned long int ulongval () { return $2; } 2235#include <stdio.h> 2236#include <stdlib.h> 2237int 2238main () 2239{ 2240 2241 FILE *f = fopen ("conftest.val", "w"); 2242 if (! f) 2243 return 1; 2244 if (($2) < 0) 2245 { 2246 long int i = longval (); 2247 if (i != ($2)) 2248 return 1; 2249 fprintf (f, "%ld", i); 2250 } 2251 else 2252 { 2253 unsigned long int i = ulongval (); 2254 if (i != ($2)) 2255 return 1; 2256 fprintf (f, "%lu", i); 2257 } 2258 /* Do not output a trailing newline, as this causes \r\n confusion 2259 on some platforms. */ 2260 return ferror (f) || fclose (f) != 0; 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266if ac_fn_c_try_run "$LINENO"; then : 2267 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2268else 2269 ac_retval=1 2270fi 2271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2272 conftest.$ac_objext conftest.beam conftest.$ac_ext 2273rm -f conftest.val 2274 2275 fi 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 as_fn_set_status $ac_retval 2278 2279} # ac_fn_c_compute_int 2280cat >auto/config.log <<_ACEOF 2281This file contains any messages produced by compilers while 2282running configure, to aid debugging if configure makes a mistake. 2283 2284It was created by $as_me, which was 2285generated by GNU Autoconf 2.69. Invocation command line was 2286 2287 $ $0 $@ 2288 2289_ACEOF 2290exec 5>>auto/config.log 2291{ 2292cat <<_ASUNAME 2293## --------- ## 2294## Platform. ## 2295## --------- ## 2296 2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2298uname -m = `(uname -m) 2>/dev/null || echo unknown` 2299uname -r = `(uname -r) 2>/dev/null || echo unknown` 2300uname -s = `(uname -s) 2>/dev/null || echo unknown` 2301uname -v = `(uname -v) 2>/dev/null || echo unknown` 2302 2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2304/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2305 2306/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2307/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2309/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2310/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2311/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2312/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2313 2314_ASUNAME 2315 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 $as_echo "PATH: $as_dir" 2322 done 2323IFS=$as_save_IFS 2324 2325} >&5 2326 2327cat >&5 <<_ACEOF 2328 2329 2330## ----------- ## 2331## Core tests. ## 2332## ----------- ## 2333 2334_ACEOF 2335 2336 2337# Keep a trace of the command line. 2338# Strip out --no-create and --no-recursion so they do not pile up. 2339# Strip out --silent because we don't want to record it for future runs. 2340# Also quote any args containing shell meta-characters. 2341# Make two passes to allow for proper duplicate-argument suppression. 2342ac_configure_args= 2343ac_configure_args0= 2344ac_configure_args1= 2345ac_must_keep_next=false 2346for ac_pass in 1 2 2347do 2348 for ac_arg 2349 do 2350 case $ac_arg in 2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2353 | -silent | --silent | --silen | --sile | --sil) 2354 continue ;; 2355 *\'*) 2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2357 esac 2358 case $ac_pass in 2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2360 2) 2361 as_fn_append ac_configure_args1 " '$ac_arg'" 2362 if test $ac_must_keep_next = true; then 2363 ac_must_keep_next=false # Got value, back to normal. 2364 else 2365 case $ac_arg in 2366 *=* | --config-cache | -C | -disable-* | --disable-* \ 2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2369 | -with-* | --with-* | -without-* | --without-* | --x) 2370 case "$ac_configure_args0 " in 2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2372 esac 2373 ;; 2374 -* ) ac_must_keep_next=true ;; 2375 esac 2376 fi 2377 as_fn_append ac_configure_args " '$ac_arg'" 2378 ;; 2379 esac 2380 done 2381done 2382{ ac_configure_args0=; unset ac_configure_args0;} 2383{ ac_configure_args1=; unset ac_configure_args1;} 2384 2385# When interrupted or exit'd, cleanup temporary files, and complete 2386# config.log. We remove comments because anyway the quotes in there 2387# would cause problems or look ugly. 2388# WARNING: Use '\'' to represent an apostrophe within the trap. 2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2390trap 'exit_status=$? 2391 # Save into config.log some information that might help in debugging. 2392 { 2393 echo 2394 2395 $as_echo "## ---------------- ## 2396## Cache variables. ## 2397## ---------------- ##" 2398 echo 2399 # The following way of writing the cache mishandles newlines in values, 2400( 2401 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2402 eval ac_val=\$$ac_var 2403 case $ac_val in #( 2404 *${as_nl}*) 2405 case $ac_var in #( 2406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2408 esac 2409 case $ac_var in #( 2410 _ | IFS | as_nl) ;; #( 2411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2412 *) { eval $ac_var=; unset $ac_var;} ;; 2413 esac ;; 2414 esac 2415 done 2416 (set) 2>&1 | 2417 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2418 *${as_nl}ac_space=\ *) 2419 sed -n \ 2420 "s/'\''/'\''\\\\'\'''\''/g; 2421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2422 ;; #( 2423 *) 2424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2425 ;; 2426 esac | 2427 sort 2428) 2429 echo 2430 2431 $as_echo "## ----------------- ## 2432## Output variables. ## 2433## ----------------- ##" 2434 echo 2435 for ac_var in $ac_subst_vars 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 $as_echo "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 2445 if test -n "$ac_subst_files"; then 2446 $as_echo "## ------------------- ## 2447## File substitutions. ## 2448## ------------------- ##" 2449 echo 2450 for ac_var in $ac_subst_files 2451 do 2452 eval ac_val=\$$ac_var 2453 case $ac_val in 2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2455 esac 2456 $as_echo "$ac_var='\''$ac_val'\''" 2457 done | sort 2458 echo 2459 fi 2460 2461 if test -s confdefs.h; then 2462 $as_echo "## ----------- ## 2463## confdefs.h. ## 2464## ----------- ##" 2465 echo 2466 cat confdefs.h 2467 echo 2468 fi 2469 test "$ac_signal" != 0 && 2470 $as_echo "$as_me: caught signal $ac_signal" 2471 $as_echo "$as_me: exit $exit_status" 2472 } >&5 2473 rm -f core *.core core.conftest.* && 2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2475 exit $exit_status 2476' 0 2477for ac_signal in 1 2 13 15; do 2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2479done 2480ac_signal=0 2481 2482# confdefs.h avoids OS command line length limits that DEFS can exceed. 2483rm -f -r conftest* confdefs.h 2484 2485$as_echo "/* confdefs.h */" > confdefs.h 2486 2487# Predefined preprocessor variables. 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_NAME "$PACKAGE_NAME" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2495_ACEOF 2496 2497cat >>confdefs.h <<_ACEOF 2498#define PACKAGE_VERSION "$PACKAGE_VERSION" 2499_ACEOF 2500 2501cat >>confdefs.h <<_ACEOF 2502#define PACKAGE_STRING "$PACKAGE_STRING" 2503_ACEOF 2504 2505cat >>confdefs.h <<_ACEOF 2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2507_ACEOF 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE_URL "$PACKAGE_URL" 2511_ACEOF 2512 2513 2514# Let the site file select an alternate cache file if it wants to. 2515# Prefer an explicitly selected file to automatically selected ones. 2516ac_site_file1=NONE 2517ac_site_file2=NONE 2518if test -n "$CONFIG_SITE"; then 2519 # We do not want a PATH search for config.site. 2520 case $CONFIG_SITE in #(( 2521 -*) ac_site_file1=./$CONFIG_SITE;; 2522 */*) ac_site_file1=$CONFIG_SITE;; 2523 *) ac_site_file1=./$CONFIG_SITE;; 2524 esac 2525elif test "x$prefix" != xNONE; then 2526 ac_site_file1=$prefix/share/config.site 2527 ac_site_file2=$prefix/etc/config.site 2528else 2529 ac_site_file1=$ac_default_prefix/share/config.site 2530 ac_site_file2=$ac_default_prefix/etc/config.site 2531fi 2532for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2533do 2534 test "x$ac_site_file" = xNONE && continue 2535 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2537$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2538 sed 's/^/| /' "$ac_site_file" >&5 2539 . "$ac_site_file" \ 2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542as_fn_error $? "failed to load site script $ac_site_file 2543See \`config.log' for more details" "$LINENO" 5; } 2544 fi 2545done 2546 2547if test -r "$cache_file"; then 2548 # Some versions of bash will fail to source /dev/null (special files 2549 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2550 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2552$as_echo "$as_me: loading cache $cache_file" >&6;} 2553 case $cache_file in 2554 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2555 *) . "./$cache_file";; 2556 esac 2557 fi 2558else 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2560$as_echo "$as_me: creating cache $cache_file" >&6;} 2561 >$cache_file 2562fi 2563 2564# Check that the precious variables saved in the cache have kept the same 2565# value. 2566ac_cache_corrupted=false 2567for ac_var in $ac_precious_vars; do 2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2569 eval ac_new_set=\$ac_env_${ac_var}_set 2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2571 eval ac_new_val=\$ac_env_${ac_var}_value 2572 case $ac_old_set,$ac_new_set in 2573 set,) 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,set) 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,);; 2582 *) 2583 if test "x$ac_old_val" != "x$ac_new_val"; then 2584 # differences in whitespace do not lead to failure. 2585 ac_old_val_w=`echo x $ac_old_val` 2586 ac_new_val_w=`echo x $ac_new_val` 2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2590 ac_cache_corrupted=: 2591 else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2594 eval $ac_var=\$ac_old_val 2595 fi 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2597$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2599$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2600 fi;; 2601 esac 2602 # Pass precious variables to config.status. 2603 if test "$ac_new_set" = set; then 2604 case $ac_new_val in 2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2606 *) ac_arg=$ac_var=$ac_new_val ;; 2607 esac 2608 case " $ac_configure_args " in 2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2611 esac 2612 fi 2613done 2614if $ac_cache_corrupted; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2620fi 2621## -------------------- ## 2622## Main body of script. ## 2623## -------------------- ## 2624 2625ac_ext=c 2626ac_cpp='$CPP $CPPFLAGS' 2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2629ac_compiler_gnu=$ac_cv_c_compiler_gnu 2630 2631 2632ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2633 2634 2635$as_echo "#define UNIX 1" >>confdefs.h 2636 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2639set x ${MAKE-make} 2640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 cat >conftest.make <<\_ACEOF 2645SHELL = /bin/sh 2646all: 2647 @echo '@@@%%%=$(MAKE)=@@@%%%' 2648_ACEOF 2649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2650case `${MAKE-make} -f conftest.make 2>/dev/null` in 2651 *@@@%%%=?*=@@@%%%*) 2652 eval ac_cv_prog_make_${ac_make}_set=yes;; 2653 *) 2654 eval ac_cv_prog_make_${ac_make}_set=no;; 2655esac 2656rm -f conftest.make 2657fi 2658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2660$as_echo "yes" >&6; } 2661 SET_MAKE= 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664$as_echo "no" >&6; } 2665 SET_MAKE="MAKE=${MAKE-make}" 2666fi 2667 2668 2669ac_ext=c 2670ac_cpp='$CPP $CPPFLAGS' 2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2673ac_compiler_gnu=$ac_cv_c_compiler_gnu 2674if test -n "$ac_tool_prefix"; then 2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2676set dummy ${ac_tool_prefix}gcc; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if ${ac_cv_prog_CC+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$CC"; then 2683 ac_cv_prog_CC="$CC" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702CC=$ac_cv_prog_CC 2703if test -n "$CC"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2705$as_echo "$CC" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712fi 2713if test -z "$ac_cv_prog_CC"; then 2714 ac_ct_CC=$CC 2715 # Extract the first word of "gcc", so it can be a program name with args. 2716set dummy gcc; ac_word=$2 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718$as_echo_n "checking for $ac_word... " >&6; } 2719if ${ac_cv_prog_ac_ct_CC+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 if test -n "$ac_ct_CC"; then 2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2724else 2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_ac_ct_CC="gcc" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736done 2737 done 2738IFS=$as_save_IFS 2739 2740fi 2741fi 2742ac_ct_CC=$ac_cv_prog_ac_ct_CC 2743if test -n "$ac_ct_CC"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2745$as_echo "$ac_ct_CC" >&6; } 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749fi 2750 2751 if test "x$ac_ct_CC" = x; then 2752 CC="" 2753 else 2754 case $cross_compiling:$ac_tool_warned in 2755yes:) 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2758ac_tool_warned=yes ;; 2759esac 2760 CC=$ac_ct_CC 2761 fi 2762else 2763 CC="$ac_cv_prog_CC" 2764fi 2765 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2769set dummy ${ac_tool_prefix}cc; ac_word=$2 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771$as_echo_n "checking for $ac_word... " >&6; } 2772if ${ac_cv_prog_CC+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test -n "$CC"; then 2776 ac_cv_prog_CC="$CC" # Let the user override the test. 2777else 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2785 ac_cv_prog_CC="${ac_tool_prefix}cc" 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790 done 2791IFS=$as_save_IFS 2792 2793fi 2794fi 2795CC=$ac_cv_prog_CC 2796if test -n "$CC"; then 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2798$as_echo "$CC" >&6; } 2799else 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801$as_echo "no" >&6; } 2802fi 2803 2804 2805 fi 2806fi 2807if test -z "$CC"; then 2808 # Extract the first word of "cc", so it can be a program name with args. 2809set dummy cc; ac_word=$2 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811$as_echo_n "checking for $ac_word... " >&6; } 2812if ${ac_cv_prog_CC+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$CC"; then 2816 ac_cv_prog_CC="$CC" # Let the user override the test. 2817else 2818 ac_prog_rejected=no 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2827 ac_prog_rejected=yes 2828 continue 2829 fi 2830 ac_cv_prog_CC="cc" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838if test $ac_prog_rejected = yes; then 2839 # We found a bogon in the path, so make sure we never use it. 2840 set dummy $ac_cv_prog_CC 2841 shift 2842 if test $# != 0; then 2843 # We chose a different compiler from the bogus one. 2844 # However, it has the same basename, so the bogon will be chosen 2845 # first if we set CC to just the basename; use the full file name. 2846 shift 2847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2848 fi 2849fi 2850fi 2851fi 2852CC=$ac_cv_prog_CC 2853if test -n "$CC"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2855$as_echo "$CC" >&6; } 2856else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859fi 2860 2861 2862fi 2863if test -z "$CC"; then 2864 if test -n "$ac_tool_prefix"; then 2865 for ac_prog in cl.exe 2866 do 2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870$as_echo_n "checking for $ac_word... " >&6; } 2871if ${ac_cv_prog_CC+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876else 2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2897$as_echo "$CC" >&6; } 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900$as_echo "no" >&6; } 2901fi 2902 2903 2904 test -n "$CC" && break 2905 done 2906fi 2907if test -z "$CC"; then 2908 ac_ct_CC=$CC 2909 for ac_prog in cl.exe 2910do 2911 # Extract the first word of "$ac_prog", so it can be a program name with args. 2912set dummy $ac_prog; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_ac_ct_CC+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$ac_ct_CC"; then 2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_ac_ct_CC="$ac_prog" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938ac_ct_CC=$ac_cv_prog_ac_ct_CC 2939if test -n "$ac_ct_CC"; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2941$as_echo "$ac_ct_CC" >&6; } 2942else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 2948 test -n "$ac_ct_CC" && break 2949done 2950 2951 if test "x$ac_ct_CC" = x; then 2952 CC="" 2953 else 2954 case $cross_compiling:$ac_tool_warned in 2955yes:) 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2958ac_tool_warned=yes ;; 2959esac 2960 CC=$ac_ct_CC 2961 fi 2962fi 2963 2964fi 2965 2966 2967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2969as_fn_error $? "no acceptable C compiler found in \$PATH 2970See \`config.log' for more details" "$LINENO" 5; } 2971 2972# Provide some information about the compiler. 2973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2974set X $ac_compile 2975ac_compiler=$2 2976for ac_option in --version -v -V -qversion; do 2977 { { ac_try="$ac_compiler $ac_option >&5" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2983$as_echo "$ac_try_echo"; } >&5 2984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2985 ac_status=$? 2986 if test -s conftest.err; then 2987 sed '10a\ 2988... rest of stderr output deleted ... 2989 10q' conftest.err >conftest.er1 2990 cat conftest.er1 >&5 2991 fi 2992 rm -f conftest.er1 conftest.err 2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2994 test $ac_status = 0; } 2995done 2996 2997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2998/* end confdefs.h. */ 2999 3000int 3001main () 3002{ 3003 3004 ; 3005 return 0; 3006} 3007_ACEOF 3008ac_clean_files_save=$ac_clean_files 3009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3010# Try to create an executable without -o first, disregard a.out. 3011# It will help us diagnose broken compilers, and finding out an intuition 3012# of exeext. 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3014$as_echo_n "checking whether the C compiler works... " >&6; } 3015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3016 3017# The possible output files: 3018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3019 3020ac_rmfiles= 3021for ac_file in $ac_files 3022do 3023 case $ac_file in 3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3025 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3026 esac 3027done 3028rm -f $ac_rmfiles 3029 3030if { { ac_try="$ac_link_default" 3031case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3036$as_echo "$ac_try_echo"; } >&5 3037 (eval "$ac_link_default") 2>&5 3038 ac_status=$? 3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3040 test $ac_status = 0; }; then : 3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3043# in a Makefile. We should not override ac_cv_exeext if it was cached, 3044# so that the user can short-circuit this test for compilers unknown to 3045# Autoconf. 3046for ac_file in $ac_files '' 3047do 3048 test -f "$ac_file" || continue 3049 case $ac_file in 3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3051 ;; 3052 [ab].out ) 3053 # We found the default executable, but exeext='' is most 3054 # certainly right. 3055 break;; 3056 *.* ) 3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3058 then :; else 3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3060 fi 3061 # We set ac_cv_exeext here because the later test for it is not 3062 # safe: cross compilers may not add the suffix if given an `-o' 3063 # argument, so we may need to know it at that point already. 3064 # Even if this section looks crufty: it has the advantage of 3065 # actually working. 3066 break;; 3067 * ) 3068 break;; 3069 esac 3070done 3071test "$ac_cv_exeext" = no && ac_cv_exeext= 3072 3073else 3074 ac_file='' 3075fi 3076if test -z "$ac_file"; then : 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079$as_echo "$as_me: failed program was:" >&5 3080sed 's/^/| /' conftest.$ac_ext >&5 3081 3082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3084as_fn_error 77 "C compiler cannot create executables 3085See \`config.log' for more details" "$LINENO" 5; } 3086else 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3088$as_echo "yes" >&6; } 3089fi 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3091$as_echo_n "checking for C compiler default output file name... " >&6; } 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3093$as_echo "$ac_file" >&6; } 3094ac_exeext=$ac_cv_exeext 3095 3096rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3097ac_clean_files=$ac_clean_files_save 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3099$as_echo_n "checking for suffix of executables... " >&6; } 3100if { { ac_try="$ac_link" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3106$as_echo "$ac_try_echo"; } >&5 3107 (eval "$ac_link") 2>&5 3108 ac_status=$? 3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3110 test $ac_status = 0; }; then : 3111 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3112# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3113# work properly (i.e., refer to `conftest.exe'), while it won't with 3114# `rm'. 3115for ac_file in conftest.exe conftest conftest.*; do 3116 test -f "$ac_file" || continue 3117 case $ac_file in 3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3120 break;; 3121 * ) break;; 3122 esac 3123done 3124else 3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3128See \`config.log' for more details" "$LINENO" 5; } 3129fi 3130rm -f conftest conftest$ac_cv_exeext 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3132$as_echo "$ac_cv_exeext" >&6; } 3133 3134rm -f conftest.$ac_ext 3135EXEEXT=$ac_cv_exeext 3136ac_exeext=$EXEEXT 3137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3138/* end confdefs.h. */ 3139#include <stdio.h> 3140int 3141main () 3142{ 3143FILE *f = fopen ("conftest.out", "w"); 3144 return ferror (f) || fclose (f) != 0; 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150ac_clean_files="$ac_clean_files conftest.out" 3151# Check that the compiler produces executables we can run. If not, either 3152# the compiler is broken, or we cross compile. 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3154$as_echo_n "checking whether we are cross compiling... " >&6; } 3155if test "$cross_compiling" != yes; then 3156 { { ac_try="$ac_link" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162$as_echo "$ac_try_echo"; } >&5 3163 (eval "$ac_link") 2>&5 3164 ac_status=$? 3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166 test $ac_status = 0; } 3167 if { ac_try='./conftest$ac_cv_exeext' 3168 { { case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173$as_echo "$ac_try_echo"; } >&5 3174 (eval "$ac_try") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; }; then 3178 cross_compiling=no 3179 else 3180 if test "$cross_compiling" = maybe; then 3181 cross_compiling=yes 3182 else 3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3185as_fn_error $? "cannot run C compiled programs. 3186If you meant to cross compile, use \`--host'. 3187See \`config.log' for more details" "$LINENO" 5; } 3188 fi 3189 fi 3190fi 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3192$as_echo "$cross_compiling" >&6; } 3193 3194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3195ac_clean_files=$ac_clean_files_save 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3197$as_echo_n "checking for suffix of object files... " >&6; } 3198if ${ac_cv_objext+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202/* end confdefs.h. */ 3203 3204int 3205main () 3206{ 3207 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212rm -f conftest.o conftest.obj 3213if { { ac_try="$ac_compile" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_compile") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 for ac_file in conftest.o conftest.obj conftest.*; do 3225 test -f "$ac_file" || continue; 3226 case $ac_file in 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3229 break;; 3230 esac 3231done 3232else 3233 $as_echo "$as_me: failed program was:" >&5 3234sed 's/^/| /' conftest.$ac_ext >&5 3235 3236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3238as_fn_error $? "cannot compute suffix of object files: cannot compile 3239See \`config.log' for more details" "$LINENO" 5; } 3240fi 3241rm -f conftest.$ac_cv_objext conftest.$ac_ext 3242fi 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3244$as_echo "$ac_cv_objext" >&6; } 3245OBJEXT=$ac_cv_objext 3246ac_objext=$OBJEXT 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3248$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3249if ${ac_cv_c_compiler_gnu+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251else 3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258#ifndef __GNUC__ 3259 choke me 3260#endif 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266if ac_fn_c_try_compile "$LINENO"; then : 3267 ac_compiler_gnu=yes 3268else 3269 ac_compiler_gnu=no 3270fi 3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3272ac_cv_c_compiler_gnu=$ac_compiler_gnu 3273 3274fi 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3276$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3277if test $ac_compiler_gnu = yes; then 3278 GCC=yes 3279else 3280 GCC= 3281fi 3282ac_test_CFLAGS=${CFLAGS+set} 3283ac_save_CFLAGS=$CFLAGS 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3285$as_echo_n "checking whether $CC accepts -g... " >&6; } 3286if ${ac_cv_prog_cc_g+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 ac_save_c_werror_flag=$ac_c_werror_flag 3290 ac_c_werror_flag=yes 3291 ac_cv_prog_cc_g=no 3292 CFLAGS="-g" 3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295 3296int 3297main () 3298{ 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304if ac_fn_c_try_compile "$LINENO"; then : 3305 ac_cv_prog_cc_g=yes 3306else 3307 CFLAGS="" 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319if ac_fn_c_try_compile "$LINENO"; then : 3320 3321else 3322 ac_c_werror_flag=$ac_save_c_werror_flag 3323 CFLAGS="-g" 3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326 3327int 3328main () 3329{ 3330 3331 ; 3332 return 0; 3333} 3334_ACEOF 3335if ac_fn_c_try_compile "$LINENO"; then : 3336 ac_cv_prog_cc_g=yes 3337fi 3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341fi 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343 ac_c_werror_flag=$ac_save_c_werror_flag 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3346$as_echo "$ac_cv_prog_cc_g" >&6; } 3347if test "$ac_test_CFLAGS" = set; then 3348 CFLAGS=$ac_save_CFLAGS 3349elif test $ac_cv_prog_cc_g = yes; then 3350 if test "$GCC" = yes; then 3351 CFLAGS="-g -O2" 3352 else 3353 CFLAGS="-g" 3354 fi 3355else 3356 if test "$GCC" = yes; then 3357 CFLAGS="-O2" 3358 else 3359 CFLAGS= 3360 fi 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3363$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3364if ${ac_cv_prog_cc_c89+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 ac_cv_prog_cc_c89=no 3368ac_save_CC=$CC 3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371#include <stdarg.h> 3372#include <stdio.h> 3373struct stat; 3374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3375struct buf { int x; }; 3376FILE * (*rcsopen) (struct buf *, struct stat *, int); 3377static char *e (p, i) 3378 char **p; 3379 int i; 3380{ 3381 return p[i]; 3382} 3383static char *f (char * (*g) (char **, int), char **p, ...) 3384{ 3385 char *s; 3386 va_list v; 3387 va_start (v,p); 3388 s = g (p, va_arg (v,int)); 3389 va_end (v); 3390 return s; 3391} 3392 3393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3394 function prototypes and stuff, but not '\xHH' hex character constants. 3395 These don't provoke an error unfortunately, instead are silently treated 3396 as 'x'. The following induces an error, until -std is added to get 3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3398 array size at least. It's necessary to write '\x00'==0 to get something 3399 that's true only with -std. */ 3400int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3401 3402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3403 inside strings and character constants. */ 3404#define FOO(x) 'x' 3405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3406 3407int test (int i, double x); 3408struct s1 {int (*f) (int a);}; 3409struct s2 {int (*f) (double a);}; 3410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3411int argc; 3412char **argv; 3413int 3414main () 3415{ 3416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3423do 3424 CC="$ac_save_CC $ac_arg" 3425 if ac_fn_c_try_compile "$LINENO"; then : 3426 ac_cv_prog_cc_c89=$ac_arg 3427fi 3428rm -f core conftest.err conftest.$ac_objext 3429 test "x$ac_cv_prog_cc_c89" != "xno" && break 3430done 3431rm -f conftest.$ac_ext 3432CC=$ac_save_CC 3433 3434fi 3435# AC_CACHE_VAL 3436case "x$ac_cv_prog_cc_c89" in 3437 x) 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3439$as_echo "none needed" >&6; } ;; 3440 xno) 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3442$as_echo "unsupported" >&6; } ;; 3443 *) 3444 CC="$CC $ac_cv_prog_cc_c89" 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3447esac 3448if test "x$ac_cv_prog_cc_c89" != xno; then : 3449 3450fi 3451 3452ac_ext=c 3453ac_cpp='$CPP $CPPFLAGS' 3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3456ac_compiler_gnu=$ac_cv_c_compiler_gnu 3457 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3459$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3460if ${ac_cv_prog_cc_c99+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 ac_cv_prog_cc_c99=no 3464ac_save_CC=$CC 3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467#include <stdarg.h> 3468#include <stdbool.h> 3469#include <stdlib.h> 3470#include <wchar.h> 3471#include <stdio.h> 3472 3473// Check varargs macros. These examples are taken from C99 6.10.3.5. 3474#define debug(...) fprintf (stderr, __VA_ARGS__) 3475#define showlist(...) puts (#__VA_ARGS__) 3476#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3477static void 3478test_varargs_macros (void) 3479{ 3480 int x = 1234; 3481 int y = 5678; 3482 debug ("Flag"); 3483 debug ("X = %d\n", x); 3484 showlist (The first, second, and third items.); 3485 report (x>y, "x is %d but y is %d", x, y); 3486} 3487 3488// Check long long types. 3489#define BIG64 18446744073709551615ull 3490#define BIG32 4294967295ul 3491#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3492#if !BIG_OK 3493 your preprocessor is broken; 3494#endif 3495#if BIG_OK 3496#else 3497 your preprocessor is broken; 3498#endif 3499static long long int bignum = -9223372036854775807LL; 3500static unsigned long long int ubignum = BIG64; 3501 3502struct incomplete_array 3503{ 3504 int datasize; 3505 double data[]; 3506}; 3507 3508struct named_init { 3509 int number; 3510 const wchar_t *name; 3511 double average; 3512}; 3513 3514typedef const char *ccp; 3515 3516static inline int 3517test_restrict (ccp restrict text) 3518{ 3519 // See if C++-style comments work. 3520 // Iterate through items via the restricted pointer. 3521 // Also check for declarations in for loops. 3522 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3523 continue; 3524 return 0; 3525} 3526 3527// Check varargs and va_copy. 3528static void 3529test_varargs (const char *format, ...) 3530{ 3531 va_list args; 3532 va_start (args, format); 3533 va_list args_copy; 3534 va_copy (args_copy, args); 3535 3536 const char *str; 3537 int number; 3538 float fnumber; 3539 3540 while (*format) 3541 { 3542 switch (*format++) 3543 { 3544 case 's': // string 3545 str = va_arg (args_copy, const char *); 3546 break; 3547 case 'd': // int 3548 number = va_arg (args_copy, int); 3549 break; 3550 case 'f': // float 3551 fnumber = va_arg (args_copy, double); 3552 break; 3553 default: 3554 break; 3555 } 3556 } 3557 va_end (args_copy); 3558 va_end (args); 3559} 3560 3561int 3562main () 3563{ 3564 3565 // Check bool. 3566 _Bool success = false; 3567 3568 // Check restrict. 3569 if (test_restrict ("String literal") == 0) 3570 success = true; 3571 char *restrict newvar = "Another string"; 3572 3573 // Check varargs. 3574 test_varargs ("s, d' f .", "string", 65, 34.234); 3575 test_varargs_macros (); 3576 3577 // Check flexible array members. 3578 struct incomplete_array *ia = 3579 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3580 ia->datasize = 10; 3581 for (int i = 0; i < ia->datasize; ++i) 3582 ia->data[i] = i * 1.234; 3583 3584 // Check named initializers. 3585 struct named_init ni = { 3586 .number = 34, 3587 .name = L"Test wide string", 3588 .average = 543.34343, 3589 }; 3590 3591 ni.number = 58; 3592 3593 int dynamic_array[ni.number]; 3594 dynamic_array[ni.number - 1] = 543; 3595 3596 // work around unused variable warnings 3597 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3598 || dynamic_array[ni.number - 1] != 543); 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3605do 3606 CC="$ac_save_CC $ac_arg" 3607 if ac_fn_c_try_compile "$LINENO"; then : 3608 ac_cv_prog_cc_c99=$ac_arg 3609fi 3610rm -f core conftest.err conftest.$ac_objext 3611 test "x$ac_cv_prog_cc_c99" != "xno" && break 3612done 3613rm -f conftest.$ac_ext 3614CC=$ac_save_CC 3615 3616fi 3617# AC_CACHE_VAL 3618case "x$ac_cv_prog_cc_c99" in 3619 x) 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3621$as_echo "none needed" >&6; } ;; 3622 xno) 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3624$as_echo "unsupported" >&6; } ;; 3625 *) 3626 CC="$CC $ac_cv_prog_cc_c99" 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3628$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3629esac 3630if test "x$ac_cv_prog_cc_c99" != xno; then : 3631 3632fi 3633 3634 ac_ext=c 3635ac_cpp='$CPP $CPPFLAGS' 3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3638ac_compiler_gnu=$ac_cv_c_compiler_gnu 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3640$as_echo_n "checking how to run the C preprocessor... " >&6; } 3641# On Suns, sometimes $CPP names a directory. 3642if test -n "$CPP" && test -d "$CPP"; then 3643 CPP= 3644fi 3645if test -z "$CPP"; then 3646 if ${ac_cv_prog_CPP+:} false; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 # Double quotes because CPP needs to be expanded 3650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3651 do 3652 ac_preproc_ok=false 3653for ac_c_preproc_warn_flag in '' yes 3654do 3655 # Use a header file that comes with gcc, so configuring glibc 3656 # with a fresh cross-compiler works. 3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3658 # <limits.h> exists even on freestanding compilers. 3659 # On the NeXT, cc -E runs the code through the compiler's parser, 3660 # not just through cpp. "Syntax error" is here to catch this case. 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663#ifdef __STDC__ 3664# include <limits.h> 3665#else 3666# include <assert.h> 3667#endif 3668 Syntax error 3669_ACEOF 3670if ac_fn_c_try_cpp "$LINENO"; then : 3671 3672else 3673 # Broken: fails on valid input. 3674continue 3675fi 3676rm -f conftest.err conftest.i conftest.$ac_ext 3677 3678 # OK, works on sane cases. Now check whether nonexistent headers 3679 # can be detected and how. 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682#include <ac_nonexistent.h> 3683_ACEOF 3684if ac_fn_c_try_cpp "$LINENO"; then : 3685 # Broken: success on invalid input. 3686continue 3687else 3688 # Passes both tests. 3689ac_preproc_ok=: 3690break 3691fi 3692rm -f conftest.err conftest.i conftest.$ac_ext 3693 3694done 3695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3696rm -f conftest.i conftest.err conftest.$ac_ext 3697if $ac_preproc_ok; then : 3698 break 3699fi 3700 3701 done 3702 ac_cv_prog_CPP=$CPP 3703 3704fi 3705 CPP=$ac_cv_prog_CPP 3706else 3707 ac_cv_prog_CPP=$CPP 3708fi 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3710$as_echo "$CPP" >&6; } 3711ac_preproc_ok=false 3712for ac_c_preproc_warn_flag in '' yes 3713do 3714 # Use a header file that comes with gcc, so configuring glibc 3715 # with a fresh cross-compiler works. 3716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3717 # <limits.h> exists even on freestanding compilers. 3718 # On the NeXT, cc -E runs the code through the compiler's parser, 3719 # not just through cpp. "Syntax error" is here to catch this case. 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722#ifdef __STDC__ 3723# include <limits.h> 3724#else 3725# include <assert.h> 3726#endif 3727 Syntax error 3728_ACEOF 3729if ac_fn_c_try_cpp "$LINENO"; then : 3730 3731else 3732 # Broken: fails on valid input. 3733continue 3734fi 3735rm -f conftest.err conftest.i conftest.$ac_ext 3736 3737 # OK, works on sane cases. Now check whether nonexistent headers 3738 # can be detected and how. 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741#include <ac_nonexistent.h> 3742_ACEOF 3743if ac_fn_c_try_cpp "$LINENO"; then : 3744 # Broken: success on invalid input. 3745continue 3746else 3747 # Passes both tests. 3748ac_preproc_ok=: 3749break 3750fi 3751rm -f conftest.err conftest.i conftest.$ac_ext 3752 3753done 3754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3755rm -f conftest.i conftest.err conftest.$ac_ext 3756if $ac_preproc_ok; then : 3757 3758else 3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3761as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3762See \`config.log' for more details" "$LINENO" 5; } 3763fi 3764 3765ac_ext=c 3766ac_cpp='$CPP $CPPFLAGS' 3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3769ac_compiler_gnu=$ac_cv_c_compiler_gnu 3770 3771 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3773$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3774if ${ac_cv_path_GREP+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 if test -z "$GREP"; then 3778 ac_path_GREP_found=false 3779 # Loop through the user's path and test for each of PROGNAME-LIST 3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3782do 3783 IFS=$as_save_IFS 3784 test -z "$as_dir" && as_dir=. 3785 for ac_prog in grep ggrep; do 3786 for ac_exec_ext in '' $ac_executable_extensions; do 3787 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3788 as_fn_executable_p "$ac_path_GREP" || continue 3789# Check for GNU ac_path_GREP and select it if it is found. 3790 # Check for GNU $ac_path_GREP 3791case `"$ac_path_GREP" --version 2>&1` in 3792*GNU*) 3793 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3794*) 3795 ac_count=0 3796 $as_echo_n 0123456789 >"conftest.in" 3797 while : 3798 do 3799 cat "conftest.in" "conftest.in" >"conftest.tmp" 3800 mv "conftest.tmp" "conftest.in" 3801 cp "conftest.in" "conftest.nl" 3802 $as_echo 'GREP' >> "conftest.nl" 3803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3805 as_fn_arith $ac_count + 1 && ac_count=$as_val 3806 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3807 # Best one so far, save it but keep looking for a better one 3808 ac_cv_path_GREP="$ac_path_GREP" 3809 ac_path_GREP_max=$ac_count 3810 fi 3811 # 10*(2^10) chars as input seems more than enough 3812 test $ac_count -gt 10 && break 3813 done 3814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3815esac 3816 3817 $ac_path_GREP_found && break 3 3818 done 3819 done 3820 done 3821IFS=$as_save_IFS 3822 if test -z "$ac_cv_path_GREP"; then 3823 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3824 fi 3825else 3826 ac_cv_path_GREP=$GREP 3827fi 3828 3829fi 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3831$as_echo "$ac_cv_path_GREP" >&6; } 3832 GREP="$ac_cv_path_GREP" 3833 3834 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3836$as_echo_n "checking for egrep... " >&6; } 3837if ${ac_cv_path_EGREP+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3841 then ac_cv_path_EGREP="$GREP -E" 3842 else 3843 if test -z "$EGREP"; then 3844 ac_path_EGREP_found=false 3845 # Loop through the user's path and test for each of PROGNAME-LIST 3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_prog in egrep; do 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3854 as_fn_executable_p "$ac_path_EGREP" || continue 3855# Check for GNU ac_path_EGREP and select it if it is found. 3856 # Check for GNU $ac_path_EGREP 3857case `"$ac_path_EGREP" --version 2>&1` in 3858*GNU*) 3859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3860*) 3861 ac_count=0 3862 $as_echo_n 0123456789 >"conftest.in" 3863 while : 3864 do 3865 cat "conftest.in" "conftest.in" >"conftest.tmp" 3866 mv "conftest.tmp" "conftest.in" 3867 cp "conftest.in" "conftest.nl" 3868 $as_echo 'EGREP' >> "conftest.nl" 3869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3871 as_fn_arith $ac_count + 1 && ac_count=$as_val 3872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3873 # Best one so far, save it but keep looking for a better one 3874 ac_cv_path_EGREP="$ac_path_EGREP" 3875 ac_path_EGREP_max=$ac_count 3876 fi 3877 # 10*(2^10) chars as input seems more than enough 3878 test $ac_count -gt 10 && break 3879 done 3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3881esac 3882 3883 $ac_path_EGREP_found && break 3 3884 done 3885 done 3886 done 3887IFS=$as_save_IFS 3888 if test -z "$ac_cv_path_EGREP"; then 3889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3890 fi 3891else 3892 ac_cv_path_EGREP=$EGREP 3893fi 3894 3895 fi 3896fi 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3898$as_echo "$ac_cv_path_EGREP" >&6; } 3899 EGREP="$ac_cv_path_EGREP" 3900 3901 3902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903/* end confdefs.h. */ 3904 3905_ACEOF 3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3907 $EGREP "" >/dev/null 2>&1; then : 3908 3909fi 3910rm -f conftest* 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3912$as_echo_n "checking for fgrep... " >&6; } 3913if ${ac_cv_path_FGREP+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3917 then ac_cv_path_FGREP="$GREP -F" 3918 else 3919 if test -z "$FGREP"; then 3920 ac_path_FGREP_found=false 3921 # Loop through the user's path and test for each of PROGNAME-LIST 3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_prog in fgrep; do 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3930 as_fn_executable_p "$ac_path_FGREP" || continue 3931# Check for GNU ac_path_FGREP and select it if it is found. 3932 # Check for GNU $ac_path_FGREP 3933case `"$ac_path_FGREP" --version 2>&1` in 3934*GNU*) 3935 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3936*) 3937 ac_count=0 3938 $as_echo_n 0123456789 >"conftest.in" 3939 while : 3940 do 3941 cat "conftest.in" "conftest.in" >"conftest.tmp" 3942 mv "conftest.tmp" "conftest.in" 3943 cp "conftest.in" "conftest.nl" 3944 $as_echo 'FGREP' >> "conftest.nl" 3945 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3947 as_fn_arith $ac_count + 1 && ac_count=$as_val 3948 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3949 # Best one so far, save it but keep looking for a better one 3950 ac_cv_path_FGREP="$ac_path_FGREP" 3951 ac_path_FGREP_max=$ac_count 3952 fi 3953 # 10*(2^10) chars as input seems more than enough 3954 test $ac_count -gt 10 && break 3955 done 3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3957esac 3958 3959 $ac_path_FGREP_found && break 3 3960 done 3961 done 3962 done 3963IFS=$as_save_IFS 3964 if test -z "$ac_cv_path_FGREP"; then 3965 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3966 fi 3967else 3968 ac_cv_path_FGREP=$FGREP 3969fi 3970 3971 fi 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3974$as_echo "$ac_cv_path_FGREP" >&6; } 3975 FGREP="$ac_cv_path_FGREP" 3976 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3978$as_echo_n "checking for library containing strerror... " >&6; } 3979if ${ac_cv_search_strerror+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 ac_func_search_save_LIBS=$LIBS 3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985 3986/* Override any GCC internal prototype to avoid an error. 3987 Use char because int might match the return type of a GCC 3988 builtin and then its argument prototype would still apply. */ 3989#ifdef __cplusplus 3990extern "C" 3991#endif 3992char strerror (); 3993int 3994main () 3995{ 3996return strerror (); 3997 ; 3998 return 0; 3999} 4000_ACEOF 4001for ac_lib in '' cposix; do 4002 if test -z "$ac_lib"; then 4003 ac_res="none required" 4004 else 4005 ac_res=-l$ac_lib 4006 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4007 fi 4008 if ac_fn_c_try_link "$LINENO"; then : 4009 ac_cv_search_strerror=$ac_res 4010fi 4011rm -f core conftest.err conftest.$ac_objext \ 4012 conftest$ac_exeext 4013 if ${ac_cv_search_strerror+:} false; then : 4014 break 4015fi 4016done 4017if ${ac_cv_search_strerror+:} false; then : 4018 4019else 4020 ac_cv_search_strerror=no 4021fi 4022rm conftest.$ac_ext 4023LIBS=$ac_func_search_save_LIBS 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4026$as_echo "$ac_cv_search_strerror" >&6; } 4027ac_res=$ac_cv_search_strerror 4028if test "$ac_res" != no; then : 4029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4030 4031fi 4032 for ac_prog in gawk mawk nawk awk 4033do 4034 # Extract the first word of "$ac_prog", so it can be a program name with args. 4035set dummy $ac_prog; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if ${ac_cv_prog_AWK+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$AWK"; then 4042 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4043else 4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4051 ac_cv_prog_AWK="$ac_prog" 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4053 break 2 4054 fi 4055done 4056 done 4057IFS=$as_save_IFS 4058 4059fi 4060fi 4061AWK=$ac_cv_prog_AWK 4062if test -n "$AWK"; then 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4064$as_echo "$AWK" >&6; } 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068fi 4069 4070 4071 test -n "$AWK" && break 4072done 4073 4074# Extract the first word of "strip", so it can be a program name with args. 4075set dummy strip; ac_word=$2 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4077$as_echo_n "checking for $ac_word... " >&6; } 4078if ${ac_cv_prog_STRIP+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 if test -n "$STRIP"; then 4082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4083else 4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4085for as_dir in $PATH 4086do 4087 IFS=$as_save_IFS 4088 test -z "$as_dir" && as_dir=. 4089 for ac_exec_ext in '' $ac_executable_extensions; do 4090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4091 ac_cv_prog_STRIP="strip" 4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4093 break 2 4094 fi 4095done 4096 done 4097IFS=$as_save_IFS 4098 4099 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4100fi 4101fi 4102STRIP=$ac_cv_prog_STRIP 4103if test -n "$STRIP"; then 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4105$as_echo "$STRIP" >&6; } 4106else 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4108$as_echo "no" >&6; } 4109fi 4110 4111 4112 4113 4114 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4116$as_echo_n "checking for ANSI C header files... " >&6; } 4117if ${ac_cv_header_stdc+:} false; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <stdlib.h> 4123#include <stdarg.h> 4124#include <string.h> 4125#include <float.h> 4126 4127int 4128main () 4129{ 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135if ac_fn_c_try_compile "$LINENO"; then : 4136 ac_cv_header_stdc=yes 4137else 4138 ac_cv_header_stdc=no 4139fi 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141 4142if test $ac_cv_header_stdc = yes; then 4143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146#include <string.h> 4147 4148_ACEOF 4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4150 $EGREP "memchr" >/dev/null 2>&1; then : 4151 4152else 4153 ac_cv_header_stdc=no 4154fi 4155rm -f conftest* 4156 4157fi 4158 4159if test $ac_cv_header_stdc = yes; then 4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162/* end confdefs.h. */ 4163#include <stdlib.h> 4164 4165_ACEOF 4166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4167 $EGREP "free" >/dev/null 2>&1; then : 4168 4169else 4170 ac_cv_header_stdc=no 4171fi 4172rm -f conftest* 4173 4174fi 4175 4176if test $ac_cv_header_stdc = yes; then 4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4178 if test "$cross_compiling" = yes; then : 4179 : 4180else 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183#include <ctype.h> 4184#include <stdlib.h> 4185#if ((' ' & 0x0FF) == 0x020) 4186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4188#else 4189# define ISLOWER(c) \ 4190 (('a' <= (c) && (c) <= 'i') \ 4191 || ('j' <= (c) && (c) <= 'r') \ 4192 || ('s' <= (c) && (c) <= 'z')) 4193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4194#endif 4195 4196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4197int 4198main () 4199{ 4200 int i; 4201 for (i = 0; i < 256; i++) 4202 if (XOR (islower (i), ISLOWER (i)) 4203 || toupper (i) != TOUPPER (i)) 4204 return 2; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_c_try_run "$LINENO"; then : 4209 4210else 4211 ac_cv_header_stdc=no 4212fi 4213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4214 conftest.$ac_objext conftest.beam conftest.$ac_ext 4215fi 4216 4217fi 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4220$as_echo "$ac_cv_header_stdc" >&6; } 4221if test $ac_cv_header_stdc = yes; then 4222 4223$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4224 4225fi 4226 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4228$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4229if ${ac_cv_header_sys_wait_h+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234#include <sys/types.h> 4235#include <sys/wait.h> 4236#ifndef WEXITSTATUS 4237# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4238#endif 4239#ifndef WIFEXITED 4240# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4241#endif 4242 4243int 4244main () 4245{ 4246 int s; 4247 wait (&s); 4248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253if ac_fn_c_try_compile "$LINENO"; then : 4254 ac_cv_header_sys_wait_h=yes 4255else 4256 ac_cv_header_sys_wait_h=no 4257fi 4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4259fi 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4261$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4262if test $ac_cv_header_sys_wait_h = yes; then 4263 4264$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4265 4266fi 4267 4268 4269if test x"$ac_cv_prog_cc_c99" != xno; then 4270 4271 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 4273$as_echo_n "checking for unsigned long long int... " >&6; } 4274if ${ac_cv_type_unsigned_long_long_int+:} false; then : 4275 $as_echo_n "(cached) " >&6 4276else 4277 ac_cv_type_unsigned_long_long_int=yes 4278 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281 4282 /* For now, do not test the preprocessor; as of 2007 there are too many 4283 implementations with broken preprocessors. Perhaps this can 4284 be revisited in 2012. In the meantime, code should not expect 4285 #if to work with literals wider than 32 bits. */ 4286 /* Test literals. */ 4287 long long int ll = 9223372036854775807ll; 4288 long long int nll = -9223372036854775807LL; 4289 unsigned long long int ull = 18446744073709551615ULL; 4290 /* Test constant expressions. */ 4291 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 4292 ? 1 : -1)]; 4293 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 4294 ? 1 : -1)]; 4295 int i = 63; 4296int 4297main () 4298{ 4299/* Test availability of runtime routines for shift and division. */ 4300 long long int llmax = 9223372036854775807ll; 4301 unsigned long long int ullmax = 18446744073709551615ull; 4302 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 4303 | (llmax / ll) | (llmax % ll) 4304 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 4305 | (ullmax / ull) | (ullmax % ull)); 4306 ; 4307 return 0; 4308} 4309 4310_ACEOF 4311if ac_fn_c_try_link "$LINENO"; then : 4312 4313else 4314 ac_cv_type_unsigned_long_long_int=no 4315fi 4316rm -f core conftest.err conftest.$ac_objext \ 4317 conftest$ac_exeext conftest.$ac_ext 4318 fi 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 4321$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 4322 if test $ac_cv_type_unsigned_long_long_int = yes; then 4323 4324$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 4325 4326 fi 4327 4328 4329 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 4331$as_echo_n "checking for long long int... " >&6; } 4332if ${ac_cv_type_long_long_int+:} false; then : 4333 $as_echo_n "(cached) " >&6 4334else 4335 ac_cv_type_long_long_int=yes 4336 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4337 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 4338 if test $ac_cv_type_long_long_int = yes; then 4339 if test "$cross_compiling" = yes; then : 4340 : 4341else 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343/* end confdefs.h. */ 4344#include <limits.h> 4345 #ifndef LLONG_MAX 4346 # define HALF \ 4347 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 4348 # define LLONG_MAX (HALF - 1 + HALF) 4349 #endif 4350int 4351main () 4352{ 4353long long int n = 1; 4354 int i; 4355 for (i = 0; ; i++) 4356 { 4357 long long int m = n << i; 4358 if (m >> i != n) 4359 return 1; 4360 if (LLONG_MAX / 2 < m) 4361 break; 4362 } 4363 return 0; 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368if ac_fn_c_try_run "$LINENO"; then : 4369 4370else 4371 ac_cv_type_long_long_int=no 4372fi 4373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4374 conftest.$ac_objext conftest.beam conftest.$ac_ext 4375fi 4376 4377 fi 4378 fi 4379fi 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 4381$as_echo "$ac_cv_type_long_long_int" >&6; } 4382 if test $ac_cv_type_long_long_int = yes; then 4383 4384$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 4385 4386 fi 4387 4388 if test "$ac_cv_type_long_long_int" = no; then 4389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4391as_fn_error $? "Compiler does not support long long int 4392See \`config.log' for more details" "$LINENO" 5; } 4393 fi 4394 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 4396$as_echo_n "checking if the compiler supports trailing commas... " >&6; } 4397 trailing_commas=no 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400 4401int 4402main () 4403{ 4404 4405 enum { 4406 one, 4407 }; 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412if ac_fn_c_try_compile "$LINENO"; then : 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4414$as_echo "yes" >&6; }; trailing_commas=yes 4415else 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4417$as_echo "no" >&6; } 4418fi 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420 if test "$trailing_commas" = no; then 4421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4423as_fn_error $? "Compiler does not support trailing comma in enum 4424See \`config.log' for more details" "$LINENO" 5; } 4425 fi 4426 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 4428$as_echo_n "checking if the compiler supports C++ comments... " >&6; } 4429 slash_comments=no 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431/* end confdefs.h. */ 4432 4433int 4434main () 4435{ 4436// C++ comments? 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441if ac_fn_c_try_compile "$LINENO"; then : 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4443$as_echo "yes" >&6; }; slash_comments=yes 4444else 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446$as_echo "no" >&6; } 4447fi 4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4449 if test "$slash_comments" = no; then 4450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4452as_fn_error $? "Compiler does not support C++ comments 4453See \`config.log' for more details" "$LINENO" 5; } 4454 fi 4455fi 4456 4457if test -n "$SOURCE_DATE_EPOCH"; then 4458 DATE_FMT="%b %d %Y %H:%M:%S" 4459 BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT") 4460 cat >>confdefs.h <<_ACEOF 4461#define BUILD_DATE "$BUILD_DATE" 4462_ACEOF 4463 4464 BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='" 4465 4466fi 4467 4468 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4470$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4471# Check whether --enable-fail_if_missing was given. 4472if test "${enable_fail_if_missing+set}" = set; then : 4473 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4474else 4475 fail_if_missing="no" 4476fi 4477 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4479$as_echo "$fail_if_missing" >&6; } 4480 4481with_x_arg="$with_x" 4482 4483if test -z "$CFLAGS"; then 4484 CFLAGS="-O" 4485 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations" 4486fi 4487if test "$GCC" = yes; then 4488 gccversion=`$CC -dumpversion` 4489 if test "x$gccversion" = "x"; then 4490 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4491 fi 4492 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4493 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4494 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4495 else 4496 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4497 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4498 CFLAGS="$CFLAGS -fno-strength-reduce" 4499 fi 4500 fi 4501fi 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4504$as_echo_n "checking for clang version... " >&6; } 4505CLANG_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'` 4506if test x"$CLANG_VERSION_STRING" != x"" ; then 4507 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4508 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4509 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4510 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4512$as_echo "$CLANG_VERSION" >&6; } 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4514$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4515 if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4517$as_echo "no" >&6; } 4518 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4519 else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4521$as_echo "yes" >&6; } 4522 fi 4523else 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4525$as_echo "N/A" >&6; } 4526fi 4527 4528CROSS_COMPILING= 4529if test "$cross_compiling" = yes; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4531$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4532 CROSS_COMPILING=1 4533fi 4534 4535 4536test "$GCC" = yes && CPP_MM=M; 4537 4538if test -f ./toolcheck; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4540$as_echo "$as_me: checking for buggy tools..." >&6;} 4541 sh ./toolcheck 1>&6 4542fi 4543 4544OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5 4547$as_echo_n "checking for Haiku... " >&6; } 4548case `uname` in 4549 Haiku) HAIKU=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4550$as_echo "yes" >&6; };; 4551 *) HAIKU=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4552$as_echo "no" >&6; };; 4553esac 4554 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4556$as_echo_n "checking for QNX... " >&6; } 4557case `uname` in 4558 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4559 test -z "$with_x" && with_x=no 4560 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4561$as_echo "yes" >&6; };; 4562 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; };; 4564esac 4565 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4567$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4568if test "`(uname) 2>/dev/null`" = Darwin; then 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4570$as_echo "yes" >&6; } 4571 MACOS_X=yes 4572 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4573 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4575$as_echo_n "checking --disable-darwin argument... " >&6; } 4576 # Check whether --enable-darwin was given. 4577if test "${enable_darwin+set}" = set; then : 4578 enableval=$enable_darwin; 4579else 4580 enable_darwin="yes" 4581fi 4582 4583 if test "$enable_darwin" = "yes"; then 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4587$as_echo_n "checking if Darwin files are there... " >&6; } 4588 if test -f os_macosx.m; then 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4590$as_echo "yes" >&6; } 4591 else 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4593$as_echo "no, Darwin support disabled" >&6; } 4594 enable_darwin=no 4595 fi 4596 else 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4598$as_echo "yes, Darwin support excluded" >&6; } 4599 fi 4600 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4602$as_echo_n "checking --with-mac-arch argument... " >&6; } 4603 4604# Check whether --with-mac-arch was given. 4605if test "${with_mac_arch+set}" = set; then : 4606 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4607$as_echo "$MACARCH" >&6; } 4608else 4609 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4610$as_echo "defaulting to $MACARCH" >&6; } 4611fi 4612 4613 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4615$as_echo_n "checking --with-developer-dir argument... " >&6; } 4616 4617# Check whether --with-developer-dir was given. 4618if test "${with_developer_dir+set}" = set; then : 4619 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4620$as_echo "$DEVELOPER_DIR" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4623$as_echo "not present" >&6; } 4624fi 4625 4626 4627 if test "x$DEVELOPER_DIR" = "x"; then 4628 # Extract the first word of "xcode-select", so it can be a program name with args. 4629set dummy xcode-select; ac_word=$2 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631$as_echo_n "checking for $ac_word... " >&6; } 4632if ${ac_cv_path_XCODE_SELECT+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 case $XCODE_SELECT in 4636 [\\/]* | ?:[\\/]*) 4637 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4638 ;; 4639 *) 4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651done 4652 done 4653IFS=$as_save_IFS 4654 4655 ;; 4656esac 4657fi 4658XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4659if test -n "$XCODE_SELECT"; then 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4661$as_echo "$XCODE_SELECT" >&6; } 4662else 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4664$as_echo "no" >&6; } 4665fi 4666 4667 4668 if test "x$XCODE_SELECT" != "x"; then 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4670$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4671 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4673$as_echo "$DEVELOPER_DIR" >&6; } 4674 else 4675 DEVELOPER_DIR=/Developer 4676 fi 4677 fi 4678 4679 if test "x$MACARCH" = "xboth"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4681$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4682 save_cppflags="$CPPFLAGS" 4683 save_cflags="$CFLAGS" 4684 save_ldflags="$LDFLAGS" 4685 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687/* end confdefs.h. */ 4688 4689int 4690main () 4691{ 4692 4693 ; 4694 return 0; 4695} 4696_ACEOF 4697if ac_fn_c_try_link "$LINENO"; then : 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4699$as_echo "found" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4702$as_echo "not found" >&6; } 4703 CFLAGS="$save_cflags" 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4705$as_echo_n "checking if Intel architecture is supported... " >&6; } 4706 CPPFLAGS="$CPPFLAGS -arch i386" 4707 LDFLAGS="$save_ldflags -arch i386" 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719if ac_fn_c_try_link "$LINENO"; then : 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4721$as_echo "yes" >&6; }; MACARCH="intel" 4722else 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4724$as_echo "no" >&6; } 4725 MACARCH="ppc" 4726 CPPFLAGS="$save_cppflags -arch ppc" 4727 LDFLAGS="$save_ldflags -arch ppc" 4728fi 4729rm -f core conftest.err conftest.$ac_objext \ 4730 conftest$ac_exeext conftest.$ac_ext 4731fi 4732rm -f core conftest.err conftest.$ac_objext \ 4733 conftest$ac_exeext conftest.$ac_ext 4734 elif test "x$MACARCH" = "xintel"; then 4735 CPPFLAGS="$CPPFLAGS -arch intel" 4736 LDFLAGS="$LDFLAGS -arch intel" 4737 elif test "x$MACARCH" = "xppc"; then 4738 CPPFLAGS="$CPPFLAGS -arch ppc" 4739 LDFLAGS="$LDFLAGS -arch ppc" 4740 fi 4741 4742 if test "$enable_darwin" = "yes"; then 4743 MACOS_X_DARWIN=yes 4744 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4745 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4746 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4747 4748 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 4749 with_x=no 4750 fi 4751 fi 4752 4753 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4754 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4755 fi 4756 4757else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759$as_echo "no" >&6; } 4760fi 4761 4762# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4764 inttypes.h stdint.h unistd.h 4765do : 4766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4768" 4769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4770 cat >>confdefs.h <<_ACEOF 4771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4772_ACEOF 4773 4774fi 4775 4776done 4777 4778 4779for ac_header in AvailabilityMacros.h 4780do : 4781 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4782if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4783 cat >>confdefs.h <<_ACEOF 4784#define HAVE_AVAILABILITYMACROS_H 1 4785_ACEOF 4786 4787fi 4788 4789done 4790 4791 4792 4793 4794 4795if test "$cross_compiling" = no; then 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4797$as_echo_n "checking --with-local-dir argument... " >&6; } 4798 have_local_include='' 4799 have_local_lib='' 4800 4801# Check whether --with-local-dir was given. 4802if test "${with_local_dir+set}" = set; then : 4803 withval=$with_local_dir; 4804 local_dir="$withval" 4805 case "$withval" in 4806 */*) ;; 4807 no) 4808 # avoid adding local dir to LDFLAGS and CPPFLAGS 4809 have_local_include=yes 4810 have_local_lib=yes 4811 ;; 4812 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4813 esac 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4815$as_echo "$local_dir" >&6; } 4816 4817else 4818 4819 local_dir=/usr/local 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4821$as_echo "Defaulting to $local_dir" >&6; } 4822 4823fi 4824 4825 if test "$GCC" = yes -a "$local_dir" != no; then 4826 echo 'void f(){}' > conftest.c 4827 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4828 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4829 rm -f conftest.c conftest.o 4830 fi 4831 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4832 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4833 if test "$tt" = "$LDFLAGS"; then 4834 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4835 fi 4836 fi 4837 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4838 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4839 if test "$tt" = "$CPPFLAGS"; then 4840 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4841 fi 4842 fi 4843fi 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4846$as_echo_n "checking --with-vim-name argument... " >&6; } 4847 4848# Check whether --with-vim-name was given. 4849if test "${with_vim_name+set}" = set; then : 4850 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4851$as_echo "$VIMNAME" >&6; } 4852else 4853 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4854$as_echo "Defaulting to $VIMNAME" >&6; } 4855fi 4856 4857 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4859$as_echo_n "checking --with-ex-name argument... " >&6; } 4860 4861# Check whether --with-ex-name was given. 4862if test "${with_ex_name+set}" = set; then : 4863 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4864$as_echo "$EXNAME" >&6; } 4865else 4866 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4867$as_echo "Defaulting to ex" >&6; } 4868fi 4869 4870 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4872$as_echo_n "checking --with-view-name argument... " >&6; } 4873 4874# Check whether --with-view-name was given. 4875if test "${with_view_name+set}" = set; then : 4876 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4877$as_echo "$VIEWNAME" >&6; } 4878else 4879 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4880$as_echo "Defaulting to view" >&6; } 4881fi 4882 4883 4884 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4886$as_echo_n "checking --with-global-runtime argument... " >&6; } 4887 4888# Check whether --with-global-runtime was given. 4889if test "${with_global_runtime+set}" = set; then : 4890 withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4891$as_echo "$withval" >&6; } 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894$as_echo "no" >&6; } 4895fi 4896 4897 4898if test "X$RUNTIME_GLOBAL" != "X"; then 4899 RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') 4900 cat >>confdefs.h <<_ACEOF 4901#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL" 4902_ACEOF 4903 4904 cat >>confdefs.h <<_ACEOF 4905#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER" 4906_ACEOF 4907 4908fi 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4911$as_echo_n "checking --with-modified-by argument... " >&6; } 4912 4913# Check whether --with-modified-by was given. 4914if test "${with_modified_by+set}" = set; then : 4915 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4916$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4917#define MODIFIED_BY "$withval" 4918_ACEOF 4919 4920else 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922$as_echo "no" >&6; } 4923fi 4924 4925 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4927$as_echo_n "checking if character set is EBCDIC... " >&6; } 4928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930 4931int 4932main () 4933{ 4934 /* TryCompile function for CharSet. 4935 Treat any failure as ASCII for compatibility with existing art. 4936 Use compile-time rather than run-time tests for cross-compiler 4937 tolerance. */ 4938#if '0'!=240 4939make an error "Character set is not EBCDIC" 4940#endif 4941 ; 4942 return 0; 4943} 4944_ACEOF 4945if ac_fn_c_try_compile "$LINENO"; then : 4946 # TryCompile action if true 4947cf_cv_ebcdic=yes 4948else 4949 # TryCompile action if false 4950cf_cv_ebcdic=no 4951fi 4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953# end of TryCompile ]) 4954# end of CacheVal CvEbcdic 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4956$as_echo "$cf_cv_ebcdic" >&6; } 4957case "$cf_cv_ebcdic" in #(vi 4958 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4959 4960 line_break='"\\n"' 4961 ;; 4962 *) line_break='"\\012"';; 4963esac 4964 4965 4966if test "$cf_cv_ebcdic" = "yes"; then 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4968$as_echo_n "checking for z/OS Unix... " >&6; } 4969case `uname` in 4970 OS/390) zOSUnix="yes"; 4971 if test "$CC" = "cc"; then 4972 ccm="$_CC_CCMODE" 4973 ccn="CC" 4974 else 4975 if test "$CC" = "c89"; then 4976 ccm="$_CC_C89MODE" 4977 ccn="C89" 4978 else 4979 ccm=1 4980 fi 4981 fi 4982 if test "$ccm" != "1"; then 4983 echo "" 4984 echo "------------------------------------------" 4985 echo " On z/OS Unix, the environment variable" 4986 echo " _CC_${ccn}MODE must be set to \"1\"!" 4987 echo " Do:" 4988 echo " export _CC_${ccn}MODE=1" 4989 echo " and then call configure again." 4990 echo "------------------------------------------" 4991 exit 1 4992 fi 4993 # Set CFLAGS for configure process. 4994 # This will be reset later for config.mk. 4995 # Use haltonmsg to force error for missing H files. 4996 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4997 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4999$as_echo "yes" >&6; } 5000 ;; 5001 *) zOSUnix="no"; 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003$as_echo "no" >&6; } 5004 ;; 5005esac 5006fi 5007 5008if test "$zOSUnix" = "yes"; then 5009 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/' -e 's/ */ /g'" 5010else 5011 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/' -e 's/ */ /g'" 5012fi 5013 5014 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 5017$as_echo_n "checking --disable-smack argument... " >&6; } 5018# Check whether --enable-smack was given. 5019if test "${enable_smack+set}" = set; then : 5020 enableval=$enable_smack; 5021else 5022 enable_smack="yes" 5023fi 5024 5025if test "$enable_smack" = "yes"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5027$as_echo "no" >&6; } 5028 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 5029if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 5030 true 5031else 5032 enable_smack="no" 5033fi 5034 5035 5036else 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5038$as_echo "yes" >&6; } 5039fi 5040if test "$enable_smack" = "yes"; then 5041 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 5042if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 5043 true 5044else 5045 enable_smack="no" 5046fi 5047 5048 5049fi 5050if test "$enable_smack" = "yes"; then 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 5052$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055#include <linux/xattr.h> 5056_ACEOF 5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5058 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5060$as_echo "yes" >&6; } 5061else 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5063$as_echo "no" >&6; }; enable_smack="no" 5064fi 5065rm -f conftest* 5066 5067fi 5068if test "$enable_smack" = "yes"; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 5070$as_echo_n "checking for setxattr in -lattr... " >&6; } 5071if ${ac_cv_lib_attr_setxattr+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 ac_check_lib_save_LIBS=$LIBS 5075LIBS="-lattr $LIBS" 5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078 5079/* Override any GCC internal prototype to avoid an error. 5080 Use char because int might match the return type of a GCC 5081 builtin and then its argument prototype would still apply. */ 5082#ifdef __cplusplus 5083extern "C" 5084#endif 5085char setxattr (); 5086int 5087main () 5088{ 5089return setxattr (); 5090 ; 5091 return 0; 5092} 5093_ACEOF 5094if ac_fn_c_try_link "$LINENO"; then : 5095 ac_cv_lib_attr_setxattr=yes 5096else 5097 ac_cv_lib_attr_setxattr=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext \ 5100 conftest$ac_exeext conftest.$ac_ext 5101LIBS=$ac_check_lib_save_LIBS 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 5104$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 5105if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 5106 LIBS="$LIBS -lattr" 5107 found_smack="yes" 5108 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 5109 5110fi 5111 5112fi 5113 5114if test "x$found_smack" = "x"; then 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 5116$as_echo_n "checking --disable-selinux argument... " >&6; } 5117 # Check whether --enable-selinux was given. 5118if test "${enable_selinux+set}" = set; then : 5119 enableval=$enable_selinux; 5120else 5121 enable_selinux="yes" 5122fi 5123 5124 if test "$enable_selinux" = "yes"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5126$as_echo "no" >&6; } 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 5128$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 5129if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 5130 $as_echo_n "(cached) " >&6 5131else 5132 ac_check_lib_save_LIBS=$LIBS 5133LIBS="-lselinux $LIBS" 5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136 5137/* Override any GCC internal prototype to avoid an error. 5138 Use char because int might match the return type of a GCC 5139 builtin and then its argument prototype would still apply. */ 5140#ifdef __cplusplus 5141extern "C" 5142#endif 5143char is_selinux_enabled (); 5144int 5145main () 5146{ 5147return is_selinux_enabled (); 5148 ; 5149 return 0; 5150} 5151_ACEOF 5152if ac_fn_c_try_link "$LINENO"; then : 5153 ac_cv_lib_selinux_is_selinux_enabled=yes 5154else 5155 ac_cv_lib_selinux_is_selinux_enabled=no 5156fi 5157rm -f core conftest.err conftest.$ac_objext \ 5158 conftest$ac_exeext conftest.$ac_ext 5159LIBS=$ac_check_lib_save_LIBS 5160fi 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 5162$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 5163if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 5164 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 5165if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 5166 LIBS="$LIBS -lselinux" 5167 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5168 5169fi 5170 5171 5172fi 5173 5174 else 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5176$as_echo "yes" >&6; } 5177 fi 5178fi 5179 5180 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 5182$as_echo_n "checking --with-features argument... " >&6; } 5183 5184# Check whether --with-features was given. 5185if test "${with_features+set}" = set; then : 5186 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 5187$as_echo "$features" >&6; } 5188else 5189 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 5190$as_echo "Defaulting to huge" >&6; } 5191fi 5192 5193 5194dovimdiff="" 5195dogvimdiff="" 5196case "$features" in 5197 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 5198 ;; 5199 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 5200 ;; 5201 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 5202 dovimdiff="installvimdiff"; 5203 dogvimdiff="installgvimdiff" ;; 5204 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 5205 dovimdiff="installvimdiff"; 5206 dogvimdiff="installgvimdiff" ;; 5207 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 5208 dovimdiff="installvimdiff"; 5209 dogvimdiff="installgvimdiff" ;; 5210 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 5211$as_echo "Sorry, $features is not supported" >&6; } ;; 5212esac 5213 5214 5215 5216 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 5218$as_echo_n "checking --with-compiledby argument... " >&6; } 5219 5220# Check whether --with-compiledby was given. 5221if test "${with_compiledby+set}" = set; then : 5222 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5223$as_echo "$withval" >&6; } 5224else 5225 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5226$as_echo "no" >&6; } 5227fi 5228 5229 5230 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 5232$as_echo_n "checking --disable-xsmp argument... " >&6; } 5233# Check whether --enable-xsmp was given. 5234if test "${enable_xsmp+set}" = set; then : 5235 enableval=$enable_xsmp; 5236else 5237 enable_xsmp="yes" 5238fi 5239 5240 5241if test "$enable_xsmp" = "yes"; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5243$as_echo "no" >&6; } 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 5245$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 5246 # Check whether --enable-xsmp-interact was given. 5247if test "${enable_xsmp_interact+set}" = set; then : 5248 enableval=$enable_xsmp_interact; 5249else 5250 enable_xsmp_interact="yes" 5251fi 5252 5253 if test "$enable_xsmp_interact" = "yes"; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255$as_echo "no" >&6; } 5256 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 5257 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5260$as_echo "yes" >&6; } 5261 fi 5262else 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5264$as_echo "yes" >&6; } 5265fi 5266 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 5268$as_echo_n "checking --enable-luainterp argument... " >&6; } 5269# Check whether --enable-luainterp was given. 5270if test "${enable_luainterp+set}" = set; then : 5271 enableval=$enable_luainterp; 5272else 5273 enable_luainterp="no" 5274fi 5275 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 5277$as_echo "$enable_luainterp" >&6; } 5278 5279if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 5280 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5281 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 5282 fi 5283 5284 5285 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 5287$as_echo_n "checking --with-lua-prefix argument... " >&6; } 5288 5289# Check whether --with-lua_prefix was given. 5290if test "${with_lua_prefix+set}" = set; then : 5291 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 5292$as_echo "$with_lua_prefix" >&6; } 5293else 5294 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295$as_echo "no" >&6; } 5296fi 5297 5298 5299 if test "X$with_lua_prefix" != "X"; then 5300 vi_cv_path_lua_pfx="$with_lua_prefix" 5301 else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 5303$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 5304 if test "X$LUA_PREFIX" != "X"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 5306$as_echo "\"$LUA_PREFIX\"" >&6; } 5307 vi_cv_path_lua_pfx="$LUA_PREFIX" 5308 else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 5310$as_echo "not set, default to /usr" >&6; } 5311 vi_cv_path_lua_pfx="/usr" 5312 fi 5313 fi 5314 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 5316$as_echo_n "checking --with-luajit... " >&6; } 5317 5318# Check whether --with-luajit was given. 5319if test "${with_luajit+set}" = set; then : 5320 withval=$with_luajit; vi_cv_with_luajit="$withval" 5321else 5322 vi_cv_with_luajit="no" 5323fi 5324 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 5326$as_echo "$vi_cv_with_luajit" >&6; } 5327 5328 LUA_INC= 5329 if test "X$vi_cv_path_lua_pfx" != "X"; then 5330 if test "x$vi_cv_with_luajit" != "xno"; then 5331 # Extract the first word of "luajit", so it can be a program name with args. 5332set dummy luajit; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 case $vi_cv_path_luajit in 5339 [\\/]* | ?:[\\/]*) 5340 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 5341 ;; 5342 *) 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344for as_dir in $PATH 5345do 5346 IFS=$as_save_IFS 5347 test -z "$as_dir" && as_dir=. 5348 for ac_exec_ext in '' $ac_executable_extensions; do 5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5350 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5352 break 2 5353 fi 5354done 5355 done 5356IFS=$as_save_IFS 5357 5358 ;; 5359esac 5360fi 5361vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 5362if test -n "$vi_cv_path_luajit"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 5364$as_echo "$vi_cv_path_luajit" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369 5370 5371 if test "X$vi_cv_path_luajit" != "X"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 5373$as_echo_n "checking LuaJIT version... " >&6; } 5374if ${vi_cv_version_luajit+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376else 5377 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 5378fi 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5380$as_echo "$vi_cv_version_luajit" >&6; } 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5382$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5383if ${vi_cv_version_lua_luajit+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5387fi 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5389$as_echo "$vi_cv_version_lua_luajit" >&6; } 5390 vi_cv_path_lua="$vi_cv_path_luajit" 5391 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5392 fi 5393 else 5394 # Extract the first word of "lua", so it can be a program name with args. 5395set dummy lua; ac_word=$2 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397$as_echo_n "checking for $ac_word... " >&6; } 5398if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 case $vi_cv_path_plain_lua in 5402 [\\/]* | ?:[\\/]*) 5403 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5404 ;; 5405 *) 5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5407for as_dir in $PATH 5408do 5409 IFS=$as_save_IFS 5410 test -z "$as_dir" && as_dir=. 5411 for ac_exec_ext in '' $ac_executable_extensions; do 5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5413 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5415 break 2 5416 fi 5417done 5418 done 5419IFS=$as_save_IFS 5420 5421 ;; 5422esac 5423fi 5424vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5425if test -n "$vi_cv_path_plain_lua"; then 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5427$as_echo "$vi_cv_path_plain_lua" >&6; } 5428else 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5430$as_echo "no" >&6; } 5431fi 5432 5433 5434 if test "X$vi_cv_path_plain_lua" != "X"; then 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5436$as_echo_n "checking Lua version... " >&6; } 5437if ${vi_cv_version_plain_lua+:} false; then : 5438 $as_echo_n "(cached) " >&6 5439else 5440 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5441fi 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5443$as_echo "$vi_cv_version_plain_lua" >&6; } 5444 fi 5445 vi_cv_path_lua="$vi_cv_path_plain_lua" 5446 vi_cv_version_lua="$vi_cv_version_plain_lua" 5447 fi 5448 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5449 { $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 5450$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5451 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5453$as_echo "yes" >&6; } 5454 LUA_INC=/luajit-$vi_cv_version_luajit 5455 fi 5456 fi 5457 if test "X$LUA_INC" = "X"; then 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5459$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5460 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5462$as_echo "yes" >&6; } 5463 else 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5465$as_echo "no" >&6; } 5466 { $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 5467$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5468 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5470$as_echo "yes" >&6; } 5471 LUA_INC=/lua$vi_cv_version_lua 5472 else 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474$as_echo "no" >&6; } 5475 5476 # Detect moonjit: 5477 # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk 5478 lua_suf=/moonjit-2.3 5479 inc_path="$vi_cv_path_lua_pfx/include" 5480 for dir in "$inc_path"/moonjit-[0-9]* ; do 5481 if test -d "$dir" ; then 5482 lua_suf=`basename "$dir"` 5483 lua_suf="/$lua_suf" 5484 break 5485 fi 5486 done 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5 5488$as_echo_n "checking if lua.h can be found in $inc_path$lua_suf... " >&6; } 5489 if test -f "$inc_path$lua_suf/lua.h"; then 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5491$as_echo "yes" >&6; } 5492 LUA_INC=$lua_suf 5493 else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5495$as_echo "no" >&6; } 5496 vi_cv_path_lua_pfx= 5497 fi 5498 fi 5499 fi 5500 fi 5501 fi 5502 5503 if test "X$vi_cv_path_lua_pfx" != "X"; then 5504 if test "x$vi_cv_with_luajit" != "xno"; then 5505 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5506 if test "X$multiarch" != "X"; then 5507 lib_multiarch="lib/${multiarch}" 5508 else 5509 lib_multiarch="lib" 5510 fi 5511 if test "X$vi_cv_version_lua" = "X"; then 5512 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5513 else 5514 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5515 fi 5516 else 5517 if test "X$LUA_INC" != "X"; then 5518 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5519 else 5520 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5521 fi 5522 fi 5523 if test "$enable_luainterp" = "dynamic"; then 5524 lua_ok="yes" 5525 else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5527$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5528 libs_save=$LIBS 5529 LIBS="$LIBS $LUA_LIBS" 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532 5533int 5534main () 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541if ac_fn_c_try_link "$LINENO"; then : 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5543$as_echo "yes" >&6; }; lua_ok="yes" 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5547fi 5548rm -f core conftest.err conftest.$ac_objext \ 5549 conftest$ac_exeext conftest.$ac_ext 5550 LIBS=$libs_save 5551 fi 5552 if test "x$lua_ok" = "xyes"; then 5553 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5554 LUA_SRC="if_lua.c" 5555 LUA_OBJ="objects/if_lua.o" 5556 LUA_PRO="if_lua.pro" 5557 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5558 5559 fi 5560 if test "$enable_luainterp" = "dynamic"; then 5561 if test "x$vi_cv_with_luajit" != "xno"; then 5562 luajit="jit" 5563 fi 5564 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5565 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5566 else 5567 if test "x$MACOS_X" = "xyes"; then 5568 ext="dylib" 5569 indexes="" 5570 else 5571 ext="so" 5572 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5573 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5574 if test "X$multiarch" != "X"; then 5575 lib_multiarch="lib/${multiarch}" 5576 fi 5577 fi 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5579$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5580 for subdir in "${lib_multiarch}" lib64 lib; do 5581 if test -z "$subdir"; then 5582 continue 5583 fi 5584 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5585 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5586 for i in $indexes ""; do 5587 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5588 sover2="$i" 5589 break 3 5590 fi 5591 done 5592 done 5593 sover="" 5594 done 5595 if test "X$sover" = "X"; then 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5597$as_echo "no" >&6; } 5598 lua_ok="no" 5599 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5600 else 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5602$as_echo "yes" >&6; } 5603 lua_ok="yes" 5604 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5605 fi 5606 fi 5607 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5608 5609 LUA_LIBS="" 5610 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5611 fi 5612 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5613 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5614 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5615 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5616 fi 5617 fi 5618 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5619 as_fn_error $? "could not configure lua" "$LINENO" 5 5620 fi 5621 5622 5623 5624 5625 5626fi 5627 5628 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5630$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5631# Check whether --enable-mzschemeinterp was given. 5632if test "${enable_mzschemeinterp+set}" = set; then : 5633 enableval=$enable_mzschemeinterp; 5634else 5635 enable_mzschemeinterp="no" 5636fi 5637 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5639$as_echo "$enable_mzschemeinterp" >&6; } 5640 5641if test "$enable_mzschemeinterp" = "yes"; then 5642 5643 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5645$as_echo_n "checking --with-plthome argument... " >&6; } 5646 5647# Check whether --with-plthome was given. 5648if test "${with_plthome+set}" = set; then : 5649 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5650$as_echo "$with_plthome" >&6; } 5651else 5652 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5653$as_echo "\"no\"" >&6; } 5654fi 5655 5656 5657 if test "X$with_plthome" != "X"; then 5658 vi_cv_path_mzscheme_pfx="$with_plthome" 5659 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5660 else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5662$as_echo_n "checking PLTHOME environment var... " >&6; } 5663 if test "X$PLTHOME" != "X"; then 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5665$as_echo "\"$PLTHOME\"" >&6; } 5666 vi_cv_path_mzscheme_pfx="$PLTHOME" 5667 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5668 else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5670$as_echo "not set" >&6; } 5671 # Extract the first word of "mzscheme", so it can be a program name with args. 5672set dummy mzscheme; ac_word=$2 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5674$as_echo_n "checking for $ac_word... " >&6; } 5675if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 case $vi_cv_path_mzscheme in 5679 [\\/]* | ?:[\\/]*) 5680 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5681 ;; 5682 *) 5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5684for as_dir in $PATH 5685do 5686 IFS=$as_save_IFS 5687 test -z "$as_dir" && as_dir=. 5688 for ac_exec_ext in '' $ac_executable_extensions; do 5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5690 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5692 break 2 5693 fi 5694done 5695 done 5696IFS=$as_save_IFS 5697 5698 ;; 5699esac 5700fi 5701vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5702if test -n "$vi_cv_path_mzscheme"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5704$as_echo "$vi_cv_path_mzscheme" >&6; } 5705else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5707$as_echo "no" >&6; } 5708fi 5709 5710 5711 5712 if test "X$vi_cv_path_mzscheme" != "X"; then 5713 lsout=`ls -l $vi_cv_path_mzscheme` 5714 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5715 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5716 fi 5717 fi 5718 5719 if test "X$vi_cv_path_mzscheme" != "X"; then 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5721$as_echo_n "checking MzScheme install prefix... " >&6; } 5722if ${vi_cv_path_mzscheme_pfx+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 echo "(display (simplify-path \ 5726 (build-path (call-with-values \ 5727 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5728 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5729 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5730 sed -e 's+/$++'` 5731fi 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5733$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5734 rm -f mzdirs.scm 5735 fi 5736 fi 5737 fi 5738 5739 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5741$as_echo_n "checking for racket include directory... " >&6; } 5742 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5743 if test "X$SCHEME_INC" != "X"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5745$as_echo "${SCHEME_INC}" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5748$as_echo "not found" >&6; } 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5750$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5751 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5752 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5754$as_echo "yes" >&6; } 5755 else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5757$as_echo "no" >&6; } 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5759$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5760 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5762$as_echo "yes" >&6; } 5763 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5764 else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; } 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5768$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5769 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5771$as_echo "yes" >&6; } 5772 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5773 else 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5775$as_echo "no" >&6; } 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5777$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5778 if test -f /usr/include/plt/scheme.h; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5780$as_echo "yes" >&6; } 5781 SCHEME_INC=/usr/include/plt 5782 else 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784$as_echo "no" >&6; } 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5786$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5787 if test -f /usr/include/racket/scheme.h; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5789$as_echo "yes" >&6; } 5790 SCHEME_INC=/usr/include/racket 5791 else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794 vi_cv_path_mzscheme_pfx= 5795 fi 5796 fi 5797 fi 5798 fi 5799 fi 5800 fi 5801 fi 5802 5803 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5804 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5806$as_echo_n "checking for racket lib directory... " >&6; } 5807 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5808 if test "X$SCHEME_LIB" != "X"; then 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5810$as_echo "${SCHEME_LIB}" >&6; } 5811 else 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5813$as_echo "not found" >&6; } 5814 fi 5815 5816 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5817 if test "X$path" != "X"; then 5818 if test "x$MACOS_X" = "xyes"; then 5819 MZSCHEME_LIBS="-framework Racket" 5820 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5821 elif test -f "${path}/libmzscheme3m.a"; then 5822 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5823 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5824 elif test -f "${path}/libracket3m.a"; then 5825 MZSCHEME_LIBS="${path}/libracket3m.a" 5826 if test -f "${path}/librktio.a"; then 5827 MZSCHEME_LIBS="${MZSCHEME_LIBS} ${path}/librktio.a" 5828 fi 5829 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5830 elif test -f "${path}/libracket.a"; then 5831 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5832 elif test -f "${path}/libmzscheme.a"; then 5833 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5834 else 5835 if test -f "${path}/libmzscheme3m.so"; then 5836 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5837 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5838 elif test -f "${path}/libracket3m.so"; then 5839 MZSCHEME_LIBS="-L${path} -lracket3m" 5840 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5841 elif test -f "${path}/libracket.so"; then 5842 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5843 else 5844 if test "$path" != "$SCHEME_LIB"; then 5845 continue 5846 fi 5847 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5848 fi 5849 if test "$GCC" = yes; then 5850 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5851 elif test "`(uname) 2>/dev/null`" = SunOS && 5852 uname -r | grep '^5' >/dev/null; then 5853 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5854 fi 5855 fi 5856 fi 5857 if test "X$MZSCHEME_LIBS" != "X"; then 5858 break 5859 fi 5860 done 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5863$as_echo_n "checking if racket requires -pthread... " >&6; } 5864 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5866$as_echo "yes" >&6; } 5867 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5868 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5869 else 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5871$as_echo "no" >&6; } 5872 fi 5873 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5875$as_echo_n "checking for racket config directory... " >&6; } 5876 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5877 if test "X$SCHEME_CONFIGDIR" != "X"; then 5878 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5880$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5881 else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5883$as_echo "not found" >&6; } 5884 fi 5885 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5887$as_echo_n "checking for racket collects directory... " >&6; } 5888 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))))'` 5889 if test "X$SCHEME_COLLECTS" = "X"; then 5890 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5891 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5892 else 5893 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5894 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5895 else 5896 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5897 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5898 else 5899 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5900 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5901 fi 5902 fi 5903 fi 5904 fi 5905 fi 5906 if test "X$SCHEME_COLLECTS" != "X" ; then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5908$as_echo "${SCHEME_COLLECTS}" >&6; } 5909 else 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5911$as_echo "not found" >&6; } 5912 fi 5913 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5915$as_echo_n "checking for mzscheme_base.c... " >&6; } 5916 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5917 MZSCHEME_EXTRA="mzscheme_base.c" 5918 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5919 MZSCHEME_MOD="++lib scheme/base" 5920 else 5921 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5922 MZSCHEME_EXTRA="mzscheme_base.c" 5923 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5924 MZSCHEME_MOD="++lib scheme/base" 5925 else 5926 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5927 MZSCHEME_EXTRA="mzscheme_base.c" 5928 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5929 MZSCHEME_MOD="" 5930 fi 5931 fi 5932 fi 5933 if test "X$MZSCHEME_EXTRA" != "X" ; then 5934 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5936$as_echo "needed" >&6; } 5937 else 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5939$as_echo "not needed" >&6; } 5940 fi 5941 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5943$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5944if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 ac_check_lib_save_LIBS=$LIBS 5948LIBS="-lffi $LIBS" 5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951 5952/* Override any GCC internal prototype to avoid an error. 5953 Use char because int might match the return type of a GCC 5954 builtin and then its argument prototype would still apply. */ 5955#ifdef __cplusplus 5956extern "C" 5957#endif 5958char ffi_type_void (); 5959int 5960main () 5961{ 5962return ffi_type_void (); 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967if ac_fn_c_try_link "$LINENO"; then : 5968 ac_cv_lib_ffi_ffi_type_void=yes 5969else 5970 ac_cv_lib_ffi_ffi_type_void=no 5971fi 5972rm -f core conftest.err conftest.$ac_objext \ 5973 conftest$ac_exeext conftest.$ac_ext 5974LIBS=$ac_check_lib_save_LIBS 5975fi 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5977$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5978if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5979 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5980fi 5981 5982 5983 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5984 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5985 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5987$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5988 cflags_save=$CFLAGS 5989 libs_save=$LIBS 5990 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5991 LIBS="$LIBS $MZSCHEME_LIBS" 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994 5995int 5996main () 5997{ 5998 5999 ; 6000 return 0; 6001} 6002_ACEOF 6003if ac_fn_c_try_link "$LINENO"; then : 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6005$as_echo "yes" >&6; }; mzs_ok=yes 6006else 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 6008$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 6009fi 6010rm -f core conftest.err conftest.$ac_objext \ 6011 conftest$ac_exeext conftest.$ac_ext 6012 CFLAGS=$cflags_save 6013 LIBS=$libs_save 6014 if test $mzs_ok = yes; then 6015 MZSCHEME_SRC="if_mzsch.c" 6016 MZSCHEME_OBJ="objects/if_mzsch.o" 6017 MZSCHEME_PRO="if_mzsch.pro" 6018 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 6019 6020 else 6021 MZSCHEME_CFLAGS= 6022 MZSCHEME_LIBS= 6023 MZSCHEME_EXTRA= 6024 MZSCHEME_MZC= 6025 fi 6026 fi 6027 6028 6029 6030 6031 6032 6033 6034fi 6035 6036 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 6038$as_echo_n "checking --enable-perlinterp argument... " >&6; } 6039# Check whether --enable-perlinterp was given. 6040if test "${enable_perlinterp+set}" = set; then : 6041 enableval=$enable_perlinterp; 6042else 6043 enable_perlinterp="no" 6044fi 6045 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 6047$as_echo "$enable_perlinterp" >&6; } 6048if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 6049 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6050 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 6051 fi 6052 6053 # Extract the first word of "perl", so it can be a program name with args. 6054set dummy perl; ac_word=$2 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if ${ac_cv_path_vi_cv_path_perl+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 case $vi_cv_path_perl in 6061 [\\/]* | ?:[\\/]*) 6062 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 6063 ;; 6064 *) 6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6072 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077 done 6078IFS=$as_save_IFS 6079 6080 ;; 6081esac 6082fi 6083vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 6084if test -n "$vi_cv_path_perl"; then 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 6086$as_echo "$vi_cv_path_perl" >&6; } 6087else 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6089$as_echo "no" >&6; } 6090fi 6091 6092 6093 if test "X$vi_cv_path_perl" != "X"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 6095$as_echo_n "checking Perl version... " >&6; } 6096 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 6097 eval `$vi_cv_path_perl -V:usethreads` 6098 eval `$vi_cv_path_perl -V:libperl` 6099 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 6100 badthreads=no 6101 else 6102 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 6103 eval `$vi_cv_path_perl -V:use5005threads` 6104 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 6105 badthreads=no 6106 else 6107 badthreads=yes 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 6109$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 6110 fi 6111 else 6112 badthreads=yes 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 6114$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 6115 fi 6116 fi 6117 if test $badthreads = no; then 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6119$as_echo "OK" >&6; } 6120 eval `$vi_cv_path_perl -V:shrpenv` 6121 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 6122 shrpenv="" 6123 fi 6124 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 6125 6126 vi_cv_perl_extutils=unknown_perl_extutils_path 6127 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 6128 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 6129 if test -f "$xsubpp_path"; then 6130 vi_cv_perl_xsubpp="$xsubpp_path" 6131 fi 6132 done 6133 6134 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 6135 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 6136 -e 's/-fdebug-prefix-map[^ ]*//g' \ 6137 -e 's/-pipe //' \ 6138 -e 's/-W[^ ]*//g' \ 6139 -e 's/-D_FORTIFY_SOURCE=.//g'` 6140 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 6141 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 6142 -e 's/-bE:perl.exp//' -e 's/-lc //'` 6143 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 6144 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 6145 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 6147$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 6148 cflags_save=$CFLAGS 6149 libs_save=$LIBS 6150 ldflags_save=$LDFLAGS 6151 CFLAGS="$CFLAGS $perlcppflags" 6152 LIBS="$LIBS $perllibs" 6153 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 6154 LDFLAGS="$perlldflags $LDFLAGS" 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157 6158int 6159main () 6160{ 6161 6162 ; 6163 return 0; 6164} 6165_ACEOF 6166if ac_fn_c_try_link "$LINENO"; then : 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6168$as_echo "yes" >&6; }; perl_ok=yes 6169else 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 6171$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext \ 6174 conftest$ac_exeext conftest.$ac_ext 6175 CFLAGS=$cflags_save 6176 LIBS=$libs_save 6177 LDFLAGS=$ldflags_save 6178 if test $perl_ok = yes; then 6179 if test "X$perlcppflags" != "X"; then 6180 PERL_CFLAGS=$perlcppflags 6181 fi 6182 if test "X$perlldflags" != "X"; then 6183 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 6184 LDFLAGS="$perlldflags $LDFLAGS" 6185 fi 6186 fi 6187 PERL_LIBS=$perllibs 6188 PERL_SRC="auto/if_perl.c if_perlsfio.c" 6189 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 6190 PERL_PRO="if_perl.pro if_perlsfio.pro" 6191 $as_echo "#define FEAT_PERL 1" >>confdefs.h 6192 6193 fi 6194 fi 6195 else 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 6197$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 6198 fi 6199 fi 6200 6201 if test "x$MACOS_X" = "xyes"; then 6202 dir=/System/Library/Perl 6203 darwindir=$dir/darwin 6204 if test -d $darwindir; then 6205 PERL=/usr/bin/perl 6206 else 6207 dir=/System/Library/Perl/5.8.1 6208 darwindir=$dir/darwin-thread-multi-2level 6209 if test -d $darwindir; then 6210 PERL=/usr/bin/perl 6211 fi 6212 fi 6213 if test -n "$PERL"; then 6214 PERL_DIR="$dir" 6215 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 6216 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 6217 PERL_LIBS="-L$darwindir/CORE -lperl" 6218 fi 6219 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6220 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6221 fi 6222 if test "$enable_perlinterp" = "dynamic"; then 6223 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 6224 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 6225 6226 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 6227 fi 6228 fi 6229 6230 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 6231 as_fn_error $? "could not configure perl" "$LINENO" 5 6232 fi 6233fi 6234 6235 6236 6237 6238 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 6242$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 6243# Check whether --enable-pythoninterp was given. 6244if test "${enable_pythoninterp+set}" = set; then : 6245 enableval=$enable_pythoninterp; 6246else 6247 enable_pythoninterp="no" 6248fi 6249 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 6251$as_echo "$enable_pythoninterp" >&6; } 6252if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 6253 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6254 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6255 fi 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 6258$as_echo_n "checking --with-python-command argument... " >&6; } 6259 6260 6261# Check whether --with-python-command was given. 6262if test "${with_python_command+set}" = set; then : 6263 withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6264$as_echo "$vi_cv_path_python" >&6; } 6265else 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6267$as_echo "no" >&6; } 6268fi 6269 6270 6271 if test "X$vi_cv_path_python" = "X"; then 6272 for ac_prog in python2 python 6273do 6274 # Extract the first word of "$ac_prog", so it can be a program name with args. 6275set dummy $ac_prog; ac_word=$2 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277$as_echo_n "checking for $ac_word... " >&6; } 6278if ${ac_cv_path_vi_cv_path_python+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 case $vi_cv_path_python in 6282 [\\/]* | ?:[\\/]*) 6283 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 6284 ;; 6285 *) 6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6293 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297done 6298 done 6299IFS=$as_save_IFS 6300 6301 ;; 6302esac 6303fi 6304vi_cv_path_python=$ac_cv_path_vi_cv_path_python 6305if test -n "$vi_cv_path_python"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6307$as_echo "$vi_cv_path_python" >&6; } 6308else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310$as_echo "no" >&6; } 6311fi 6312 6313 6314 test -n "$vi_cv_path_python" && break 6315done 6316 6317 fi 6318 if test "X$vi_cv_path_python" != "X"; then 6319 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6321$as_echo_n "checking Python version... " >&6; } 6322if ${vi_cv_var_python_version+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 vi_cv_var_python_version=` 6326 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 6327 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 6330$as_echo "$vi_cv_var_python_version" >&6; } 6331 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 6333$as_echo_n "checking Python is 2.3 or better... " >&6; } 6334 if ${vi_cv_path_python} -c \ 6335 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 6336 then 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6338$as_echo "yep" >&6; } 6339 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6341$as_echo_n "checking Python's install prefix... " >&6; } 6342if ${vi_cv_path_python_pfx+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 vi_cv_path_python_pfx=` 6346 ${vi_cv_path_python} -c \ 6347 "import sys; print sys.prefix"` 6348fi 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 6350$as_echo "$vi_cv_path_python_pfx" >&6; } 6351 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6353$as_echo_n "checking Python's execution prefix... " >&6; } 6354if ${vi_cv_path_python_epfx+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 vi_cv_path_python_epfx=` 6358 ${vi_cv_path_python} -c \ 6359 "import sys; print sys.exec_prefix"` 6360fi 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 6362$as_echo "$vi_cv_path_python_epfx" >&6; } 6363 6364 6365 if ${vi_cv_path_pythonpath+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 vi_cv_path_pythonpath=` 6369 unset PYTHONPATH; 6370 ${vi_cv_path_python} -c \ 6371 "import sys, string; print string.join(sys.path,':')"` 6372fi 6373 6374 6375 6376 6377# Check whether --with-python-config-dir was given. 6378if test "${with_python_config_dir+set}" = set; then : 6379 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 6380fi 6381 6382 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6384$as_echo_n "checking Python's configuration directory... " >&6; } 6385if ${vi_cv_path_python_conf+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 6389 vi_cv_path_python_conf= 6390 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 6391 if test -d "$d" && test -f "$d/config.c"; then 6392 vi_cv_path_python_conf="$d" 6393 else 6394 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 6395 for subdir in lib64 lib share; do 6396 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 6397 if test -d "$d" && test -f "$d/config.c"; then 6398 vi_cv_path_python_conf="$d" 6399 fi 6400 done 6401 done 6402 fi 6403 6404fi 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 6406$as_echo "$vi_cv_path_python_conf" >&6; } 6407 6408 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 6409 6410 if test "X$PYTHON_CONFDIR" = "X"; then 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6412$as_echo "can't find it!" >&6; } 6413 else 6414 6415 if ${vi_cv_path_python_plibs+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 6419 pwd=`pwd` 6420 tmp_mkf="$pwd/config-PyMake$$" 6421 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6422__: 6423 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6424 @echo "python_LIBS='$(LIBS)'" 6425 @echo "python_SYSLIBS='$(SYSLIBS)'" 6426 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6427 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6428 @echo "python_INSTSONAME='$(INSTSONAME)'" 6429 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6430 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6431 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6432eof 6433 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6434 rm -f -- "${tmp_mkf}" 6435 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6436 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6437 vi_cv_path_python_plibs="-framework Python" 6438 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6439 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6440 fi 6441 else 6442 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6443 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6444 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6445 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6446 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6447 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6448 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6449 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6450 fi 6451 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6452 fi 6453 fi 6454 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6455 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6456 fi 6457 6458fi 6459 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6461$as_echo_n "checking Python's dll name... " >&6; } 6462if ${vi_cv_dll_name_python+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 6466 if test "X$python_DLLLIBRARY" != "X"; then 6467 vi_cv_dll_name_python="$python_DLLLIBRARY" 6468 else 6469 vi_cv_dll_name_python="$python_INSTSONAME" 6470 fi 6471 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6474$as_echo "$vi_cv_dll_name_python" >&6; } 6475 6476 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6477 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6478 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 6479 else 6480 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}" 6481 fi 6482 if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then 6483 PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6484 6485 fi 6486 PYTHON_SRC="if_python.c" 6487 PYTHON_OBJ="objects/if_python.o" 6488 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6490$as_echo_n "checking if -pthread should be used... " >&6; } 6491 threadsafe_flag= 6492 thread_lib= 6493 if test "`(uname) 2>/dev/null`" != Darwin; then 6494 test "$GCC" = yes && threadsafe_flag="-pthread" 6495 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6496 threadsafe_flag="-D_THREAD_SAFE" 6497 thread_lib="-pthread" 6498 fi 6499 if test "`(uname) 2>/dev/null`" = SunOS; then 6500 threadsafe_flag="-pthreads" 6501 fi 6502 fi 6503 libs_save_old=$LIBS 6504 if test -n "$threadsafe_flag"; then 6505 cflags_save=$CFLAGS 6506 CFLAGS="$CFLAGS $threadsafe_flag" 6507 LIBS="$LIBS $thread_lib" 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510 6511int 6512main () 6513{ 6514 6515 ; 6516 return 0; 6517} 6518_ACEOF 6519if ac_fn_c_try_link "$LINENO"; then : 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6521$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6522else 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6524$as_echo "no" >&6; }; LIBS=$libs_save_old 6525 6526fi 6527rm -f core conftest.err conftest.$ac_objext \ 6528 conftest$ac_exeext conftest.$ac_ext 6529 CFLAGS=$cflags_save 6530 else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533 fi 6534 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6536$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6537 cflags_save=$CFLAGS 6538 libs_save=$LIBS 6539 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6540 LIBS="$LIBS $PYTHON_LIBS" 6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542/* end confdefs.h. */ 6543 6544int 6545main () 6546{ 6547 6548 ; 6549 return 0; 6550} 6551_ACEOF 6552if ac_fn_c_try_link "$LINENO"; then : 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6554$as_echo "yes" >&6; }; python_ok=yes 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6557$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6558fi 6559rm -f core conftest.err conftest.$ac_objext \ 6560 conftest$ac_exeext conftest.$ac_ext 6561 CFLAGS=$cflags_save 6562 LIBS=$libs_save 6563 if test $python_ok = yes; then 6564 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6565 6566 else 6567 LIBS=$libs_save_old 6568 PYTHON_SRC= 6569 PYTHON_OBJ= 6570 PYTHON_LIBS= 6571 PYTHON_CFLAGS= 6572 fi 6573 fi 6574 else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6576$as_echo "too old" >&6; } 6577 fi 6578 fi 6579 6580 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6581 as_fn_error $? "could not configure python" "$LINENO" 5 6582 fi 6583fi 6584 6585 6586 6587 6588 6589 6590 6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6592$as_echo_n "checking --enable-python3interp argument... " >&6; } 6593# Check whether --enable-python3interp was given. 6594if test "${enable_python3interp+set}" = set; then : 6595 enableval=$enable_python3interp; 6596else 6597 enable_python3interp="no" 6598fi 6599 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6601$as_echo "$enable_python3interp" >&6; } 6602if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6603 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6604 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6605 fi 6606 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 6608$as_echo_n "checking --with-python3-command argument... " >&6; } 6609 6610 6611# Check whether --with-python3-command was given. 6612if test "${with_python3_command+set}" = set; then : 6613 withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6614$as_echo "$vi_cv_path_python3" >&6; } 6615else 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6617$as_echo "no" >&6; } 6618fi 6619 6620 6621 if test "X$vi_cv_path_python3" = "X"; then 6622 for ac_prog in python3 python 6623do 6624 # Extract the first word of "$ac_prog", so it can be a program name with args. 6625set dummy $ac_prog; ac_word=$2 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627$as_echo_n "checking for $ac_word... " >&6; } 6628if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 case $vi_cv_path_python3 in 6632 [\\/]* | ?:[\\/]*) 6633 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6634 ;; 6635 *) 6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637for as_dir in $PATH 6638do 6639 IFS=$as_save_IFS 6640 test -z "$as_dir" && as_dir=. 6641 for ac_exec_ext in '' $ac_executable_extensions; do 6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6643 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6645 break 2 6646 fi 6647done 6648 done 6649IFS=$as_save_IFS 6650 6651 ;; 6652esac 6653fi 6654vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6655if test -n "$vi_cv_path_python3"; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6657$as_echo "$vi_cv_path_python3" >&6; } 6658else 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6660$as_echo "no" >&6; } 6661fi 6662 6663 6664 test -n "$vi_cv_path_python3" && break 6665done 6666 6667 fi 6668 if test "X$vi_cv_path_python3" != "X"; then 6669 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6671$as_echo_n "checking Python version... " >&6; } 6672if ${vi_cv_var_python3_version+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 vi_cv_var_python3_version=` 6676 ${vi_cv_path_python3} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'` 6677 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6680$as_echo "$vi_cv_var_python3_version" >&6; } 6681 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6683$as_echo_n "checking Python is 3.0 or better... " >&6; } 6684 if ${vi_cv_path_python3} -c \ 6685 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6686 then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6688$as_echo "yep" >&6; } 6689 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6691$as_echo_n "checking Python's abiflags... " >&6; } 6692if ${vi_cv_var_python3_abiflags+:} false; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 6696 vi_cv_var_python3_abiflags= 6697 if ${vi_cv_path_python3} -c \ 6698 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6699 then 6700 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6701 "import sys; print(sys.abiflags)"` 6702 fi 6703fi 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6705$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6706 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6708$as_echo_n "checking Python's install prefix... " >&6; } 6709if ${vi_cv_path_python3_pfx+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 vi_cv_path_python3_pfx=` 6713 ${vi_cv_path_python3} -c \ 6714 "import sys; print(sys.prefix)"` 6715fi 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6717$as_echo "$vi_cv_path_python3_pfx" >&6; } 6718 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6720$as_echo_n "checking Python's execution prefix... " >&6; } 6721if ${vi_cv_path_python3_epfx+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 vi_cv_path_python3_epfx=` 6725 ${vi_cv_path_python3} -c \ 6726 "import sys; print(sys.exec_prefix)"` 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6729$as_echo "$vi_cv_path_python3_epfx" >&6; } 6730 6731 6732 if ${vi_cv_path_python3path+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 vi_cv_path_python3path=` 6736 unset PYTHONPATH; 6737 ${vi_cv_path_python3} -c \ 6738 "import sys, string; print(':'.join(sys.path))"` 6739fi 6740 6741 6742 6743 6744# Check whether --with-python3-config-dir was given. 6745if test "${with_python3_config_dir+set}" = set; then : 6746 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 6747fi 6748 6749 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6751$as_echo_n "checking Python's configuration directory... " >&6; } 6752if ${vi_cv_path_python3_conf+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 6756 vi_cv_path_python3_conf= 6757 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6758 d=`${vi_cv_path_python3} -c "import sysconfig; print(sysconfig.get_config_var('LIBPL'))" 2> /dev/null` 6759 if test "x$d" = "x"; then 6760 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6761 fi 6762 if test -d "$d" && test -f "$d/config.c"; then 6763 vi_cv_path_python3_conf="$d" 6764 else 6765 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6766 for subdir in lib64 lib share; do 6767 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6768 if test -d "$d" && test -f "$d/config.c"; then 6769 vi_cv_path_python3_conf="$d" 6770 fi 6771 done 6772 done 6773 fi 6774 6775fi 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6777$as_echo "$vi_cv_path_python3_conf" >&6; } 6778 6779 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6780 6781 if test "X$PYTHON3_CONFDIR" = "X"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6783$as_echo "can't find it!" >&6; } 6784 else 6785 6786 if ${vi_cv_path_python3_plibs+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 6790 pwd=`pwd` 6791 tmp_mkf="$pwd/config-PyMake$$" 6792 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6793__: 6794 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6795 @echo "python3_LIBS='$(LIBS)'" 6796 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6797 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6798 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6799eof 6800 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6801 rm -f -- "${tmp_mkf}" 6802 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6803 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6804 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6805 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6806 6807fi 6808 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6810$as_echo_n "checking Python3's dll name... " >&6; } 6811if ${vi_cv_dll_name_python3+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 6815 if test "X$python3_DLLLIBRARY" != "X"; then 6816 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6817 else 6818 vi_cv_dll_name_python3="$python3_INSTSONAME" 6819 fi 6820 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6823$as_echo "$vi_cv_dll_name_python3" >&6; } 6824 6825 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6826 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6827 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6828 else 6829 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}" 6830 fi 6831 if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then 6832 PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6833 fi 6834 PYTHON3_SRC="if_python3.c" 6835 PYTHON3_OBJ="objects/if_python3.o" 6836 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6838$as_echo_n "checking if -pthread should be used... " >&6; } 6839 threadsafe_flag= 6840 thread_lib= 6841 if test "`(uname) 2>/dev/null`" != Darwin; then 6842 test "$GCC" = yes && threadsafe_flag="-pthread" 6843 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6844 threadsafe_flag="-D_THREAD_SAFE" 6845 thread_lib="-pthread" 6846 fi 6847 if test "`(uname) 2>/dev/null`" = SunOS; then 6848 threadsafe_flag="-pthreads" 6849 fi 6850 fi 6851 libs_save_old=$LIBS 6852 if test -n "$threadsafe_flag"; then 6853 cflags_save=$CFLAGS 6854 CFLAGS="$CFLAGS $threadsafe_flag" 6855 LIBS="$LIBS $thread_lib" 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858 6859int 6860main () 6861{ 6862 6863 ; 6864 return 0; 6865} 6866_ACEOF 6867if ac_fn_c_try_link "$LINENO"; then : 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6869$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; }; LIBS=$libs_save_old 6873 6874fi 6875rm -f core conftest.err conftest.$ac_objext \ 6876 conftest$ac_exeext conftest.$ac_ext 6877 CFLAGS=$cflags_save 6878 else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880$as_echo "no" >&6; } 6881 fi 6882 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6884$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6885 cflags_save=$CFLAGS 6886 libs_save=$LIBS 6887 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6888 LIBS="$LIBS $PYTHON3_LIBS" 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891 6892int 6893main () 6894{ 6895 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6902$as_echo "yes" >&6; }; python3_ok=yes 6903else 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6905$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6906fi 6907rm -f core conftest.err conftest.$ac_objext \ 6908 conftest$ac_exeext conftest.$ac_ext 6909 CFLAGS=$cflags_save 6910 LIBS=$libs_save 6911 if test "$python3_ok" = yes; then 6912 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6913 6914 else 6915 LIBS=$libs_save_old 6916 PYTHON3_SRC= 6917 PYTHON3_OBJ= 6918 PYTHON3_LIBS= 6919 PYTHON3_CFLAGS= 6920 fi 6921 fi 6922 else 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6924$as_echo "too old" >&6; } 6925 fi 6926 fi 6927 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6928 as_fn_error $? "could not configure python3" "$LINENO" 5 6929 fi 6930fi 6931 6932 6933 6934 6935 6936 6937if test "$python_ok" = yes && test "$python3_ok" = yes; then 6938 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6939 6940 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6943$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6944 cflags_save=$CFLAGS 6945 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6946 libs_save=$LIBS 6947 LIBS="-ldl $LIBS" 6948 if test "$cross_compiling" = yes; then : 6949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6951as_fn_error $? "cannot run test program while cross compiling 6952See \`config.log' for more details" "$LINENO" 5; } 6953else 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956 6957 #include <dlfcn.h> 6958 /* If this program fails, then RTLD_GLOBAL is needed. 6959 * RTLD_GLOBAL will be used and then it is not possible to 6960 * have both python versions enabled in the same vim instance. 6961 * Only the first python version used will be switched on. 6962 */ 6963 6964 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6965 { 6966 int needed = 0; 6967 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6968 if (pylib != 0) 6969 { 6970 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6971 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6972 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6973 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6974 (*pfx)(prefix); 6975 (*init)(); 6976 needed = (*simple)("import termios") == -1; 6977 (*final)(); 6978 dlclose(pylib); 6979 } 6980 return !needed; 6981 } 6982 6983 int main(int argc, char** argv) 6984 { 6985 int not_needed = 0; 6986 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6987 not_needed = 1; 6988 return !not_needed; 6989 } 6990_ACEOF 6991if ac_fn_c_try_run "$LINENO"; then : 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6993$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6994 6995else 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6997$as_echo "no" >&6; } 6998fi 6999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7000 conftest.$ac_objext conftest.beam conftest.$ac_ext 7001fi 7002 7003 7004 CFLAGS=$cflags_save 7005 LIBS=$libs_save 7006 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 7008$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 7009 cflags_save=$CFLAGS 7010 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 7011 libs_save=$LIBS 7012 LIBS="-ldl $LIBS" 7013 if test "$cross_compiling" = yes; then : 7014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7016as_fn_error $? "cannot run test program while cross compiling 7017See \`config.log' for more details" "$LINENO" 5; } 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021 7022 #include <dlfcn.h> 7023 #include <wchar.h> 7024 /* If this program fails, then RTLD_GLOBAL is needed. 7025 * RTLD_GLOBAL will be used and then it is not possible to 7026 * have both python versions enabled in the same vim instance. 7027 * Only the first python version used will be switched on. 7028 */ 7029 7030 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 7031 { 7032 int needed = 0; 7033 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 7034 if (pylib != 0) 7035 { 7036 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 7037 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 7038 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 7039 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 7040 (*pfx)(prefix); 7041 (*init)(); 7042 needed = (*simple)("import termios") == -1; 7043 (*final)(); 7044 dlclose(pylib); 7045 } 7046 return !needed; 7047 } 7048 7049 int main(int argc, char** argv) 7050 { 7051 int not_needed = 0; 7052 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 7053 not_needed = 1; 7054 return !not_needed; 7055 } 7056_ACEOF 7057if ac_fn_c_try_run "$LINENO"; then : 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7059$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 7060 7061else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063$as_echo "no" >&6; } 7064fi 7065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7066 conftest.$ac_objext conftest.beam conftest.$ac_ext 7067fi 7068 7069 7070 CFLAGS=$cflags_save 7071 LIBS=$libs_save 7072 7073 PYTHON_SRC="if_python.c" 7074 PYTHON_OBJ="objects/if_python.o" 7075 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7076 PYTHON_LIBS= 7077 PYTHON3_SRC="if_python3.c" 7078 PYTHON3_OBJ="objects/if_python3.o" 7079 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7080 PYTHON3_LIBS= 7081elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 7082 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 7083 7084 PYTHON_SRC="if_python.c" 7085 PYTHON_OBJ="objects/if_python.o" 7086 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7087 PYTHON_LIBS= 7088elif test "$python_ok" = yes; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 7090$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 7091 cflags_save=$CFLAGS 7092 libs_save=$LIBS 7093 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 7094 LIBS="$LIBS $PYTHON_LIBS" 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097 7098int 7099main () 7100{ 7101 7102 ; 7103 return 0; 7104} 7105_ACEOF 7106if ac_fn_c_try_link "$LINENO"; then : 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7108$as_echo "yes" >&6; }; fpie_ok=yes 7109else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111$as_echo "no" >&6; }; fpie_ok=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext \ 7114 conftest$ac_exeext conftest.$ac_ext 7115 CFLAGS=$cflags_save 7116 LIBS=$libs_save 7117 if test $fpie_ok = yes; then 7118 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 7119 fi 7120elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 7121 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 7122 7123 PYTHON3_SRC="if_python3.c" 7124 PYTHON3_OBJ="objects/if_python3.o" 7125 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7126 PYTHON3_LIBS= 7127elif test "$python3_ok" = yes; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 7129$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 7130 cflags_save=$CFLAGS 7131 libs_save=$LIBS 7132 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 7133 LIBS="$LIBS $PYTHON3_LIBS" 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136 7137int 7138main () 7139{ 7140 7141 ; 7142 return 0; 7143} 7144_ACEOF 7145if ac_fn_c_try_link "$LINENO"; then : 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7147$as_echo "yes" >&6; }; fpie_ok=yes 7148else 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150$as_echo "no" >&6; }; fpie_ok=no 7151fi 7152rm -f core conftest.err conftest.$ac_objext \ 7153 conftest$ac_exeext conftest.$ac_ext 7154 CFLAGS=$cflags_save 7155 LIBS=$libs_save 7156 if test $fpie_ok = yes; then 7157 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 7158 fi 7159fi 7160 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 7162$as_echo_n "checking --enable-tclinterp argument... " >&6; } 7163# Check whether --enable-tclinterp was given. 7164if test "${enable_tclinterp+set}" = set; then : 7165 enableval=$enable_tclinterp; 7166else 7167 enable_tclinterp="no" 7168fi 7169 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 7171$as_echo "$enable_tclinterp" >&6; } 7172 7173if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 7174 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 7176$as_echo_n "checking --with-tclsh argument... " >&6; } 7177 7178# Check whether --with-tclsh was given. 7179if test "${with_tclsh+set}" = set; then : 7180 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 7181$as_echo "$tclsh_name" >&6; } 7182else 7183 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7188set dummy $tclsh_name; ac_word=$2 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190$as_echo_n "checking for $ac_word... " >&6; } 7191if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 case $vi_cv_path_tcl in 7195 [\\/]* | ?:[\\/]*) 7196 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7197 ;; 7198 *) 7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200for as_dir in $PATH 7201do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7206 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214 ;; 7215esac 7216fi 7217vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7218if test -n "$vi_cv_path_tcl"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7220$as_echo "$vi_cv_path_tcl" >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223$as_echo "no" >&6; } 7224fi 7225 7226 7227 7228 7229 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 7230 tclsh_name="tclsh8.4" 7231 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7232set dummy $tclsh_name; ac_word=$2 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7234$as_echo_n "checking for $ac_word... " >&6; } 7235if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 case $vi_cv_path_tcl in 7239 [\\/]* | ?:[\\/]*) 7240 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7241 ;; 7242 *) 7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7244for as_dir in $PATH 7245do 7246 IFS=$as_save_IFS 7247 test -z "$as_dir" && as_dir=. 7248 for ac_exec_ext in '' $ac_executable_extensions; do 7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7250 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7252 break 2 7253 fi 7254done 7255 done 7256IFS=$as_save_IFS 7257 7258 ;; 7259esac 7260fi 7261vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7262if test -n "$vi_cv_path_tcl"; then 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7264$as_echo "$vi_cv_path_tcl" >&6; } 7265else 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7267$as_echo "no" >&6; } 7268fi 7269 7270 7271 fi 7272 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 7273 tclsh_name="tclsh8.2" 7274 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7275set dummy $tclsh_name; ac_word=$2 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277$as_echo_n "checking for $ac_word... " >&6; } 7278if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 case $vi_cv_path_tcl in 7282 [\\/]* | ?:[\\/]*) 7283 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7284 ;; 7285 *) 7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287for as_dir in $PATH 7288do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7293 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297done 7298 done 7299IFS=$as_save_IFS 7300 7301 ;; 7302esac 7303fi 7304vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7305if test -n "$vi_cv_path_tcl"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7307$as_echo "$vi_cv_path_tcl" >&6; } 7308else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 7314 fi 7315 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 7316 tclsh_name="tclsh8.0" 7317 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7318set dummy $tclsh_name; ac_word=$2 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 case $vi_cv_path_tcl in 7325 [\\/]* | ?:[\\/]*) 7326 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7327 ;; 7328 *) 7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 test -z "$as_dir" && as_dir=. 7334 for ac_exec_ext in '' $ac_executable_extensions; do 7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7336 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7338 break 2 7339 fi 7340done 7341 done 7342IFS=$as_save_IFS 7343 7344 ;; 7345esac 7346fi 7347vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7348if test -n "$vi_cv_path_tcl"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7350$as_echo "$vi_cv_path_tcl" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 7357 fi 7358 if test "X$vi_cv_path_tcl" = "X"; then 7359 tclsh_name="tclsh" 7360 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7361set dummy $tclsh_name; ac_word=$2 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 case $vi_cv_path_tcl in 7368 [\\/]* | ?:[\\/]*) 7369 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7370 ;; 7371 *) 7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373for as_dir in $PATH 7374do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7379 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7381 break 2 7382 fi 7383done 7384 done 7385IFS=$as_save_IFS 7386 7387 ;; 7388esac 7389fi 7390vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7391if test -n "$vi_cv_path_tcl"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7393$as_echo "$vi_cv_path_tcl" >&6; } 7394else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396$as_echo "no" >&6; } 7397fi 7398 7399 7400 fi 7401 if test "X$vi_cv_path_tcl" != "X"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 7403$as_echo_n "checking Tcl version... " >&6; } 7404 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 7405 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 7407$as_echo "$tclver - OK" >&6; }; 7408 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 -` 7409 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 7412$as_echo_n "checking for location of Tcl include... " >&6; } 7413 if test "x$MACOS_X" != "xyes"; then 7414 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 7415 else 7416 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /System/Library/Frameworks/Tcl.framework/Headers `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework/Versions/Current/Headers" 7417 fi 7418 TCL_INC= 7419 for try in $tclinc; do 7420 if test -f "$try/tcl.h"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 7422$as_echo "$try/tcl.h" >&6; } 7423 TCL_INC=$try 7424 break 7425 fi 7426 done 7427 if test -z "$TCL_INC"; then 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7429$as_echo "<not found>" >&6; } 7430 SKIP_TCL=YES 7431 fi 7432 if test -z "$SKIP_TCL"; then 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 7434$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 7435 if test "x$MACOS_X" != "xyes"; then 7436 tclcnf=`echo $tclinc | sed s/include/lib/g` 7437 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7438 else 7439 tclcnf=`echo $tclinc | sed s/include/lib/g` 7440 tclcnf="$tclcnf /System/Library/Frameworks/Tcl.framework `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework" 7441 fi 7442 for try in $tclcnf; do 7443 if test -f "$try/tclConfig.sh"; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7445$as_echo "$try/tclConfig.sh" >&6; } 7446 . "$try/tclConfig.sh" 7447 if test "$enable_tclinterp" = "dynamic"; then 7448 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7449 else 7450 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7451 fi 7452 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'` 7453 break 7454 fi 7455 done 7456 if test -z "$TCL_LIBS"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7458$as_echo "<not found>" >&6; } 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7460$as_echo_n "checking for Tcl library by myself... " >&6; } 7461 tcllib=`echo $tclinc | sed s/include/lib/g` 7462 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7463 for ext in .so .a ; do 7464 for ver in "" $tclver ; do 7465 for try in $tcllib ; do 7466 trylib=tcl$ver$ext 7467 if test -f "$try/lib$trylib" ; then 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7469$as_echo "$try/lib$trylib" >&6; } 7470 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7471 if test "`(uname) 2>/dev/null`" = SunOS && 7472 uname -r | grep '^5' >/dev/null; then 7473 TCL_LIBS="$TCL_LIBS -R $try" 7474 fi 7475 break 3 7476 fi 7477 done 7478 done 7479 done 7480 if test -z "$TCL_LIBS"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7482$as_echo "<not found>" >&6; } 7483 SKIP_TCL=YES 7484 fi 7485 fi 7486 if test -z "$SKIP_TCL"; then 7487 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7488 7489 TCL_SRC=if_tcl.c 7490 TCL_OBJ=objects/if_tcl.o 7491 TCL_PRO=if_tcl.pro 7492 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7493 fi 7494 fi 7495 else 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7497$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7498 fi 7499 fi 7500 if test "$enable_tclinterp" = "dynamic"; then 7501 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7502 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7503 7504 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7505 fi 7506 fi 7507 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7508 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7509 fi 7510fi 7511 7512 7513 7514 7515 7516 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7518$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7519# Check whether --enable-rubyinterp was given. 7520if test "${enable_rubyinterp+set}" = set; then : 7521 enableval=$enable_rubyinterp; 7522else 7523 enable_rubyinterp="no" 7524fi 7525 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7527$as_echo "$enable_rubyinterp" >&6; } 7528if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7529 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7530 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7531 fi 7532 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7534$as_echo_n "checking --with-ruby-command argument... " >&6; } 7535 7536 7537# Check whether --with-ruby-command was given. 7538if test "${with_ruby_command+set}" = set; then : 7539 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7540$as_echo "$RUBY_CMD" >&6; } 7541else 7542 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7543$as_echo "defaulting to $RUBY_CMD" >&6; } 7544fi 7545 7546 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7547set dummy $RUBY_CMD; ac_word=$2 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7549$as_echo_n "checking for $ac_word... " >&6; } 7550if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 case $vi_cv_path_ruby in 7554 [\\/]* | ?:[\\/]*) 7555 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7556 ;; 7557 *) 7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7565 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573 ;; 7574esac 7575fi 7576vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7577if test -n "$vi_cv_path_ruby"; then 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7579$as_echo "$vi_cv_path_ruby" >&6; } 7580else 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7582$as_echo "no" >&6; } 7583fi 7584 7585 7586 if test "X$vi_cv_path_ruby" != "X"; then 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7588$as_echo_n "checking Ruby version... " >&6; } 7589 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7591$as_echo "OK" >&6; } 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7593$as_echo_n "checking Ruby rbconfig... " >&6; } 7594 ruby_rbconfig="RbConfig" 7595 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7596 ruby_rbconfig="Config" 7597 fi 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7599$as_echo "$ruby_rbconfig" >&6; } 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7601$as_echo_n "checking Ruby header files... " >&6; } 7602 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7603 if test "X$rubyhdrdir" != "X"; then 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7605$as_echo "$rubyhdrdir" >&6; } 7606 RUBY_CFLAGS="-I$rubyhdrdir" 7607 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7608 if test -d "$rubyarchdir"; then 7609 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7610 fi 7611 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7612 if test "X$rubyversion" = "X"; then 7613 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7614 fi 7615 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7616 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7617 if test "X$rubylibs" != "X"; then 7618 RUBY_LIBS="$rubylibs" 7619 fi 7620 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7621 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7622 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7623 if test -f "$rubylibdir/$librubya" || expr "$librubyarg" : "-lruby"; then 7624 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7625 elif test "$librubyarg" = "libruby.a"; then 7626 librubyarg="-lruby" 7627 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7628 fi 7629 7630 if test "X$librubyarg" != "X"; then 7631 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7632 fi 7633 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7634 if test "X$rubyldflags" != "X"; then 7635 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7636 if test "X$rubyldflags" != "X"; then 7637 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7638 LDFLAGS="$rubyldflags $LDFLAGS" 7639 fi 7640 fi 7641 fi 7642 RUBY_SRC="if_ruby.c" 7643 RUBY_OBJ="objects/if_ruby.o" 7644 RUBY_PRO="if_ruby.pro" 7645 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7646 7647 if test "$enable_rubyinterp" = "dynamic"; then 7648 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7649 if test -z "$libruby_soname"; then 7650 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7651 fi 7652 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7653 7654 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS" 7655 RUBY_LIBS= 7656 fi 7657 if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then 7658 RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec" 7659 fi 7660 else 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7662$as_echo "not found; disabling Ruby" >&6; } 7663 fi 7664 else 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7666$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7667 fi 7668 fi 7669 7670 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7671 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7672 fi 7673fi 7674 7675 7676 7677 7678 7679 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7681$as_echo_n "checking --enable-cscope argument... " >&6; } 7682# Check whether --enable-cscope was given. 7683if test "${enable_cscope+set}" = set; then : 7684 enableval=$enable_cscope; 7685else 7686 enable_cscope="no" 7687fi 7688 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7690$as_echo "$enable_cscope" >&6; } 7691if test "$enable_cscope" = "yes"; then 7692 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7693 7694fi 7695 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7697$as_echo_n "checking --disable-netbeans argument... " >&6; } 7698# Check whether --enable-netbeans was given. 7699if test "${enable_netbeans+set}" = set; then : 7700 enableval=$enable_netbeans; 7701else 7702 enable_netbeans="yes" 7703fi 7704 7705if test "$enable_netbeans" = "yes"; then 7706 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7708$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7709 enable_netbeans="no" 7710 else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712$as_echo "no" >&6; } 7713 fi 7714else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7716$as_echo "yes" >&6; } 7717fi 7718 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7720$as_echo_n "checking --disable-channel argument... " >&6; } 7721# Check whether --enable-channel was given. 7722if test "${enable_channel+set}" = set; then : 7723 enableval=$enable_channel; 7724else 7725 enable_channel="yes" 7726fi 7727 7728if test "$enable_channel" = "yes"; then 7729 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7731$as_echo "cannot use channels with tiny or small features" >&6; } 7732 enable_channel="no" 7733 else 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7735$as_echo "no" >&6; } 7736 fi 7737else 7738 if test "$enable_netbeans" = "yes"; then 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7740$as_echo "yes, netbeans also disabled" >&6; } 7741 enable_netbeans="no" 7742 else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7744$as_echo "yes" >&6; } 7745 fi 7746fi 7747 7748if test "$enable_channel" = "yes"; then 7749 if test "x$HAIKU" = "xyes"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 7751$as_echo_n "checking for socket in -lnetwork... " >&6; } 7752if ${ac_cv_lib_network_socket+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 ac_check_lib_save_LIBS=$LIBS 7756LIBS="-lnetwork $LIBS" 7757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759 7760/* Override any GCC internal prototype to avoid an error. 7761 Use char because int might match the return type of a GCC 7762 builtin and then its argument prototype would still apply. */ 7763#ifdef __cplusplus 7764extern "C" 7765#endif 7766char socket (); 7767int 7768main () 7769{ 7770return socket (); 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO"; then : 7776 ac_cv_lib_network_socket=yes 7777else 7778 ac_cv_lib_network_socket=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782LIBS=$ac_check_lib_save_LIBS 7783fi 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 7785$as_echo "$ac_cv_lib_network_socket" >&6; } 7786if test "x$ac_cv_lib_network_socket" = xyes; then : 7787 cat >>confdefs.h <<_ACEOF 7788#define HAVE_LIBNETWORK 1 7789_ACEOF 7790 7791 LIBS="-lnetwork $LIBS" 7792 7793fi 7794 7795 else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7797$as_echo_n "checking for socket in -lsocket... " >&6; } 7798if ${ac_cv_lib_socket_socket+:} false; then : 7799 $as_echo_n "(cached) " >&6 7800else 7801 ac_check_lib_save_LIBS=$LIBS 7802LIBS="-lsocket $LIBS" 7803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804/* end confdefs.h. */ 7805 7806/* Override any GCC internal prototype to avoid an error. 7807 Use char because int might match the return type of a GCC 7808 builtin and then its argument prototype would still apply. */ 7809#ifdef __cplusplus 7810extern "C" 7811#endif 7812char socket (); 7813int 7814main () 7815{ 7816return socket (); 7817 ; 7818 return 0; 7819} 7820_ACEOF 7821if ac_fn_c_try_link "$LINENO"; then : 7822 ac_cv_lib_socket_socket=yes 7823else 7824 ac_cv_lib_socket_socket=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext \ 7827 conftest$ac_exeext conftest.$ac_ext 7828LIBS=$ac_check_lib_save_LIBS 7829fi 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7831$as_echo "$ac_cv_lib_socket_socket" >&6; } 7832if test "x$ac_cv_lib_socket_socket" = xyes; then : 7833 cat >>confdefs.h <<_ACEOF 7834#define HAVE_LIBSOCKET 1 7835_ACEOF 7836 7837 LIBS="-lsocket $LIBS" 7838 7839fi 7840 7841 fi 7842 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5 7844$as_echo_n "checking whether compiling with IPv6 networking is possible... " >&6; } 7845if ${vim_cv_ipv6_networking+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850 7851#include <stdio.h> 7852#include <stdlib.h> 7853#include <stdarg.h> 7854#include <fcntl.h> 7855#include <netdb.h> 7856#include <netinet/in.h> 7857#include <errno.h> 7858#include <sys/types.h> 7859#include <sys/socket.h> 7860 /* Check bitfields */ 7861 struct nbbuf { 7862 unsigned int initDone:1; 7863 unsigned short signmaplen; 7864 }; 7865 7866int 7867main () 7868{ 7869 7870 /* Check creating a socket. */ 7871 struct sockaddr_in server; 7872 struct addrinfo *res; 7873 (void)socket(AF_INET, SOCK_STREAM, 0); 7874 (void)htons(100); 7875 (void)getaddrinfo("microsoft.com", NULL, NULL, &res); 7876 if (errno == ECONNREFUSED) 7877 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7878 (void)freeaddrinfo(res); 7879 7880 ; 7881 return 0; 7882} 7883_ACEOF 7884if ac_fn_c_try_link "$LINENO"; then : 7885 vim_cv_ipv6_networking="yes" 7886else 7887 vim_cv_ipv6_networking="no" 7888fi 7889rm -f core conftest.err conftest.$ac_objext \ 7890 conftest$ac_exeext conftest.$ac_ext 7891fi 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5 7893$as_echo "$vim_cv_ipv6_networking" >&6; } 7894 7895 if test "x$vim_cv_ipv6_networking" = "xyes"; then 7896 $as_echo "#define FEAT_IPV6 1" >>confdefs.h 7897 7898 for ac_func in inet_ntop 7899do : 7900 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 7901if test "x$ac_cv_func_inet_ntop" = xyes; then : 7902 cat >>confdefs.h <<_ACEOF 7903#define HAVE_INET_NTOP 1 7904_ACEOF 7905 7906fi 7907done 7908 7909 else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7911$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7912if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 ac_check_lib_save_LIBS=$LIBS 7916LIBS="-lnsl $LIBS" 7917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918/* end confdefs.h. */ 7919 7920/* Override any GCC internal prototype to avoid an error. 7921 Use char because int might match the return type of a GCC 7922 builtin and then its argument prototype would still apply. */ 7923#ifdef __cplusplus 7924extern "C" 7925#endif 7926char gethostbyname (); 7927int 7928main () 7929{ 7930return gethostbyname (); 7931 ; 7932 return 0; 7933} 7934_ACEOF 7935if ac_fn_c_try_link "$LINENO"; then : 7936 ac_cv_lib_nsl_gethostbyname=yes 7937else 7938 ac_cv_lib_nsl_gethostbyname=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext \ 7941 conftest$ac_exeext conftest.$ac_ext 7942LIBS=$ac_check_lib_save_LIBS 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7945$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7946if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7947 cat >>confdefs.h <<_ACEOF 7948#define HAVE_LIBNSL 1 7949_ACEOF 7950 7951 LIBS="-lnsl $LIBS" 7952 7953fi 7954 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5 7956$as_echo_n "checking whether compiling with IPv4 networking is possible... " >&6; } 7957if ${vim_cv_ipv4_networking+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961/* end confdefs.h. */ 7962 7963#include <stdio.h> 7964#include <stdlib.h> 7965#include <stdarg.h> 7966#include <fcntl.h> 7967#include <netdb.h> 7968#include <netinet/in.h> 7969#include <errno.h> 7970#include <sys/types.h> 7971#include <sys/socket.h> 7972 /* Check bitfields */ 7973 struct nbbuf { 7974 unsigned int initDone:1; 7975 unsigned short signmaplen; 7976 }; 7977 7978int 7979main () 7980{ 7981 7982 /* Check creating a socket. */ 7983 struct sockaddr_in server; 7984 (void)socket(AF_INET, SOCK_STREAM, 0); 7985 (void)htons(100); 7986 (void)gethostbyname("microsoft.com"); 7987 if (errno == ECONNREFUSED) 7988 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO"; then : 7995 vim_cv_ipv4_networking="yes" 7996else 7997 vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no" 7998fi 7999rm -f core conftest.err conftest.$ac_objext \ 8000 conftest$ac_exeext conftest.$ac_ext 8001fi 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5 8003$as_echo "$vim_cv_ipv4_networking" >&6; } 8004 fi 8005fi 8006if test "$enable_netbeans" = "yes"; then 8007 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 8008 8009 NETBEANS_SRC="netbeans.c" 8010 8011 NETBEANS_OBJ="objects/netbeans.o" 8012 8013fi 8014if test "$enable_channel" = "yes"; then 8015 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 8016 8017 CHANNEL_SRC="job.c channel.c" 8018 8019 CHANNEL_OBJ="objects/job.o objects/channel.o" 8020 8021fi 8022 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 8024$as_echo_n "checking --enable-terminal argument... " >&6; } 8025# Check whether --enable-terminal was given. 8026if test "${enable_terminal+set}" = set; then : 8027 enableval=$enable_terminal; 8028else 8029 enable_terminal="auto" 8030fi 8031 8032if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 8033 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 8035$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 8036 enable_terminal="no" 8037 else 8038 if test "$enable_terminal" = "auto"; then 8039 enable_terminal="yes" 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 8041$as_echo "defaulting to yes" >&6; } 8042 else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8044$as_echo "yes" >&6; } 8045 fi 8046 fi 8047else 8048 if test "$enable_terminal" = "auto"; then 8049 enable_terminal="no" 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 8051$as_echo "defaulting to no" >&6; } 8052 else 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054$as_echo "no" >&6; } 8055 fi 8056fi 8057if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 8058 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 8059 8060 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 8061 8062 TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o" 8063 8064 TERM_TEST="test_libvterm" 8065 8066fi 8067 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 8069$as_echo_n "checking --enable-autoservername argument... " >&6; } 8070# Check whether --enable-autoservername was given. 8071if test "${enable_autoservername+set}" = set; then : 8072 enableval=$enable_autoservername; 8073else 8074 enable_autoservername="no" 8075fi 8076 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 8078$as_echo "$enable_autoservername" >&6; } 8079if test "$enable_autoservername" = "yes"; then 8080 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 8081 8082fi 8083 8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 8085$as_echo_n "checking --enable-multibyte argument... " >&6; } 8086# Check whether --enable-multibyte was given. 8087if test "${enable_multibyte+set}" = set; then : 8088 enableval=$enable_multibyte; 8089else 8090 enable_multibyte="yes" 8091fi 8092 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 8094$as_echo "$enable_multibyte" >&6; } 8095if test "$enable_multibyte" != "yes"; then 8096 as_fn_error $? "The multi-byte feature can no longer be disabled. If you have 8097 a problem with this, discuss on the Vim mailing list." "$LINENO" 5 8098fi 8099 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5 8101$as_echo_n "checking --disable-rightleft argument... " >&6; } 8102# Check whether --enable-rightleft was given. 8103if test "${enable_rightleft+set}" = set; then : 8104 enableval=$enable_rightleft; 8105else 8106 enable_rightleft="yes" 8107fi 8108 8109if test "$enable_rightleft" = "yes"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8111$as_echo "no" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8114$as_echo "yes" >&6; } 8115 $as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h 8116 8117fi 8118 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5 8120$as_echo_n "checking --disable-arabic argument... " >&6; } 8121# Check whether --enable-arabic was given. 8122if test "${enable_arabic+set}" = set; then : 8123 enableval=$enable_arabic; 8124else 8125 enable_arabic="yes" 8126fi 8127 8128if test "$enable_arabic" = "yes"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130$as_echo "no" >&6; } 8131else 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8133$as_echo "yes" >&6; } 8134 $as_echo "#define DISABLE_ARABIC 1" >>confdefs.h 8135 8136fi 8137 8138# Check whether --enable-farsi was given. 8139if test "${enable_farsi+set}" = set; then : 8140 enableval=$enable_farsi; 8141fi 8142 8143 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 8145$as_echo_n "checking --enable-xim argument... " >&6; } 8146# Check whether --enable-xim was given. 8147if test "${enable_xim+set}" = set; then : 8148 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 8149$as_echo "$enable_xim" >&6; } 8150else 8151 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 8152$as_echo "defaulting to auto" >&6; } 8153fi 8154 8155 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 8157$as_echo_n "checking --enable-fontset argument... " >&6; } 8158# Check whether --enable-fontset was given. 8159if test "${enable_fontset+set}" = set; then : 8160 enableval=$enable_fontset; 8161else 8162 enable_fontset="no" 8163fi 8164 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 8166$as_echo "$enable_fontset" >&6; } 8167 8168test -z "$with_x" && with_x=yes 8169test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 8170if test "$with_x" = no; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 8172$as_echo "defaulting to: don't HAVE_X11" >&6; } 8173else 8174 8175 # Extract the first word of "xmkmf", so it can be a program name with args. 8176set dummy xmkmf; ac_word=$2 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8178$as_echo_n "checking for $ac_word... " >&6; } 8179if ${ac_cv_path_xmkmfpath+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 case $xmkmfpath in 8183 [\\/]* | ?:[\\/]*) 8184 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 8185 ;; 8186 *) 8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8188for as_dir in $PATH 8189do 8190 IFS=$as_save_IFS 8191 test -z "$as_dir" && as_dir=. 8192 for ac_exec_ext in '' $ac_executable_extensions; do 8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8194 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8196 break 2 8197 fi 8198done 8199 done 8200IFS=$as_save_IFS 8201 8202 ;; 8203esac 8204fi 8205xmkmfpath=$ac_cv_path_xmkmfpath 8206if test -n "$xmkmfpath"; then 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 8208$as_echo "$xmkmfpath" >&6; } 8209else 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8211$as_echo "no" >&6; } 8212fi 8213 8214 8215 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8217$as_echo_n "checking for X... " >&6; } 8218 8219 8220# Check whether --with-x was given. 8221if test "${with_x+set}" = set; then : 8222 withval=$with_x; 8223fi 8224 8225# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8226if test "x$with_x" = xno; then 8227 # The user explicitly disabled X. 8228 have_x=disabled 8229else 8230 case $x_includes,$x_libraries in #( 8231 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8232 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 # One or both of the vars are not set, and there is no cached value. 8236ac_x_includes=no ac_x_libraries=no 8237rm -f -r conftest.dir 8238if mkdir conftest.dir; then 8239 cd conftest.dir 8240 cat >Imakefile <<'_ACEOF' 8241incroot: 8242 @echo incroot='${INCROOT}' 8243usrlibdir: 8244 @echo usrlibdir='${USRLIBDIR}' 8245libdir: 8246 @echo libdir='${LIBDIR}' 8247_ACEOF 8248 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8249 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8250 for ac_var in incroot usrlibdir libdir; do 8251 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8252 done 8253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8254 for ac_extension in a so sl dylib la dll; do 8255 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8256 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8257 ac_im_usrlibdir=$ac_im_libdir; break 8258 fi 8259 done 8260 # Screen out bogus values from the imake configuration. They are 8261 # bogus both because they are the default anyway, and because 8262 # using them would break gcc on systems where it needs fixed includes. 8263 case $ac_im_incroot in 8264 /usr/include) ac_x_includes= ;; 8265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8266 esac 8267 case $ac_im_usrlibdir in 8268 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8270 esac 8271 fi 8272 cd .. 8273 rm -f -r conftest.dir 8274fi 8275 8276# Standard set of common directories for X headers. 8277# Check X11 before X11Rn because it is often a symlink to the current release. 8278ac_x_header_dirs=' 8279/usr/X11/include 8280/usr/X11R7/include 8281/usr/X11R6/include 8282/usr/X11R5/include 8283/usr/X11R4/include 8284 8285/usr/include/X11 8286/usr/include/X11R7 8287/usr/include/X11R6 8288/usr/include/X11R5 8289/usr/include/X11R4 8290 8291/usr/local/X11/include 8292/usr/local/X11R7/include 8293/usr/local/X11R6/include 8294/usr/local/X11R5/include 8295/usr/local/X11R4/include 8296 8297/usr/local/include/X11 8298/usr/local/include/X11R7 8299/usr/local/include/X11R6 8300/usr/local/include/X11R5 8301/usr/local/include/X11R4 8302 8303/usr/X386/include 8304/usr/x386/include 8305/usr/XFree86/include/X11 8306 8307/usr/include 8308/usr/local/include 8309/usr/unsupported/include 8310/usr/athena/include 8311/usr/local/x11r5/include 8312/usr/lpp/Xamples/include 8313 8314/usr/openwin/include 8315/usr/openwin/share/include' 8316 8317if test "$ac_x_includes" = no; then 8318 # Guess where to find include files, by looking for Xlib.h. 8319 # First, try using that file with no special directory specified. 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322#include <X11/Xlib.h> 8323_ACEOF 8324if ac_fn_c_try_cpp "$LINENO"; then : 8325 # We can compile using X headers with no special include directory. 8326ac_x_includes= 8327else 8328 for ac_dir in $ac_x_header_dirs; do 8329 if test -r "$ac_dir/X11/Xlib.h"; then 8330 ac_x_includes=$ac_dir 8331 break 8332 fi 8333done 8334fi 8335rm -f conftest.err conftest.i conftest.$ac_ext 8336fi # $ac_x_includes = no 8337 8338if test "$ac_x_libraries" = no; then 8339 # Check for the libraries. 8340 # See if we find them without any special options. 8341 # Don't add to $LIBS permanently. 8342 ac_save_LIBS=$LIBS 8343 LIBS="-lX11 $LIBS" 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346#include <X11/Xlib.h> 8347int 8348main () 8349{ 8350XrmInitialize () 8351 ; 8352 return 0; 8353} 8354_ACEOF 8355if ac_fn_c_try_link "$LINENO"; then : 8356 LIBS=$ac_save_LIBS 8357# We can link X programs with no special library path. 8358ac_x_libraries= 8359else 8360 LIBS=$ac_save_LIBS 8361for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8362do 8363 # Don't even attempt the hair of trying to link an X program! 8364 for ac_extension in a so sl dylib la dll; do 8365 if test -r "$ac_dir/libX11.$ac_extension"; then 8366 ac_x_libraries=$ac_dir 8367 break 2 8368 fi 8369 done 8370done 8371fi 8372rm -f core conftest.err conftest.$ac_objext \ 8373 conftest$ac_exeext conftest.$ac_ext 8374fi # $ac_x_libraries = no 8375 8376case $ac_x_includes,$ac_x_libraries in #( 8377 no,* | *,no | *\'*) 8378 # Didn't find X, or a directory has "'" in its name. 8379 ac_cv_have_x="have_x=no";; #( 8380 *) 8381 # Record where we found X for the cache. 8382 ac_cv_have_x="have_x=yes\ 8383 ac_x_includes='$ac_x_includes'\ 8384 ac_x_libraries='$ac_x_libraries'" 8385esac 8386fi 8387;; #( 8388 *) have_x=yes;; 8389 esac 8390 eval "$ac_cv_have_x" 8391fi # $with_x != no 8392 8393if test "$have_x" != yes; then 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8395$as_echo "$have_x" >&6; } 8396 no_x=yes 8397else 8398 # If each of the values was on the command line, it overrides each guess. 8399 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8400 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8401 # Update the cache value to reflect the command line values. 8402 ac_cv_have_x="have_x=yes\ 8403 ac_x_includes='$x_includes'\ 8404 ac_x_libraries='$x_libraries'" 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8406$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8407fi 8408 8409if test "$no_x" = yes; then 8410 # Not all programs may use this symbol, but it does not hurt to define it. 8411 8412$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8413 8414 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8415else 8416 if test -n "$x_includes"; then 8417 X_CFLAGS="$X_CFLAGS -I$x_includes" 8418 fi 8419 8420 # It would also be nice to do this for all -L options, not just this one. 8421 if test -n "$x_libraries"; then 8422 X_LIBS="$X_LIBS -L$x_libraries" 8423 # For Solaris; some versions of Sun CC require a space after -R and 8424 # others require no space. Words are not sufficient . . . . 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8426$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8427 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8428 ac_xsave_c_werror_flag=$ac_c_werror_flag 8429 ac_c_werror_flag=yes 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432 8433int 8434main () 8435{ 8436 8437 ; 8438 return 0; 8439} 8440_ACEOF 8441if ac_fn_c_try_link "$LINENO"; then : 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443$as_echo "no" >&6; } 8444 X_LIBS="$X_LIBS -R$x_libraries" 8445else 8446 LIBS="$ac_xsave_LIBS -R $x_libraries" 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449 8450int 8451main () 8452{ 8453 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458if ac_fn_c_try_link "$LINENO"; then : 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8460$as_echo "yes" >&6; } 8461 X_LIBS="$X_LIBS -R $x_libraries" 8462else 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8464$as_echo "neither works" >&6; } 8465fi 8466rm -f core conftest.err conftest.$ac_objext \ 8467 conftest$ac_exeext conftest.$ac_ext 8468fi 8469rm -f core conftest.err conftest.$ac_objext \ 8470 conftest$ac_exeext conftest.$ac_ext 8471 ac_c_werror_flag=$ac_xsave_c_werror_flag 8472 LIBS=$ac_xsave_LIBS 8473 fi 8474 8475 # Check for system-dependent libraries X programs must link with. 8476 # Do this before checking for the system-independent R6 libraries 8477 # (-lICE), since we may need -lsocket or whatever for X linking. 8478 8479 if test "$ISC" = yes; then 8480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8481 else 8482 # Martyn Johnson says this is needed for Ultrix, if the X 8483 # libraries were built with DECnet support. And Karl Berry says 8484 # the Alpha needs dnet_stub (dnet does not exist). 8485 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488 8489/* Override any GCC internal prototype to avoid an error. 8490 Use char because int might match the return type of a GCC 8491 builtin and then its argument prototype would still apply. */ 8492#ifdef __cplusplus 8493extern "C" 8494#endif 8495char XOpenDisplay (); 8496int 8497main () 8498{ 8499return XOpenDisplay (); 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504if ac_fn_c_try_link "$LINENO"; then : 8505 8506else 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8508$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8509if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 ac_check_lib_save_LIBS=$LIBS 8513LIBS="-ldnet $LIBS" 8514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516 8517/* Override any GCC internal prototype to avoid an error. 8518 Use char because int might match the return type of a GCC 8519 builtin and then its argument prototype would still apply. */ 8520#ifdef __cplusplus 8521extern "C" 8522#endif 8523char dnet_ntoa (); 8524int 8525main () 8526{ 8527return dnet_ntoa (); 8528 ; 8529 return 0; 8530} 8531_ACEOF 8532if ac_fn_c_try_link "$LINENO"; then : 8533 ac_cv_lib_dnet_dnet_ntoa=yes 8534else 8535 ac_cv_lib_dnet_dnet_ntoa=no 8536fi 8537rm -f core conftest.err conftest.$ac_objext \ 8538 conftest$ac_exeext conftest.$ac_ext 8539LIBS=$ac_check_lib_save_LIBS 8540fi 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8542$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8543if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8544 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8545fi 8546 8547 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8549$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8550if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8551 $as_echo_n "(cached) " >&6 8552else 8553 ac_check_lib_save_LIBS=$LIBS 8554LIBS="-ldnet_stub $LIBS" 8555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557 8558/* Override any GCC internal prototype to avoid an error. 8559 Use char because int might match the return type of a GCC 8560 builtin and then its argument prototype would still apply. */ 8561#ifdef __cplusplus 8562extern "C" 8563#endif 8564char dnet_ntoa (); 8565int 8566main () 8567{ 8568return dnet_ntoa (); 8569 ; 8570 return 0; 8571} 8572_ACEOF 8573if ac_fn_c_try_link "$LINENO"; then : 8574 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8575else 8576 ac_cv_lib_dnet_stub_dnet_ntoa=no 8577fi 8578rm -f core conftest.err conftest.$ac_objext \ 8579 conftest$ac_exeext conftest.$ac_ext 8580LIBS=$ac_check_lib_save_LIBS 8581fi 8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8583$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8584if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8586fi 8587 8588 fi 8589fi 8590rm -f core conftest.err conftest.$ac_objext \ 8591 conftest$ac_exeext conftest.$ac_ext 8592 LIBS="$ac_xsave_LIBS" 8593 8594 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8595 # to get the SysV transport functions. 8596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8597 # needs -lnsl. 8598 # The nsl library prevents programs from opening the X display 8599 # on Irix 5.2, according to T.E. Dickey. 8600 # The functions gethostbyname, getservbyname, and inet_addr are 8601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8602 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8603if test "x$ac_cv_func_gethostbyname" = xyes; then : 8604 8605fi 8606 8607 if test $ac_cv_func_gethostbyname = no; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8609$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8610if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 ac_check_lib_save_LIBS=$LIBS 8614LIBS="-lnsl $LIBS" 8615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8616/* end confdefs.h. */ 8617 8618/* Override any GCC internal prototype to avoid an error. 8619 Use char because int might match the return type of a GCC 8620 builtin and then its argument prototype would still apply. */ 8621#ifdef __cplusplus 8622extern "C" 8623#endif 8624char gethostbyname (); 8625int 8626main () 8627{ 8628return gethostbyname (); 8629 ; 8630 return 0; 8631} 8632_ACEOF 8633if ac_fn_c_try_link "$LINENO"; then : 8634 ac_cv_lib_nsl_gethostbyname=yes 8635else 8636 ac_cv_lib_nsl_gethostbyname=no 8637fi 8638rm -f core conftest.err conftest.$ac_objext \ 8639 conftest$ac_exeext conftest.$ac_ext 8640LIBS=$ac_check_lib_save_LIBS 8641fi 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8643$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8644if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8646fi 8647 8648 if test $ac_cv_lib_nsl_gethostbyname = no; then 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8650$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8651if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 ac_check_lib_save_LIBS=$LIBS 8655LIBS="-lbsd $LIBS" 8656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657/* end confdefs.h. */ 8658 8659/* Override any GCC internal prototype to avoid an error. 8660 Use char because int might match the return type of a GCC 8661 builtin and then its argument prototype would still apply. */ 8662#ifdef __cplusplus 8663extern "C" 8664#endif 8665char gethostbyname (); 8666int 8667main () 8668{ 8669return gethostbyname (); 8670 ; 8671 return 0; 8672} 8673_ACEOF 8674if ac_fn_c_try_link "$LINENO"; then : 8675 ac_cv_lib_bsd_gethostbyname=yes 8676else 8677 ac_cv_lib_bsd_gethostbyname=no 8678fi 8679rm -f core conftest.err conftest.$ac_objext \ 8680 conftest$ac_exeext conftest.$ac_ext 8681LIBS=$ac_check_lib_save_LIBS 8682fi 8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8684$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8685if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8686 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8687fi 8688 8689 fi 8690 fi 8691 8692 # [email protected] says without -lsocket, 8693 # socket/setsockopt and other routines are undefined under SCO ODT 8694 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8695 # on later versions), says Simon Leinen: it contains gethostby* 8696 # variants that don't use the name server (or something). -lsocket 8697 # must be given before -lnsl if both are needed. We assume that 8698 # if connect needs -lnsl, so does gethostbyname. 8699 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8700if test "x$ac_cv_func_connect" = xyes; then : 8701 8702fi 8703 8704 if test $ac_cv_func_connect = no; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8706$as_echo_n "checking for connect in -lsocket... " >&6; } 8707if ${ac_cv_lib_socket_connect+:} false; then : 8708 $as_echo_n "(cached) " >&6 8709else 8710 ac_check_lib_save_LIBS=$LIBS 8711LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713/* end confdefs.h. */ 8714 8715/* Override any GCC internal prototype to avoid an error. 8716 Use char because int might match the return type of a GCC 8717 builtin and then its argument prototype would still apply. */ 8718#ifdef __cplusplus 8719extern "C" 8720#endif 8721char connect (); 8722int 8723main () 8724{ 8725return connect (); 8726 ; 8727 return 0; 8728} 8729_ACEOF 8730if ac_fn_c_try_link "$LINENO"; then : 8731 ac_cv_lib_socket_connect=yes 8732else 8733 ac_cv_lib_socket_connect=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext \ 8736 conftest$ac_exeext conftest.$ac_ext 8737LIBS=$ac_check_lib_save_LIBS 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8740$as_echo "$ac_cv_lib_socket_connect" >&6; } 8741if test "x$ac_cv_lib_socket_connect" = xyes; then : 8742 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8743fi 8744 8745 fi 8746 8747 # Guillermo Gomez says -lposix is necessary on A/UX. 8748 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8749if test "x$ac_cv_func_remove" = xyes; then : 8750 8751fi 8752 8753 if test $ac_cv_func_remove = no; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8755$as_echo_n "checking for remove in -lposix... " >&6; } 8756if ${ac_cv_lib_posix_remove+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 ac_check_lib_save_LIBS=$LIBS 8760LIBS="-lposix $LIBS" 8761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762/* end confdefs.h. */ 8763 8764/* Override any GCC internal prototype to avoid an error. 8765 Use char because int might match the return type of a GCC 8766 builtin and then its argument prototype would still apply. */ 8767#ifdef __cplusplus 8768extern "C" 8769#endif 8770char remove (); 8771int 8772main () 8773{ 8774return remove (); 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779if ac_fn_c_try_link "$LINENO"; then : 8780 ac_cv_lib_posix_remove=yes 8781else 8782 ac_cv_lib_posix_remove=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext \ 8785 conftest$ac_exeext conftest.$ac_ext 8786LIBS=$ac_check_lib_save_LIBS 8787fi 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8789$as_echo "$ac_cv_lib_posix_remove" >&6; } 8790if test "x$ac_cv_lib_posix_remove" = xyes; then : 8791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8792fi 8793 8794 fi 8795 8796 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8797 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8798if test "x$ac_cv_func_shmat" = xyes; then : 8799 8800fi 8801 8802 if test $ac_cv_func_shmat = no; then 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8804$as_echo_n "checking for shmat in -lipc... " >&6; } 8805if ${ac_cv_lib_ipc_shmat+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 ac_check_lib_save_LIBS=$LIBS 8809LIBS="-lipc $LIBS" 8810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8811/* end confdefs.h. */ 8812 8813/* Override any GCC internal prototype to avoid an error. 8814 Use char because int might match the return type of a GCC 8815 builtin and then its argument prototype would still apply. */ 8816#ifdef __cplusplus 8817extern "C" 8818#endif 8819char shmat (); 8820int 8821main () 8822{ 8823return shmat (); 8824 ; 8825 return 0; 8826} 8827_ACEOF 8828if ac_fn_c_try_link "$LINENO"; then : 8829 ac_cv_lib_ipc_shmat=yes 8830else 8831 ac_cv_lib_ipc_shmat=no 8832fi 8833rm -f core conftest.err conftest.$ac_objext \ 8834 conftest$ac_exeext conftest.$ac_ext 8835LIBS=$ac_check_lib_save_LIBS 8836fi 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8838$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8839if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8841fi 8842 8843 fi 8844 fi 8845 8846 # Check for libraries that X11R6 Xt/Xaw programs need. 8847 ac_save_LDFLAGS=$LDFLAGS 8848 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8849 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8850 # check for ICE first), but we must link in the order -lSM -lICE or 8851 # we get undefined symbols. So assume we have SM if we have ICE. 8852 # These have to be linked with before -lX11, unlike the other 8853 # libraries we check for below, so use a different variable. 8854 # John Interrante, Karl Berry 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8856$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8857if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 ac_check_lib_save_LIBS=$LIBS 8861LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864 8865/* Override any GCC internal prototype to avoid an error. 8866 Use char because int might match the return type of a GCC 8867 builtin and then its argument prototype would still apply. */ 8868#ifdef __cplusplus 8869extern "C" 8870#endif 8871char IceConnectionNumber (); 8872int 8873main () 8874{ 8875return IceConnectionNumber (); 8876 ; 8877 return 0; 8878} 8879_ACEOF 8880if ac_fn_c_try_link "$LINENO"; then : 8881 ac_cv_lib_ICE_IceConnectionNumber=yes 8882else 8883 ac_cv_lib_ICE_IceConnectionNumber=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext \ 8886 conftest$ac_exeext conftest.$ac_ext 8887LIBS=$ac_check_lib_save_LIBS 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8890$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8891if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8892 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8893fi 8894 8895 LDFLAGS=$ac_save_LDFLAGS 8896 8897fi 8898 8899 8900 if test "$zOSUnix" = "yes"; then 8901 CFLAGS="$CFLAGS -W c,dll" 8902 LDFLAGS="$LDFLAGS -W l,dll" 8903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8904 fi 8905 8906 8907 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8908 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8910$as_echo "Corrected X libraries to $x_libraries" >&6; } 8911 X_LIBS="$X_LIBS -L$x_libraries" 8912 if test "`(uname) 2>/dev/null`" = SunOS && 8913 uname -r | grep '^5' >/dev/null; then 8914 X_LIBS="$X_LIBS -R $x_libraries" 8915 fi 8916 fi 8917 8918 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8919 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8921$as_echo "Corrected X includes to $x_includes" >&6; } 8922 X_CFLAGS="$X_CFLAGS -I$x_includes" 8923 fi 8924 8925 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8926 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8927 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8928 8929 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8931$as_echo_n "checking if X11 header files can be found... " >&6; } 8932 cflags_save=$CFLAGS 8933 CFLAGS="$CFLAGS $X_CFLAGS" 8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8935/* end confdefs.h. */ 8936#include <X11/Xlib.h> 8937#include <X11/Intrinsic.h> 8938int 8939main () 8940{ 8941 8942 ; 8943 return 0; 8944} 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO"; then : 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8948$as_echo "yes" >&6; } 8949else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8951$as_echo "no" >&6; }; no_x=yes 8952fi 8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8954 CFLAGS=$cflags_save 8955 8956 if test "${no_x-no}" = yes; then 8957 with_x=no 8958 else 8959 $as_echo "#define HAVE_X11 1" >>confdefs.h 8960 8961 X_LIB="-lXt -lX11"; 8962 8963 8964 ac_save_LDFLAGS="$LDFLAGS" 8965 LDFLAGS="-L$x_libraries $LDFLAGS" 8966 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8968$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8969if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 ac_check_lib_save_LIBS=$LIBS 8973LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975/* end confdefs.h. */ 8976 8977/* Override any GCC internal prototype to avoid an error. 8978 Use char because int might match the return type of a GCC 8979 builtin and then its argument prototype would still apply. */ 8980#ifdef __cplusplus 8981extern "C" 8982#endif 8983char _XdmcpAuthDoIt (); 8984int 8985main () 8986{ 8987return _XdmcpAuthDoIt (); 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992if ac_fn_c_try_link "$LINENO"; then : 8993 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8994else 8995 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext \ 8998 conftest$ac_exeext conftest.$ac_ext 8999LIBS=$ac_check_lib_save_LIBS 9000fi 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 9002$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 9003if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 9004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 9005fi 9006 9007 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 9009$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 9010if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 ac_check_lib_save_LIBS=$LIBS 9014LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017 9018/* Override any GCC internal prototype to avoid an error. 9019 Use char because int might match the return type of a GCC 9020 builtin and then its argument prototype would still apply. */ 9021#ifdef __cplusplus 9022extern "C" 9023#endif 9024char IceOpenConnection (); 9025int 9026main () 9027{ 9028return IceOpenConnection (); 9029 ; 9030 return 0; 9031} 9032_ACEOF 9033if ac_fn_c_try_link "$LINENO"; then : 9034 ac_cv_lib_ICE_IceOpenConnection=yes 9035else 9036 ac_cv_lib_ICE_IceOpenConnection=no 9037fi 9038rm -f core conftest.err conftest.$ac_objext \ 9039 conftest$ac_exeext conftest.$ac_ext 9040LIBS=$ac_check_lib_save_LIBS 9041fi 9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 9043$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 9044if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 9045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 9046fi 9047 9048 9049 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 9051$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 9052if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 ac_check_lib_save_LIBS=$LIBS 9056LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 9057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059 9060/* Override any GCC internal prototype to avoid an error. 9061 Use char because int might match the return type of a GCC 9062 builtin and then its argument prototype would still apply. */ 9063#ifdef __cplusplus 9064extern "C" 9065#endif 9066char XpmCreatePixmapFromData (); 9067int 9068main () 9069{ 9070return XpmCreatePixmapFromData (); 9071 ; 9072 return 0; 9073} 9074_ACEOF 9075if ac_fn_c_try_link "$LINENO"; then : 9076 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 9077else 9078 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 9079fi 9080rm -f core conftest.err conftest.$ac_objext \ 9081 conftest$ac_exeext conftest.$ac_ext 9082LIBS=$ac_check_lib_save_LIBS 9083fi 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 9085$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 9086if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 9087 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 9088fi 9089 9090 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 9092$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 9093 cflags_save=$CFLAGS 9094 if test "$GCC" = yes; then 9095 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 9096 else 9097 CFLAGS="$CFLAGS $X_CFLAGS" 9098 fi 9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100/* end confdefs.h. */ 9101#include <X11/Xlib.h> 9102int 9103main () 9104{ 9105 9106 ; 9107 return 0; 9108} 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9112$as_echo "no" >&6; } 9113else 9114 CFLAGS="$CFLAGS -Wno-implicit-int" 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117#include <X11/Xlib.h> 9118int 9119main () 9120{ 9121 9122 ; 9123 return 0; 9124} 9125_ACEOF 9126if ac_fn_c_try_compile "$LINENO"; then : 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9128$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 9129else 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 9131$as_echo "test failed" >&6; } 9132 9133fi 9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9135 9136fi 9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9138 CFLAGS=$cflags_save 9139 9140 LDFLAGS="$ac_save_LDFLAGS" 9141 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 9143$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 9144 if ${ac_cv_small_wchar_t+:} false; then : 9145 $as_echo_n "(cached) " >&6 9146else 9147 if test "$cross_compiling" = yes; then : 9148 as_fn_error $? "failed to compile test program" "$LINENO" 5 9149else 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152 9153#include <X11/Xlib.h> 9154#if STDC_HEADERS 9155# include <stdlib.h> 9156# include <stddef.h> 9157#endif 9158 main() 9159 { 9160 if (sizeof(wchar_t) <= 2) 9161 exit(1); 9162 exit(0); 9163 } 9164_ACEOF 9165if ac_fn_c_try_run "$LINENO"; then : 9166 ac_cv_small_wchar_t="no" 9167else 9168 ac_cv_small_wchar_t="yes" 9169fi 9170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9171 conftest.$ac_objext conftest.beam conftest.$ac_ext 9172fi 9173 9174fi 9175 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 9177$as_echo "$ac_cv_small_wchar_t" >&6; } 9178 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 9179 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 9180 9181 fi 9182 9183 fi 9184fi 9185 9186if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then 9187 as_fn_error $? "could not configure X" "$LINENO" 5 9188fi 9189 9190test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 9191 9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 9193$as_echo_n "checking --enable-gui argument... " >&6; } 9194# Check whether --enable-gui was given. 9195if test "${enable_gui+set}" = set; then : 9196 enableval=$enable_gui; 9197else 9198 enable_gui="auto" 9199fi 9200 9201 9202enable_gui_canon=`echo "_$enable_gui" | \ 9203 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 9204 9205SKIP_GTK2=YES 9206SKIP_GTK3=YES 9207SKIP_GNOME=YES 9208SKIP_MOTIF=YES 9209SKIP_ATHENA=YES 9210SKIP_NEXTAW=YES 9211SKIP_PHOTON=YES 9212SKIP_HAIKU=YES 9213GUITYPE=NONE 9214 9215if test "x$HAIKU" = "xyes"; then 9216 SKIP_HAIKU= 9217 case "$enable_gui_canon" in 9218 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9219$as_echo "no GUI support" >&6; } 9220 SKIP_HAIKU=YES ;; 9221 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9222$as_echo "yes - automatic GUI support" >&6; } ;; 9223 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 9224$as_echo "auto - automatic GUI support" >&6; } ;; 9225 haiku) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5 9226$as_echo "Haiku GUI support" >&6; } ;; 9227 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9228$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9229 SKIP_HAIKU=YES ;; 9230 esac 9231elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 9232 SKIP_PHOTON= 9233 case "$enable_gui_canon" in 9234 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9235$as_echo "no GUI support" >&6; } 9236 SKIP_PHOTON=YES ;; 9237 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5 9238$as_echo "automatic GUI support" >&6; } 9239 gui_auto=yes ;; 9240 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 9241$as_echo "Photon GUI support" >&6; } ;; 9242 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9243$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9244 SKIP_PHOTON=YES ;; 9245 esac 9246 9247elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 9248 case "$enable_gui_canon" in 9249 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9250$as_echo "no GUI support" >&6; } ;; 9251 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9252$as_echo "yes - automatic GUI support" >&6; } 9253 gui_auto=yes ;; 9254 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5 9255$as_echo "auto - disable GUI support for Mac OS" >&6; } ;; 9256 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9257$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9258 esac 9259else 9260 9261 case "$enable_gui_canon" in 9262 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9263$as_echo "no GUI support" >&6; } ;; 9264 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 9265$as_echo "yes/auto - automatic GUI support" >&6; } 9266 gui_auto=yes 9267 SKIP_GTK2= 9268 SKIP_GTK3= 9269 SKIP_GNOME= 9270 SKIP_MOTIF= 9271 SKIP_ATHENA= 9272 SKIP_NEXTAW=;; 9273 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 9274$as_echo "GTK+ 2.x GUI support" >&6; } 9275 SKIP_GTK2=;; 9276 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 9277$as_echo "GNOME 2.x GUI support" >&6; } 9278 SKIP_GNOME= 9279 SKIP_GTK2=;; 9280 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 9281$as_echo "GTK+ 3.x GUI support" >&6; } 9282 SKIP_GTK3=;; 9283 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 9284$as_echo "Motif GUI support" >&6; } 9285 SKIP_MOTIF=;; 9286 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 9287$as_echo "Athena GUI support" >&6; } 9288 SKIP_ATHENA=;; 9289 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 9290$as_echo "neXtaw GUI support" >&6; } 9291 SKIP_NEXTAW=;; 9292 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9293$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9294 esac 9295 9296fi 9297 9298if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 9299 -a "$enable_gui_canon" != "gnome2"; then 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 9301$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 9302 # Check whether --enable-gtk2-check was given. 9303if test "${enable_gtk2_check+set}" = set; then : 9304 enableval=$enable_gtk2_check; 9305else 9306 enable_gtk2_check="yes" 9307fi 9308 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 9310$as_echo "$enable_gtk2_check" >&6; } 9311 if test "x$enable_gtk2_check" = "xno"; then 9312 SKIP_GTK2=YES 9313 SKIP_GNOME=YES 9314 fi 9315fi 9316 9317if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 9319$as_echo_n "checking whether or not to look for GNOME... " >&6; } 9320 # Check whether --enable-gnome-check was given. 9321if test "${enable_gnome_check+set}" = set; then : 9322 enableval=$enable_gnome_check; 9323else 9324 enable_gnome_check="no" 9325fi 9326 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 9328$as_echo "$enable_gnome_check" >&6; } 9329 if test "x$enable_gnome_check" = "xno"; then 9330 SKIP_GNOME=YES 9331 fi 9332fi 9333 9334if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 9336$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 9337 # Check whether --enable-gtk3-check was given. 9338if test "${enable_gtk3_check+set}" = set; then : 9339 enableval=$enable_gtk3_check; 9340else 9341 enable_gtk3_check="yes" 9342fi 9343 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 9345$as_echo "$enable_gtk3_check" >&6; } 9346 if test "x$enable_gtk3_check" = "xno"; then 9347 SKIP_GTK3=YES 9348 fi 9349fi 9350 9351if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 9353$as_echo_n "checking whether or not to look for Motif... " >&6; } 9354 # Check whether --enable-motif-check was given. 9355if test "${enable_motif_check+set}" = set; then : 9356 enableval=$enable_motif_check; 9357else 9358 enable_motif_check="yes" 9359fi 9360 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 9362$as_echo "$enable_motif_check" >&6; } 9363 if test "x$enable_motif_check" = "xno"; then 9364 SKIP_MOTIF=YES 9365 fi 9366fi 9367 9368if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 9370$as_echo_n "checking whether or not to look for Athena... " >&6; } 9371 # Check whether --enable-athena-check was given. 9372if test "${enable_athena_check+set}" = set; then : 9373 enableval=$enable_athena_check; 9374else 9375 enable_athena_check="yes" 9376fi 9377 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 9379$as_echo "$enable_athena_check" >&6; } 9380 if test "x$enable_athena_check" = "xno"; then 9381 SKIP_ATHENA=YES 9382 fi 9383fi 9384 9385if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 9387$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 9388 # Check whether --enable-nextaw-check was given. 9389if test "${enable_nextaw_check+set}" = set; then : 9390 enableval=$enable_nextaw_check; 9391else 9392 enable_nextaw_check="yes" 9393fi 9394 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 9396$as_echo "$enable_nextaw_check" >&6; }; 9397 if test "x$enable_nextaw_check" = "xno"; then 9398 SKIP_NEXTAW=YES 9399 fi 9400fi 9401 9402 9403 9404 9405 9406 9407 9408if test "X$PKG_CONFIG" = "X"; then 9409 if test -n "$ac_tool_prefix"; then 9410 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9411set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9413$as_echo_n "checking for $ac_word... " >&6; } 9414if ${ac_cv_path_PKG_CONFIG+:} false; then : 9415 $as_echo_n "(cached) " >&6 9416else 9417 case $PKG_CONFIG in 9418 [\\/]* | ?:[\\/]*) 9419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9420 ;; 9421 *) 9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9423for as_dir in $PATH 9424do 9425 IFS=$as_save_IFS 9426 test -z "$as_dir" && as_dir=. 9427 for ac_exec_ext in '' $ac_executable_extensions; do 9428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9429 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9431 break 2 9432 fi 9433done 9434 done 9435IFS=$as_save_IFS 9436 9437 ;; 9438esac 9439fi 9440PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9441if test -n "$PKG_CONFIG"; then 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9443$as_echo "$PKG_CONFIG" >&6; } 9444else 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9446$as_echo "no" >&6; } 9447fi 9448 9449 9450fi 9451if test -z "$ac_cv_path_PKG_CONFIG"; then 9452 ac_pt_PKG_CONFIG=$PKG_CONFIG 9453 # Extract the first word of "pkg-config", so it can be a program name with args. 9454set dummy pkg-config; ac_word=$2 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9456$as_echo_n "checking for $ac_word... " >&6; } 9457if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 case $ac_pt_PKG_CONFIG in 9461 [\\/]* | ?:[\\/]*) 9462 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9463 ;; 9464 *) 9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9466for as_dir in $PATH 9467do 9468 IFS=$as_save_IFS 9469 test -z "$as_dir" && as_dir=. 9470 for ac_exec_ext in '' $ac_executable_extensions; do 9471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9472 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9474 break 2 9475 fi 9476done 9477 done 9478IFS=$as_save_IFS 9479 9480 ;; 9481esac 9482fi 9483ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9484if test -n "$ac_pt_PKG_CONFIG"; then 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9486$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9487else 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9489$as_echo "no" >&6; } 9490fi 9491 9492 if test "x$ac_pt_PKG_CONFIG" = x; then 9493 PKG_CONFIG="no" 9494 else 9495 case $cross_compiling:$ac_tool_warned in 9496yes:) 9497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9499ac_tool_warned=yes ;; 9500esac 9501 PKG_CONFIG=$ac_pt_PKG_CONFIG 9502 fi 9503else 9504 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9505fi 9506 9507fi 9508 9509 9510if test -z "$SKIP_GTK2"; then 9511 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9513$as_echo_n "checking --disable-gtktest argument... " >&6; } 9514 # Check whether --enable-gtktest was given. 9515if test "${enable_gtktest+set}" = set; then : 9516 enableval=$enable_gtktest; 9517else 9518 enable_gtktest=yes 9519fi 9520 9521 if test "x$enable_gtktest" = "xyes" ; then 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9523$as_echo "gtk test enabled" >&6; } 9524 else 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9526$as_echo "gtk test disabled" >&6; } 9527 fi 9528 9529 if test "x$PKG_CONFIG" != "xno"; then 9530 save_skip_gtk3=$SKIP_GTK3 9531 SKIP_GTK3=YES 9532 9533 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9534 { 9535 no_gtk="" 9536 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9537 && $PKG_CONFIG --exists gtk+-2.0; then 9538 { 9539 min_gtk_version=2.2.0 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9541$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9542 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9543 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9544 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9545 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9546 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9547 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9548 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9549 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9550 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9551 } 9552 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9553 && $PKG_CONFIG --exists gtk+-3.0; then 9554 { 9555 min_gtk_version=2.2.0 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9557$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9558 9559 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9560 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9561 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9562 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9563 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9564 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9565 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9566 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9567 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9568 } 9569 else 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK -dev package" >&5 9571$as_echo_n "checking for GTK -dev package... " >&6; } 9572 no_gtk=yes 9573 fi 9574 9575 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9576 { 9577 ac_save_CFLAGS="$CFLAGS" 9578 ac_save_LIBS="$LIBS" 9579 CFLAGS="$CFLAGS $GTK_CFLAGS" 9580 LIBS="$LIBS $GTK_LIBS" 9581 9582 rm -f conf.gtktest 9583 if test "$cross_compiling" = yes; then : 9584 echo $ac_n "cross compiling; assumed OK... $ac_c" 9585else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588 9589#include <gtk/gtk.h> 9590#include <stdio.h> 9591#if STDC_HEADERS 9592# include <stdlib.h> 9593# include <stddef.h> 9594#endif 9595 9596int 9597main () 9598{ 9599int major, minor, micro; 9600char *tmp_version; 9601 9602system ("touch conf.gtktest"); 9603 9604/* HP/UX 9 (%@#!) writes to sscanf strings */ 9605tmp_version = g_strdup("$min_gtk_version"); 9606if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9607 printf("%s, bad version string\n", "$min_gtk_version"); 9608 exit(1); 9609 } 9610 9611if ((gtk_major_version > major) || 9612 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9613 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9614 (gtk_micro_version >= micro))) 9615{ 9616 return 0; 9617} 9618return 1; 9619} 9620 9621_ACEOF 9622if ac_fn_c_try_run "$LINENO"; then : 9623 9624else 9625 no_gtk=yes 9626fi 9627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9628 conftest.$ac_objext conftest.beam conftest.$ac_ext 9629fi 9630 9631 CFLAGS="$ac_save_CFLAGS" 9632 LIBS="$ac_save_LIBS" 9633 } 9634 fi 9635 if test "x$no_gtk" = x ; then 9636 if test "x$enable_gtktest" = "xyes"; then 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9638$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9639 else 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9641$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9642 fi 9643 GUI_LIB_LOC="$GTK_LIBDIR" 9644 GTK_LIBNAME="$GTK_LIBS" 9645 GUI_INC_LOC="$GTK_CFLAGS" 9646 else 9647 { 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9649$as_echo "no" >&6; } 9650 GTK_CFLAGS="" 9651 GTK_LIBS="" 9652 : 9653 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9654 as_fn_error $? "could not configure GTK" "$LINENO" 5 9655 fi 9656 } 9657 fi 9658 } 9659 else 9660 GTK_CFLAGS="" 9661 GTK_LIBS="" 9662 : 9663 fi 9664 9665 9666 rm -f conf.gtktest 9667 9668 if test "x$GTK_CFLAGS" != "x"; then 9669 SKIP_GTK3=YES 9670 SKIP_ATHENA=YES 9671 SKIP_NEXTAW=YES 9672 SKIP_MOTIF=YES 9673 GUITYPE=GTK 9674 9675 else 9676 SKIP_GTK3=$save_skip_gtk3 9677 fi 9678 fi 9679 if test "x$GUITYPE" = "xGTK"; then 9680 if test -z "$SKIP_GNOME"; then 9681 { 9682 9683 9684 9685 9686 9687 9688# Check whether --with-gnome-includes was given. 9689if test "${with_gnome_includes+set}" = set; then : 9690 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9691 9692fi 9693 9694 9695 9696# Check whether --with-gnome-libs was given. 9697if test "${with_gnome_libs+set}" = set; then : 9698 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9699 9700fi 9701 9702 9703 9704# Check whether --with-gnome was given. 9705if test "${with_gnome+set}" = set; then : 9706 withval=$with_gnome; if test x$withval = xyes; then 9707 want_gnome=yes 9708 have_gnome=yes 9709 else 9710 if test "x$withval" = xno; then 9711 want_gnome=no 9712 else 9713 want_gnome=yes 9714 LDFLAGS="$LDFLAGS -L$withval/lib" 9715 CFLAGS="$CFLAGS -I$withval/include" 9716 gnome_prefix=$withval/lib 9717 fi 9718 fi 9719else 9720 want_gnome=yes 9721fi 9722 9723 9724 if test "x$want_gnome" = xyes; then 9725 { 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9727$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9728 if $PKG_CONFIG --exists libgnomeui-2.0; then 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9730$as_echo "yes" >&6; } 9731 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9732 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9733 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9734 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9736$as_echo_n "checking for FreeBSD... " >&6; } 9737 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9739$as_echo "yes" >&6; } 9740 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9741 GNOME_LIBS="$GNOME_LIBS -pthread" 9742 else 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9744$as_echo "no" >&6; } 9745 fi 9746 have_gnome=yes 9747 else 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9749$as_echo "not found" >&6; } 9750 if test "x" = xfail; then 9751 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9752 fi 9753 fi 9754 } 9755 fi 9756 9757 if test "x$have_gnome" = xyes ; then 9758 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9759 9760 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9761 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9762 fi 9763 } 9764 fi 9765 fi 9766fi 9767 9768 9769if test -z "$SKIP_GTK3"; then 9770 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9772$as_echo_n "checking --disable-gtktest argument... " >&6; } 9773 # Check whether --enable-gtktest was given. 9774if test "${enable_gtktest+set}" = set; then : 9775 enableval=$enable_gtktest; 9776else 9777 enable_gtktest=yes 9778fi 9779 9780 if test "x$enable_gtktest" = "xyes" ; then 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9782$as_echo "gtk test enabled" >&6; } 9783 else 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9785$as_echo "gtk test disabled" >&6; } 9786 fi 9787 9788 if test "x$PKG_CONFIG" != "xno"; then 9789 save_skip_gtk2=$SKIP_GTK2 9790 SKIP_GTK2=YES 9791 9792 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9793 { 9794 no_gtk="" 9795 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9796 && $PKG_CONFIG --exists gtk+-2.0; then 9797 { 9798 min_gtk_version=3.0.0 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9800$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9801 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9802 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9803 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9804 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9805 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9806 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9807 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9808 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9809 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9810 } 9811 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9812 && $PKG_CONFIG --exists gtk+-3.0; then 9813 { 9814 min_gtk_version=3.0.0 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9816$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9817 9818 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9819 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9820 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9821 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9822 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9823 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9825 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9826 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9827 } 9828 else 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK -dev package" >&5 9830$as_echo_n "checking for GTK -dev package... " >&6; } 9831 no_gtk=yes 9832 fi 9833 9834 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9835 { 9836 ac_save_CFLAGS="$CFLAGS" 9837 ac_save_LIBS="$LIBS" 9838 CFLAGS="$CFLAGS $GTK_CFLAGS" 9839 LIBS="$LIBS $GTK_LIBS" 9840 9841 rm -f conf.gtktest 9842 if test "$cross_compiling" = yes; then : 9843 echo $ac_n "cross compiling; assumed OK... $ac_c" 9844else 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847 9848#include <gtk/gtk.h> 9849#include <stdio.h> 9850#if STDC_HEADERS 9851# include <stdlib.h> 9852# include <stddef.h> 9853#endif 9854 9855int 9856main () 9857{ 9858int major, minor, micro; 9859char *tmp_version; 9860 9861system ("touch conf.gtktest"); 9862 9863/* HP/UX 9 (%@#!) writes to sscanf strings */ 9864tmp_version = g_strdup("$min_gtk_version"); 9865if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9866 printf("%s, bad version string\n", "$min_gtk_version"); 9867 exit(1); 9868 } 9869 9870if ((gtk_major_version > major) || 9871 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9872 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9873 (gtk_micro_version >= micro))) 9874{ 9875 return 0; 9876} 9877return 1; 9878} 9879 9880_ACEOF 9881if ac_fn_c_try_run "$LINENO"; then : 9882 9883else 9884 no_gtk=yes 9885fi 9886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9887 conftest.$ac_objext conftest.beam conftest.$ac_ext 9888fi 9889 9890 CFLAGS="$ac_save_CFLAGS" 9891 LIBS="$ac_save_LIBS" 9892 } 9893 fi 9894 if test "x$no_gtk" = x ; then 9895 if test "x$enable_gtktest" = "xyes"; then 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9897$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9898 else 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9900$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9901 fi 9902 GUI_LIB_LOC="$GTK_LIBDIR" 9903 GTK_LIBNAME="$GTK_LIBS" 9904 GUI_INC_LOC="$GTK_CFLAGS" 9905 else 9906 { 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9908$as_echo "no" >&6; } 9909 GTK_CFLAGS="" 9910 GTK_LIBS="" 9911 : 9912 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9913 as_fn_error $? "could not configure GTK" "$LINENO" 5 9914 fi 9915 } 9916 fi 9917 } 9918 else 9919 GTK_CFLAGS="" 9920 GTK_LIBS="" 9921 : 9922 fi 9923 9924 9925 rm -f conf.gtktest 9926 9927 if test "x$GTK_CFLAGS" != "x"; then 9928 SKIP_GTK2=YES 9929 SKIP_GNOME=YES 9930 SKIP_ATHENA=YES 9931 SKIP_NEXTAW=YES 9932 SKIP_MOTIF=YES 9933 GUITYPE=GTK 9934 9935 $as_echo "#define USE_GTK3 1" >>confdefs.h 9936 9937 else 9938 SKIP_GTK2=$save_skip_gtk2 9939 fi 9940 fi 9941fi 9942 9943if test "x$GUITYPE" = "xGTK"; then 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9945$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9946 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9947 if test "x$gdk_pixbuf_version" != x ; then 9948 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9949 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9950 if test "x$gdk_pixbuf_version_minor" != x -a \ 9951 $gdk_pixbuf_version_minor -ge 31 ; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9953$as_echo "OK." >&6; } 9954 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9955set dummy glib-compile-resources; ac_word=$2 9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9957$as_echo_n "checking for $ac_word... " >&6; } 9958if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9959 $as_echo_n "(cached) " >&6 9960else 9961 case $GLIB_COMPILE_RESOURCES in 9962 [\\/]* | ?:[\\/]*) 9963 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9964 ;; 9965 *) 9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9967for as_dir in $PATH 9968do 9969 IFS=$as_save_IFS 9970 test -z "$as_dir" && as_dir=. 9971 for ac_exec_ext in '' $ac_executable_extensions; do 9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9973 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9975 break 2 9976 fi 9977done 9978 done 9979IFS=$as_save_IFS 9980 9981 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9982 ;; 9983esac 9984fi 9985GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9986if test -n "$GLIB_COMPILE_RESOURCES"; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9988$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9989else 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9991$as_echo "no" >&6; } 9992fi 9993 9994 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9996$as_echo_n "checking glib-compile-resources... " >&6; } 9997 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9998 GLIB_COMPILE_RESOURCES="" 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 10000$as_echo "cannot be found in PATH." >&6; } 10001 else 10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 10003$as_echo "usable." >&6; } 10004 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 10005 10006 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 10007 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 10008 fi 10009 else 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 10011$as_echo "not usable." >&6; } 10012 fi 10013 else 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 10015$as_echo "cannot obtain from pkg_config." >&6; } 10016 fi 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 10019$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 10020 # Check whether --enable-icon_cache_update was given. 10021if test "${enable_icon_cache_update+set}" = set; then : 10022 enableval=$enable_icon_cache_update; 10023else 10024 enable_icon_cache_update="yes" 10025fi 10026 10027 if test "$enable_icon_cache_update" = "yes"; then 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10029$as_echo "not set" >&6; } 10030 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 10031set dummy gtk-update-icon-cache; ac_word=$2 10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10033$as_echo_n "checking for $ac_word... " >&6; } 10034if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 case $GTK_UPDATE_ICON_CACHE in 10038 [\\/]* | ?:[\\/]*) 10039 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 10040 ;; 10041 *) 10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10043for as_dir in $PATH 10044do 10045 IFS=$as_save_IFS 10046 test -z "$as_dir" && as_dir=. 10047 for ac_exec_ext in '' $ac_executable_extensions; do 10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10049 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10051 break 2 10052 fi 10053done 10054 done 10055IFS=$as_save_IFS 10056 10057 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 10058 ;; 10059esac 10060fi 10061GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 10062if test -n "$GTK_UPDATE_ICON_CACHE"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 10064$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 10065else 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10067$as_echo "no" >&6; } 10068fi 10069 10070 10071 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10073$as_echo "not found in PATH." >&6; } 10074 fi 10075 else 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10077$as_echo "update disabled" >&6; } 10078 fi 10079 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 10081$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 10082 # Check whether --enable-desktop_database_update was given. 10083if test "${enable_desktop_database_update+set}" = set; then : 10084 enableval=$enable_desktop_database_update; 10085else 10086 enable_desktop_database_update="yes" 10087fi 10088 10089 if test "$enable_desktop_database_update" = "yes"; then 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10091$as_echo "not set" >&6; } 10092 # Extract the first word of "update-desktop-database", so it can be a program name with args. 10093set dummy update-desktop-database; ac_word=$2 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10095$as_echo_n "checking for $ac_word... " >&6; } 10096if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 case $UPDATE_DESKTOP_DATABASE in 10100 [\\/]* | ?:[\\/]*) 10101 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 10102 ;; 10103 *) 10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10105for as_dir in $PATH 10106do 10107 IFS=$as_save_IFS 10108 test -z "$as_dir" && as_dir=. 10109 for ac_exec_ext in '' $ac_executable_extensions; do 10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10111 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10113 break 2 10114 fi 10115done 10116 done 10117IFS=$as_save_IFS 10118 10119 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 10120 ;; 10121esac 10122fi 10123UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 10124if test -n "$UPDATE_DESKTOP_DATABASE"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 10126$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 10127else 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129$as_echo "no" >&6; } 10130fi 10131 10132 10133 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10135$as_echo "not found in PATH." >&6; } 10136 fi 10137 else 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10139$as_echo "update disabled" >&6; } 10140 fi 10141fi 10142 10143 10144 10145 10146 10147 10148 10149if test -z "$SKIP_MOTIF"; then 10150 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" 10151 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 10152 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 10154$as_echo_n "checking for location of Motif GUI includes... " >&6; } 10155 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 10156 GUI_INC_LOC= 10157 for try in $gui_includes; do 10158 if test -f "$try/Xm/Xm.h"; then 10159 GUI_INC_LOC=$try 10160 fi 10161 done 10162 if test -n "$GUI_INC_LOC"; then 10163 if test "$GUI_INC_LOC" = /usr/include; then 10164 GUI_INC_LOC= 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10166$as_echo "in default path" >&6; } 10167 else 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 10169$as_echo "$GUI_INC_LOC" >&6; } 10170 fi 10171 else 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10173$as_echo "<not found>" >&6; } 10174 SKIP_MOTIF=YES 10175 fi 10176fi 10177 10178 10179if test -z "$SKIP_MOTIF"; then 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 10181$as_echo_n "checking --with-motif-lib argument... " >&6; } 10182 10183# Check whether --with-motif-lib was given. 10184if test "${with_motif_lib+set}" = set; then : 10185 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 10186fi 10187 10188 10189 if test -n "$MOTIF_LIBNAME"; then 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 10191$as_echo "$MOTIF_LIBNAME" >&6; } 10192 GUI_LIB_LOC= 10193 else 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10195$as_echo "no" >&6; } 10196 10197 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 10198 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 10200$as_echo_n "checking for location of Motif GUI libs... " >&6; } 10201 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" 10202 GUI_LIB_LOC= 10203 for try in $gui_libs; do 10204 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 10205 if test -f "$libtry"; then 10206 GUI_LIB_LOC=$try 10207 fi 10208 done 10209 done 10210 if test -n "$GUI_LIB_LOC"; then 10211 if test "$GUI_LIB_LOC" = /usr/lib \ 10212 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 10213 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 10214 GUI_LIB_LOC= 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10216$as_echo "in default path" >&6; } 10217 else 10218 if test -n "$GUI_LIB_LOC"; then 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 10220$as_echo "$GUI_LIB_LOC" >&6; } 10221 if test "`(uname) 2>/dev/null`" = SunOS && 10222 uname -r | grep '^5' >/dev/null; then 10223 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 10224 fi 10225 fi 10226 fi 10227 MOTIF_LIBNAME=-lXm 10228 else 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10230$as_echo "<not found>" >&6; } 10231 SKIP_MOTIF=YES 10232 fi 10233 fi 10234fi 10235 10236if test -z "$SKIP_MOTIF"; then 10237 SKIP_ATHENA=YES 10238 SKIP_NEXTAW=YES 10239 GUITYPE=MOTIF 10240 10241fi 10242 10243 10244GUI_X_LIBS= 10245 10246if test -z "$SKIP_ATHENA"; then 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 10248$as_echo_n "checking if Athena header files can be found... " >&6; } 10249 cflags_save=$CFLAGS 10250 CFLAGS="$CFLAGS $X_CFLAGS" 10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253 10254#include <X11/Intrinsic.h> 10255#include <X11/Xaw/Paned.h> 10256int 10257main () 10258{ 10259 10260 ; 10261 return 0; 10262} 10263_ACEOF 10264if ac_fn_c_try_compile "$LINENO"; then : 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10266$as_echo "yes" >&6; } 10267else 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10269$as_echo "no" >&6; }; SKIP_ATHENA=YES 10270fi 10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10272 CFLAGS=$cflags_save 10273fi 10274 10275if test -z "$SKIP_ATHENA"; then 10276 GUITYPE=ATHENA 10277fi 10278 10279if test -z "$SKIP_NEXTAW"; then 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 10281$as_echo_n "checking if neXtaw header files can be found... " >&6; } 10282 cflags_save=$CFLAGS 10283 CFLAGS="$CFLAGS $X_CFLAGS" 10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10285/* end confdefs.h. */ 10286 10287#include <X11/Intrinsic.h> 10288#include <X11/neXtaw/Paned.h> 10289int 10290main () 10291{ 10292 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297if ac_fn_c_try_compile "$LINENO"; then : 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10299$as_echo "yes" >&6; } 10300else 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10302$as_echo "no" >&6; }; SKIP_NEXTAW=YES 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10305 CFLAGS=$cflags_save 10306fi 10307 10308if test -z "$SKIP_NEXTAW"; then 10309 GUITYPE=NEXTAW 10310fi 10311 10312if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10313 if test -n "$GUI_INC_LOC"; then 10314 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 10315 fi 10316 if test -n "$GUI_LIB_LOC"; then 10317 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 10318 fi 10319 10320 ldflags_save=$LDFLAGS 10321 LDFLAGS="$X_LIBS $LDFLAGS" 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10323$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10324if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 ac_check_lib_save_LIBS=$LIBS 10328LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330/* end confdefs.h. */ 10331 10332/* Override any GCC internal prototype to avoid an error. 10333 Use char because int might match the return type of a GCC 10334 builtin and then its argument prototype would still apply. */ 10335#ifdef __cplusplus 10336extern "C" 10337#endif 10338char XShapeQueryExtension (); 10339int 10340main () 10341{ 10342return XShapeQueryExtension (); 10343 ; 10344 return 0; 10345} 10346_ACEOF 10347if ac_fn_c_try_link "$LINENO"; then : 10348 ac_cv_lib_Xext_XShapeQueryExtension=yes 10349else 10350 ac_cv_lib_Xext_XShapeQueryExtension=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext \ 10353 conftest$ac_exeext conftest.$ac_ext 10354LIBS=$ac_check_lib_save_LIBS 10355fi 10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10357$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10358if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 10359 GUI_X_LIBS="-lXext" 10360fi 10361 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 10363$as_echo_n "checking for wslen in -lw... " >&6; } 10364if ${ac_cv_lib_w_wslen+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 ac_check_lib_save_LIBS=$LIBS 10368LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371 10372/* Override any GCC internal prototype to avoid an error. 10373 Use char because int might match the return type of a GCC 10374 builtin and then its argument prototype would still apply. */ 10375#ifdef __cplusplus 10376extern "C" 10377#endif 10378char wslen (); 10379int 10380main () 10381{ 10382return wslen (); 10383 ; 10384 return 0; 10385} 10386_ACEOF 10387if ac_fn_c_try_link "$LINENO"; then : 10388 ac_cv_lib_w_wslen=yes 10389else 10390 ac_cv_lib_w_wslen=no 10391fi 10392rm -f core conftest.err conftest.$ac_objext \ 10393 conftest$ac_exeext conftest.$ac_ext 10394LIBS=$ac_check_lib_save_LIBS 10395fi 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 10397$as_echo "$ac_cv_lib_w_wslen" >&6; } 10398if test "x$ac_cv_lib_w_wslen" = xyes; then : 10399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 10400fi 10401 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10403$as_echo_n "checking for dlsym in -ldl... " >&6; } 10404if ${ac_cv_lib_dl_dlsym+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 ac_check_lib_save_LIBS=$LIBS 10408LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411 10412/* Override any GCC internal prototype to avoid an error. 10413 Use char because int might match the return type of a GCC 10414 builtin and then its argument prototype would still apply. */ 10415#ifdef __cplusplus 10416extern "C" 10417#endif 10418char dlsym (); 10419int 10420main () 10421{ 10422return dlsym (); 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427if ac_fn_c_try_link "$LINENO"; then : 10428 ac_cv_lib_dl_dlsym=yes 10429else 10430 ac_cv_lib_dl_dlsym=no 10431fi 10432rm -f core conftest.err conftest.$ac_objext \ 10433 conftest$ac_exeext conftest.$ac_ext 10434LIBS=$ac_check_lib_save_LIBS 10435fi 10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10437$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10438if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 10440fi 10441 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 10443$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 10444if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 10445 $as_echo_n "(cached) " >&6 10446else 10447 ac_check_lib_save_LIBS=$LIBS 10448LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451 10452/* Override any GCC internal prototype to avoid an error. 10453 Use char because int might match the return type of a GCC 10454 builtin and then its argument prototype would still apply. */ 10455#ifdef __cplusplus 10456extern "C" 10457#endif 10458char XmuCreateStippledPixmap (); 10459int 10460main () 10461{ 10462return XmuCreateStippledPixmap (); 10463 ; 10464 return 0; 10465} 10466_ACEOF 10467if ac_fn_c_try_link "$LINENO"; then : 10468 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10469else 10470 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10471fi 10472rm -f core conftest.err conftest.$ac_objext \ 10473 conftest$ac_exeext conftest.$ac_ext 10474LIBS=$ac_check_lib_save_LIBS 10475fi 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10477$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10478if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10479 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10480fi 10481 10482 if test -z "$SKIP_MOTIF"; then 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10484$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10485if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 ac_check_lib_save_LIBS=$LIBS 10489LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492 10493/* Override any GCC internal prototype to avoid an error. 10494 Use char because int might match the return type of a GCC 10495 builtin and then its argument prototype would still apply. */ 10496#ifdef __cplusplus 10497extern "C" 10498#endif 10499char XpEndJob (); 10500int 10501main () 10502{ 10503return XpEndJob (); 10504 ; 10505 return 0; 10506} 10507_ACEOF 10508if ac_fn_c_try_link "$LINENO"; then : 10509 ac_cv_lib_Xp_XpEndJob=yes 10510else 10511 ac_cv_lib_Xp_XpEndJob=no 10512fi 10513rm -f core conftest.err conftest.$ac_objext \ 10514 conftest$ac_exeext conftest.$ac_ext 10515LIBS=$ac_check_lib_save_LIBS 10516fi 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10518$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10519if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10520 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10521fi 10522 10523 fi 10524 LDFLAGS=$ldflags_save 10525 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10527$as_echo_n "checking for extra X11 defines... " >&6; } 10528 NARROW_PROTO= 10529 rm -fr conftestdir 10530 if mkdir conftestdir; then 10531 cd conftestdir 10532 cat > Imakefile <<'EOF' 10533acfindx: 10534 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10535EOF 10536 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10537 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10538 fi 10539 cd .. 10540 rm -fr conftestdir 10541 fi 10542 if test -z "$NARROW_PROTO"; then 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10544$as_echo "no" >&6; } 10545 else 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10547$as_echo "$NARROW_PROTO" >&6; } 10548 fi 10549 10550fi 10551 10552if test "$enable_xsmp" = "yes"; then 10553 cppflags_save=$CPPFLAGS 10554 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10555 for ac_header in X11/SM/SMlib.h 10556do : 10557 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10558if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10559 cat >>confdefs.h <<_ACEOF 10560#define HAVE_X11_SM_SMLIB_H 1 10561_ACEOF 10562 10563fi 10564 10565done 10566 10567 CPPFLAGS=$cppflags_save 10568fi 10569 10570 10571if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10572 cppflags_save=$CPPFLAGS 10573 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10574 for ac_header in X11/xpm.h X11/Sunkeysym.h 10575do : 10576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10577ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10579 cat >>confdefs.h <<_ACEOF 10580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10581_ACEOF 10582 10583fi 10584 10585done 10586 10587 10588 if test ! "$enable_xim" = "no"; then 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10590$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593#include <X11/Xlib.h> 10594_ACEOF 10595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10596 $EGREP "XIMText" >/dev/null 2>&1; then : 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10598$as_echo "yes" >&6; } 10599else 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10601$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10602fi 10603rm -f conftest* 10604 10605 fi 10606 CPPFLAGS=$cppflags_save 10607 10608 if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10610$as_echo "X GUI selected; xim has been enabled" >&6; } 10611 enable_xim="yes" 10612 fi 10613fi 10614 10615if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10616 cppflags_save=$CPPFLAGS 10617 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10619$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622 10623#include <X11/Intrinsic.h> 10624#include <X11/Xmu/Editres.h> 10625int 10626main () 10627{ 10628int i; i = 0; 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633if ac_fn_c_try_compile "$LINENO"; then : 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10635$as_echo "yes" >&6; } 10636 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10637 10638else 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10640$as_echo "no" >&6; } 10641fi 10642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10643 CPPFLAGS=$cppflags_save 10644fi 10645 10646if test -z "$SKIP_MOTIF"; then 10647 cppflags_save=$CPPFLAGS 10648 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10649 if test "$zOSUnix" = "yes"; then 10650 xmheader="Xm/Xm.h" 10651 else 10652 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10653 Xm/UnhighlightT.h Xm/Notebook.h" 10654 fi 10655 for ac_header in $xmheader 10656do : 10657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10658ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10659if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10660 cat >>confdefs.h <<_ACEOF 10661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10662_ACEOF 10663 10664fi 10665 10666done 10667 10668 10669 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10671$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10673/* end confdefs.h. */ 10674#include <Xm/XpmP.h> 10675int 10676main () 10677{ 10678XpmAttributes_21 attr; 10679 ; 10680 return 0; 10681} 10682_ACEOF 10683if ac_fn_c_try_compile "$LINENO"; then : 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10685$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10686 10687else 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10689$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10690 10691 10692fi 10693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10694 else 10695 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10696 10697 fi 10698 CPPFLAGS=$cppflags_save 10699fi 10700 10701if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10703$as_echo "no GUI selected; xim has been disabled" >&6; } 10704 enable_xim="no" 10705fi 10706if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10708$as_echo "no GUI selected; fontset has been disabled" >&6; } 10709 enable_fontset="no" 10710fi 10711if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10713$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10714 enable_fontset="no" 10715fi 10716 10717if test -z "$SKIP_HAIKU"; then 10718 GUITYPE=HAIKUGUI 10719fi 10720 10721if test -z "$SKIP_PHOTON"; then 10722 GUITYPE=PHOTONGUI 10723fi 10724 10725 10726 10727 10728 10729 10730if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10731 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10732fi 10733 10734if test "$enable_xim" = "yes"; then 10735 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10736 10737fi 10738if test "$enable_fontset" = "yes"; then 10739 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10740 10741fi 10742 10743 10744 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10746$as_echo_n "checking for /proc link to executable... " >&6; } 10747if test -L "/proc/self/exe"; then 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10749$as_echo "/proc/self/exe" >&6; } 10750 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10751 10752elif test -L "/proc/self/path/a.out"; then 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10754$as_echo "/proc/self/path/a.out" >&6; } 10755 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10756 10757elif test -L "/proc/curproc/file"; then 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10759$as_echo "/proc/curproc/file" >&6; } 10760 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10761 10762else 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10764$as_echo "no" >&6; } 10765fi 10766 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10768$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10769case `uname` in 10770 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10771$as_echo "yes" >&6; } 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10773$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10774 if test "x$with_x" = "xno" ; then 10775 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10777$as_echo "yes" >&6; } 10778 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10779 10780 else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10782$as_echo "no - using X11" >&6; } 10783 fi ;; 10784 10785 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10786$as_echo "no" >&6; };; 10787esac 10788 10789 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10791$as_echo_n "checking whether toupper is broken... " >&6; } 10792if ${vim_cv_toupper_broken+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 10796 if test "$cross_compiling" = yes; then : 10797 10798 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10799 10800else 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803 10804#include "confdefs.h" 10805#include <ctype.h> 10806#if STDC_HEADERS 10807# include <stdlib.h> 10808# include <stddef.h> 10809#endif 10810main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10811 10812_ACEOF 10813if ac_fn_c_try_run "$LINENO"; then : 10814 10815 vim_cv_toupper_broken=yes 10816 10817else 10818 10819 vim_cv_toupper_broken=no 10820 10821fi 10822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10823 conftest.$ac_objext conftest.beam conftest.$ac_ext 10824fi 10825 10826fi 10827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10828$as_echo "$vim_cv_toupper_broken" >&6; } 10829 10830if test "x$vim_cv_toupper_broken" = "xyes" ; then 10831 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10832 10833fi 10834 10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10836$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838/* end confdefs.h. */ 10839#include <stdio.h> 10840int 10841main () 10842{ 10843printf("(" __DATE__ " " __TIME__ ")"); 10844 ; 10845 return 0; 10846} 10847_ACEOF 10848if ac_fn_c_try_compile "$LINENO"; then : 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10850$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10851 10852else 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10854$as_echo "no" >&6; } 10855fi 10856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10857 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10859$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862#include <stdio.h> 10863int 10864main () 10865{ 10866int x __attribute__((unused)); 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_compile "$LINENO"; then : 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10873$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10874 10875else 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10877$as_echo "no" >&6; } 10878fi 10879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10880 10881ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10882if test "x$ac_cv_header_elf_h" = xyes; then : 10883 HAS_ELF=1 10884fi 10885 10886 10887if test "$HAS_ELF" = 1; then 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10889$as_echo_n "checking for main in -lelf... " >&6; } 10890if ${ac_cv_lib_elf_main+:} false; then : 10891 $as_echo_n "(cached) " >&6 10892else 10893 ac_check_lib_save_LIBS=$LIBS 10894LIBS="-lelf $LIBS" 10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896/* end confdefs.h. */ 10897 10898 10899int 10900main () 10901{ 10902return main (); 10903 ; 10904 return 0; 10905} 10906_ACEOF 10907if ac_fn_c_try_link "$LINENO"; then : 10908 ac_cv_lib_elf_main=yes 10909else 10910 ac_cv_lib_elf_main=no 10911fi 10912rm -f core conftest.err conftest.$ac_objext \ 10913 conftest$ac_exeext conftest.$ac_ext 10914LIBS=$ac_check_lib_save_LIBS 10915fi 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10917$as_echo "$ac_cv_lib_elf_main" >&6; } 10918if test "x$ac_cv_lib_elf_main" = xyes; then : 10919 cat >>confdefs.h <<_ACEOF 10920#define HAVE_LIBELF 1 10921_ACEOF 10922 10923 LIBS="-lelf $LIBS" 10924 10925fi 10926 10927fi 10928 10929ac_header_dirent=no 10930for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10931 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10933$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10934if eval \${$as_ac_Header+:} false; then : 10935 $as_echo_n "(cached) " >&6 10936else 10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938/* end confdefs.h. */ 10939#include <sys/types.h> 10940#include <$ac_hdr> 10941 10942int 10943main () 10944{ 10945if ((DIR *) 0) 10946return 0; 10947 ; 10948 return 0; 10949} 10950_ACEOF 10951if ac_fn_c_try_compile "$LINENO"; then : 10952 eval "$as_ac_Header=yes" 10953else 10954 eval "$as_ac_Header=no" 10955fi 10956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10957fi 10958eval ac_res=\$$as_ac_Header 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10960$as_echo "$ac_res" >&6; } 10961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10962 cat >>confdefs.h <<_ACEOF 10963#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10964_ACEOF 10965 10966ac_header_dirent=$ac_hdr; break 10967fi 10968 10969done 10970# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10971if test $ac_header_dirent = dirent.h; then 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10973$as_echo_n "checking for library containing opendir... " >&6; } 10974if ${ac_cv_search_opendir+:} false; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 ac_func_search_save_LIBS=$LIBS 10978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10979/* end confdefs.h. */ 10980 10981/* Override any GCC internal prototype to avoid an error. 10982 Use char because int might match the return type of a GCC 10983 builtin and then its argument prototype would still apply. */ 10984#ifdef __cplusplus 10985extern "C" 10986#endif 10987char opendir (); 10988int 10989main () 10990{ 10991return opendir (); 10992 ; 10993 return 0; 10994} 10995_ACEOF 10996for ac_lib in '' dir; do 10997 if test -z "$ac_lib"; then 10998 ac_res="none required" 10999 else 11000 ac_res=-l$ac_lib 11001 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11002 fi 11003 if ac_fn_c_try_link "$LINENO"; then : 11004 ac_cv_search_opendir=$ac_res 11005fi 11006rm -f core conftest.err conftest.$ac_objext \ 11007 conftest$ac_exeext 11008 if ${ac_cv_search_opendir+:} false; then : 11009 break 11010fi 11011done 11012if ${ac_cv_search_opendir+:} false; then : 11013 11014else 11015 ac_cv_search_opendir=no 11016fi 11017rm conftest.$ac_ext 11018LIBS=$ac_func_search_save_LIBS 11019fi 11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11021$as_echo "$ac_cv_search_opendir" >&6; } 11022ac_res=$ac_cv_search_opendir 11023if test "$ac_res" != no; then : 11024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11025 11026fi 11027 11028else 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11030$as_echo_n "checking for library containing opendir... " >&6; } 11031if ${ac_cv_search_opendir+:} false; then : 11032 $as_echo_n "(cached) " >&6 11033else 11034 ac_func_search_save_LIBS=$LIBS 11035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11036/* end confdefs.h. */ 11037 11038/* Override any GCC internal prototype to avoid an error. 11039 Use char because int might match the return type of a GCC 11040 builtin and then its argument prototype would still apply. */ 11041#ifdef __cplusplus 11042extern "C" 11043#endif 11044char opendir (); 11045int 11046main () 11047{ 11048return opendir (); 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053for ac_lib in '' x; do 11054 if test -z "$ac_lib"; then 11055 ac_res="none required" 11056 else 11057 ac_res=-l$ac_lib 11058 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11059 fi 11060 if ac_fn_c_try_link "$LINENO"; then : 11061 ac_cv_search_opendir=$ac_res 11062fi 11063rm -f core conftest.err conftest.$ac_objext \ 11064 conftest$ac_exeext 11065 if ${ac_cv_search_opendir+:} false; then : 11066 break 11067fi 11068done 11069if ${ac_cv_search_opendir+:} false; then : 11070 11071else 11072 ac_cv_search_opendir=no 11073fi 11074rm conftest.$ac_ext 11075LIBS=$ac_func_search_save_LIBS 11076fi 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11078$as_echo "$ac_cv_search_opendir" >&6; } 11079ac_res=$ac_cv_search_opendir 11080if test "$ac_res" != no; then : 11081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11082 11083fi 11084 11085fi 11086 11087 11088if test $ac_cv_header_sys_wait_h = no; then 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 11090$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11092/* end confdefs.h. */ 11093#include <sys/wait.h> 11094int 11095main () 11096{ 11097union wait xx, yy; xx = yy 11098 ; 11099 return 0; 11100} 11101_ACEOF 11102if ac_fn_c_try_compile "$LINENO"; then : 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11104$as_echo "yes" >&6; } 11105 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11106 11107 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 11108 11109else 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11111$as_echo "no" >&6; } 11112fi 11113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11114fi 11115 11116for ac_header in stdint.h stdlib.h string.h \ 11117 sys/select.h sys/utsname.h termcap.h fcntl.h \ 11118 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 11119 termio.h iconv.h inttypes.h langinfo.h math.h \ 11120 unistd.h stropts.h errno.h sys/resource.h \ 11121 sys/systeminfo.h locale.h sys/stream.h termios.h \ 11122 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 11123 utime.h sys/param.h sys/ptms.h libintl.h libgen.h \ 11124 util/debug.h util/msg18n.h frame.h sys/acl.h \ 11125 sys/access.h sys/sysinfo.h wchar.h wctype.h 11126do : 11127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11128ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11130 cat >>confdefs.h <<_ACEOF 11131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11132_ACEOF 11133 11134fi 11135 11136done 11137 11138 11139for ac_header in sys/ptem.h 11140do : 11141 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 11142# include <sys/stream.h> 11143#endif 11144" 11145if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 11146 cat >>confdefs.h <<_ACEOF 11147#define HAVE_SYS_PTEM_H 1 11148_ACEOF 11149 11150fi 11151 11152done 11153 11154 11155for ac_header in sys/sysctl.h 11156do : 11157 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 11158# include <sys/param.h> 11159#endif 11160" 11161if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 11162 cat >>confdefs.h <<_ACEOF 11163#define HAVE_SYS_SYSCTL_H 1 11164_ACEOF 11165 11166fi 11167 11168done 11169 11170 11171 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 11173$as_echo_n "checking for pthread_np.h... " >&6; } 11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177#include <pthread.h> 11178#include <pthread_np.h> 11179int 11180main () 11181{ 11182int i; i = 0; 11183 ; 11184 return 0; 11185} 11186_ACEOF 11187if ac_fn_c_try_compile "$LINENO"; then : 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11189$as_echo "yes" >&6; } 11190 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 11191 11192else 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11194$as_echo "no" >&6; } 11195fi 11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11197 11198for ac_header in strings.h 11199do : 11200 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 11201if test "x$ac_cv_header_strings_h" = xyes; then : 11202 cat >>confdefs.h <<_ACEOF 11203#define HAVE_STRINGS_H 1 11204_ACEOF 11205 11206fi 11207 11208done 11209 11210if test "x$MACOS_X" = "xyes"; then 11211 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11212 11213else 11214 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 11216$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 11217cppflags_save=$CPPFLAGS 11218CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220/* end confdefs.h. */ 11221 11222#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11223# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11224 /* but don't do it on AIX 5.1 (Uribarri) */ 11225#endif 11226#ifdef HAVE_XM_XM_H 11227# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11228#endif 11229#ifdef HAVE_STRING_H 11230# include <string.h> 11231#endif 11232#if defined(HAVE_STRINGS_H) 11233# include <strings.h> 11234#endif 11235 11236int 11237main () 11238{ 11239int i; i = 0; 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244if ac_fn_c_try_compile "$LINENO"; then : 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11246$as_echo "yes" >&6; } 11247else 11248 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11249 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11251$as_echo "no" >&6; } 11252fi 11253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11254CPPFLAGS=$cppflags_save 11255fi 11256 11257if test $ac_cv_c_compiler_gnu = yes; then 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11259$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11260if ${ac_cv_prog_gcc_traditional+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 ac_pattern="Autoconf.*'x'" 11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11265/* end confdefs.h. */ 11266#include <sgtty.h> 11267Autoconf TIOCGETP 11268_ACEOF 11269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11270 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11271 ac_cv_prog_gcc_traditional=yes 11272else 11273 ac_cv_prog_gcc_traditional=no 11274fi 11275rm -f conftest* 11276 11277 11278 if test $ac_cv_prog_gcc_traditional = no; then 11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281#include <termio.h> 11282Autoconf TCGETA 11283_ACEOF 11284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11285 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11286 ac_cv_prog_gcc_traditional=yes 11287fi 11288rm -f conftest* 11289 11290 fi 11291fi 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11293$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11294 if test $ac_cv_prog_gcc_traditional = yes; then 11295 CC="$CC -traditional" 11296 fi 11297fi 11298 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11300$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11301if ${ac_cv_c_const+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11305/* end confdefs.h. */ 11306 11307int 11308main () 11309{ 11310 11311#ifndef __cplusplus 11312 /* Ultrix mips cc rejects this sort of thing. */ 11313 typedef int charset[2]; 11314 const charset cs = { 0, 0 }; 11315 /* SunOS 4.1.1 cc rejects this. */ 11316 char const *const *pcpcc; 11317 char **ppc; 11318 /* NEC SVR4.0.2 mips cc rejects this. */ 11319 struct point {int x, y;}; 11320 static struct point const zero = {0,0}; 11321 /* AIX XL C 1.02.0.0 rejects this. 11322 It does not let you subtract one const X* pointer from another in 11323 an arm of an if-expression whose if-part is not a constant 11324 expression */ 11325 const char *g = "string"; 11326 pcpcc = &g + (g ? g-g : 0); 11327 /* HPUX 7.0 cc rejects these. */ 11328 ++pcpcc; 11329 ppc = (char**) pcpcc; 11330 pcpcc = (char const *const *) ppc; 11331 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11332 char tx; 11333 char *t = &tx; 11334 char const *s = 0 ? (char *) 0 : (char const *) 0; 11335 11336 *t++ = 0; 11337 if (s) return 0; 11338 } 11339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11340 int x[] = {25, 17}; 11341 const int *foo = &x[0]; 11342 ++foo; 11343 } 11344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11345 typedef const int *iptr; 11346 iptr p = 0; 11347 ++p; 11348 } 11349 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11351 struct s { int j; const int *ap[3]; } bx; 11352 struct s *b = &bx; b->j = 5; 11353 } 11354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11355 const int foo = 10; 11356 if (!foo) return 0; 11357 } 11358 return !cs[0] && !zero.x; 11359#endif 11360 11361 ; 11362 return 0; 11363} 11364_ACEOF 11365if ac_fn_c_try_compile "$LINENO"; then : 11366 ac_cv_c_const=yes 11367else 11368 ac_cv_c_const=no 11369fi 11370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11371fi 11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11373$as_echo "$ac_cv_c_const" >&6; } 11374if test $ac_cv_c_const = no; then 11375 11376$as_echo "#define const /**/" >>confdefs.h 11377 11378fi 11379 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11381$as_echo_n "checking for working volatile... " >&6; } 11382if ${ac_cv_c_volatile+:} false; then : 11383 $as_echo_n "(cached) " >&6 11384else 11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11386/* end confdefs.h. */ 11387 11388int 11389main () 11390{ 11391 11392volatile int x; 11393int * volatile y = (int *) 0; 11394return !x && !y; 11395 ; 11396 return 0; 11397} 11398_ACEOF 11399if ac_fn_c_try_compile "$LINENO"; then : 11400 ac_cv_c_volatile=yes 11401else 11402 ac_cv_c_volatile=no 11403fi 11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11405fi 11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11407$as_echo "$ac_cv_c_volatile" >&6; } 11408if test $ac_cv_c_volatile = no; then 11409 11410$as_echo "#define volatile /**/" >>confdefs.h 11411 11412fi 11413 11414ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11415if test "x$ac_cv_type_mode_t" = xyes; then : 11416 11417else 11418 11419cat >>confdefs.h <<_ACEOF 11420#define mode_t int 11421_ACEOF 11422 11423fi 11424 11425ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11426if test "x$ac_cv_type_off_t" = xyes; then : 11427 11428else 11429 11430cat >>confdefs.h <<_ACEOF 11431#define off_t long int 11432_ACEOF 11433 11434fi 11435 11436ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11437if test "x$ac_cv_type_pid_t" = xyes; then : 11438 11439else 11440 11441cat >>confdefs.h <<_ACEOF 11442#define pid_t int 11443_ACEOF 11444 11445fi 11446 11447ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11448if test "x$ac_cv_type_size_t" = xyes; then : 11449 11450else 11451 11452cat >>confdefs.h <<_ACEOF 11453#define size_t unsigned int 11454_ACEOF 11455 11456fi 11457 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11459$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11460if ${ac_cv_type_uid_t+:} false; then : 11461 $as_echo_n "(cached) " >&6 11462else 11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465#include <sys/types.h> 11466 11467_ACEOF 11468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11469 $EGREP "uid_t" >/dev/null 2>&1; then : 11470 ac_cv_type_uid_t=yes 11471else 11472 ac_cv_type_uid_t=no 11473fi 11474rm -f conftest* 11475 11476fi 11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11478$as_echo "$ac_cv_type_uid_t" >&6; } 11479if test $ac_cv_type_uid_t = no; then 11480 11481$as_echo "#define uid_t int" >>confdefs.h 11482 11483 11484$as_echo "#define gid_t int" >>confdefs.h 11485 11486fi 11487 11488ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11489case $ac_cv_c_uint32_t in #( 11490 no|yes) ;; #( 11491 *) 11492 11493$as_echo "#define _UINT32_T 1" >>confdefs.h 11494 11495 11496cat >>confdefs.h <<_ACEOF 11497#define uint32_t $ac_cv_c_uint32_t 11498_ACEOF 11499;; 11500 esac 11501 11502 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11504$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11505if ${ac_cv_header_time+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11509/* end confdefs.h. */ 11510#include <sys/types.h> 11511#include <sys/time.h> 11512#include <time.h> 11513 11514int 11515main () 11516{ 11517if ((struct tm *) 0) 11518return 0; 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523if ac_fn_c_try_compile "$LINENO"; then : 11524 ac_cv_header_time=yes 11525else 11526 ac_cv_header_time=no 11527fi 11528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11529fi 11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11531$as_echo "$ac_cv_header_time" >&6; } 11532if test $ac_cv_header_time = yes; then 11533 11534$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11535 11536fi 11537 11538ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11539if test "x$ac_cv_type_ino_t" = xyes; then : 11540 11541else 11542 11543cat >>confdefs.h <<_ACEOF 11544#define ino_t long 11545_ACEOF 11546 11547fi 11548 11549ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11550if test "x$ac_cv_type_dev_t" = xyes; then : 11551 11552else 11553 11554cat >>confdefs.h <<_ACEOF 11555#define dev_t unsigned 11556_ACEOF 11557 11558fi 11559 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11561$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11562if ${ac_cv_c_bigendian+:} false; then : 11563 $as_echo_n "(cached) " >&6 11564else 11565 ac_cv_c_bigendian=unknown 11566 # See if we're dealing with a universal compiler. 11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11568/* end confdefs.h. */ 11569#ifndef __APPLE_CC__ 11570 not a universal capable compiler 11571 #endif 11572 typedef int dummy; 11573 11574_ACEOF 11575if ac_fn_c_try_compile "$LINENO"; then : 11576 11577 # Check for potential -arch flags. It is not universal unless 11578 # there are at least two -arch flags with different values. 11579 ac_arch= 11580 ac_prev= 11581 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11582 if test -n "$ac_prev"; then 11583 case $ac_word in 11584 i?86 | x86_64 | ppc | ppc64) 11585 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11586 ac_arch=$ac_word 11587 else 11588 ac_cv_c_bigendian=universal 11589 break 11590 fi 11591 ;; 11592 esac 11593 ac_prev= 11594 elif test "x$ac_word" = "x-arch"; then 11595 ac_prev=arch 11596 fi 11597 done 11598fi 11599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11600 if test $ac_cv_c_bigendian = unknown; then 11601 # See if sys/param.h defines the BYTE_ORDER macro. 11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604#include <sys/types.h> 11605 #include <sys/param.h> 11606 11607int 11608main () 11609{ 11610#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11611 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11612 && LITTLE_ENDIAN) 11613 bogus endian macros 11614 #endif 11615 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_compile "$LINENO"; then : 11621 # It does; now see whether it defined to BIG_ENDIAN or not. 11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11623/* end confdefs.h. */ 11624#include <sys/types.h> 11625 #include <sys/param.h> 11626 11627int 11628main () 11629{ 11630#if BYTE_ORDER != BIG_ENDIAN 11631 not big endian 11632 #endif 11633 11634 ; 11635 return 0; 11636} 11637_ACEOF 11638if ac_fn_c_try_compile "$LINENO"; then : 11639 ac_cv_c_bigendian=yes 11640else 11641 ac_cv_c_bigendian=no 11642fi 11643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11644fi 11645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11646 fi 11647 if test $ac_cv_c_bigendian = unknown; then 11648 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11650/* end confdefs.h. */ 11651#include <limits.h> 11652 11653int 11654main () 11655{ 11656#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11657 bogus endian macros 11658 #endif 11659 11660 ; 11661 return 0; 11662} 11663_ACEOF 11664if ac_fn_c_try_compile "$LINENO"; then : 11665 # It does; now see whether it defined to _BIG_ENDIAN or not. 11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11667/* end confdefs.h. */ 11668#include <limits.h> 11669 11670int 11671main () 11672{ 11673#ifndef _BIG_ENDIAN 11674 not big endian 11675 #endif 11676 11677 ; 11678 return 0; 11679} 11680_ACEOF 11681if ac_fn_c_try_compile "$LINENO"; then : 11682 ac_cv_c_bigendian=yes 11683else 11684 ac_cv_c_bigendian=no 11685fi 11686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11687fi 11688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11689 fi 11690 if test $ac_cv_c_bigendian = unknown; then 11691 # Compile a test program. 11692 if test "$cross_compiling" = yes; then : 11693 # Try to guess by grepping values from an object file. 11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11695/* end confdefs.h. */ 11696short int ascii_mm[] = 11697 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11698 short int ascii_ii[] = 11699 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11700 int use_ascii (int i) { 11701 return ascii_mm[i] + ascii_ii[i]; 11702 } 11703 short int ebcdic_ii[] = 11704 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11705 short int ebcdic_mm[] = 11706 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11707 int use_ebcdic (int i) { 11708 return ebcdic_mm[i] + ebcdic_ii[i]; 11709 } 11710 extern int foo; 11711 11712int 11713main () 11714{ 11715return use_ascii (foo) == use_ebcdic (foo); 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_c_try_compile "$LINENO"; then : 11721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11722 ac_cv_c_bigendian=yes 11723 fi 11724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11725 if test "$ac_cv_c_bigendian" = unknown; then 11726 ac_cv_c_bigendian=no 11727 else 11728 # finding both strings is unlikely to happen, but who knows? 11729 ac_cv_c_bigendian=unknown 11730 fi 11731 fi 11732fi 11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11734else 11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736/* end confdefs.h. */ 11737$ac_includes_default 11738int 11739main () 11740{ 11741 11742 /* Are we little or big endian? From Harbison&Steele. */ 11743 union 11744 { 11745 long int l; 11746 char c[sizeof (long int)]; 11747 } u; 11748 u.l = 1; 11749 return u.c[sizeof (long int) - 1] == 1; 11750 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_run "$LINENO"; then : 11756 ac_cv_c_bigendian=no 11757else 11758 ac_cv_c_bigendian=yes 11759fi 11760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11761 conftest.$ac_objext conftest.beam conftest.$ac_ext 11762fi 11763 11764 fi 11765fi 11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11767$as_echo "$ac_cv_c_bigendian" >&6; } 11768 case $ac_cv_c_bigendian in #( 11769 yes) 11770 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11771;; #( 11772 no) 11773 ;; #( 11774 universal) 11775 11776$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11777 11778 ;; #( 11779 *) 11780 as_fn_error $? "unknown endianness 11781 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11782 esac 11783 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11785$as_echo_n "checking for inline... " >&6; } 11786if ${ac_cv_c_inline+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788else 11789 ac_cv_c_inline=no 11790for ac_kw in inline __inline__ __inline; do 11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11792/* end confdefs.h. */ 11793#ifndef __cplusplus 11794typedef int foo_t; 11795static $ac_kw foo_t static_foo () {return 0; } 11796$ac_kw foo_t foo () {return 0; } 11797#endif 11798 11799_ACEOF 11800if ac_fn_c_try_compile "$LINENO"; then : 11801 ac_cv_c_inline=$ac_kw 11802fi 11803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11804 test "$ac_cv_c_inline" != no && break 11805done 11806 11807fi 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11809$as_echo "$ac_cv_c_inline" >&6; } 11810 11811case $ac_cv_c_inline in 11812 inline | yes) ;; 11813 *) 11814 case $ac_cv_c_inline in 11815 no) ac_val=;; 11816 *) ac_val=$ac_cv_c_inline;; 11817 esac 11818 cat >>confdefs.h <<_ACEOF 11819#ifndef __cplusplus 11820#define inline $ac_val 11821#endif 11822_ACEOF 11823 ;; 11824esac 11825 11826 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11828$as_echo_n "checking for rlim_t... " >&6; } 11829if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11831$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11832else 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835 11836#include <sys/types.h> 11837#if STDC_HEADERS 11838# include <stdlib.h> 11839# include <stddef.h> 11840#endif 11841#ifdef HAVE_SYS_RESOURCE_H 11842# include <sys/resource.h> 11843#endif 11844 11845_ACEOF 11846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11847 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11848 ac_cv_type_rlim_t=yes 11849else 11850 ac_cv_type_rlim_t=no 11851fi 11852rm -f conftest* 11853 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11855$as_echo "$ac_cv_type_rlim_t" >&6; } 11856fi 11857if test $ac_cv_type_rlim_t = no; then 11858 cat >> confdefs.h <<\EOF 11859#define rlim_t unsigned long 11860EOF 11861fi 11862 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11864$as_echo_n "checking for stack_t... " >&6; } 11865if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11867$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11868else 11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11870/* end confdefs.h. */ 11871 11872#include <sys/types.h> 11873#if STDC_HEADERS 11874# include <stdlib.h> 11875# include <stddef.h> 11876#endif 11877#include <signal.h> 11878 11879_ACEOF 11880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11881 $EGREP "stack_t" >/dev/null 2>&1; then : 11882 ac_cv_type_stack_t=yes 11883else 11884 ac_cv_type_stack_t=no 11885fi 11886rm -f conftest* 11887 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11889$as_echo "$ac_cv_type_stack_t" >&6; } 11890fi 11891if test $ac_cv_type_stack_t = no; then 11892 cat >> confdefs.h <<\EOF 11893#define stack_t struct sigaltstack 11894EOF 11895fi 11896 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11898$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11900/* end confdefs.h. */ 11901 11902#include <sys/types.h> 11903#if STDC_HEADERS 11904# include <stdlib.h> 11905# include <stddef.h> 11906#endif 11907#include <signal.h> 11908#include "confdefs.h" 11909 11910int 11911main () 11912{ 11913stack_t sigstk; sigstk.ss_base = 0; 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_compile "$LINENO"; then : 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11920$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11921 11922else 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11924$as_echo "no" >&6; } 11925fi 11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11927 11928olibs="$LIBS" 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11930$as_echo_n "checking --with-tlib argument... " >&6; } 11931 11932# Check whether --with-tlib was given. 11933if test "${with_tlib+set}" = set; then : 11934 withval=$with_tlib; 11935fi 11936 11937if test -n "$with_tlib"; then 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11939$as_echo "$with_tlib" >&6; } 11940 LIBS="$LIBS -l$with_tlib" 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11942$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11944/* end confdefs.h. */ 11945 11946int 11947main () 11948{ 11949 11950 ; 11951 return 0; 11952} 11953_ACEOF 11954if ac_fn_c_try_link "$LINENO"; then : 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11956$as_echo "OK" >&6; } 11957else 11958 as_fn_error $? "FAILED" "$LINENO" 5 11959fi 11960rm -f core conftest.err conftest.$ac_objext \ 11961 conftest$ac_exeext conftest.$ac_ext 11962 olibs="$LIBS" 11963else 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11965$as_echo "empty: automatic terminal library selection" >&6; } 11966 case "`uname -s 2>/dev/null`" in 11967 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11968 *) tlibs="tinfo ncurses termlib termcap curses";; 11969 esac 11970 for libname in $tlibs; do 11971 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11973$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11974if eval \${$as_ac_Lib+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 ac_check_lib_save_LIBS=$LIBS 11978LIBS="-l${libname} $LIBS" 11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981 11982/* Override any GCC internal prototype to avoid an error. 11983 Use char because int might match the return type of a GCC 11984 builtin and then its argument prototype would still apply. */ 11985#ifdef __cplusplus 11986extern "C" 11987#endif 11988char tgetent (); 11989int 11990main () 11991{ 11992return tgetent (); 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_link "$LINENO"; then : 11998 eval "$as_ac_Lib=yes" 11999else 12000 eval "$as_ac_Lib=no" 12001fi 12002rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004LIBS=$ac_check_lib_save_LIBS 12005fi 12006eval ac_res=\$$as_ac_Lib 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12008$as_echo "$ac_res" >&6; } 12009if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12010 cat >>confdefs.h <<_ACEOF 12011#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 12012_ACEOF 12013 12014 LIBS="-l${libname} $LIBS" 12015 12016fi 12017 12018 if test "x$olibs" != "x$LIBS"; then 12019 if test "$cross_compiling" = yes; then : 12020 res="FAIL" 12021else 12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12023/* end confdefs.h. */ 12024 12025#ifdef HAVE_TERMCAP_H 12026# include <termcap.h> 12027#endif 12028#if STDC_HEADERS 12029# include <stdlib.h> 12030# include <stddef.h> 12031#endif 12032main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 12033_ACEOF 12034if ac_fn_c_try_run "$LINENO"; then : 12035 res="OK" 12036else 12037 res="FAIL" 12038fi 12039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12040 conftest.$ac_objext conftest.beam conftest.$ac_ext 12041fi 12042 12043 if test "$res" = "OK"; then 12044 break 12045 fi 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 12047$as_echo "$libname library is not usable" >&6; } 12048 LIBS="$olibs" 12049 fi 12050 done 12051 if test "x$olibs" = "x$LIBS"; then 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 12053$as_echo "no terminal library found" >&6; } 12054 fi 12055fi 12056 12057if test "x$olibs" = "x$LIBS"; then 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 12059$as_echo_n "checking for tgetent()... " >&6; } 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12061/* end confdefs.h. */ 12062int tgetent(char *, const char *); 12063int 12064main () 12065{ 12066char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12067 ; 12068 return 0; 12069} 12070_ACEOF 12071if ac_fn_c_try_link "$LINENO"; then : 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12073$as_echo "yes" >&6; } 12074else 12075 as_fn_error $? "NOT FOUND! 12076 You need to install a terminal library; for example ncurses. 12077 On Linux that would be the libncurses-dev package. 12078 Or specify the name of the library with --with-tlib." "$LINENO" 5 12079fi 12080rm -f core conftest.err conftest.$ac_objext \ 12081 conftest$ac_exeext conftest.$ac_ext 12082fi 12083 12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 12085$as_echo_n "checking whether we talk terminfo... " >&6; } 12086if ${vim_cv_terminfo+:} false; then : 12087 $as_echo_n "(cached) " >&6 12088else 12089 12090 if test "$cross_compiling" = yes; then : 12091 12092 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 12093 12094else 12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096/* end confdefs.h. */ 12097 12098#include "confdefs.h" 12099#ifdef HAVE_TERMCAP_H 12100# include <termcap.h> 12101#endif 12102#ifdef HAVE_STRING_H 12103# include <string.h> 12104#endif 12105#if STDC_HEADERS 12106# include <stdlib.h> 12107# include <stddef.h> 12108#endif 12109main() 12110{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12111 12112_ACEOF 12113if ac_fn_c_try_run "$LINENO"; then : 12114 12115 vim_cv_terminfo=no 12116 12117else 12118 12119 vim_cv_terminfo=yes 12120 12121fi 12122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12123 conftest.$ac_objext conftest.beam conftest.$ac_ext 12124fi 12125 12126 12127fi 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 12129$as_echo "$vim_cv_terminfo" >&6; } 12130 12131if test "x$vim_cv_terminfo" = "xyes" ; then 12132 $as_echo "#define TERMINFO 1" >>confdefs.h 12133 12134fi 12135 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 12137$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 12138if ${vim_cv_tgetent+:} false; then : 12139 $as_echo_n "(cached) " >&6 12140else 12141 12142 if test "$cross_compiling" = yes; then : 12143 12144 as_fn_error $? "failed to compile test program." "$LINENO" 5 12145 12146else 12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12148/* end confdefs.h. */ 12149 12150#include "confdefs.h" 12151#ifdef HAVE_TERMCAP_H 12152# include <termcap.h> 12153#endif 12154#if STDC_HEADERS 12155# include <stdlib.h> 12156# include <stddef.h> 12157#endif 12158main() 12159{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12160 12161_ACEOF 12162if ac_fn_c_try_run "$LINENO"; then : 12163 12164 vim_cv_tgetent=zero 12165 12166else 12167 12168 vim_cv_tgetent=non-zero 12169 12170fi 12171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12172 conftest.$ac_objext conftest.beam conftest.$ac_ext 12173fi 12174 12175 12176fi 12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 12178$as_echo "$vim_cv_tgetent" >&6; } 12179 12180if test "x$vim_cv_tgetent" = "xzero" ; then 12181 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 12182 12183fi 12184 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 12186$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 12187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189 12190#ifdef HAVE_TERMCAP_H 12191# include <termcap.h> 12192#endif 12193 12194int 12195main () 12196{ 12197ospeed = 20000 12198 ; 12199 return 0; 12200} 12201_ACEOF 12202if ac_fn_c_try_link "$LINENO"; then : 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12204$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 12205 12206else 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12208$as_echo "no" >&6; } 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 12210$as_echo_n "checking whether ospeed can be extern... " >&6; } 12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12212/* end confdefs.h. */ 12213 12214#ifdef HAVE_TERMCAP_H 12215# include <termcap.h> 12216#endif 12217extern short ospeed; 12218 12219int 12220main () 12221{ 12222ospeed = 20000 12223 ; 12224 return 0; 12225} 12226_ACEOF 12227if ac_fn_c_try_link "$LINENO"; then : 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12229$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 12230 12231else 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12233$as_echo "no" >&6; } 12234fi 12235rm -f core conftest.err conftest.$ac_objext \ 12236 conftest$ac_exeext conftest.$ac_ext 12237 12238fi 12239rm -f core conftest.err conftest.$ac_objext \ 12240 conftest$ac_exeext conftest.$ac_ext 12241 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 12243$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247#ifdef HAVE_TERMCAP_H 12248# include <termcap.h> 12249#endif 12250 12251int 12252main () 12253{ 12254if (UP == 0 && BC == 0) PC = 1 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_link "$LINENO"; then : 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12261$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 12262 12263else 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265$as_echo "no" >&6; } 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 12267$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270 12271#ifdef HAVE_TERMCAP_H 12272# include <termcap.h> 12273#endif 12274extern char *UP, *BC, PC; 12275 12276int 12277main () 12278{ 12279if (UP == 0 && BC == 0) PC = 1 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284if ac_fn_c_try_link "$LINENO"; then : 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12286$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 12287 12288else 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12290$as_echo "no" >&6; } 12291fi 12292rm -f core conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294 12295fi 12296rm -f core conftest.err conftest.$ac_objext \ 12297 conftest$ac_exeext conftest.$ac_ext 12298 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 12300$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 12301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303 12304#ifdef HAVE_TERMCAP_H 12305# include <termcap.h> 12306#endif 12307 12308int 12309main () 12310{ 12311extern int xx(); tputs("test", 1, (outfuntype)xx) 12312 ; 12313 return 0; 12314} 12315_ACEOF 12316if ac_fn_c_try_compile "$LINENO"; then : 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12318$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 12319 12320else 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12322$as_echo "no" >&6; } 12323fi 12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12325 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12327$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12329/* end confdefs.h. */ 12330 12331#include <sys/types.h> 12332#include <sys/time.h> 12333#include <sys/select.h> 12334int 12335main () 12336{ 12337 12338 ; 12339 return 0; 12340} 12341_ACEOF 12342if ac_fn_c_try_compile "$LINENO"; then : 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12344$as_echo "yes" >&6; } 12345 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12346 12347else 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12349$as_echo "no" >&6; } 12350fi 12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12352 12353 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 12355$as_echo_n "checking for /dev/ptc... " >&6; } 12356if test -r /dev/ptc; then 12357 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 12358 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12360$as_echo "yes" >&6; } 12361else 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12363$as_echo "no" >&6; } 12364fi 12365 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 12367$as_echo_n "checking for SVR4 ptys... " >&6; } 12368if test -c /dev/ptmx ; then 12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12370/* end confdefs.h. */ 12371 12372// These should be in stdlib.h, but it depends on _XOPEN_SOURCE. 12373char *ptsname(int); 12374int unlockpt(int); 12375int grantpt(int); 12376 12377int 12378main () 12379{ 12380 12381 ptsname(0); 12382 grantpt(0); 12383 unlockpt(0); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO"; then : 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12390$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 12391 12392else 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394$as_echo "no" >&6; } 12395fi 12396rm -f core conftest.err conftest.$ac_objext \ 12397 conftest$ac_exeext conftest.$ac_ext 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401fi 12402 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 12404$as_echo_n "checking for ptyranges... " >&6; } 12405if test -d /dev/ptym ; then 12406 pdir='/dev/ptym' 12407else 12408 pdir='/dev' 12409fi 12410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12411/* end confdefs.h. */ 12412#ifdef M_UNIX 12413 yes; 12414#endif 12415 12416_ACEOF 12417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12418 $EGREP "yes" >/dev/null 2>&1; then : 12419 ptys=`echo /dev/ptyp??` 12420else 12421 ptys=`echo $pdir/pty??` 12422fi 12423rm -f conftest* 12424 12425if test "$ptys" != "$pdir/pty??" ; then 12426 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 12427 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 12428 cat >>confdefs.h <<_ACEOF 12429#define PTYRANGE0 "$p0" 12430_ACEOF 12431 12432 cat >>confdefs.h <<_ACEOF 12433#define PTYRANGE1 "$p1" 12434_ACEOF 12435 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 12437$as_echo "$p0 / $p1" >&6; } 12438else 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 12440$as_echo "don't know" >&6; } 12441fi 12442 12443 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12445$as_echo_n "checking return type of signal handlers... " >&6; } 12446if ${ac_cv_type_signal+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451#include <sys/types.h> 12452#include <signal.h> 12453 12454int 12455main () 12456{ 12457return *(signal (0, 0)) (0) == 1; 12458 ; 12459 return 0; 12460} 12461_ACEOF 12462if ac_fn_c_try_compile "$LINENO"; then : 12463 ac_cv_type_signal=int 12464else 12465 ac_cv_type_signal=void 12466fi 12467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12468fi 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12470$as_echo "$ac_cv_type_signal" >&6; } 12471 12472cat >>confdefs.h <<_ACEOF 12473#define RETSIGTYPE $ac_cv_type_signal 12474_ACEOF 12475 12476 12477 12478if test $ac_cv_type_signal = void; then 12479 $as_echo "#define SIGRETURN return" >>confdefs.h 12480 12481else 12482 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12483 12484fi 12485 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12487$as_echo_n "checking for struct sigcontext... " >&6; } 12488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12489/* end confdefs.h. */ 12490 12491#include <signal.h> 12492test_sig() 12493{ 12494 struct sigcontext *scont; 12495 scont = (struct sigcontext *)0; 12496 return 1; 12497} 12498int 12499main () 12500{ 12501 12502 ; 12503 return 0; 12504} 12505_ACEOF 12506if ac_fn_c_try_compile "$LINENO"; then : 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12508$as_echo "yes" >&6; } 12509 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12510 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513$as_echo "no" >&6; } 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12518$as_echo_n "checking getcwd implementation is broken... " >&6; } 12519if ${vim_cv_getcwd_broken+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 12523 if test "$cross_compiling" = yes; then : 12524 12525 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12526 12527else 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530 12531#include "confdefs.h" 12532#ifdef HAVE_UNISTD_H 12533#include <unistd.h> 12534#endif 12535char *dagger[] = { "IFS=pwd", 0 }; 12536main() 12537{ 12538 char buffer[500]; 12539 extern char **environ; 12540 environ = dagger; 12541 return getcwd(buffer, 500) ? 0 : 1; 12542} 12543 12544_ACEOF 12545if ac_fn_c_try_run "$LINENO"; then : 12546 12547 vim_cv_getcwd_broken=no 12548 12549else 12550 12551 vim_cv_getcwd_broken=yes 12552 12553fi 12554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12555 conftest.$ac_objext conftest.beam conftest.$ac_ext 12556fi 12557 12558 12559fi 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12561$as_echo "$vim_cv_getcwd_broken" >&6; } 12562 12563if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12564 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12565 12566 for ac_func in getwd 12567do : 12568 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" 12569if test "x$ac_cv_func_getwd" = xyes; then : 12570 cat >>confdefs.h <<_ACEOF 12571#define HAVE_GETWD 1 12572_ACEOF 12573 12574fi 12575done 12576 12577fi 12578 12579for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12580 getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \ 12581 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12582 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12583 sigprocmask sigvec strcasecmp strcoll strerror strftime stricmp strncasecmp \ 12584 strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \ 12585 tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt 12586do : 12587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12589if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12590 cat >>confdefs.h <<_ACEOF 12591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12592_ACEOF 12593 12594fi 12595done 12596 12597for ac_header in sys/select.h sys/socket.h 12598do : 12599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12602 cat >>confdefs.h <<_ACEOF 12603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12604_ACEOF 12605 12606fi 12607 12608done 12609 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 12611$as_echo_n "checking types of arguments for select... " >&6; } 12612if ${ac_cv_func_select_args+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 12616 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 12617 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620$ac_includes_default 12621#ifdef HAVE_SYS_SELECT_H 12622# include <sys/select.h> 12623#endif 12624#ifdef HAVE_SYS_SOCKET_H 12625# include <sys/socket.h> 12626#endif 12627 12628int 12629main () 12630{ 12631extern int select ($ac_arg1, 12632 $ac_arg234, $ac_arg234, $ac_arg234, 12633 $ac_arg5); 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_compile "$LINENO"; then : 12639 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 12640fi 12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12642 done 12643 done 12644done 12645# Provide a safe default value. 12646: "${ac_cv_func_select_args=int,int *,struct timeval *}" 12647 12648fi 12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 12650$as_echo "$ac_cv_func_select_args" >&6; } 12651ac_save_IFS=$IFS; IFS=',' 12652set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 12653IFS=$ac_save_IFS 12654shift 12655 12656cat >>confdefs.h <<_ACEOF 12657#define SELECT_TYPE_ARG1 $1 12658_ACEOF 12659 12660 12661cat >>confdefs.h <<_ACEOF 12662#define SELECT_TYPE_ARG234 ($2) 12663_ACEOF 12664 12665 12666cat >>confdefs.h <<_ACEOF 12667#define SELECT_TYPE_ARG5 ($3) 12668_ACEOF 12669 12670rm -f conftest* 12671 12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12673$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12674if ${ac_cv_sys_largefile_source+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 while :; do 12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12679/* end confdefs.h. */ 12680#include <sys/types.h> /* for off_t */ 12681 #include <stdio.h> 12682int 12683main () 12684{ 12685int (*fp) (FILE *, off_t, int) = fseeko; 12686 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12687 ; 12688 return 0; 12689} 12690_ACEOF 12691if ac_fn_c_try_link "$LINENO"; then : 12692 ac_cv_sys_largefile_source=no; break 12693fi 12694rm -f core conftest.err conftest.$ac_objext \ 12695 conftest$ac_exeext conftest.$ac_ext 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698#define _LARGEFILE_SOURCE 1 12699#include <sys/types.h> /* for off_t */ 12700 #include <stdio.h> 12701int 12702main () 12703{ 12704int (*fp) (FILE *, off_t, int) = fseeko; 12705 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710if ac_fn_c_try_link "$LINENO"; then : 12711 ac_cv_sys_largefile_source=1; break 12712fi 12713rm -f core conftest.err conftest.$ac_objext \ 12714 conftest$ac_exeext conftest.$ac_ext 12715 ac_cv_sys_largefile_source=unknown 12716 break 12717done 12718fi 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12720$as_echo "$ac_cv_sys_largefile_source" >&6; } 12721case $ac_cv_sys_largefile_source in #( 12722 no | unknown) ;; 12723 *) 12724cat >>confdefs.h <<_ACEOF 12725#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12726_ACEOF 12727;; 12728esac 12729rm -rf conftest* 12730 12731# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12732# in glibc 2.1.3, but that breaks too many other things. 12733# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12734if test $ac_cv_sys_largefile_source != unknown; then 12735 12736$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12737 12738fi 12739 12740 12741# Check whether --enable-largefile was given. 12742if test "${enable_largefile+set}" = set; then : 12743 enableval=$enable_largefile; 12744fi 12745 12746if test "$enable_largefile" != no; then 12747 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12749$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12750if ${ac_cv_sys_largefile_CC+:} false; then : 12751 $as_echo_n "(cached) " >&6 12752else 12753 ac_cv_sys_largefile_CC=no 12754 if test "$GCC" != yes; then 12755 ac_save_CC=$CC 12756 while :; do 12757 # IRIX 6.2 and later do not support large files by default, 12758 # so use the C compiler's -n32 option if that helps. 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761#include <sys/types.h> 12762 /* Check that off_t can represent 2**63 - 1 correctly. 12763 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12764 since some C++ compilers masquerading as C compilers 12765 incorrectly reject 9223372036854775807. */ 12766#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12768 && LARGE_OFF_T % 2147483647 == 1) 12769 ? 1 : -1]; 12770int 12771main () 12772{ 12773 12774 ; 12775 return 0; 12776} 12777_ACEOF 12778 if ac_fn_c_try_compile "$LINENO"; then : 12779 break 12780fi 12781rm -f core conftest.err conftest.$ac_objext 12782 CC="$CC -n32" 12783 if ac_fn_c_try_compile "$LINENO"; then : 12784 ac_cv_sys_largefile_CC=' -n32'; break 12785fi 12786rm -f core conftest.err conftest.$ac_objext 12787 break 12788 done 12789 CC=$ac_save_CC 12790 rm -f conftest.$ac_ext 12791 fi 12792fi 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12794$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12795 if test "$ac_cv_sys_largefile_CC" != no; then 12796 CC=$CC$ac_cv_sys_largefile_CC 12797 fi 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12800$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12801if ${ac_cv_sys_file_offset_bits+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 while :; do 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807#include <sys/types.h> 12808 /* Check that off_t can represent 2**63 - 1 correctly. 12809 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12810 since some C++ compilers masquerading as C compilers 12811 incorrectly reject 9223372036854775807. */ 12812#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12814 && LARGE_OFF_T % 2147483647 == 1) 12815 ? 1 : -1]; 12816int 12817main () 12818{ 12819 12820 ; 12821 return 0; 12822} 12823_ACEOF 12824if ac_fn_c_try_compile "$LINENO"; then : 12825 ac_cv_sys_file_offset_bits=no; break 12826fi 12827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12829/* end confdefs.h. */ 12830#define _FILE_OFFSET_BITS 64 12831#include <sys/types.h> 12832 /* Check that off_t can represent 2**63 - 1 correctly. 12833 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12834 since some C++ compilers masquerading as C compilers 12835 incorrectly reject 9223372036854775807. */ 12836#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12838 && LARGE_OFF_T % 2147483647 == 1) 12839 ? 1 : -1]; 12840int 12841main () 12842{ 12843 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848if ac_fn_c_try_compile "$LINENO"; then : 12849 ac_cv_sys_file_offset_bits=64; break 12850fi 12851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12852 ac_cv_sys_file_offset_bits=unknown 12853 break 12854done 12855fi 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12857$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12858case $ac_cv_sys_file_offset_bits in #( 12859 no | unknown) ;; 12860 *) 12861cat >>confdefs.h <<_ACEOF 12862#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12863_ACEOF 12864;; 12865esac 12866rm -rf conftest* 12867 if test $ac_cv_sys_file_offset_bits = unknown; then 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12869$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12870if ${ac_cv_sys_large_files+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 while :; do 12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12875/* end confdefs.h. */ 12876#include <sys/types.h> 12877 /* Check that off_t can represent 2**63 - 1 correctly. 12878 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12879 since some C++ compilers masquerading as C compilers 12880 incorrectly reject 9223372036854775807. */ 12881#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12883 && LARGE_OFF_T % 2147483647 == 1) 12884 ? 1 : -1]; 12885int 12886main () 12887{ 12888 12889 ; 12890 return 0; 12891} 12892_ACEOF 12893if ac_fn_c_try_compile "$LINENO"; then : 12894 ac_cv_sys_large_files=no; break 12895fi 12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12898/* end confdefs.h. */ 12899#define _LARGE_FILES 1 12900#include <sys/types.h> 12901 /* Check that off_t can represent 2**63 - 1 correctly. 12902 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12903 since some C++ compilers masquerading as C compilers 12904 incorrectly reject 9223372036854775807. */ 12905#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12907 && LARGE_OFF_T % 2147483647 == 1) 12908 ? 1 : -1]; 12909int 12910main () 12911{ 12912 12913 ; 12914 return 0; 12915} 12916_ACEOF 12917if ac_fn_c_try_compile "$LINENO"; then : 12918 ac_cv_sys_large_files=1; break 12919fi 12920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12921 ac_cv_sys_large_files=unknown 12922 break 12923done 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12926$as_echo "$ac_cv_sys_large_files" >&6; } 12927case $ac_cv_sys_large_files in #( 12928 no | unknown) ;; 12929 *) 12930cat >>confdefs.h <<_ACEOF 12931#define _LARGE_FILES $ac_cv_sys_large_files 12932_ACEOF 12933;; 12934esac 12935rm -rf conftest* 12936 fi 12937 12938 12939fi 12940 12941 12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5 12943$as_echo_n "checking --enable-canberra argument... " >&6; } 12944# Check whether --enable-canberra was given. 12945if test "${enable_canberra+set}" = set; then : 12946 enableval=$enable_canberra; 12947else 12948 enable_canberra="maybe" 12949fi 12950 12951 12952if test "$enable_canberra" = "maybe"; then 12953 if test "$features" = "big" -o "$features" = "huge"; then 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 12955$as_echo "Defaulting to yes" >&6; } 12956 enable_canberra="yes" 12957 else 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 12959$as_echo "Defaulting to no" >&6; } 12960 enable_canberra="no" 12961 fi 12962else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 12964$as_echo "$enable_canberra" >&6; } 12965fi 12966if test "$enable_canberra" = "yes"; then 12967 if test "x$PKG_CONFIG" != "xno"; then 12968 canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null` 12969 canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null` 12970 fi 12971 if test "x$canberra_lib" = "x"; then 12972 canberra_lib=-lcanberra 12973 canberra_cflags=-D_REENTRANT 12974 fi 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5 12976$as_echo_n "checking for libcanberra... " >&6; } 12977 ac_save_CFLAGS="$CFLAGS" 12978 ac_save_LIBS="$LIBS" 12979 CFLAGS="$CFLAGS $canberra_cflags" 12980 LIBS="$LIBS $canberra_lib" 12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12982/* end confdefs.h. */ 12983 12984 # include <canberra.h> 12985 12986int 12987main () 12988{ 12989 12990 ca_context *hello; 12991 ca_context_create(&hello); 12992 ; 12993 return 0; 12994} 12995_ACEOF 12996if ac_fn_c_try_link "$LINENO"; then : 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12998$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h 12999 13000else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5 13002$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" 13003fi 13004rm -f core conftest.err conftest.$ac_objext \ 13005 conftest$ac_exeext conftest.$ac_ext 13006fi 13007 13008 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 13010$as_echo_n "checking for st_blksize... " >&6; } 13011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013#include <sys/types.h> 13014#include <sys/stat.h> 13015int 13016main () 13017{ 13018 struct stat st; 13019 int n; 13020 13021 stat("/", &st); 13022 n = (int)st.st_blksize; 13023 ; 13024 return 0; 13025} 13026_ACEOF 13027if ac_fn_c_try_compile "$LINENO"; then : 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13029$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 13030 13031else 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13033$as_echo "no" >&6; } 13034fi 13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13036 13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 13038$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 13039if ${vim_cv_stat_ignores_slash+:} false; then : 13040 $as_echo_n "(cached) " >&6 13041else 13042 13043 if test "$cross_compiling" = yes; then : 13044 13045 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 13046 13047else 13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13049/* end confdefs.h. */ 13050 13051#include "confdefs.h" 13052#if STDC_HEADERS 13053# include <stdlib.h> 13054# include <stddef.h> 13055#endif 13056#include <sys/types.h> 13057#include <sys/stat.h> 13058main() {struct stat st; exit(stat("configure/", &st) != 0); } 13059 13060_ACEOF 13061if ac_fn_c_try_run "$LINENO"; then : 13062 13063 vim_cv_stat_ignores_slash=yes 13064 13065else 13066 13067 vim_cv_stat_ignores_slash=no 13068 13069fi 13070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13071 conftest.$ac_objext conftest.beam conftest.$ac_ext 13072fi 13073 13074 13075fi 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 13077$as_echo "$vim_cv_stat_ignores_slash" >&6; } 13078 13079if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 13080 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 13081 13082fi 13083 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 13085$as_echo_n "checking for iconv_open()... " >&6; } 13086save_LIBS="$LIBS" 13087LIBS="$LIBS -liconv" 13088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090 13091#ifdef HAVE_ICONV_H 13092# include <iconv.h> 13093#endif 13094 13095int 13096main () 13097{ 13098iconv_open("fr", "to"); 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103if ac_fn_c_try_link "$LINENO"; then : 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 13105$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13106 13107else 13108 LIBS="$save_LIBS" 13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111 13112#ifdef HAVE_ICONV_H 13113# include <iconv.h> 13114#endif 13115 13116int 13117main () 13118{ 13119iconv_open("fr", "to"); 13120 ; 13121 return 0; 13122} 13123_ACEOF 13124if ac_fn_c_try_link "$LINENO"; then : 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13126$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13127 13128else 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13130$as_echo "no" >&6; } 13131fi 13132rm -f core conftest.err conftest.$ac_objext \ 13133 conftest$ac_exeext conftest.$ac_ext 13134fi 13135rm -f core conftest.err conftest.$ac_objext \ 13136 conftest$ac_exeext conftest.$ac_ext 13137 13138 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 13140$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 13141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143 13144#ifdef HAVE_LANGINFO_H 13145# include <langinfo.h> 13146#endif 13147 13148int 13149main () 13150{ 13151char *cs = nl_langinfo(CODESET); 13152 ; 13153 return 0; 13154} 13155_ACEOF 13156if ac_fn_c_try_link "$LINENO"; then : 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13158$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 13159 13160else 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13162$as_echo "no" >&6; } 13163fi 13164rm -f core conftest.err conftest.$ac_objext \ 13165 conftest$ac_exeext conftest.$ac_ext 13166 13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 13168$as_echo_n "checking for strtod in -lm... " >&6; } 13169if ${ac_cv_lib_m_strtod+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 ac_check_lib_save_LIBS=$LIBS 13173LIBS="-lm $LIBS" 13174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176 13177/* Override any GCC internal prototype to avoid an error. 13178 Use char because int might match the return type of a GCC 13179 builtin and then its argument prototype would still apply. */ 13180#ifdef __cplusplus 13181extern "C" 13182#endif 13183char strtod (); 13184int 13185main () 13186{ 13187return strtod (); 13188 ; 13189 return 0; 13190} 13191_ACEOF 13192if ac_fn_c_try_link "$LINENO"; then : 13193 ac_cv_lib_m_strtod=yes 13194else 13195 ac_cv_lib_m_strtod=no 13196fi 13197rm -f core conftest.err conftest.$ac_objext \ 13198 conftest$ac_exeext conftest.$ac_ext 13199LIBS=$ac_check_lib_save_LIBS 13200fi 13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 13202$as_echo "$ac_cv_lib_m_strtod" >&6; } 13203if test "x$ac_cv_lib_m_strtod" = xyes; then : 13204 cat >>confdefs.h <<_ACEOF 13205#define HAVE_LIBM 1 13206_ACEOF 13207 13208 LIBS="-lm $LIBS" 13209 13210fi 13211 13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 13213$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 13214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13215/* end confdefs.h. */ 13216 13217#ifdef HAVE_MATH_H 13218# include <math.h> 13219#endif 13220#if STDC_HEADERS 13221# include <stdlib.h> 13222# include <stddef.h> 13223#endif 13224 13225int 13226main () 13227{ 13228char *s; double d; 13229 d = strtod("1.1", &s); 13230 d = fabs(1.11); 13231 d = ceil(1.11); 13232 d = floor(1.11); 13233 d = log10(1.11); 13234 d = pow(1.11, 2.22); 13235 d = sqrt(1.11); 13236 d = sin(1.11); 13237 d = cos(1.11); 13238 d = atan(1.11); 13239 13240 ; 13241 return 0; 13242} 13243_ACEOF 13244if ac_fn_c_try_link "$LINENO"; then : 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13246$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 13247 13248else 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13250$as_echo "no" >&6; } 13251fi 13252rm -f core conftest.err conftest.$ac_objext \ 13253 conftest$ac_exeext conftest.$ac_ext 13254 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 13256$as_echo_n "checking for isinf()... " >&6; } 13257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258/* end confdefs.h. */ 13259 13260#ifdef HAVE_MATH_H 13261# include <math.h> 13262#endif 13263#if STDC_HEADERS 13264# include <stdlib.h> 13265# include <stddef.h> 13266#endif 13267 13268int 13269main () 13270{ 13271int r = isinf(1.11); 13272 ; 13273 return 0; 13274} 13275_ACEOF 13276if ac_fn_c_try_link "$LINENO"; then : 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13278$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 13279 13280else 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13282$as_echo "no" >&6; } 13283fi 13284rm -f core conftest.err conftest.$ac_objext \ 13285 conftest$ac_exeext conftest.$ac_ext 13286 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 13288$as_echo_n "checking for isnan()... " >&6; } 13289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13290/* end confdefs.h. */ 13291 13292#ifdef HAVE_MATH_H 13293# include <math.h> 13294#endif 13295#if STDC_HEADERS 13296# include <stdlib.h> 13297# include <stddef.h> 13298#endif 13299 13300int 13301main () 13302{ 13303int r = isnan(1.11); 13304 ; 13305 return 0; 13306} 13307_ACEOF 13308if ac_fn_c_try_link "$LINENO"; then : 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13310$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 13311 13312else 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314$as_echo "no" >&6; } 13315fi 13316rm -f core conftest.err conftest.$ac_objext \ 13317 conftest$ac_exeext conftest.$ac_ext 13318 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 13320$as_echo_n "checking --disable-acl argument... " >&6; } 13321# Check whether --enable-acl was given. 13322if test "${enable_acl+set}" = set; then : 13323 enableval=$enable_acl; 13324else 13325 enable_acl="yes" 13326fi 13327 13328if test "$enable_acl" = "yes"; then 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330$as_echo "no" >&6; } 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 13332$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 13333if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 ac_check_lib_save_LIBS=$LIBS 13337LIBS="-lposix1e $LIBS" 13338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13339/* end confdefs.h. */ 13340 13341/* Override any GCC internal prototype to avoid an error. 13342 Use char because int might match the return type of a GCC 13343 builtin and then its argument prototype would still apply. */ 13344#ifdef __cplusplus 13345extern "C" 13346#endif 13347char acl_get_file (); 13348int 13349main () 13350{ 13351return acl_get_file (); 13352 ; 13353 return 0; 13354} 13355_ACEOF 13356if ac_fn_c_try_link "$LINENO"; then : 13357 ac_cv_lib_posix1e_acl_get_file=yes 13358else 13359 ac_cv_lib_posix1e_acl_get_file=no 13360fi 13361rm -f core conftest.err conftest.$ac_objext \ 13362 conftest$ac_exeext conftest.$ac_ext 13363LIBS=$ac_check_lib_save_LIBS 13364fi 13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13366$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 13367if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 13368 LIBS="$LIBS -lposix1e" 13369else 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 13371$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 13372if ${ac_cv_lib_acl_acl_get_file+:} false; then : 13373 $as_echo_n "(cached) " >&6 13374else 13375 ac_check_lib_save_LIBS=$LIBS 13376LIBS="-lacl $LIBS" 13377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13378/* end confdefs.h. */ 13379 13380/* Override any GCC internal prototype to avoid an error. 13381 Use char because int might match the return type of a GCC 13382 builtin and then its argument prototype would still apply. */ 13383#ifdef __cplusplus 13384extern "C" 13385#endif 13386char acl_get_file (); 13387int 13388main () 13389{ 13390return acl_get_file (); 13391 ; 13392 return 0; 13393} 13394_ACEOF 13395if ac_fn_c_try_link "$LINENO"; then : 13396 ac_cv_lib_acl_acl_get_file=yes 13397else 13398 ac_cv_lib_acl_acl_get_file=no 13399fi 13400rm -f core conftest.err conftest.$ac_objext \ 13401 conftest$ac_exeext conftest.$ac_ext 13402LIBS=$ac_check_lib_save_LIBS 13403fi 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 13405$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 13406if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 13407 LIBS="$LIBS -lacl" 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 13409$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 13410if ${ac_cv_lib_attr_fgetxattr+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 ac_check_lib_save_LIBS=$LIBS 13414LIBS="-lattr $LIBS" 13415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13416/* end confdefs.h. */ 13417 13418/* Override any GCC internal prototype to avoid an error. 13419 Use char because int might match the return type of a GCC 13420 builtin and then its argument prototype would still apply. */ 13421#ifdef __cplusplus 13422extern "C" 13423#endif 13424char fgetxattr (); 13425int 13426main () 13427{ 13428return fgetxattr (); 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_link "$LINENO"; then : 13434 ac_cv_lib_attr_fgetxattr=yes 13435else 13436 ac_cv_lib_attr_fgetxattr=no 13437fi 13438rm -f core conftest.err conftest.$ac_objext \ 13439 conftest$ac_exeext conftest.$ac_ext 13440LIBS=$ac_check_lib_save_LIBS 13441fi 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 13443$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 13444if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 13445 LIBS="$LIBS -lattr" 13446fi 13447 13448fi 13449 13450fi 13451 13452 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 13454$as_echo_n "checking for POSIX ACL support... " >&6; } 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456/* end confdefs.h. */ 13457 13458#include <sys/types.h> 13459#ifdef HAVE_SYS_ACL_H 13460# include <sys/acl.h> 13461#endif 13462acl_t acl; 13463int 13464main () 13465{ 13466acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13467 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13468 acl_free(acl); 13469 ; 13470 return 0; 13471} 13472_ACEOF 13473if ac_fn_c_try_link "$LINENO"; then : 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13475$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 13476 13477else 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13479$as_echo "no" >&6; } 13480fi 13481rm -f core conftest.err conftest.$ac_objext \ 13482 conftest$ac_exeext conftest.$ac_ext 13483 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 13485$as_echo_n "checking for acl_get in -lsec... " >&6; } 13486if ${ac_cv_lib_sec_acl_get+:} false; then : 13487 $as_echo_n "(cached) " >&6 13488else 13489 ac_check_lib_save_LIBS=$LIBS 13490LIBS="-lsec $LIBS" 13491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13492/* end confdefs.h. */ 13493 13494/* Override any GCC internal prototype to avoid an error. 13495 Use char because int might match the return type of a GCC 13496 builtin and then its argument prototype would still apply. */ 13497#ifdef __cplusplus 13498extern "C" 13499#endif 13500char acl_get (); 13501int 13502main () 13503{ 13504return acl_get (); 13505 ; 13506 return 0; 13507} 13508_ACEOF 13509if ac_fn_c_try_link "$LINENO"; then : 13510 ac_cv_lib_sec_acl_get=yes 13511else 13512 ac_cv_lib_sec_acl_get=no 13513fi 13514rm -f core conftest.err conftest.$ac_objext \ 13515 conftest$ac_exeext conftest.$ac_ext 13516LIBS=$ac_check_lib_save_LIBS 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13519$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13520if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13521 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13522 13523else 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13525$as_echo_n "checking for Solaris ACL support... " >&6; } 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528 13529#ifdef HAVE_SYS_ACL_H 13530# include <sys/acl.h> 13531#endif 13532int 13533main () 13534{ 13535acl("foo", GETACLCNT, 0, NULL); 13536 13537 ; 13538 return 0; 13539} 13540_ACEOF 13541if ac_fn_c_try_link "$LINENO"; then : 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13543$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13544 13545else 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13547$as_echo "no" >&6; } 13548fi 13549rm -f core conftest.err conftest.$ac_objext \ 13550 conftest$ac_exeext conftest.$ac_ext 13551fi 13552 13553 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13555$as_echo_n "checking for AIX ACL support... " >&6; } 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558 13559#if STDC_HEADERS 13560# include <stdlib.h> 13561# include <stddef.h> 13562#endif 13563#ifdef HAVE_SYS_ACL_H 13564# include <sys/acl.h> 13565#endif 13566#ifdef HAVE_SYS_ACCESS_H 13567# include <sys/access.h> 13568#endif 13569#define _ALL_SOURCE 13570 13571#include <sys/stat.h> 13572 13573int aclsize; 13574struct acl *aclent; 13575int 13576main () 13577{ 13578aclsize = sizeof(struct acl); 13579 aclent = (void *)malloc(aclsize); 13580 statacl("foo", STX_NORMAL, aclent, aclsize); 13581 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_c_try_link "$LINENO"; then : 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13588$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13589 13590else 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13592$as_echo "no" >&6; } 13593fi 13594rm -f core conftest.err conftest.$ac_objext \ 13595 conftest$ac_exeext conftest.$ac_ext 13596else 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13598$as_echo "yes" >&6; } 13599fi 13600 13601if test "x$GTK_CFLAGS" != "x"; then 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13603$as_echo_n "checking for pango_shape_full... " >&6; } 13604 ac_save_CFLAGS="$CFLAGS" 13605 ac_save_LIBS="$LIBS" 13606 CFLAGS="$CFLAGS $GTK_CFLAGS" 13607 LIBS="$LIBS $GTK_LIBS" 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609/* end confdefs.h. */ 13610#include <gtk/gtk.h> 13611int 13612main () 13613{ 13614 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13615 ; 13616 return 0; 13617} 13618_ACEOF 13619if ac_fn_c_try_link "$LINENO"; then : 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13621$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13622 13623else 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13625$as_echo "no" >&6; } 13626fi 13627rm -f core conftest.err conftest.$ac_objext \ 13628 conftest$ac_exeext conftest.$ac_ext 13629 CFLAGS="$ac_save_CFLAGS" 13630 LIBS="$ac_save_LIBS" 13631fi 13632 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13634$as_echo_n "checking --disable-gpm argument... " >&6; } 13635# Check whether --enable-gpm was given. 13636if test "${enable_gpm+set}" = set; then : 13637 enableval=$enable_gpm; 13638else 13639 enable_gpm="yes" 13640fi 13641 13642 13643if test "$enable_gpm" = "yes"; then 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13645$as_echo "no" >&6; } 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13647$as_echo_n "checking for gpm... " >&6; } 13648if ${vi_cv_have_gpm+:} false; then : 13649 $as_echo_n "(cached) " >&6 13650else 13651 olibs="$LIBS" ; LIBS="-lgpm" 13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13653/* end confdefs.h. */ 13654#include <gpm.h> 13655 #include <linux/keyboard.h> 13656int 13657main () 13658{ 13659Gpm_GetLibVersion(NULL); 13660 ; 13661 return 0; 13662} 13663_ACEOF 13664if ac_fn_c_try_link "$LINENO"; then : 13665 vi_cv_have_gpm=yes 13666else 13667 vi_cv_have_gpm=no 13668fi 13669rm -f core conftest.err conftest.$ac_objext \ 13670 conftest$ac_exeext conftest.$ac_ext 13671 LIBS="$olibs" 13672 13673fi 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13675$as_echo "$vi_cv_have_gpm" >&6; } 13676 if test $vi_cv_have_gpm = yes; then 13677 LIBS="$LIBS -lgpm" 13678 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13679 13680 fi 13681else 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13683$as_echo "yes" >&6; } 13684fi 13685 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13687$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13688# Check whether --enable-sysmouse was given. 13689if test "${enable_sysmouse+set}" = set; then : 13690 enableval=$enable_sysmouse; 13691else 13692 enable_sysmouse="yes" 13693fi 13694 13695 13696if test "$enable_sysmouse" = "yes"; then 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13698$as_echo "no" >&6; } 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13700$as_echo_n "checking for sysmouse... " >&6; } 13701if ${vi_cv_have_sysmouse+:} false; then : 13702 $as_echo_n "(cached) " >&6 13703else 13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705/* end confdefs.h. */ 13706#include <sys/consio.h> 13707 #include <signal.h> 13708 #include <sys/fbio.h> 13709int 13710main () 13711{ 13712struct mouse_info mouse; 13713 mouse.operation = MOUSE_MODE; 13714 mouse.operation = MOUSE_SHOW; 13715 mouse.u.mode.mode = 0; 13716 mouse.u.mode.signal = SIGUSR2; 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_link "$LINENO"; then : 13722 vi_cv_have_sysmouse=yes 13723else 13724 vi_cv_have_sysmouse=no 13725fi 13726rm -f core conftest.err conftest.$ac_objext \ 13727 conftest$ac_exeext conftest.$ac_ext 13728 13729fi 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13731$as_echo "$vi_cv_have_sysmouse" >&6; } 13732 if test $vi_cv_have_sysmouse = yes; then 13733 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13734 13735 fi 13736else 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13738$as_echo "yes" >&6; } 13739fi 13740 13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13742$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745#if HAVE_FCNTL_H 13746# include <fcntl.h> 13747#endif 13748int 13749main () 13750{ 13751 int flag = FD_CLOEXEC; 13752 ; 13753 return 0; 13754} 13755_ACEOF 13756if ac_fn_c_try_compile "$LINENO"; then : 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13758$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13759 13760else 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13762$as_echo "not usable" >&6; } 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13765 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13767$as_echo_n "checking for rename... " >&6; } 13768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770#include <stdio.h> 13771int 13772main () 13773{ 13774rename("this", "that") 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779if ac_fn_c_try_link "$LINENO"; then : 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13781$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13782 13783else 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13785$as_echo "no" >&6; } 13786fi 13787rm -f core conftest.err conftest.$ac_objext \ 13788 conftest$ac_exeext conftest.$ac_ext 13789 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 13791$as_echo_n "checking for dirfd... " >&6; } 13792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794#include <sys/types.h> 13795#include <dirent.h> 13796int 13797main () 13798{ 13799DIR * dir=opendir("dirname"); dirfd(dir); 13800 ; 13801 return 0; 13802} 13803_ACEOF 13804if ac_fn_c_try_link "$LINENO"; then : 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13806$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h 13807 13808else 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13810$as_echo "not usable" >&6; } 13811fi 13812rm -f core conftest.err conftest.$ac_objext \ 13813 conftest$ac_exeext conftest.$ac_ext 13814 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 13816$as_echo_n "checking for flock... " >&6; } 13817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819#include <sys/file.h> 13820int 13821main () 13822{ 13823flock(10, LOCK_SH); 13824 ; 13825 return 0; 13826} 13827_ACEOF 13828if ac_fn_c_try_link "$LINENO"; then : 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13830$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 13831 13832else 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13834$as_echo "not usable" >&6; } 13835fi 13836rm -f core conftest.err conftest.$ac_objext \ 13837 conftest$ac_exeext conftest.$ac_ext 13838 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13840$as_echo_n "checking for sysctl... " >&6; } 13841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13842/* end confdefs.h. */ 13843#include <sys/types.h> 13844#include <sys/sysctl.h> 13845int 13846main () 13847{ 13848 int mib[2], r; 13849 size_t len; 13850 13851 mib[0] = CTL_HW; 13852 mib[1] = HW_USERMEM; 13853 len = sizeof(r); 13854 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13855 13856 ; 13857 return 0; 13858} 13859_ACEOF 13860if ac_fn_c_try_compile "$LINENO"; then : 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13862$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13863 13864else 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13866$as_echo "not usable" >&6; } 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13869 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13871$as_echo_n "checking for sysinfo... " >&6; } 13872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874#include <sys/types.h> 13875#include <sys/sysinfo.h> 13876int 13877main () 13878{ 13879 struct sysinfo sinfo; 13880 int t; 13881 13882 (void)sysinfo(&sinfo); 13883 t = sinfo.totalram; 13884 13885 ; 13886 return 0; 13887} 13888_ACEOF 13889if ac_fn_c_try_compile "$LINENO"; then : 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13891$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13892 13893else 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13895$as_echo "not usable" >&6; } 13896fi 13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13898 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13900$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903#include <sys/types.h> 13904#include <sys/sysinfo.h> 13905int 13906main () 13907{ 13908 struct sysinfo sinfo; 13909 sinfo.mem_unit = 1; 13910 13911 ; 13912 return 0; 13913} 13914_ACEOF 13915if ac_fn_c_try_compile "$LINENO"; then : 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13917$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13918 13919else 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13921$as_echo "no" >&6; } 13922fi 13923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13924 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.uptime" >&5 13926$as_echo_n "checking for sysinfo.uptime... " >&6; } 13927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13928/* end confdefs.h. */ 13929#include <sys/types.h> 13930#include <sys/sysinfo.h> 13931int 13932main () 13933{ 13934 struct sysinfo sinfo; 13935 long ut; 13936 13937 (void)sysinfo(&sinfo); 13938 ut = sinfo.uptime; 13939 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944if ac_fn_c_try_compile "$LINENO"; then : 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13946$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h 13947 13948else 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13950$as_echo "no" >&6; } 13951fi 13952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13953 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13955$as_echo_n "checking for sysconf... " >&6; } 13956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13957/* end confdefs.h. */ 13958#include <unistd.h> 13959int 13960main () 13961{ 13962 (void)sysconf(_SC_PAGESIZE); 13963 (void)sysconf(_SC_PHYS_PAGES); 13964 13965 ; 13966 return 0; 13967} 13968_ACEOF 13969if ac_fn_c_try_compile "$LINENO"; then : 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13971$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13972 13973else 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13975$as_echo "not usable" >&6; } 13976fi 13977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13978 13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_SIGSTKSZ via sysconf()" >&5 13980$as_echo_n "checking for _SC_SIGSTKSZ via sysconf()... " >&6; } 13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983#include <unistd.h> 13984int 13985main () 13986{ 13987 (void)sysconf(_SC_SIGSTKSZ); 13988 13989 ; 13990 return 0; 13991} 13992_ACEOF 13993if ac_fn_c_try_compile "$LINENO"; then : 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13995$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF_SIGSTKSZ 1" >>confdefs.h 13996 13997else 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13999$as_echo "not usable" >&6; } 14000fi 14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14002 14003# The cast to long int works around a bug in the HP C Compiler 14004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14006# This bug is HP SR number 8606223364. 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14008$as_echo_n "checking size of int... " >&6; } 14009if ${ac_cv_sizeof_int+:} false; then : 14010 $as_echo_n "(cached) " >&6 14011else 14012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14013 14014else 14015 if test "$ac_cv_type_int" = yes; then 14016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14018as_fn_error 77 "cannot compute sizeof (int) 14019See \`config.log' for more details" "$LINENO" 5; } 14020 else 14021 ac_cv_sizeof_int=0 14022 fi 14023fi 14024 14025fi 14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14027$as_echo "$ac_cv_sizeof_int" >&6; } 14028 14029 14030 14031cat >>confdefs.h <<_ACEOF 14032#define SIZEOF_INT $ac_cv_sizeof_int 14033_ACEOF 14034 14035 14036# The cast to long int works around a bug in the HP C Compiler 14037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14039# This bug is HP SR number 8606223364. 14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14041$as_echo_n "checking size of long... " >&6; } 14042if ${ac_cv_sizeof_long+:} false; then : 14043 $as_echo_n "(cached) " >&6 14044else 14045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14046 14047else 14048 if test "$ac_cv_type_long" = yes; then 14049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14051as_fn_error 77 "cannot compute sizeof (long) 14052See \`config.log' for more details" "$LINENO" 5; } 14053 else 14054 ac_cv_sizeof_long=0 14055 fi 14056fi 14057 14058fi 14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14060$as_echo "$ac_cv_sizeof_long" >&6; } 14061 14062 14063 14064cat >>confdefs.h <<_ACEOF 14065#define SIZEOF_LONG $ac_cv_sizeof_long 14066_ACEOF 14067 14068 14069# The cast to long int works around a bug in the HP C Compiler 14070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14072# This bug is HP SR number 8606223364. 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14074$as_echo_n "checking size of time_t... " >&6; } 14075if ${ac_cv_sizeof_time_t+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 14079 14080else 14081 if test "$ac_cv_type_time_t" = yes; then 14082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14084as_fn_error 77 "cannot compute sizeof (time_t) 14085See \`config.log' for more details" "$LINENO" 5; } 14086 else 14087 ac_cv_sizeof_time_t=0 14088 fi 14089fi 14090 14091fi 14092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14093$as_echo "$ac_cv_sizeof_time_t" >&6; } 14094 14095 14096 14097cat >>confdefs.h <<_ACEOF 14098#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14099_ACEOF 14100 14101 14102# The cast to long int works around a bug in the HP C Compiler 14103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14105# This bug is HP SR number 8606223364. 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14107$as_echo_n "checking size of off_t... " >&6; } 14108if ${ac_cv_sizeof_off_t+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14112 14113else 14114 if test "$ac_cv_type_off_t" = yes; then 14115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14117as_fn_error 77 "cannot compute sizeof (off_t) 14118See \`config.log' for more details" "$LINENO" 5; } 14119 else 14120 ac_cv_sizeof_off_t=0 14121 fi 14122fi 14123 14124fi 14125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14126$as_echo "$ac_cv_sizeof_off_t" >&6; } 14127 14128 14129 14130cat >>confdefs.h <<_ACEOF 14131#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14132_ACEOF 14133 14134 14135 14136cat >>confdefs.h <<_ACEOF 14137#define VIM_SIZEOF_INT $ac_cv_sizeof_int 14138_ACEOF 14139 14140cat >>confdefs.h <<_ACEOF 14141#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 14142_ACEOF 14143 14144 14145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 14146$as_echo_n "checking uint32_t is 32 bits... " >&6; } 14147if test "$cross_compiling" = yes; then : 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 14149$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 14150else 14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14152/* end confdefs.h. */ 14153 14154#ifdef HAVE_STDINT_H 14155# include <stdint.h> 14156#endif 14157#ifdef HAVE_INTTYPES_H 14158# include <inttypes.h> 14159#endif 14160main() { 14161 uint32_t nr1 = (uint32_t)-1; 14162 uint32_t nr2 = (uint32_t)0xffffffffUL; 14163 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1; 14164 return 0; 14165} 14166_ACEOF 14167if ac_fn_c_try_run "$LINENO"; then : 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14169$as_echo "ok" >&6; } 14170else 14171 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 14172fi 14173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14174 conftest.$ac_objext conftest.beam conftest.$ac_ext 14175fi 14176 14177 14178 14179bcopy_test_prog=' 14180#include "confdefs.h" 14181#ifdef HAVE_STRING_H 14182# include <string.h> 14183#endif 14184#if STDC_HEADERS 14185# include <stdlib.h> 14186# include <stddef.h> 14187#endif 14188main() { 14189 char buf[10]; 14190 strcpy(buf, "abcdefghi"); 14191 mch_memmove(buf, buf + 2, 3); 14192 if (strncmp(buf, "ababcf", 6)) 14193 exit(1); 14194 strcpy(buf, "abcdefghi"); 14195 mch_memmove(buf + 2, buf, 3); 14196 if (strncmp(buf, "cdedef", 6)) 14197 exit(1); 14198 exit(0); /* libc version works properly. */ 14199}' 14200 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 14202$as_echo_n "checking whether memmove handles overlaps... " >&6; } 14203if ${vim_cv_memmove_handles_overlap+:} false; then : 14204 $as_echo_n "(cached) " >&6 14205else 14206 14207 if test "$cross_compiling" = yes; then : 14208 14209 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 14210 14211else 14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14213/* end confdefs.h. */ 14214#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 14215_ACEOF 14216if ac_fn_c_try_run "$LINENO"; then : 14217 14218 vim_cv_memmove_handles_overlap=yes 14219 14220else 14221 14222 vim_cv_memmove_handles_overlap=no 14223 14224fi 14225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14226 conftest.$ac_objext conftest.beam conftest.$ac_ext 14227fi 14228 14229 14230fi 14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 14232$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 14233 14234if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 14235 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 14236 14237else 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 14239$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 14240if ${vim_cv_bcopy_handles_overlap+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 14244 if test "$cross_compiling" = yes; then : 14245 14246 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 14247 14248else 14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14250/* end confdefs.h. */ 14251#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14252_ACEOF 14253if ac_fn_c_try_run "$LINENO"; then : 14254 14255 vim_cv_bcopy_handles_overlap=yes 14256 14257else 14258 14259 vim_cv_bcopy_handles_overlap=no 14260 14261fi 14262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14263 conftest.$ac_objext conftest.beam conftest.$ac_ext 14264fi 14265 14266 14267fi 14268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 14269$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 14270 14271 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 14272 $as_echo "#define USEBCOPY 1" >>confdefs.h 14273 14274 else 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 14276$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 14277if ${vim_cv_memcpy_handles_overlap+:} false; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 14281 if test "$cross_compiling" = yes; then : 14282 14283 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 14284 14285else 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14289_ACEOF 14290if ac_fn_c_try_run "$LINENO"; then : 14291 14292 vim_cv_memcpy_handles_overlap=yes 14293 14294else 14295 14296 vim_cv_memcpy_handles_overlap=no 14297 14298fi 14299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14300 conftest.$ac_objext conftest.beam conftest.$ac_ext 14301fi 14302 14303 14304fi 14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 14306$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 14307 14308 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 14309 $as_echo "#define USEMEMCPY 1" >>confdefs.h 14310 14311 fi 14312 fi 14313fi 14314 14315 14316if test "x$with_x" = "xyes"; then 14317 cflags_save=$CFLAGS 14318 libs_save=$LIBS 14319 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 14320 CFLAGS="$CFLAGS $X_CFLAGS" 14321 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 14323$as_echo_n "checking whether X_LOCALE needed... " >&6; } 14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14325/* end confdefs.h. */ 14326#include <X11/Xlocale.h> 14327int 14328main () 14329{ 14330 14331 ; 14332 return 0; 14333} 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO"; then : 14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338 14339/* Override any GCC internal prototype to avoid an error. 14340 Use char because int might match the return type of a GCC 14341 builtin and then its argument prototype would still apply. */ 14342#ifdef __cplusplus 14343extern "C" 14344#endif 14345char _Xsetlocale (); 14346int 14347main () 14348{ 14349return _Xsetlocale (); 14350 ; 14351 return 0; 14352} 14353_ACEOF 14354if ac_fn_c_try_link "$LINENO"; then : 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14356$as_echo "yes" >&6; } 14357 $as_echo "#define X_LOCALE 1" >>confdefs.h 14358 14359else 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14361$as_echo "no" >&6; } 14362fi 14363rm -f core conftest.err conftest.$ac_objext \ 14364 conftest$ac_exeext conftest.$ac_ext 14365else 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14367$as_echo "no" >&6; } 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 14372$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375 14376/* Override any GCC internal prototype to avoid an error. 14377 Use char because int might match the return type of a GCC 14378 builtin and then its argument prototype would still apply. */ 14379#ifdef __cplusplus 14380extern "C" 14381#endif 14382char Xutf8SetWMProperties (); 14383int 14384main () 14385{ 14386return Xutf8SetWMProperties (); 14387 ; 14388 return 0; 14389} 14390_ACEOF 14391if ac_fn_c_try_link "$LINENO"; then : 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14393$as_echo "yes" >&6; } 14394 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 14395 14396else 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14398$as_echo "no" >&6; } 14399fi 14400rm -f core conftest.err conftest.$ac_objext \ 14401 conftest$ac_exeext conftest.$ac_ext 14402 14403 CFLAGS=$cflags_save 14404 LIBS=$libs_save 14405fi 14406 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 14408$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 14409if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 14410 $as_echo_n "(cached) " >&6 14411else 14412 ac_check_lib_save_LIBS=$LIBS 14413LIBS="-lxpg4 $LIBS" 14414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14415/* end confdefs.h. */ 14416 14417/* Override any GCC internal prototype to avoid an error. 14418 Use char because int might match the return type of a GCC 14419 builtin and then its argument prototype would still apply. */ 14420#ifdef __cplusplus 14421extern "C" 14422#endif 14423char _xpg4_setrunelocale (); 14424int 14425main () 14426{ 14427return _xpg4_setrunelocale (); 14428 ; 14429 return 0; 14430} 14431_ACEOF 14432if ac_fn_c_try_link "$LINENO"; then : 14433 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14434else 14435 ac_cv_lib_xpg4__xpg4_setrunelocale=no 14436fi 14437rm -f core conftest.err conftest.$ac_objext \ 14438 conftest$ac_exeext conftest.$ac_ext 14439LIBS=$ac_check_lib_save_LIBS 14440fi 14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14442$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 14443if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 14444 LIBS="$LIBS -lxpg4" 14445fi 14446 14447 14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 14449$as_echo_n "checking how to create tags... " >&6; } 14450test -f tags && mv tags tags.save 14451if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14452 TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14453elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14454 TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14455elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14456 TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14457else 14458 TAGPRG="ctags" 14459 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14460 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14461 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14462 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14463 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14464 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14465 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14466fi 14467test -f tags.save && mv tags.save tags 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 14469$as_echo "$TAGPRG" >&6; } 14470 14471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 14472$as_echo_n "checking how to run man with a section nr... " >&6; } 14473MANDEF="man" 14474(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 14476$as_echo "$MANDEF" >&6; } 14477if test "$MANDEF" = "man -s"; then 14478 $as_echo "#define USEMAN_S 1" >>confdefs.h 14479 14480fi 14481 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 14483$as_echo_n "checking --disable-nls argument... " >&6; } 14484# Check whether --enable-nls was given. 14485if test "${enable_nls+set}" = set; then : 14486 enableval=$enable_nls; 14487else 14488 enable_nls="yes" 14489fi 14490 14491 14492if test "$enable_nls" = "yes"; then 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14494$as_echo "no" >&6; } 14495 14496 INSTALL_LANGS=install-languages 14497 14498 INSTALL_TOOL_LANGS=install-tool-languages 14499 14500 14501 # Extract the first word of "msgfmt", so it can be a program name with args. 14502set dummy msgfmt; ac_word=$2 14503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14504$as_echo_n "checking for $ac_word... " >&6; } 14505if ${ac_cv_prog_MSGFMT+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 if test -n "$MSGFMT"; then 14509 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14510else 14511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14512for as_dir in $PATH 14513do 14514 IFS=$as_save_IFS 14515 test -z "$as_dir" && as_dir=. 14516 for ac_exec_ext in '' $ac_executable_extensions; do 14517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14518 ac_cv_prog_MSGFMT="msgfmt" 14519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14520 break 2 14521 fi 14522done 14523 done 14524IFS=$as_save_IFS 14525 14526fi 14527fi 14528MSGFMT=$ac_cv_prog_MSGFMT 14529if test -n "$MSGFMT"; then 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 14531$as_echo "$MSGFMT" >&6; } 14532else 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14534$as_echo "no" >&6; } 14535fi 14536 14537 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 14539$as_echo_n "checking for NLS... " >&6; } 14540 if test -f po/Makefile; then 14541 have_gettext="no" 14542 if test -n "$MSGFMT"; then 14543 olibs=$LIBS 14544 LIBS="" 14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14546/* end confdefs.h. */ 14547#include <libintl.h> 14548int 14549main () 14550{ 14551gettext("Test"); 14552 ; 14553 return 0; 14554} 14555_ACEOF 14556if ac_fn_c_try_link "$LINENO"; then : 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 14558$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 14559else 14560 LIBS="-lintl" 14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563#include <libintl.h> 14564int 14565main () 14566{ 14567gettext("Test"); 14568 ; 14569 return 0; 14570} 14571_ACEOF 14572if ac_fn_c_try_link "$LINENO"; then : 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 14574$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 14575 LIBS="$olibs -lintl" 14576else 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 14578$as_echo "gettext() doesn't work" >&6; }; 14579 LIBS=$olibs 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583fi 14584rm -f core conftest.err conftest.$ac_objext \ 14585 conftest$ac_exeext conftest.$ac_ext 14586 else 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 14588$as_echo "msgfmt not found - disabled" >&6; }; 14589 fi 14590 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 14591 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14592 14593 MAKEMO=yes 14594 14595 for ac_func in bind_textdomain_codeset 14596do : 14597 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14598if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14599 cat >>confdefs.h <<_ACEOF 14600#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14601_ACEOF 14602 14603fi 14604done 14605 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 14607$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610#include <libintl.h> 14611 extern int _nl_msg_cat_cntr; 14612int 14613main () 14614{ 14615++_nl_msg_cat_cntr; 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620if ac_fn_c_try_link "$LINENO"; then : 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14622$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14623 14624else 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14626$as_echo "no" >&6; } 14627fi 14628rm -f core conftest.err conftest.$ac_objext \ 14629 conftest$ac_exeext conftest.$ac_ext 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5 14631$as_echo_n "checking if msgfmt supports --desktop... " >&6; } 14632 MSGFMT_DESKTOP= 14633 if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then 14634 if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then 14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 14636$as_echo "broken" >&6; } 14637 else 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14639$as_echo "yes" >&6; } 14640 MSGFMT_DESKTOP="gvim.desktop vim.desktop" 14641 fi 14642 else 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14644$as_echo "no" >&6; } 14645 fi 14646 14647 fi 14648 else 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14650$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14651 fi 14652else 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14654$as_echo "yes" >&6; } 14655fi 14656 14657ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14658if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14659 DLL=dlfcn.h 14660else 14661 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14662if test "x$ac_cv_header_dl_h" = xyes; then : 14663 DLL=dl.h 14664fi 14665 14666 14667fi 14668 14669 14670if test x${DLL} = xdlfcn.h; then 14671 14672$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14675$as_echo_n "checking for dlopen()... " >&6; } 14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14677/* end confdefs.h. */ 14678 14679int 14680main () 14681{ 14682 14683 extern void* dlopen(); 14684 dlopen(); 14685 14686 ; 14687 return 0; 14688} 14689_ACEOF 14690if ac_fn_c_try_link "$LINENO"; then : 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14692$as_echo "yes" >&6; }; 14693 14694$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14695 14696else 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14698$as_echo "no" >&6; }; 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14700$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14701 olibs=$LIBS 14702 LIBS="$LIBS -ldl" 14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705 14706int 14707main () 14708{ 14709 14710 extern void* dlopen(); 14711 dlopen(); 14712 14713 ; 14714 return 0; 14715} 14716_ACEOF 14717if ac_fn_c_try_link "$LINENO"; then : 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14719$as_echo "yes" >&6; }; 14720 14721$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14722 14723else 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725$as_echo "no" >&6; }; 14726 LIBS=$olibs 14727fi 14728rm -f core conftest.err conftest.$ac_objext \ 14729 conftest$ac_exeext conftest.$ac_ext 14730fi 14731rm -f core conftest.err conftest.$ac_objext \ 14732 conftest$ac_exeext conftest.$ac_ext 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14734$as_echo_n "checking for dlsym()... " >&6; } 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737 14738int 14739main () 14740{ 14741 14742 extern void* dlsym(); 14743 dlsym(); 14744 14745 ; 14746 return 0; 14747} 14748_ACEOF 14749if ac_fn_c_try_link "$LINENO"; then : 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14751$as_echo "yes" >&6; }; 14752 14753$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14754 14755else 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14757$as_echo "no" >&6; }; 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14759$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14760 olibs=$LIBS 14761 LIBS="$LIBS -ldl" 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764 14765int 14766main () 14767{ 14768 14769 extern void* dlsym(); 14770 dlsym(); 14771 14772 ; 14773 return 0; 14774} 14775_ACEOF 14776if ac_fn_c_try_link "$LINENO"; then : 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14778$as_echo "yes" >&6; }; 14779 14780$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14781 14782else 14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14784$as_echo "no" >&6; }; 14785 LIBS=$olibs 14786fi 14787rm -f core conftest.err conftest.$ac_objext \ 14788 conftest$ac_exeext conftest.$ac_ext 14789fi 14790rm -f core conftest.err conftest.$ac_objext \ 14791 conftest$ac_exeext conftest.$ac_ext 14792elif test x${DLL} = xdl.h; then 14793 14794$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14795 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14797$as_echo_n "checking for shl_load()... " >&6; } 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800 14801int 14802main () 14803{ 14804 14805 extern void* shl_load(); 14806 shl_load(); 14807 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO"; then : 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14814$as_echo "yes" >&6; }; 14815 14816$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14817 14818else 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14820$as_echo "no" >&6; }; 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14822$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14823 olibs=$LIBS 14824 LIBS="$LIBS -ldld" 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827 14828int 14829main () 14830{ 14831 14832 extern void* shl_load(); 14833 shl_load(); 14834 14835 ; 14836 return 0; 14837} 14838_ACEOF 14839if ac_fn_c_try_link "$LINENO"; then : 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14841$as_echo "yes" >&6; }; 14842 14843$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14844 14845else 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14847$as_echo "no" >&6; }; 14848 LIBS=$olibs 14849fi 14850rm -f core conftest.err conftest.$ac_objext \ 14851 conftest$ac_exeext conftest.$ac_ext 14852fi 14853rm -f core conftest.err conftest.$ac_objext \ 14854 conftest$ac_exeext conftest.$ac_ext 14855fi 14856for ac_header in setjmp.h 14857do : 14858 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14859if test "x$ac_cv_header_setjmp_h" = xyes; then : 14860 cat >>confdefs.h <<_ACEOF 14861#define HAVE_SETJMP_H 1 14862_ACEOF 14863 14864fi 14865 14866done 14867 14868 14869if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14870 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14871 LIBS=`echo $LIBS | sed s/-ldl//` 14872 PERL_LIBS="$PERL_LIBS -ldl" 14873 fi 14874fi 14875 14876if test "$MACOS_X" = "yes"; then 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14878$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14879 if test "$MACOS_X_DARWIN" = "yes"; then 14880 if test "$features" = "tiny"; then 14881 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14882 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14884$as_echo "yes, we need CoreServices" >&6; } 14885 LIBS="$LIBS -framework CoreServices" 14886 else 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14888$as_echo "yes, we need AppKit" >&6; } 14889 LIBS="$LIBS -framework AppKit" 14890 fi 14891 else 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14893$as_echo "no" >&6; } 14894 fi 14895fi 14896 14897DEPEND_CFLAGS_FILTER= 14898if test "$GCC" = yes; then 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14900$as_echo_n "checking for GCC 3 or later... " >&6; } 14901 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'` 14902 if test "$gccmajor" -gt "2"; then 14903 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14905$as_echo "yes" >&6; } 14906 else 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14908$as_echo "no" >&6; } 14909 fi 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14911$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14912 if test "$gccmajor" -gt "3"; then 14913 CFLAGS=`echo "$CFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-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/'` 14914 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'` 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14916$as_echo "yes" >&6; } 14917 else 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14919$as_echo "no" >&6; } 14920 fi 14921fi 14922 14923 14924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14925$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14926if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14928$as_echo "yes" >&6; } 14929 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14930 14931else 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14933$as_echo "no" >&6; } 14934fi 14935 14936LDFLAGS=`echo "$LDFLAGS" | sed -e 's/-L /-L/g'` 14937 14938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14939$as_echo_n "checking linker --as-needed support... " >&6; } 14940LINK_AS_NEEDED= 14941# Check if linker supports --as-needed and --no-as-needed options 14942if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14943 if ! echo "$LDFLAGS" | grep -q -- '-Wl,[^[:space:]]*--as-needed'; then 14944 LDFLAGS="$LDFLAGS -Wl,--as-needed" 14945 fi 14946 LINK_AS_NEEDED=yes 14947fi 14948if test "$LINK_AS_NEEDED" = yes; then 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14950$as_echo "yes" >&6; } 14951else 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14953$as_echo "no" >&6; } 14954fi 14955 14956 14957# IBM z/OS reset CFLAGS for config.mk 14958if test "$zOSUnix" = "yes"; then 14959 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14960fi 14961 14962ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14963 14964cat >confcache <<\_ACEOF 14965# This file is a shell script that caches the results of configure 14966# tests run on this system so they can be shared between configure 14967# scripts and configure runs, see configure's option --config-cache. 14968# It is not useful on other systems. If it contains results you don't 14969# want to keep, you may remove or edit it. 14970# 14971# config.status only pays attention to the cache file if you give it 14972# the --recheck option to rerun configure. 14973# 14974# `ac_cv_env_foo' variables (set or unset) will be overridden when 14975# loading this file, other *unset* `ac_cv_foo' will be assigned the 14976# following values. 14977 14978_ACEOF 14979 14980# The following way of writing the cache mishandles newlines in values, 14981# but we know of no workaround that is simple, portable, and efficient. 14982# So, we kill variables containing newlines. 14983# Ultrix sh set writes to stderr and can't be redirected directly, 14984# and sets the high bit in the cache file unless we assign to the vars. 14985( 14986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14987 eval ac_val=\$$ac_var 14988 case $ac_val in #( 14989 *${as_nl}*) 14990 case $ac_var in #( 14991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14992$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14993 esac 14994 case $ac_var in #( 14995 _ | IFS | as_nl) ;; #( 14996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14997 *) { eval $ac_var=; unset $ac_var;} ;; 14998 esac ;; 14999 esac 15000 done 15001 15002 (set) 2>&1 | 15003 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15004 *${as_nl}ac_space=\ *) 15005 # `set' does not quote correctly, so add quotes: double-quote 15006 # substitution turns \\\\ into \\, and sed turns \\ into \. 15007 sed -n \ 15008 "s/'/'\\\\''/g; 15009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15010 ;; #( 15011 *) 15012 # `set' quotes correctly as required by POSIX, so do not add quotes. 15013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15014 ;; 15015 esac | 15016 sort 15017) | 15018 sed ' 15019 /^ac_cv_env_/b end 15020 t clear 15021 :clear 15022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15023 t end 15024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15025 :end' >>confcache 15026if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15027 if test -w "$cache_file"; then 15028 if test "x$cache_file" != "x/dev/null"; then 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15030$as_echo "$as_me: updating cache $cache_file" >&6;} 15031 if test ! -f "$cache_file" || test -h "$cache_file"; then 15032 cat confcache >"$cache_file" 15033 else 15034 case $cache_file in #( 15035 */* | ?:*) 15036 mv -f confcache "$cache_file"$$ && 15037 mv -f "$cache_file"$$ "$cache_file" ;; #( 15038 *) 15039 mv -f confcache "$cache_file" ;; 15040 esac 15041 fi 15042 fi 15043 else 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15045$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15046 fi 15047fi 15048rm -f confcache 15049 15050test "x$prefix" = xNONE && prefix=$ac_default_prefix 15051# Let make expand exec_prefix. 15052test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15053 15054DEFS=-DHAVE_CONFIG_H 15055 15056ac_libobjs= 15057ac_ltlibobjs= 15058U= 15059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15060 # 1. Remove the extension, and $U if already installed. 15061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15062 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15064 # will be set to the directory where LIBOBJS objects are built. 15065 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15066 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15067done 15068LIBOBJS=$ac_libobjs 15069 15070LTLIBOBJS=$ac_ltlibobjs 15071 15072 15073 15074 15075: "${CONFIG_STATUS=./config.status}" 15076ac_write_fail=0 15077ac_clean_files_save=$ac_clean_files 15078ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15080$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15081as_write_fail=0 15082cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15083#! $SHELL 15084# Generated by $as_me. 15085# Run this file to recreate the current configuration. 15086# Compiler output produced by configure, useful for debugging 15087# configure, is in config.log if it exists. 15088 15089debug=false 15090ac_cs_recheck=false 15091ac_cs_silent=false 15092 15093SHELL=\${CONFIG_SHELL-$SHELL} 15094export SHELL 15095_ASEOF 15096cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15097## -------------------- ## 15098## M4sh Initialization. ## 15099## -------------------- ## 15100 15101# Be more Bourne compatible 15102DUALCASE=1; export DUALCASE # for MKS sh 15103if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15104 emulate sh 15105 NULLCMD=: 15106 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15107 # is contrary to our usage. Disable this feature. 15108 alias -g '${1+"$@"}'='"$@"' 15109 setopt NO_GLOB_SUBST 15110else 15111 case `(set -o) 2>/dev/null` in #( 15112 *posix*) : 15113 set -o posix ;; #( 15114 *) : 15115 ;; 15116esac 15117fi 15118 15119 15120as_nl=' 15121' 15122export as_nl 15123# Printing a long string crashes Solaris 7 /usr/bin/printf. 15124as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15125as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15126as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15127# Prefer a ksh shell builtin over an external printf program on Solaris, 15128# but without wasting forks for bash or zsh. 15129if test -z "$BASH_VERSION$ZSH_VERSION" \ 15130 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15131 as_echo='print -r --' 15132 as_echo_n='print -rn --' 15133elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15134 as_echo='printf %s\n' 15135 as_echo_n='printf %s' 15136else 15137 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15138 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15139 as_echo_n='/usr/ucb/echo -n' 15140 else 15141 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15142 as_echo_n_body='eval 15143 arg=$1; 15144 case $arg in #( 15145 *"$as_nl"*) 15146 expr "X$arg" : "X\\(.*\\)$as_nl"; 15147 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15148 esac; 15149 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15150 ' 15151 export as_echo_n_body 15152 as_echo_n='sh -c $as_echo_n_body as_echo' 15153 fi 15154 export as_echo_body 15155 as_echo='sh -c $as_echo_body as_echo' 15156fi 15157 15158# The user is always right. 15159if test "${PATH_SEPARATOR+set}" != set; then 15160 PATH_SEPARATOR=: 15161 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15162 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15163 PATH_SEPARATOR=';' 15164 } 15165fi 15166 15167 15168# IFS 15169# We need space, tab and new line, in precisely that order. Quoting is 15170# there to prevent editors from complaining about space-tab. 15171# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15172# splitting by setting IFS to empty value.) 15173IFS=" "" $as_nl" 15174 15175# Find who we are. Look in the path if we contain no directory separator. 15176as_myself= 15177case $0 in #(( 15178 *[\\/]* ) as_myself=$0 ;; 15179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15180for as_dir in $PATH 15181do 15182 IFS=$as_save_IFS 15183 test -z "$as_dir" && as_dir=. 15184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15185 done 15186IFS=$as_save_IFS 15187 15188 ;; 15189esac 15190# We did not find ourselves, most probably we were run as `sh COMMAND' 15191# in which case we are not to be found in the path. 15192if test "x$as_myself" = x; then 15193 as_myself=$0 15194fi 15195if test ! -f "$as_myself"; then 15196 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15197 exit 1 15198fi 15199 15200# Unset variables that we do not need and which cause bugs (e.g. in 15201# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15202# suppresses any "Segmentation fault" message there. '((' could 15203# trigger a bug in pdksh 5.2.14. 15204for as_var in BASH_ENV ENV MAIL MAILPATH 15205do eval test x\${$as_var+set} = xset \ 15206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15207done 15208PS1='$ ' 15209PS2='> ' 15210PS4='+ ' 15211 15212# NLS nuisances. 15213LC_ALL=C 15214export LC_ALL 15215LANGUAGE=C 15216export LANGUAGE 15217 15218# CDPATH. 15219(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15220 15221 15222# as_fn_error STATUS ERROR [LINENO LOG_FD] 15223# ---------------------------------------- 15224# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15225# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15226# script with STATUS, using 1 if that was 0. 15227as_fn_error () 15228{ 15229 as_status=$1; test $as_status -eq 0 && as_status=1 15230 if test "$4"; then 15231 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15232 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15233 fi 15234 $as_echo "$as_me: error: $2" >&2 15235 as_fn_exit $as_status 15236} # as_fn_error 15237 15238 15239# as_fn_set_status STATUS 15240# ----------------------- 15241# Set $? to STATUS, without forking. 15242as_fn_set_status () 15243{ 15244 return $1 15245} # as_fn_set_status 15246 15247# as_fn_exit STATUS 15248# ----------------- 15249# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15250as_fn_exit () 15251{ 15252 set +e 15253 as_fn_set_status $1 15254 exit $1 15255} # as_fn_exit 15256 15257# as_fn_unset VAR 15258# --------------- 15259# Portably unset VAR. 15260as_fn_unset () 15261{ 15262 { eval $1=; unset $1;} 15263} 15264as_unset=as_fn_unset 15265# as_fn_append VAR VALUE 15266# ---------------------- 15267# Append the text in VALUE to the end of the definition contained in VAR. Take 15268# advantage of any shell optimizations that allow amortized linear growth over 15269# repeated appends, instead of the typical quadratic growth present in naive 15270# implementations. 15271if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15272 eval 'as_fn_append () 15273 { 15274 eval $1+=\$2 15275 }' 15276else 15277 as_fn_append () 15278 { 15279 eval $1=\$$1\$2 15280 } 15281fi # as_fn_append 15282 15283# as_fn_arith ARG... 15284# ------------------ 15285# Perform arithmetic evaluation on the ARGs, and store the result in the 15286# global $as_val. Take advantage of shells that can avoid forks. The arguments 15287# must be portable across $(()) and expr. 15288if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15289 eval 'as_fn_arith () 15290 { 15291 as_val=$(( $* )) 15292 }' 15293else 15294 as_fn_arith () 15295 { 15296 as_val=`expr "$@" || test $? -eq 1` 15297 } 15298fi # as_fn_arith 15299 15300 15301if expr a : '\(a\)' >/dev/null 2>&1 && 15302 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15303 as_expr=expr 15304else 15305 as_expr=false 15306fi 15307 15308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15309 as_basename=basename 15310else 15311 as_basename=false 15312fi 15313 15314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15315 as_dirname=dirname 15316else 15317 as_dirname=false 15318fi 15319 15320as_me=`$as_basename -- "$0" || 15321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15322 X"$0" : 'X\(//\)$' \| \ 15323 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15324$as_echo X/"$0" | 15325 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15326 s//\1/ 15327 q 15328 } 15329 /^X\/\(\/\/\)$/{ 15330 s//\1/ 15331 q 15332 } 15333 /^X\/\(\/\).*/{ 15334 s//\1/ 15335 q 15336 } 15337 s/.*/./; q'` 15338 15339# Avoid depending upon Character Ranges. 15340as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15342as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15343as_cr_digits='0123456789' 15344as_cr_alnum=$as_cr_Letters$as_cr_digits 15345 15346ECHO_C= ECHO_N= ECHO_T= 15347case `echo -n x` in #((((( 15348-n*) 15349 case `echo 'xy\c'` in 15350 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15351 xy) ECHO_C='\c';; 15352 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15353 ECHO_T=' ';; 15354 esac;; 15355*) 15356 ECHO_N='-n';; 15357esac 15358 15359rm -f conf$$ conf$$.exe conf$$.file 15360if test -d conf$$.dir; then 15361 rm -f conf$$.dir/conf$$.file 15362else 15363 rm -f conf$$.dir 15364 mkdir conf$$.dir 2>/dev/null 15365fi 15366if (echo >conf$$.file) 2>/dev/null; then 15367 if ln -s conf$$.file conf$$ 2>/dev/null; then 15368 as_ln_s='ln -s' 15369 # ... but there are two gotchas: 15370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15372 # In both cases, we have to default to `cp -pR'. 15373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15374 as_ln_s='cp -pR' 15375 elif ln conf$$.file conf$$ 2>/dev/null; then 15376 as_ln_s=ln 15377 else 15378 as_ln_s='cp -pR' 15379 fi 15380else 15381 as_ln_s='cp -pR' 15382fi 15383rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15384rmdir conf$$.dir 2>/dev/null 15385 15386 15387# as_fn_mkdir_p 15388# ------------- 15389# Create "$as_dir" as a directory, including parents if necessary. 15390as_fn_mkdir_p () 15391{ 15392 15393 case $as_dir in #( 15394 -*) as_dir=./$as_dir;; 15395 esac 15396 test -d "$as_dir" || eval $as_mkdir_p || { 15397 as_dirs= 15398 while :; do 15399 case $as_dir in #( 15400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15401 *) as_qdir=$as_dir;; 15402 esac 15403 as_dirs="'$as_qdir' $as_dirs" 15404 as_dir=`$as_dirname -- "$as_dir" || 15405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15406 X"$as_dir" : 'X\(//\)[^/]' \| \ 15407 X"$as_dir" : 'X\(//\)$' \| \ 15408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15409$as_echo X"$as_dir" | 15410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15411 s//\1/ 15412 q 15413 } 15414 /^X\(\/\/\)[^/].*/{ 15415 s//\1/ 15416 q 15417 } 15418 /^X\(\/\/\)$/{ 15419 s//\1/ 15420 q 15421 } 15422 /^X\(\/\).*/{ 15423 s//\1/ 15424 q 15425 } 15426 s/.*/./; q'` 15427 test -d "$as_dir" && break 15428 done 15429 test -z "$as_dirs" || eval "mkdir $as_dirs" 15430 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15431 15432 15433} # as_fn_mkdir_p 15434if mkdir -p . 2>/dev/null; then 15435 as_mkdir_p='mkdir -p "$as_dir"' 15436else 15437 test -d ./-p && rmdir ./-p 15438 as_mkdir_p=false 15439fi 15440 15441 15442# as_fn_executable_p FILE 15443# ----------------------- 15444# Test if FILE is an executable regular file. 15445as_fn_executable_p () 15446{ 15447 test -f "$1" && test -x "$1" 15448} # as_fn_executable_p 15449as_test_x='test -x' 15450as_executable_p=as_fn_executable_p 15451 15452# Sed expression to map a string onto a valid CPP name. 15453as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15454 15455# Sed expression to map a string onto a valid variable name. 15456as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15457 15458 15459exec 6>&1 15460## ----------------------------------- ## 15461## Main body of $CONFIG_STATUS script. ## 15462## ----------------------------------- ## 15463_ASEOF 15464test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15465 15466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15467# Save the log message, to keep $0 and so on meaningful, and to 15468# report actual input values of CONFIG_FILES etc. instead of their 15469# values after options handling. 15470ac_log=" 15471This file was extended by $as_me, which was 15472generated by GNU Autoconf 2.69. Invocation command line was 15473 15474 CONFIG_FILES = $CONFIG_FILES 15475 CONFIG_HEADERS = $CONFIG_HEADERS 15476 CONFIG_LINKS = $CONFIG_LINKS 15477 CONFIG_COMMANDS = $CONFIG_COMMANDS 15478 $ $0 $@ 15479 15480on `(hostname || uname -n) 2>/dev/null | sed 1q` 15481" 15482 15483_ACEOF 15484 15485case $ac_config_files in *" 15486"*) set x $ac_config_files; shift; ac_config_files=$*;; 15487esac 15488 15489case $ac_config_headers in *" 15490"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15491esac 15492 15493 15494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15495# Files that config.status was made for. 15496config_files="$ac_config_files" 15497config_headers="$ac_config_headers" 15498 15499_ACEOF 15500 15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15502ac_cs_usage="\ 15503\`$as_me' instantiates files and other configuration actions 15504from templates according to the current configuration. Unless the files 15505and actions are specified as TAGs, all are instantiated by default. 15506 15507Usage: $0 [OPTION]... [TAG]... 15508 15509 -h, --help print this help, then exit 15510 -V, --version print version number and configuration settings, then exit 15511 --config print configuration, then exit 15512 -q, --quiet, --silent 15513 do not print progress messages 15514 -d, --debug don't remove temporary files 15515 --recheck update $as_me by reconfiguring in the same conditions 15516 --file=FILE[:TEMPLATE] 15517 instantiate the configuration file FILE 15518 --header=FILE[:TEMPLATE] 15519 instantiate the configuration header FILE 15520 15521Configuration files: 15522$config_files 15523 15524Configuration headers: 15525$config_headers 15526 15527Report bugs to the package provider." 15528 15529_ACEOF 15530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15531ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15532ac_cs_version="\\ 15533config.status 15534configured by $0, generated by GNU Autoconf 2.69, 15535 with options \\"\$ac_cs_config\\" 15536 15537Copyright (C) 2012 Free Software Foundation, Inc. 15538This config.status script is free software; the Free Software Foundation 15539gives unlimited permission to copy, distribute and modify it." 15540 15541ac_pwd='$ac_pwd' 15542srcdir='$srcdir' 15543AWK='$AWK' 15544test -n "\$AWK" || AWK=awk 15545_ACEOF 15546 15547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15548# The default lists apply if the user does not specify any file. 15549ac_need_defaults=: 15550while test $# != 0 15551do 15552 case $1 in 15553 --*=?*) 15554 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15556 ac_shift=: 15557 ;; 15558 --*=) 15559 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15560 ac_optarg= 15561 ac_shift=: 15562 ;; 15563 *) 15564 ac_option=$1 15565 ac_optarg=$2 15566 ac_shift=shift 15567 ;; 15568 esac 15569 15570 case $ac_option in 15571 # Handling of the options. 15572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15573 ac_cs_recheck=: ;; 15574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15575 $as_echo "$ac_cs_version"; exit ;; 15576 --config | --confi | --conf | --con | --co | --c ) 15577 $as_echo "$ac_cs_config"; exit ;; 15578 --debug | --debu | --deb | --de | --d | -d ) 15579 debug=: ;; 15580 --file | --fil | --fi | --f ) 15581 $ac_shift 15582 case $ac_optarg in 15583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15584 '') as_fn_error $? "missing file argument" ;; 15585 esac 15586 as_fn_append CONFIG_FILES " '$ac_optarg'" 15587 ac_need_defaults=false;; 15588 --header | --heade | --head | --hea ) 15589 $ac_shift 15590 case $ac_optarg in 15591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15592 esac 15593 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15594 ac_need_defaults=false;; 15595 --he | --h) 15596 # Conflict between --help and --header 15597 as_fn_error $? "ambiguous option: \`$1' 15598Try \`$0 --help' for more information.";; 15599 --help | --hel | -h ) 15600 $as_echo "$ac_cs_usage"; exit ;; 15601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15602 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15603 ac_cs_silent=: ;; 15604 15605 # This is an error. 15606 -*) as_fn_error $? "unrecognized option: \`$1' 15607Try \`$0 --help' for more information." ;; 15608 15609 *) as_fn_append ac_config_targets " $1" 15610 ac_need_defaults=false ;; 15611 15612 esac 15613 shift 15614done 15615 15616ac_configure_extra_args= 15617 15618if $ac_cs_silent; then 15619 exec 6>/dev/null 15620 ac_configure_extra_args="$ac_configure_extra_args --silent" 15621fi 15622 15623_ACEOF 15624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15625if \$ac_cs_recheck; then 15626 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15627 shift 15628 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15629 CONFIG_SHELL='$SHELL' 15630 export CONFIG_SHELL 15631 exec "\$@" 15632fi 15633 15634_ACEOF 15635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15636exec 5>>auto/config.log 15637{ 15638 echo 15639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15640## Running $as_me. ## 15641_ASBOX 15642 $as_echo "$ac_log" 15643} >&5 15644 15645_ACEOF 15646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15647_ACEOF 15648 15649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15650 15651# Handling of arguments. 15652for ac_config_target in $ac_config_targets 15653do 15654 case $ac_config_target in 15655 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15656 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15657 15658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15659 esac 15660done 15661 15662 15663# If the user did not use the arguments to specify the items to instantiate, 15664# then the envvar interface is used. Set only those that are not. 15665# We use the long form for the default assignment because of an extremely 15666# bizarre bug on SunOS 4.1.3. 15667if $ac_need_defaults; then 15668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15670fi 15671 15672# Have a temporary directory for convenience. Make it in the build tree 15673# simply because there is no reason against having it here, and in addition, 15674# creating and moving files from /tmp can sometimes cause problems. 15675# Hook for its removal unless debugging. 15676# Note that there is a small window in which the directory will not be cleaned: 15677# after its creation but before its name has been assigned to `$tmp'. 15678$debug || 15679{ 15680 tmp= ac_tmp= 15681 trap 'exit_status=$? 15682 : "${ac_tmp:=$tmp}" 15683 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15684' 0 15685 trap 'as_fn_exit 1' 1 2 13 15 15686} 15687# Create a (secure) tmp directory for tmp files. 15688 15689{ 15690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15691 test -d "$tmp" 15692} || 15693{ 15694 tmp=./conf$$-$RANDOM 15695 (umask 077 && mkdir "$tmp") 15696} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15697ac_tmp=$tmp 15698 15699# Set up the scripts for CONFIG_FILES section. 15700# No need to generate them if there are no CONFIG_FILES. 15701# This happens for instance with `./config.status config.h'. 15702if test -n "$CONFIG_FILES"; then 15703 15704 15705ac_cr=`echo X | tr X '\015'` 15706# On cygwin, bash can eat \r inside `` if the user requested igncr. 15707# But we know of no other shell where ac_cr would be empty at this 15708# point, so we can use a bashism as a fallback. 15709if test "x$ac_cr" = x; then 15710 eval ac_cr=\$\'\\r\' 15711fi 15712ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15713if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15714 ac_cs_awk_cr='\\r' 15715else 15716 ac_cs_awk_cr=$ac_cr 15717fi 15718 15719echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15720_ACEOF 15721 15722 15723{ 15724 echo "cat >conf$$subs.awk <<_ACEOF" && 15725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15726 echo "_ACEOF" 15727} >conf$$subs.sh || 15728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15729ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15730ac_delim='%!_!# ' 15731for ac_last_try in false false false false false :; do 15732 . ./conf$$subs.sh || 15733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15734 15735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15736 if test $ac_delim_n = $ac_delim_num; then 15737 break 15738 elif $ac_last_try; then 15739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15740 else 15741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15742 fi 15743done 15744rm -f conf$$subs.sh 15745 15746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15747cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15748_ACEOF 15749sed -n ' 15750h 15751s/^/S["/; s/!.*/"]=/ 15752p 15753g 15754s/^[^!]*!// 15755:repl 15756t repl 15757s/'"$ac_delim"'$// 15758t delim 15759:nl 15760h 15761s/\(.\{148\}\)..*/\1/ 15762t more1 15763s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15764p 15765n 15766b repl 15767:more1 15768s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15769p 15770g 15771s/.\{148\}// 15772t nl 15773:delim 15774h 15775s/\(.\{148\}\)..*/\1/ 15776t more2 15777s/["\\]/\\&/g; s/^/"/; s/$/"/ 15778p 15779b 15780:more2 15781s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15782p 15783g 15784s/.\{148\}// 15785t delim 15786' <conf$$subs.awk | sed ' 15787/^[^""]/{ 15788 N 15789 s/\n// 15790} 15791' >>$CONFIG_STATUS || ac_write_fail=1 15792rm -f conf$$subs.awk 15793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15794_ACAWK 15795cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15796 for (key in S) S_is_set[key] = 1 15797 FS = "" 15798 15799} 15800{ 15801 line = $ 0 15802 nfields = split(line, field, "@") 15803 substed = 0 15804 len = length(field[1]) 15805 for (i = 2; i < nfields; i++) { 15806 key = field[i] 15807 keylen = length(key) 15808 if (S_is_set[key]) { 15809 value = S[key] 15810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15811 len += length(value) + length(field[++i]) 15812 substed = 1 15813 } else 15814 len += 1 + keylen 15815 } 15816 15817 print line 15818} 15819 15820_ACAWK 15821_ACEOF 15822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15823if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15824 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15825else 15826 cat 15827fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15828 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15829_ACEOF 15830 15831# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15832# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15833# trailing colons and then remove the whole line if VPATH becomes empty 15834# (actually we leave an empty line to preserve line numbers). 15835if test "x$srcdir" = x.; then 15836 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15837h 15838s/// 15839s/^/:/ 15840s/[ ]*$/:/ 15841s/:\$(srcdir):/:/g 15842s/:\${srcdir}:/:/g 15843s/:@srcdir@:/:/g 15844s/^:*// 15845s/:*$// 15846x 15847s/\(=[ ]*\).*/\1/ 15848G 15849s/\n// 15850s/^[^=]*=[ ]*$// 15851}' 15852fi 15853 15854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15855fi # test -n "$CONFIG_FILES" 15856 15857# Set up the scripts for CONFIG_HEADERS section. 15858# No need to generate them if there are no CONFIG_HEADERS. 15859# This happens for instance with `./config.status Makefile'. 15860if test -n "$CONFIG_HEADERS"; then 15861cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15862BEGIN { 15863_ACEOF 15864 15865# Transform confdefs.h into an awk script `defines.awk', embedded as 15866# here-document in config.status, that substitutes the proper values into 15867# config.h.in to produce config.h. 15868 15869# Create a delimiter string that does not exist in confdefs.h, to ease 15870# handling of long lines. 15871ac_delim='%!_!# ' 15872for ac_last_try in false false :; do 15873 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15874 if test -z "$ac_tt"; then 15875 break 15876 elif $ac_last_try; then 15877 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15878 else 15879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15880 fi 15881done 15882 15883# For the awk script, D is an array of macro values keyed by name, 15884# likewise P contains macro parameters if any. Preserve backslash 15885# newline sequences. 15886 15887ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15888sed -n ' 15889s/.\{148\}/&'"$ac_delim"'/g 15890t rset 15891:rset 15892s/^[ ]*#[ ]*define[ ][ ]*/ / 15893t def 15894d 15895:def 15896s/\\$// 15897t bsnl 15898s/["\\]/\\&/g 15899s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15900D["\1"]=" \3"/p 15901s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15902d 15903:bsnl 15904s/["\\]/\\&/g 15905s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15906D["\1"]=" \3\\\\\\n"\\/p 15907t cont 15908s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15909t cont 15910d 15911:cont 15912n 15913s/.\{148\}/&'"$ac_delim"'/g 15914t clear 15915:clear 15916s/\\$// 15917t bsnlc 15918s/["\\]/\\&/g; s/^/"/; s/$/"/p 15919d 15920:bsnlc 15921s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15922b cont 15923' <confdefs.h | sed ' 15924s/'"$ac_delim"'/"\\\ 15925"/g' >>$CONFIG_STATUS || ac_write_fail=1 15926 15927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15928 for (key in D) D_is_set[key] = 1 15929 FS = "" 15930} 15931/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15932 line = \$ 0 15933 split(line, arg, " ") 15934 if (arg[1] == "#") { 15935 defundef = arg[2] 15936 mac1 = arg[3] 15937 } else { 15938 defundef = substr(arg[1], 2) 15939 mac1 = arg[2] 15940 } 15941 split(mac1, mac2, "(") #) 15942 macro = mac2[1] 15943 prefix = substr(line, 1, index(line, defundef) - 1) 15944 if (D_is_set[macro]) { 15945 # Preserve the white space surrounding the "#". 15946 print prefix "define", macro P[macro] D[macro] 15947 next 15948 } else { 15949 # Replace #undef with comments. This is necessary, for example, 15950 # in the case of _POSIX_SOURCE, which is predefined and required 15951 # on some systems where configure will not decide to define it. 15952 if (defundef == "undef") { 15953 print "/*", prefix defundef, macro, "*/" 15954 next 15955 } 15956 } 15957} 15958{ print } 15959_ACAWK 15960_ACEOF 15961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15962 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15963fi # test -n "$CONFIG_HEADERS" 15964 15965 15966eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15967shift 15968for ac_tag 15969do 15970 case $ac_tag in 15971 :[FHLC]) ac_mode=$ac_tag; continue;; 15972 esac 15973 case $ac_mode$ac_tag in 15974 :[FHL]*:*);; 15975 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15976 :[FH]-) ac_tag=-:-;; 15977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15978 esac 15979 ac_save_IFS=$IFS 15980 IFS=: 15981 set x $ac_tag 15982 IFS=$ac_save_IFS 15983 shift 15984 ac_file=$1 15985 shift 15986 15987 case $ac_mode in 15988 :L) ac_source=$1;; 15989 :[FH]) 15990 ac_file_inputs= 15991 for ac_f 15992 do 15993 case $ac_f in 15994 -) ac_f="$ac_tmp/stdin";; 15995 *) # Look for the file first in the build tree, then in the source tree 15996 # (if the path is not absolute). The absolute path cannot be DOS-style, 15997 # because $ac_f cannot contain `:'. 15998 test -f "$ac_f" || 15999 case $ac_f in 16000 [\\/$]*) false;; 16001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16002 esac || 16003 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16004 esac 16005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16006 as_fn_append ac_file_inputs " '$ac_f'" 16007 done 16008 16009 # Let's still pretend it is `configure' which instantiates (i.e., don't 16010 # use $as_me), people would be surprised to read: 16011 # /* config.h. Generated by config.status. */ 16012 configure_input='Generated from '` 16013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16014 `' by configure.' 16015 if test x"$ac_file" != x-; then 16016 configure_input="$ac_file. $configure_input" 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16018$as_echo "$as_me: creating $ac_file" >&6;} 16019 fi 16020 # Neutralize special characters interpreted by sed in replacement strings. 16021 case $configure_input in #( 16022 *\&* | *\|* | *\\* ) 16023 ac_sed_conf_input=`$as_echo "$configure_input" | 16024 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16025 *) ac_sed_conf_input=$configure_input;; 16026 esac 16027 16028 case $ac_tag in 16029 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16031 esac 16032 ;; 16033 esac 16034 16035 ac_dir=`$as_dirname -- "$ac_file" || 16036$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16037 X"$ac_file" : 'X\(//\)[^/]' \| \ 16038 X"$ac_file" : 'X\(//\)$' \| \ 16039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16040$as_echo X"$ac_file" | 16041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16042 s//\1/ 16043 q 16044 } 16045 /^X\(\/\/\)[^/].*/{ 16046 s//\1/ 16047 q 16048 } 16049 /^X\(\/\/\)$/{ 16050 s//\1/ 16051 q 16052 } 16053 /^X\(\/\).*/{ 16054 s//\1/ 16055 q 16056 } 16057 s/.*/./; q'` 16058 as_dir="$ac_dir"; as_fn_mkdir_p 16059 ac_builddir=. 16060 16061case "$ac_dir" in 16062.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16063*) 16064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16065 # A ".." for each directory in $ac_dir_suffix. 16066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16067 case $ac_top_builddir_sub in 16068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16070 esac ;; 16071esac 16072ac_abs_top_builddir=$ac_pwd 16073ac_abs_builddir=$ac_pwd$ac_dir_suffix 16074# for backward compatibility: 16075ac_top_builddir=$ac_top_build_prefix 16076 16077case $srcdir in 16078 .) # We are building in place. 16079 ac_srcdir=. 16080 ac_top_srcdir=$ac_top_builddir_sub 16081 ac_abs_top_srcdir=$ac_pwd ;; 16082 [\\/]* | ?:[\\/]* ) # Absolute name. 16083 ac_srcdir=$srcdir$ac_dir_suffix; 16084 ac_top_srcdir=$srcdir 16085 ac_abs_top_srcdir=$srcdir ;; 16086 *) # Relative name. 16087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16088 ac_top_srcdir=$ac_top_build_prefix$srcdir 16089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16090esac 16091ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16092 16093 16094 case $ac_mode in 16095 :F) 16096 # 16097 # CONFIG_FILE 16098 # 16099 16100_ACEOF 16101 16102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16103# If the template does not know about datarootdir, expand it. 16104# FIXME: This hack should be removed a few years after 2.60. 16105ac_datarootdir_hack=; ac_datarootdir_seen= 16106ac_sed_dataroot=' 16107/datarootdir/ { 16108 p 16109 q 16110} 16111/@datadir@/p 16112/@docdir@/p 16113/@infodir@/p 16114/@localedir@/p 16115/@mandir@/p' 16116case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16117*datarootdir*) ac_datarootdir_seen=yes;; 16118*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16120$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16121_ACEOF 16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16123 ac_datarootdir_hack=' 16124 s&@datadir@&$datadir&g 16125 s&@docdir@&$docdir&g 16126 s&@infodir@&$infodir&g 16127 s&@localedir@&$localedir&g 16128 s&@mandir@&$mandir&g 16129 s&\\\${datarootdir}&$datarootdir&g' ;; 16130esac 16131_ACEOF 16132 16133# Neutralize VPATH when `$srcdir' = `.'. 16134# Shell code in configure.ac might set extrasub. 16135# FIXME: do we really want to maintain this feature? 16136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16137ac_sed_extra="$ac_vpsub 16138$extrasub 16139_ACEOF 16140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16141:t 16142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16143s|@configure_input@|$ac_sed_conf_input|;t t 16144s&@top_builddir@&$ac_top_builddir_sub&;t t 16145s&@top_build_prefix@&$ac_top_build_prefix&;t t 16146s&@srcdir@&$ac_srcdir&;t t 16147s&@abs_srcdir@&$ac_abs_srcdir&;t t 16148s&@top_srcdir@&$ac_top_srcdir&;t t 16149s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16150s&@builddir@&$ac_builddir&;t t 16151s&@abs_builddir@&$ac_abs_builddir&;t t 16152s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16153$ac_datarootdir_hack 16154" 16155eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16157 16158test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16161 "$ac_tmp/out"`; test -z "$ac_out"; } && 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16163which seems to be undefined. Please make sure it is defined" >&5 16164$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16165which seems to be undefined. Please make sure it is defined" >&2;} 16166 16167 rm -f "$ac_tmp/stdin" 16168 case $ac_file in 16169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16171 esac \ 16172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16173 ;; 16174 :H) 16175 # 16176 # CONFIG_HEADER 16177 # 16178 if test x"$ac_file" != x-; then 16179 { 16180 $as_echo "/* $configure_input */" \ 16181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16182 } >"$ac_tmp/config.h" \ 16183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16186$as_echo "$as_me: $ac_file is unchanged" >&6;} 16187 else 16188 rm -f "$ac_file" 16189 mv "$ac_tmp/config.h" "$ac_file" \ 16190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16191 fi 16192 else 16193 $as_echo "/* $configure_input */" \ 16194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16195 || as_fn_error $? "could not create -" "$LINENO" 5 16196 fi 16197 ;; 16198 16199 16200 esac 16201 16202done # for ac_tag 16203 16204 16205as_fn_exit 0 16206_ACEOF 16207ac_clean_files=$ac_clean_files_save 16208 16209test $ac_write_fail = 0 || 16210 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16211 16212 16213# configure is writing to config.log, and then calls config.status. 16214# config.status does its own redirection, appending to config.log. 16215# Unfortunately, on DOS this fails, as config.log is still kept open 16216# by configure, so config.status won't be able to write to it; its 16217# output is simply discarded. So we exec the FD to /dev/null, 16218# effectively closing config.log, so it can be properly (re)opened and 16219# appended to by config.status. When coming back to configure, we 16220# need to make the FD available again. 16221if test "$no_create" != yes; then 16222 ac_cs_success=: 16223 ac_config_status_args= 16224 test "$silent" = yes && 16225 ac_config_status_args="$ac_config_status_args --quiet" 16226 exec 5>/dev/null 16227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16228 exec 5>>auto/config.log 16229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16230 # would make configure fail if this is the last instruction. 16231 $ac_cs_success || as_fn_exit 1 16232fi 16233if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16235$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16236fi 16237 16238 16239