1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664WORKSHOP_OBJ 665WORKSHOP_SRC 666RUBY_LIBS 667RUBY_CFLAGS 668RUBY_PRO 669RUBY_OBJ 670RUBY_SRC 671vi_cv_path_ruby 672TCL_LIBS 673TCL_CFLAGS 674TCL_PRO 675TCL_OBJ 676TCL_SRC 677vi_cv_path_tcl 678PYTHON3_OBJ 679PYTHON3_SRC 680PYTHON3_CFLAGS 681PYTHON3_LIBS 682vi_cv_path_python3 683PYTHON_OBJ 684PYTHON_SRC 685PYTHON_CFLAGS 686PYTHON_LIBS 687vi_cv_path_python 688PERL_LIBS 689PERL_CFLAGS 690PERL_PRO 691PERL_OBJ 692PERL_SRC 693shrpenv 694vi_cv_perl_xsubpp 695vi_cv_perllib 696vi_cv_path_perl 697MZSCHEME_MZC 698MZSCHEME_EXTRA 699MZSCHEME_CFLAGS 700MZSCHEME_LIBS 701MZSCHEME_PRO 702MZSCHEME_OBJ 703MZSCHEME_SRC 704vi_cv_path_mzscheme 705LUA_CFLAGS 706LUA_LIBS 707LUA_PRO 708LUA_OBJ 709LUA_SRC 710vi_cv_path_plain_lua 711vi_cv_path_luajit 712vi_cv_path_lua 713compiledby 714dogvimdiff 715dovimdiff 716QUOTESED 717line_break 718VIEWNAME 719EXNAME 720VIMNAME 721OS_EXTRA_OBJ 722OS_EXTRA_SRC 723XCODE_SELECT 724CPP_MM 725CROSS_COMPILING 726STRIP 727AWK 728FGREP 729EGREP 730GREP 731CPP 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739SET_MAKE 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_fail_if_missing 783enable_darwin 784with_mac_arch 785with_developer_dir 786with_local_dir 787with_vim_name 788with_ex_name 789with_view_name 790with_global_runtime 791with_modified_by 792enable_smack 793enable_selinux 794with_features 795with_compiledby 796enable_xsmp 797enable_xsmp_interact 798enable_luainterp 799with_lua_prefix 800with_luajit 801enable_mzschemeinterp 802with_plthome 803enable_perlinterp 804enable_pythoninterp 805with_python_command 806with_python_config_dir 807enable_python3interp 808with_python3_command 809with_python3_config_dir 810enable_tclinterp 811with_tclsh 812enable_rubyinterp 813with_ruby_command 814enable_cscope 815enable_workshop 816enable_netbeans 817enable_channel 818enable_terminal 819enable_autoservername 820enable_multibyte 821enable_hangulinput 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_carbon_check 833enable_gtktest 834with_gnome_includes 835with_gnome_libs 836with_gnome 837enable_icon_cache_update 838enable_desktop_database_update 839with_motif_lib 840with_tlib 841enable_largefile 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 --enable-workshop Include Sun Visual Workshop support. 1495 --disable-netbeans Disable NetBeans integration support. 1496 --disable-channel Disable process communication support. 1497 --enable-terminal Enable terminal emulation support. 1498 --enable-autoservername Automatically define servername at vim startup. 1499 --enable-multibyte Include multibyte editing support. 1500 --enable-hangulinput Include Hangul input support. 1501 --enable-xim Include XIM input support. 1502 --enable-fontset Include X fontset output support. 1503 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1504 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1505 --enable-gnome-check If GTK GUI, check for GNOME default=no 1506 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1507 --enable-motif-check If auto-select GUI, check for Motif default=yes 1508 --enable-athena-check If auto-select GUI, check for Athena default=yes 1509 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1510 --enable-carbon-check If auto-select GUI, check for Carbon 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-acl No check for ACL support. 1516 --disable-gpm Don't use gpm (Linux mouse daemon). 1517 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1518 --disable-nls Don't support NLS (gettext()). 1519 1520Optional Packages: 1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1523 --with-mac-arch=ARCH current, intel, ppc or both 1524 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1525 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1526 --without-local-dir do not search /usr/local for local libraries. 1527 --with-vim-name=NAME what to call the Vim executable 1528 --with-ex-name=NAME what to call the Ex executable 1529 --with-view-name=NAME what to call the View executable 1530 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1531 --with-modified-by=NAME name of who modified a release version 1532 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1533 --with-compiledby=NAME name to show in :version message 1534 --with-lua-prefix=PFX Prefix where Lua is installed. 1535 --with-luajit Link with LuaJIT instead of Lua. 1536 --with-plthome=PLTHOME Use PLTHOME. 1537 --with-python-command=NAME name of the Python 2 command (default: python2 or python) 1538 --with-python-config-dir=PATH Python's config directory (deprecated) 1539 --with-python3-command=NAME name of the Python 3 command (default: python3 or python) 1540 --with-python3-config-dir=PATH Python's config directory (deprecated) 1541 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1542 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1543 --with-x use the X Window System 1544 --with-gnome-includes=DIR Specify location of GNOME headers 1545 --with-gnome-libs=DIR Specify location of GNOME libs 1546 --with-gnome Specify prefix for GNOME files 1547 --with-motif-lib=STRING Library for Motif 1548 --with-tlib=library terminal library to be used 1549 1550Some influential environment variables: 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 CPP C preprocessor 1559 XMKMF Path to xmkmf, Makefile generator for X Window System 1560 1561Use these variables to override the choices made by `configure' or to help 1562it to find libraries and programs with nonstandard names/locations. 1563 1564Report bugs to the package provider. 1565_ACEOF 1566ac_status=$? 1567fi 1568 1569if test "$ac_init_help" = "recursive"; then 1570 # If there are subdirs, report their specific --help. 1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1572 test -d "$ac_dir" || 1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1574 continue 1575 ac_builddir=. 1576 1577case "$ac_dir" in 1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579*) 1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1581 # A ".." for each directory in $ac_dir_suffix. 1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1583 case $ac_top_builddir_sub in 1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1586 esac ;; 1587esac 1588ac_abs_top_builddir=$ac_pwd 1589ac_abs_builddir=$ac_pwd$ac_dir_suffix 1590# for backward compatibility: 1591ac_top_builddir=$ac_top_build_prefix 1592 1593case $srcdir in 1594 .) # We are building in place. 1595 ac_srcdir=. 1596 ac_top_srcdir=$ac_top_builddir_sub 1597 ac_abs_top_srcdir=$ac_pwd ;; 1598 [\\/]* | ?:[\\/]* ) # Absolute name. 1599 ac_srcdir=$srcdir$ac_dir_suffix; 1600 ac_top_srcdir=$srcdir 1601 ac_abs_top_srcdir=$srcdir ;; 1602 *) # Relative name. 1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1604 ac_top_srcdir=$ac_top_build_prefix$srcdir 1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1606esac 1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1608 1609 cd "$ac_dir" || { ac_status=$?; continue; } 1610 # Check for guested configure. 1611 if test -f "$ac_srcdir/configure.gnu"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1614 elif test -f "$ac_srcdir/configure"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure" --help=recursive 1617 else 1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1619 fi || ac_status=$? 1620 cd "$ac_pwd" || { ac_status=$?; break; } 1621 done 1622fi 1623 1624test -n "$ac_init_help" && exit $ac_status 1625if $ac_init_version; then 1626 cat <<\_ACEOF 1627configure 1628generated by GNU Autoconf 2.69 1629 1630Copyright (C) 2012 Free Software Foundation, Inc. 1631This configure script is free software; the Free Software Foundation 1632gives unlimited permission to copy, distribute and modify it. 1633_ACEOF 1634 exit 1635fi 1636 1637## ------------------------ ## 1638## Autoconf initialization. ## 1639## ------------------------ ## 1640 1641# ac_fn_c_try_compile LINENO 1642# -------------------------- 1643# Try to compile conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext 1648 if { { ac_try="$ac_compile" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_compile") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest.$ac_objext; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_compile 1678 1679# ac_fn_c_try_cpp LINENO 1680# ---------------------- 1681# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_cpp () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 if { { ac_try="$ac_cpp conftest.$ac_ext" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } > conftest.i && { 1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_cpp 1715 1716# ac_fn_c_try_link LINENO 1717# ----------------------- 1718# Try to link conftest.$ac_ext, and return whether this succeeded. 1719ac_fn_c_try_link () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 rm -f conftest.$ac_objext conftest$ac_exeext 1723 if { { ac_try="$ac_link" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_link") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } && { 1739 test -z "$ac_c_werror_flag" || 1740 test ! -s conftest.err 1741 } && test -s conftest$ac_exeext && { 1742 test "$cross_compiling" = yes || 1743 test -x conftest$ac_exeext 1744 }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1754 # interfere with the next link command; also delete a directory that is 1755 # left behind by Apple's compiler. We do this before executing the actions. 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_link 1761 1762# ac_fn_c_try_run LINENO 1763# ---------------------- 1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1765# that executables *can* be run. 1766ac_fn_c_try_run () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_link" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>&5 1777 ac_status=$? 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1780 { { case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_try") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; }; }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: program exited with status $ac_status" >&5 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=$ac_status 1797fi 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_run 1803 1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1805# ------------------------------------------------------- 1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1807# the include files in INCLUDES and setting the cache variable VAR 1808# accordingly. 1809ac_fn_c_check_header_mongrel () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if eval \${$3+:} false; then : 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821else 1822 # Is the header compilable? 1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1824$as_echo_n "checking $2 usability... " >&6; } 1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827$4 1828#include <$2> 1829_ACEOF 1830if ac_fn_c_try_compile "$LINENO"; then : 1831 ac_header_compiler=yes 1832else 1833 ac_header_compiler=no 1834fi 1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1837$as_echo "$ac_header_compiler" >&6; } 1838 1839# Is the header present? 1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1841$as_echo_n "checking $2 presence... " >&6; } 1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844#include <$2> 1845_ACEOF 1846if ac_fn_c_try_cpp "$LINENO"; then : 1847 ac_header_preproc=yes 1848else 1849 ac_header_preproc=no 1850fi 1851rm -f conftest.err conftest.i conftest.$ac_ext 1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1853$as_echo "$ac_header_preproc" >&6; } 1854 1855# So? What about this header? 1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1857 yes:no: ) 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1862 ;; 1863 no:yes:* ) 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1867$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1871$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1874 ;; 1875esac 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=\$ac_header_compiler" 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_header_mongrel 1890 1891# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1892# ------------------------------------------------------- 1893# Tests whether HEADER exists and can be compiled using the include files in 1894# INCLUDES, setting the cache variable VAR accordingly. 1895ac_fn_c_check_header_compile () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905$4 1906#include <$2> 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO"; then : 1909 eval "$3=yes" 1910else 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_header_compile 1921 1922# ac_fn_c_check_func LINENO FUNC VAR 1923# ---------------------------------- 1924# Tests whether FUNC exists, setting the cache variable VAR accordingly 1925ac_fn_c_check_func () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1937#define $2 innocuous_$2 1938 1939/* System header to define __stub macros and hopefully few prototypes, 1940 which can conflict with char $2 (); below. 1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1942 <limits.h> exists even on freestanding compilers. */ 1943 1944#ifdef __STDC__ 1945# include <limits.h> 1946#else 1947# include <assert.h> 1948#endif 1949 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main () 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext \ 1980 conftest$ac_exeext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_func 1988 1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1990# ------------------------------------------- 1991# Tests whether TYPE exists after having included INCLUDES, setting cache 1992# variable VAR accordingly. 1993ac_fn_c_check_type () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000else 2001 eval "$3=no" 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008if (sizeof ($2)) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018int 2019main () 2020{ 2021if (sizeof (($2))) 2022 return 0; 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 2029else 2030 eval "$3=yes" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_type 2042 2043# ac_fn_c_find_uintX_t LINENO BITS VAR 2044# ------------------------------------ 2045# Finds an unsigned integer type with width BITS, setting cache variable VAR 2046# accordingly. 2047ac_fn_c_find_uintX_t () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2051$as_echo_n "checking for uint$2_t... " >&6; } 2052if eval \${$3+:} false; then : 2053 $as_echo_n "(cached) " >&6 2054else 2055 eval "$3=no" 2056 # Order is important - never check a type that is potentially smaller 2057 # than half of the expected target width. 2058 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2059 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$ac_includes_default 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2067test_array [0] = 0; 2068return test_array [0]; 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 case $ac_type in #( 2076 uint$2_t) : 2077 eval "$3=yes" ;; #( 2078 *) : 2079 eval "$3=\$ac_type" ;; 2080esac 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083 if eval test \"x\$"$3"\" = x"no"; then : 2084 2085else 2086 break 2087fi 2088 done 2089fi 2090eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092$as_echo "$ac_res" >&6; } 2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2094 2095} # ac_fn_c_find_uintX_t 2096 2097# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2098# -------------------------------------------- 2099# Tries to find the compile-time value of EXPR in a program that includes 2100# INCLUDES, setting VAR accordingly. Returns whether the value could be 2101# computed 2102ac_fn_c_compute_int () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 if test "$cross_compiling" = yes; then 2106 # Depending upon the size, compute the lo and hi bounds. 2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108/* end confdefs.h. */ 2109$4 2110int 2111main () 2112{ 2113static int test_array [1 - 2 * !(($2) >= 0)]; 2114test_array [0] = 0; 2115return test_array [0]; 2116 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 ac_lo=0 ac_mid=0 2123 while :; do 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125/* end confdefs.h. */ 2126$4 2127int 2128main () 2129{ 2130static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2131test_array [0] = 0; 2132return test_array [0]; 2133 2134 ; 2135 return 0; 2136} 2137_ACEOF 2138if ac_fn_c_try_compile "$LINENO"; then : 2139 ac_hi=$ac_mid; break 2140else 2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2142 if test $ac_lo -le $ac_mid; then 2143 ac_lo= ac_hi= 2144 break 2145 fi 2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149 done 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157static int test_array [1 - 2 * !(($2) < 0)]; 2158test_array [0] = 0; 2159return test_array [0]; 2160 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 ac_hi=-1 ac_mid=-1 2167 while :; do 2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2169/* end confdefs.h. */ 2170$4 2171int 2172main () 2173{ 2174static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2175test_array [0] = 0; 2176return test_array [0]; 2177 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO"; then : 2183 ac_lo=$ac_mid; break 2184else 2185 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2186 if test $ac_mid -le $ac_hi; then 2187 ac_lo= ac_hi= 2188 break 2189 fi 2190 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193 done 2194else 2195 ac_lo= ac_hi= 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200# Binary search between lo and hi bounds. 2201while test "x$ac_lo" != "x$ac_hi"; do 2202 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2204/* end confdefs.h. */ 2205$4 2206int 2207main () 2208{ 2209static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2210test_array [0] = 0; 2211return test_array [0]; 2212 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 ac_hi=$ac_mid 2219else 2220 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2221fi 2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2223done 2224case $ac_lo in #(( 2225?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2226'') ac_retval=1 ;; 2227esac 2228 else 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$4 2232static long int longval () { return $2; } 2233static unsigned long int ulongval () { return $2; } 2234#include <stdio.h> 2235#include <stdlib.h> 2236int 2237main () 2238{ 2239 2240 FILE *f = fopen ("conftest.val", "w"); 2241 if (! f) 2242 return 1; 2243 if (($2) < 0) 2244 { 2245 long int i = longval (); 2246 if (i != ($2)) 2247 return 1; 2248 fprintf (f, "%ld", i); 2249 } 2250 else 2251 { 2252 unsigned long int i = ulongval (); 2253 if (i != ($2)) 2254 return 1; 2255 fprintf (f, "%lu", i); 2256 } 2257 /* Do not output a trailing newline, as this causes \r\n confusion 2258 on some platforms. */ 2259 return ferror (f) || fclose (f) != 0; 2260 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_run "$LINENO"; then : 2266 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2267else 2268 ac_retval=1 2269fi 2270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2271 conftest.$ac_objext conftest.beam conftest.$ac_ext 2272rm -f conftest.val 2273 2274 fi 2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 as_fn_set_status $ac_retval 2277 2278} # ac_fn_c_compute_int 2279cat >auto/config.log <<_ACEOF 2280This file contains any messages produced by compilers while 2281running configure, to aid debugging if configure makes a mistake. 2282 2283It was created by $as_me, which was 2284generated by GNU Autoconf 2.69. Invocation command line was 2285 2286 $ $0 $@ 2287 2288_ACEOF 2289exec 5>>auto/config.log 2290{ 2291cat <<_ASUNAME 2292## --------- ## 2293## Platform. ## 2294## --------- ## 2295 2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2297uname -m = `(uname -m) 2>/dev/null || echo unknown` 2298uname -r = `(uname -r) 2>/dev/null || echo unknown` 2299uname -s = `(uname -s) 2>/dev/null || echo unknown` 2300uname -v = `(uname -v) 2>/dev/null || echo unknown` 2301 2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2303/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2304 2305/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2306/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2308/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2309/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2310/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2311/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2312 2313_ASUNAME 2314 2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316for as_dir in $PATH 2317do 2318 IFS=$as_save_IFS 2319 test -z "$as_dir" && as_dir=. 2320 $as_echo "PATH: $as_dir" 2321 done 2322IFS=$as_save_IFS 2323 2324} >&5 2325 2326cat >&5 <<_ACEOF 2327 2328 2329## ----------- ## 2330## Core tests. ## 2331## ----------- ## 2332 2333_ACEOF 2334 2335 2336# Keep a trace of the command line. 2337# Strip out --no-create and --no-recursion so they do not pile up. 2338# Strip out --silent because we don't want to record it for future runs. 2339# Also quote any args containing shell meta-characters. 2340# Make two passes to allow for proper duplicate-argument suppression. 2341ac_configure_args= 2342ac_configure_args0= 2343ac_configure_args1= 2344ac_must_keep_next=false 2345for ac_pass in 1 2 2346do 2347 for ac_arg 2348 do 2349 case $ac_arg in 2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2352 | -silent | --silent | --silen | --sile | --sil) 2353 continue ;; 2354 *\'*) 2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 esac 2357 case $ac_pass in 2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2359 2) 2360 as_fn_append ac_configure_args1 " '$ac_arg'" 2361 if test $ac_must_keep_next = true; then 2362 ac_must_keep_next=false # Got value, back to normal. 2363 else 2364 case $ac_arg in 2365 *=* | --config-cache | -C | -disable-* | --disable-* \ 2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2368 | -with-* | --with-* | -without-* | --without-* | --x) 2369 case "$ac_configure_args0 " in 2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2371 esac 2372 ;; 2373 -* ) ac_must_keep_next=true ;; 2374 esac 2375 fi 2376 as_fn_append ac_configure_args " '$ac_arg'" 2377 ;; 2378 esac 2379 done 2380done 2381{ ac_configure_args0=; unset ac_configure_args0;} 2382{ ac_configure_args1=; unset ac_configure_args1;} 2383 2384# When interrupted or exit'd, cleanup temporary files, and complete 2385# config.log. We remove comments because anyway the quotes in there 2386# would cause problems or look ugly. 2387# WARNING: Use '\'' to represent an apostrophe within the trap. 2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2389trap 'exit_status=$? 2390 # Save into config.log some information that might help in debugging. 2391 { 2392 echo 2393 2394 $as_echo "## ---------------- ## 2395## Cache variables. ## 2396## ---------------- ##" 2397 echo 2398 # The following way of writing the cache mishandles newlines in values, 2399( 2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2401 eval ac_val=\$$ac_var 2402 case $ac_val in #( 2403 *${as_nl}*) 2404 case $ac_var in #( 2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2407 esac 2408 case $ac_var in #( 2409 _ | IFS | as_nl) ;; #( 2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2411 *) { eval $ac_var=; unset $ac_var;} ;; 2412 esac ;; 2413 esac 2414 done 2415 (set) 2>&1 | 2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2417 *${as_nl}ac_space=\ *) 2418 sed -n \ 2419 "s/'\''/'\''\\\\'\'''\''/g; 2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2421 ;; #( 2422 *) 2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2424 ;; 2425 esac | 2426 sort 2427) 2428 echo 2429 2430 $as_echo "## ----------------- ## 2431## Output variables. ## 2432## ----------------- ##" 2433 echo 2434 for ac_var in $ac_subst_vars 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 2444 if test -n "$ac_subst_files"; then 2445 $as_echo "## ------------------- ## 2446## File substitutions. ## 2447## ------------------- ##" 2448 echo 2449 for ac_var in $ac_subst_files 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 fi 2459 2460 if test -s confdefs.h; then 2461 $as_echo "## ----------- ## 2462## confdefs.h. ## 2463## ----------- ##" 2464 echo 2465 cat confdefs.h 2466 echo 2467 fi 2468 test "$ac_signal" != 0 && 2469 $as_echo "$as_me: caught signal $ac_signal" 2470 $as_echo "$as_me: exit $exit_status" 2471 } >&5 2472 rm -f core *.core core.conftest.* && 2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2474 exit $exit_status 2475' 0 2476for ac_signal in 1 2 13 15; do 2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2478done 2479ac_signal=0 2480 2481# confdefs.h avoids OS command line length limits that DEFS can exceed. 2482rm -f -r conftest* confdefs.h 2483 2484$as_echo "/* confdefs.h */" > confdefs.h 2485 2486# Predefined preprocessor variables. 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_NAME "$PACKAGE_NAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_VERSION "$PACKAGE_VERSION" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_STRING "$PACKAGE_STRING" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_URL "$PACKAGE_URL" 2510_ACEOF 2511 2512 2513# Let the site file select an alternate cache file if it wants to. 2514# Prefer an explicitly selected file to automatically selected ones. 2515ac_site_file1=NONE 2516ac_site_file2=NONE 2517if test -n "$CONFIG_SITE"; then 2518 # We do not want a PATH search for config.site. 2519 case $CONFIG_SITE in #(( 2520 -*) ac_site_file1=./$CONFIG_SITE;; 2521 */*) ac_site_file1=$CONFIG_SITE;; 2522 *) ac_site_file1=./$CONFIG_SITE;; 2523 esac 2524elif test "x$prefix" != xNONE; then 2525 ac_site_file1=$prefix/share/config.site 2526 ac_site_file2=$prefix/etc/config.site 2527else 2528 ac_site_file1=$ac_default_prefix/share/config.site 2529 ac_site_file2=$ac_default_prefix/etc/config.site 2530fi 2531for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2532do 2533 test "x$ac_site_file" = xNONE && continue 2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2536$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2537 sed 's/^/| /' "$ac_site_file" >&5 2538 . "$ac_site_file" \ 2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541as_fn_error $? "failed to load site script $ac_site_file 2542See \`config.log' for more details" "$LINENO" 5; } 2543 fi 2544done 2545 2546if test -r "$cache_file"; then 2547 # Some versions of bash will fail to source /dev/null (special files 2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2551$as_echo "$as_me: loading cache $cache_file" >&6;} 2552 case $cache_file in 2553 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2554 *) . "./$cache_file";; 2555 esac 2556 fi 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2559$as_echo "$as_me: creating cache $cache_file" >&6;} 2560 >$cache_file 2561fi 2562 2563# Check that the precious variables saved in the cache have kept the same 2564# value. 2565ac_cache_corrupted=false 2566for ac_var in $ac_precious_vars; do 2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2568 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_new_val=\$ac_env_${ac_var}_value 2571 case $ac_old_set,$ac_new_set in 2572 set,) 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,set) 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,);; 2581 *) 2582 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 # differences in whitespace do not lead to failure. 2584 ac_old_val_w=`echo x $ac_old_val` 2585 ac_new_val_w=`echo x $ac_new_val` 2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589 ac_cache_corrupted=: 2590 else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2593 eval $ac_var=\$ac_old_val 2594 fi 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2596$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2598$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2599 fi;; 2600 esac 2601 # Pass precious variables to config.status. 2602 if test "$ac_new_set" = set; then 2603 case $ac_new_val in 2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *) ac_arg=$ac_var=$ac_new_val ;; 2606 esac 2607 case " $ac_configure_args " in 2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2610 esac 2611 fi 2612done 2613if $ac_cache_corrupted; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2619fi 2620## -------------------- ## 2621## Main body of script. ## 2622## -------------------- ## 2623 2624ac_ext=c 2625ac_cpp='$CPP $CPPFLAGS' 2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_c_compiler_gnu 2629 2630 2631ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2632 2633 2634$as_echo "#define UNIX 1" >>confdefs.h 2635 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2638set x ${MAKE-make} 2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 cat >conftest.make <<\_ACEOF 2644SHELL = /bin/sh 2645all: 2646 @echo '@@@%%%=$(MAKE)=@@@%%%' 2647_ACEOF 2648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2649case `${MAKE-make} -f conftest.make 2>/dev/null` in 2650 *@@@%%%=?*=@@@%%%*) 2651 eval ac_cv_prog_make_${ac_make}_set=yes;; 2652 *) 2653 eval ac_cv_prog_make_${ac_make}_set=no;; 2654esac 2655rm -f conftest.make 2656fi 2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2659$as_echo "yes" >&6; } 2660 SET_MAKE= 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664 SET_MAKE="MAKE=${MAKE-make}" 2665fi 2666 2667 2668ac_ext=c 2669ac_cpp='$CPP $CPPFLAGS' 2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2672ac_compiler_gnu=$ac_cv_c_compiler_gnu 2673if test -n "$ac_tool_prefix"; then 2674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2675set dummy ${ac_tool_prefix}gcc; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if ${ac_cv_prog_CC+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701CC=$ac_cv_prog_CC 2702if test -n "$CC"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2704$as_echo "$CC" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 2711fi 2712if test -z "$ac_cv_prog_CC"; then 2713 ac_ct_CC=$CC 2714 # Extract the first word of "gcc", so it can be a program name with args. 2715set dummy gcc; ac_word=$2 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if ${ac_cv_prog_ac_ct_CC+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$ac_ct_CC"; then 2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2731 ac_cv_prog_ac_ct_CC="gcc" 2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736 done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741ac_ct_CC=$ac_cv_prog_ac_ct_CC 2742if test -n "$ac_ct_CC"; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2744$as_echo "$ac_ct_CC" >&6; } 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 if test "x$ac_ct_CC" = x; then 2751 CC="" 2752 else 2753 case $cross_compiling:$ac_tool_warned in 2754yes:) 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2757ac_tool_warned=yes ;; 2758esac 2759 CC=$ac_ct_CC 2760 fi 2761else 2762 CC="$ac_cv_prog_CC" 2763fi 2764 2765if test -z "$CC"; then 2766 if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2768set dummy ${ac_tool_prefix}cc; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if ${ac_cv_prog_CC+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_CC="${ac_tool_prefix}cc" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804 fi 2805fi 2806if test -z "$CC"; then 2807 # Extract the first word of "cc", so it can be a program name with args. 2808set dummy cc; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_CC+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817 ac_prog_rejected=no 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2826 ac_prog_rejected=yes 2827 continue 2828 fi 2829 ac_cv_prog_CC="cc" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837if test $ac_prog_rejected = yes; then 2838 # We found a bogon in the path, so make sure we never use it. 2839 set dummy $ac_cv_prog_CC 2840 shift 2841 if test $# != 0; then 2842 # We chose a different compiler from the bogus one. 2843 # However, it has the same basename, so the bogon will be chosen 2844 # first if we set CC to just the basename; use the full file name. 2845 shift 2846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2847 fi 2848fi 2849fi 2850fi 2851CC=$ac_cv_prog_CC 2852if test -n "$CC"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2854$as_echo "$CC" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 2861fi 2862if test -z "$CC"; then 2863 if test -n "$ac_tool_prefix"; then 2864 for ac_prog in cl.exe 2865 do 2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2867set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if ${ac_cv_prog_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$CC"; then 2874 ac_cv_prog_CC="$CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893CC=$ac_cv_prog_CC 2894if test -n "$CC"; then 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2896$as_echo "$CC" >&6; } 2897else 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899$as_echo "no" >&6; } 2900fi 2901 2902 2903 test -n "$CC" && break 2904 done 2905fi 2906if test -z "$CC"; then 2907 ac_ct_CC=$CC 2908 for ac_prog in cl.exe 2909do 2910 # Extract the first word of "$ac_prog", so it can be a program name with args. 2911set dummy $ac_prog; ac_word=$2 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2913$as_echo_n "checking for $ac_word... " >&6; } 2914if ${ac_cv_prog_ac_ct_CC+:} false; then : 2915 $as_echo_n "(cached) " >&6 2916else 2917 if test -n "$ac_ct_CC"; then 2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 test -z "$as_dir" && as_dir=. 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2927 ac_cv_prog_ac_ct_CC="$ac_prog" 2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932 done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937ac_ct_CC=$ac_cv_prog_ac_ct_CC 2938if test -n "$ac_ct_CC"; then 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2940$as_echo "$ac_ct_CC" >&6; } 2941else 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943$as_echo "no" >&6; } 2944fi 2945 2946 2947 test -n "$ac_ct_CC" && break 2948done 2949 2950 if test "x$ac_ct_CC" = x; then 2951 CC="" 2952 else 2953 case $cross_compiling:$ac_tool_warned in 2954yes:) 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2957ac_tool_warned=yes ;; 2958esac 2959 CC=$ac_ct_CC 2960 fi 2961fi 2962 2963fi 2964 2965 2966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2968as_fn_error $? "no acceptable C compiler found in \$PATH 2969See \`config.log' for more details" "$LINENO" 5; } 2970 2971# Provide some information about the compiler. 2972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2973set X $ac_compile 2974ac_compiler=$2 2975for ac_option in --version -v -V -qversion; do 2976 { { ac_try="$ac_compiler $ac_option >&5" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2982$as_echo "$ac_try_echo"; } >&5 2983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2984 ac_status=$? 2985 if test -s conftest.err; then 2986 sed '10a\ 2987... rest of stderr output deleted ... 2988 10q' conftest.err >conftest.er1 2989 cat conftest.er1 >&5 2990 fi 2991 rm -f conftest.er1 conftest.err 2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2993 test $ac_status = 0; } 2994done 2995 2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2997/* end confdefs.h. */ 2998 2999int 3000main () 3001{ 3002 3003 ; 3004 return 0; 3005} 3006_ACEOF 3007ac_clean_files_save=$ac_clean_files 3008ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3009# Try to create an executable without -o first, disregard a.out. 3010# It will help us diagnose broken compilers, and finding out an intuition 3011# of exeext. 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3013$as_echo_n "checking whether the C compiler works... " >&6; } 3014ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3015 3016# The possible output files: 3017ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3018 3019ac_rmfiles= 3020for ac_file in $ac_files 3021do 3022 case $ac_file in 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3024 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3025 esac 3026done 3027rm -f $ac_rmfiles 3028 3029if { { ac_try="$ac_link_default" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3035$as_echo "$ac_try_echo"; } >&5 3036 (eval "$ac_link_default") 2>&5 3037 ac_status=$? 3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3039 test $ac_status = 0; }; then : 3040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3041# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3042# in a Makefile. We should not override ac_cv_exeext if it was cached, 3043# so that the user can short-circuit this test for compilers unknown to 3044# Autoconf. 3045for ac_file in $ac_files '' 3046do 3047 test -f "$ac_file" || continue 3048 case $ac_file in 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3050 ;; 3051 [ab].out ) 3052 # We found the default executable, but exeext='' is most 3053 # certainly right. 3054 break;; 3055 *.* ) 3056 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3057 then :; else 3058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3059 fi 3060 # We set ac_cv_exeext here because the later test for it is not 3061 # safe: cross compilers may not add the suffix if given an `-o' 3062 # argument, so we may need to know it at that point already. 3063 # Even if this section looks crufty: it has the advantage of 3064 # actually working. 3065 break;; 3066 * ) 3067 break;; 3068 esac 3069done 3070test "$ac_cv_exeext" = no && ac_cv_exeext= 3071 3072else 3073 ac_file='' 3074fi 3075if test -z "$ac_file"; then : 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078$as_echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3083as_fn_error 77 "C compiler cannot create executables 3084See \`config.log' for more details" "$LINENO" 5; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3087$as_echo "yes" >&6; } 3088fi 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3090$as_echo_n "checking for C compiler default output file name... " >&6; } 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3092$as_echo "$ac_file" >&6; } 3093ac_exeext=$ac_cv_exeext 3094 3095rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3096ac_clean_files=$ac_clean_files_save 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3098$as_echo_n "checking for suffix of executables... " >&6; } 3099if { { ac_try="$ac_link" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3105$as_echo "$ac_try_echo"; } >&5 3106 (eval "$ac_link") 2>&5 3107 ac_status=$? 3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3109 test $ac_status = 0; }; then : 3110 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3111# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3112# work properly (i.e., refer to `conftest.exe'), while it won't with 3113# `rm'. 3114for ac_file in conftest.exe conftest conftest.*; do 3115 test -f "$ac_file" || continue 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 break;; 3120 * ) break;; 3121 esac 3122done 3123else 3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3126as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3127See \`config.log' for more details" "$LINENO" 5; } 3128fi 3129rm -f conftest conftest$ac_cv_exeext 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3131$as_echo "$ac_cv_exeext" >&6; } 3132 3133rm -f conftest.$ac_ext 3134EXEEXT=$ac_cv_exeext 3135ac_exeext=$EXEEXT 3136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3137/* end confdefs.h. */ 3138#include <stdio.h> 3139int 3140main () 3141{ 3142FILE *f = fopen ("conftest.out", "w"); 3143 return ferror (f) || fclose (f) != 0; 3144 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149ac_clean_files="$ac_clean_files conftest.out" 3150# Check that the compiler produces executables we can run. If not, either 3151# the compiler is broken, or we cross compile. 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3153$as_echo_n "checking whether we are cross compiling... " >&6; } 3154if test "$cross_compiling" != yes; then 3155 { { ac_try="$ac_link" 3156case "(($ac_try" in 3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3158 *) ac_try_echo=$ac_try;; 3159esac 3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3161$as_echo "$ac_try_echo"; } >&5 3162 (eval "$ac_link") 2>&5 3163 ac_status=$? 3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3165 test $ac_status = 0; } 3166 if { ac_try='./conftest$ac_cv_exeext' 3167 { { case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3172$as_echo "$ac_try_echo"; } >&5 3173 (eval "$ac_try") 2>&5 3174 ac_status=$? 3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3176 test $ac_status = 0; }; }; then 3177 cross_compiling=no 3178 else 3179 if test "$cross_compiling" = maybe; then 3180 cross_compiling=yes 3181 else 3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3184as_fn_error $? "cannot run C compiled programs. 3185If you meant to cross compile, use \`--host'. 3186See \`config.log' for more details" "$LINENO" 5; } 3187 fi 3188 fi 3189fi 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3191$as_echo "$cross_compiling" >&6; } 3192 3193rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3194ac_clean_files=$ac_clean_files_save 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3196$as_echo_n "checking for suffix of object files... " >&6; } 3197if ${ac_cv_objext+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3201/* end confdefs.h. */ 3202 3203int 3204main () 3205{ 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211rm -f conftest.o conftest.obj 3212if { { ac_try="$ac_compile" 3213case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216esac 3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3218$as_echo "$ac_try_echo"; } >&5 3219 (eval "$ac_compile") 2>&5 3220 ac_status=$? 3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3222 test $ac_status = 0; }; then : 3223 for ac_file in conftest.o conftest.obj conftest.*; do 3224 test -f "$ac_file" || continue; 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3228 break;; 3229 esac 3230done 3231else 3232 $as_echo "$as_me: failed program was:" >&5 3233sed 's/^/| /' conftest.$ac_ext >&5 3234 3235{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3237as_fn_error $? "cannot compute suffix of object files: cannot compile 3238See \`config.log' for more details" "$LINENO" 5; } 3239fi 3240rm -f conftest.$ac_cv_objext conftest.$ac_ext 3241fi 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3243$as_echo "$ac_cv_objext" >&6; } 3244OBJEXT=$ac_cv_objext 3245ac_objext=$OBJEXT 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3247$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3248if ${ac_cv_c_compiler_gnu+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3252/* end confdefs.h. */ 3253 3254int 3255main () 3256{ 3257#ifndef __GNUC__ 3258 choke me 3259#endif 3260 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265if ac_fn_c_try_compile "$LINENO"; then : 3266 ac_compiler_gnu=yes 3267else 3268 ac_compiler_gnu=no 3269fi 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271ac_cv_c_compiler_gnu=$ac_compiler_gnu 3272 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3275$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3276if test $ac_compiler_gnu = yes; then 3277 GCC=yes 3278else 3279 GCC= 3280fi 3281ac_test_CFLAGS=${CFLAGS+set} 3282ac_save_CFLAGS=$CFLAGS 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3284$as_echo_n "checking whether $CC accepts -g... " >&6; } 3285if ${ac_cv_prog_cc_g+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 ac_save_c_werror_flag=$ac_c_werror_flag 3289 ac_c_werror_flag=yes 3290 ac_cv_prog_cc_g=no 3291 CFLAGS="-g" 3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294 3295int 3296main () 3297{ 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303if ac_fn_c_try_compile "$LINENO"; then : 3304 ac_cv_prog_cc_g=yes 3305else 3306 CFLAGS="" 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3308/* end confdefs.h. */ 3309 3310int 3311main () 3312{ 3313 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318if ac_fn_c_try_compile "$LINENO"; then : 3319 3320else 3321 ac_c_werror_flag=$ac_save_c_werror_flag 3322 CFLAGS="-g" 3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325 3326int 3327main () 3328{ 3329 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334if ac_fn_c_try_compile "$LINENO"; then : 3335 ac_cv_prog_cc_g=yes 3336fi 3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340fi 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342 ac_c_werror_flag=$ac_save_c_werror_flag 3343fi 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3345$as_echo "$ac_cv_prog_cc_g" >&6; } 3346if test "$ac_test_CFLAGS" = set; then 3347 CFLAGS=$ac_save_CFLAGS 3348elif test $ac_cv_prog_cc_g = yes; then 3349 if test "$GCC" = yes; then 3350 CFLAGS="-g -O2" 3351 else 3352 CFLAGS="-g" 3353 fi 3354else 3355 if test "$GCC" = yes; then 3356 CFLAGS="-O2" 3357 else 3358 CFLAGS= 3359 fi 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3362$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3363if ${ac_cv_prog_cc_c89+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 ac_cv_prog_cc_c89=no 3367ac_save_CC=$CC 3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370#include <stdarg.h> 3371#include <stdio.h> 3372struct stat; 3373/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3374struct buf { int x; }; 3375FILE * (*rcsopen) (struct buf *, struct stat *, int); 3376static char *e (p, i) 3377 char **p; 3378 int i; 3379{ 3380 return p[i]; 3381} 3382static char *f (char * (*g) (char **, int), char **p, ...) 3383{ 3384 char *s; 3385 va_list v; 3386 va_start (v,p); 3387 s = g (p, va_arg (v,int)); 3388 va_end (v); 3389 return s; 3390} 3391 3392/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3393 function prototypes and stuff, but not '\xHH' hex character constants. 3394 These don't provoke an error unfortunately, instead are silently treated 3395 as 'x'. The following induces an error, until -std is added to get 3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3397 array size at least. It's necessary to write '\x00'==0 to get something 3398 that's true only with -std. */ 3399int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3400 3401/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3402 inside strings and character constants. */ 3403#define FOO(x) 'x' 3404int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3405 3406int test (int i, double x); 3407struct s1 {int (*f) (int a);}; 3408struct s2 {int (*f) (double a);}; 3409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3410int argc; 3411char **argv; 3412int 3413main () 3414{ 3415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3422do 3423 CC="$ac_save_CC $ac_arg" 3424 if ac_fn_c_try_compile "$LINENO"; then : 3425 ac_cv_prog_cc_c89=$ac_arg 3426fi 3427rm -f core conftest.err conftest.$ac_objext 3428 test "x$ac_cv_prog_cc_c89" != "xno" && break 3429done 3430rm -f conftest.$ac_ext 3431CC=$ac_save_CC 3432 3433fi 3434# AC_CACHE_VAL 3435case "x$ac_cv_prog_cc_c89" in 3436 x) 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3438$as_echo "none needed" >&6; } ;; 3439 xno) 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3441$as_echo "unsupported" >&6; } ;; 3442 *) 3443 CC="$CC $ac_cv_prog_cc_c89" 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3445$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3446esac 3447if test "x$ac_cv_prog_cc_c89" != xno; then : 3448 3449fi 3450 3451ac_ext=c 3452ac_cpp='$CPP $CPPFLAGS' 3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3455ac_compiler_gnu=$ac_cv_c_compiler_gnu 3456 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3458$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3459if ${ac_cv_prog_cc_c99+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 ac_cv_prog_cc_c99=no 3463ac_save_CC=$CC 3464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466#include <stdarg.h> 3467#include <stdbool.h> 3468#include <stdlib.h> 3469#include <wchar.h> 3470#include <stdio.h> 3471 3472// Check varargs macros. These examples are taken from C99 6.10.3.5. 3473#define debug(...) fprintf (stderr, __VA_ARGS__) 3474#define showlist(...) puts (#__VA_ARGS__) 3475#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3476static void 3477test_varargs_macros (void) 3478{ 3479 int x = 1234; 3480 int y = 5678; 3481 debug ("Flag"); 3482 debug ("X = %d\n", x); 3483 showlist (The first, second, and third items.); 3484 report (x>y, "x is %d but y is %d", x, y); 3485} 3486 3487// Check long long types. 3488#define BIG64 18446744073709551615ull 3489#define BIG32 4294967295ul 3490#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3491#if !BIG_OK 3492 your preprocessor is broken; 3493#endif 3494#if BIG_OK 3495#else 3496 your preprocessor is broken; 3497#endif 3498static long long int bignum = -9223372036854775807LL; 3499static unsigned long long int ubignum = BIG64; 3500 3501struct incomplete_array 3502{ 3503 int datasize; 3504 double data[]; 3505}; 3506 3507struct named_init { 3508 int number; 3509 const wchar_t *name; 3510 double average; 3511}; 3512 3513typedef const char *ccp; 3514 3515static inline int 3516test_restrict (ccp restrict text) 3517{ 3518 // See if C++-style comments work. 3519 // Iterate through items via the restricted pointer. 3520 // Also check for declarations in for loops. 3521 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3522 continue; 3523 return 0; 3524} 3525 3526// Check varargs and va_copy. 3527static void 3528test_varargs (const char *format, ...) 3529{ 3530 va_list args; 3531 va_start (args, format); 3532 va_list args_copy; 3533 va_copy (args_copy, args); 3534 3535 const char *str; 3536 int number; 3537 float fnumber; 3538 3539 while (*format) 3540 { 3541 switch (*format++) 3542 { 3543 case 's': // string 3544 str = va_arg (args_copy, const char *); 3545 break; 3546 case 'd': // int 3547 number = va_arg (args_copy, int); 3548 break; 3549 case 'f': // float 3550 fnumber = va_arg (args_copy, double); 3551 break; 3552 default: 3553 break; 3554 } 3555 } 3556 va_end (args_copy); 3557 va_end (args); 3558} 3559 3560int 3561main () 3562{ 3563 3564 // Check bool. 3565 _Bool success = false; 3566 3567 // Check restrict. 3568 if (test_restrict ("String literal") == 0) 3569 success = true; 3570 char *restrict newvar = "Another string"; 3571 3572 // Check varargs. 3573 test_varargs ("s, d' f .", "string", 65, 34.234); 3574 test_varargs_macros (); 3575 3576 // Check flexible array members. 3577 struct incomplete_array *ia = 3578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3579 ia->datasize = 10; 3580 for (int i = 0; i < ia->datasize; ++i) 3581 ia->data[i] = i * 1.234; 3582 3583 // Check named initializers. 3584 struct named_init ni = { 3585 .number = 34, 3586 .name = L"Test wide string", 3587 .average = 543.34343, 3588 }; 3589 3590 ni.number = 58; 3591 3592 int dynamic_array[ni.number]; 3593 dynamic_array[ni.number - 1] = 543; 3594 3595 // work around unused variable warnings 3596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3597 || dynamic_array[ni.number - 1] != 543); 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3604do 3605 CC="$ac_save_CC $ac_arg" 3606 if ac_fn_c_try_compile "$LINENO"; then : 3607 ac_cv_prog_cc_c99=$ac_arg 3608fi 3609rm -f core conftest.err conftest.$ac_objext 3610 test "x$ac_cv_prog_cc_c99" != "xno" && break 3611done 3612rm -f conftest.$ac_ext 3613CC=$ac_save_CC 3614 3615fi 3616# AC_CACHE_VAL 3617case "x$ac_cv_prog_cc_c99" in 3618 x) 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3620$as_echo "none needed" >&6; } ;; 3621 xno) 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3623$as_echo "unsupported" >&6; } ;; 3624 *) 3625 CC="$CC $ac_cv_prog_cc_c99" 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3627$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3628esac 3629if test "x$ac_cv_prog_cc_c99" != xno; then : 3630 3631fi 3632 3633 ac_ext=c 3634ac_cpp='$CPP $CPPFLAGS' 3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3637ac_compiler_gnu=$ac_cv_c_compiler_gnu 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3639$as_echo_n "checking how to run the C preprocessor... " >&6; } 3640# On Suns, sometimes $CPP names a directory. 3641if test -n "$CPP" && test -d "$CPP"; then 3642 CPP= 3643fi 3644if test -z "$CPP"; then 3645 if ${ac_cv_prog_CPP+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 # Double quotes because CPP needs to be expanded 3649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3650 do 3651 ac_preproc_ok=false 3652for ac_c_preproc_warn_flag in '' yes 3653do 3654 # Use a header file that comes with gcc, so configuring glibc 3655 # with a fresh cross-compiler works. 3656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3657 # <limits.h> exists even on freestanding compilers. 3658 # On the NeXT, cc -E runs the code through the compiler's parser, 3659 # not just through cpp. "Syntax error" is here to catch this case. 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#ifdef __STDC__ 3663# include <limits.h> 3664#else 3665# include <assert.h> 3666#endif 3667 Syntax error 3668_ACEOF 3669if ac_fn_c_try_cpp "$LINENO"; then : 3670 3671else 3672 # Broken: fails on valid input. 3673continue 3674fi 3675rm -f conftest.err conftest.i conftest.$ac_ext 3676 3677 # OK, works on sane cases. Now check whether nonexistent headers 3678 # can be detected and how. 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681#include <ac_nonexistent.h> 3682_ACEOF 3683if ac_fn_c_try_cpp "$LINENO"; then : 3684 # Broken: success on invalid input. 3685continue 3686else 3687 # Passes both tests. 3688ac_preproc_ok=: 3689break 3690fi 3691rm -f conftest.err conftest.i conftest.$ac_ext 3692 3693done 3694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3695rm -f conftest.i conftest.err conftest.$ac_ext 3696if $ac_preproc_ok; then : 3697 break 3698fi 3699 3700 done 3701 ac_cv_prog_CPP=$CPP 3702 3703fi 3704 CPP=$ac_cv_prog_CPP 3705else 3706 ac_cv_prog_CPP=$CPP 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3709$as_echo "$CPP" >&6; } 3710ac_preproc_ok=false 3711for ac_c_preproc_warn_flag in '' yes 3712do 3713 # Use a header file that comes with gcc, so configuring glibc 3714 # with a fresh cross-compiler works. 3715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3716 # <limits.h> exists even on freestanding compilers. 3717 # On the NeXT, cc -E runs the code through the compiler's parser, 3718 # not just through cpp. "Syntax error" is here to catch this case. 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721#ifdef __STDC__ 3722# include <limits.h> 3723#else 3724# include <assert.h> 3725#endif 3726 Syntax error 3727_ACEOF 3728if ac_fn_c_try_cpp "$LINENO"; then : 3729 3730else 3731 # Broken: fails on valid input. 3732continue 3733fi 3734rm -f conftest.err conftest.i conftest.$ac_ext 3735 3736 # OK, works on sane cases. Now check whether nonexistent headers 3737 # can be detected and how. 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740#include <ac_nonexistent.h> 3741_ACEOF 3742if ac_fn_c_try_cpp "$LINENO"; then : 3743 # Broken: success on invalid input. 3744continue 3745else 3746 # Passes both tests. 3747ac_preproc_ok=: 3748break 3749fi 3750rm -f conftest.err conftest.i conftest.$ac_ext 3751 3752done 3753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3754rm -f conftest.i conftest.err conftest.$ac_ext 3755if $ac_preproc_ok; then : 3756 3757else 3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3760as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3761See \`config.log' for more details" "$LINENO" 5; } 3762fi 3763 3764ac_ext=c 3765ac_cpp='$CPP $CPPFLAGS' 3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3768ac_compiler_gnu=$ac_cv_c_compiler_gnu 3769 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3772$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3773if ${ac_cv_path_GREP+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$GREP"; then 3777 ac_path_GREP_found=false 3778 # Loop through the user's path and test for each of PROGNAME-LIST 3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_prog in grep ggrep; do 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3787 as_fn_executable_p "$ac_path_GREP" || continue 3788# Check for GNU ac_path_GREP and select it if it is found. 3789 # Check for GNU $ac_path_GREP 3790case `"$ac_path_GREP" --version 2>&1` in 3791*GNU*) 3792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3793*) 3794 ac_count=0 3795 $as_echo_n 0123456789 >"conftest.in" 3796 while : 3797 do 3798 cat "conftest.in" "conftest.in" >"conftest.tmp" 3799 mv "conftest.tmp" "conftest.in" 3800 cp "conftest.in" "conftest.nl" 3801 $as_echo 'GREP' >> "conftest.nl" 3802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3804 as_fn_arith $ac_count + 1 && ac_count=$as_val 3805 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3806 # Best one so far, save it but keep looking for a better one 3807 ac_cv_path_GREP="$ac_path_GREP" 3808 ac_path_GREP_max=$ac_count 3809 fi 3810 # 10*(2^10) chars as input seems more than enough 3811 test $ac_count -gt 10 && break 3812 done 3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3814esac 3815 3816 $ac_path_GREP_found && break 3 3817 done 3818 done 3819 done 3820IFS=$as_save_IFS 3821 if test -z "$ac_cv_path_GREP"; then 3822 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3823 fi 3824else 3825 ac_cv_path_GREP=$GREP 3826fi 3827 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3830$as_echo "$ac_cv_path_GREP" >&6; } 3831 GREP="$ac_cv_path_GREP" 3832 3833 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3835$as_echo_n "checking for egrep... " >&6; } 3836if ${ac_cv_path_EGREP+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3840 then ac_cv_path_EGREP="$GREP -E" 3841 else 3842 if test -z "$EGREP"; then 3843 ac_path_EGREP_found=false 3844 # Loop through the user's path and test for each of PROGNAME-LIST 3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_prog in egrep; do 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3853 as_fn_executable_p "$ac_path_EGREP" || continue 3854# Check for GNU ac_path_EGREP and select it if it is found. 3855 # Check for GNU $ac_path_EGREP 3856case `"$ac_path_EGREP" --version 2>&1` in 3857*GNU*) 3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3859*) 3860 ac_count=0 3861 $as_echo_n 0123456789 >"conftest.in" 3862 while : 3863 do 3864 cat "conftest.in" "conftest.in" >"conftest.tmp" 3865 mv "conftest.tmp" "conftest.in" 3866 cp "conftest.in" "conftest.nl" 3867 $as_echo 'EGREP' >> "conftest.nl" 3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3870 as_fn_arith $ac_count + 1 && ac_count=$as_val 3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3872 # Best one so far, save it but keep looking for a better one 3873 ac_cv_path_EGREP="$ac_path_EGREP" 3874 ac_path_EGREP_max=$ac_count 3875 fi 3876 # 10*(2^10) chars as input seems more than enough 3877 test $ac_count -gt 10 && break 3878 done 3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3880esac 3881 3882 $ac_path_EGREP_found && break 3 3883 done 3884 done 3885 done 3886IFS=$as_save_IFS 3887 if test -z "$ac_cv_path_EGREP"; then 3888 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3889 fi 3890else 3891 ac_cv_path_EGREP=$EGREP 3892fi 3893 3894 fi 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3897$as_echo "$ac_cv_path_EGREP" >&6; } 3898 EGREP="$ac_cv_path_EGREP" 3899 3900 3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904_ACEOF 3905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3906 $EGREP "" >/dev/null 2>&1; then : 3907 3908fi 3909rm -f conftest* 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3911$as_echo_n "checking for fgrep... " >&6; } 3912if ${ac_cv_path_FGREP+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3916 then ac_cv_path_FGREP="$GREP -F" 3917 else 3918 if test -z "$FGREP"; then 3919 ac_path_FGREP_found=false 3920 # Loop through the user's path and test for each of PROGNAME-LIST 3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3923do 3924 IFS=$as_save_IFS 3925 test -z "$as_dir" && as_dir=. 3926 for ac_prog in fgrep; do 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3929 as_fn_executable_p "$ac_path_FGREP" || continue 3930# Check for GNU ac_path_FGREP and select it if it is found. 3931 # Check for GNU $ac_path_FGREP 3932case `"$ac_path_FGREP" --version 2>&1` in 3933*GNU*) 3934 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3935*) 3936 ac_count=0 3937 $as_echo_n 0123456789 >"conftest.in" 3938 while : 3939 do 3940 cat "conftest.in" "conftest.in" >"conftest.tmp" 3941 mv "conftest.tmp" "conftest.in" 3942 cp "conftest.in" "conftest.nl" 3943 $as_echo 'FGREP' >> "conftest.nl" 3944 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3946 as_fn_arith $ac_count + 1 && ac_count=$as_val 3947 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3948 # Best one so far, save it but keep looking for a better one 3949 ac_cv_path_FGREP="$ac_path_FGREP" 3950 ac_path_FGREP_max=$ac_count 3951 fi 3952 # 10*(2^10) chars as input seems more than enough 3953 test $ac_count -gt 10 && break 3954 done 3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3956esac 3957 3958 $ac_path_FGREP_found && break 3 3959 done 3960 done 3961 done 3962IFS=$as_save_IFS 3963 if test -z "$ac_cv_path_FGREP"; then 3964 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3965 fi 3966else 3967 ac_cv_path_FGREP=$FGREP 3968fi 3969 3970 fi 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3973$as_echo "$ac_cv_path_FGREP" >&6; } 3974 FGREP="$ac_cv_path_FGREP" 3975 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3977$as_echo_n "checking for library containing strerror... " >&6; } 3978if ${ac_cv_search_strerror+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 ac_func_search_save_LIBS=$LIBS 3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985/* Override any GCC internal prototype to avoid an error. 3986 Use char because int might match the return type of a GCC 3987 builtin and then its argument prototype would still apply. */ 3988#ifdef __cplusplus 3989extern "C" 3990#endif 3991char strerror (); 3992int 3993main () 3994{ 3995return strerror (); 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000for ac_lib in '' cposix; do 4001 if test -z "$ac_lib"; then 4002 ac_res="none required" 4003 else 4004 ac_res=-l$ac_lib 4005 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4006 fi 4007 if ac_fn_c_try_link "$LINENO"; then : 4008 ac_cv_search_strerror=$ac_res 4009fi 4010rm -f core conftest.err conftest.$ac_objext \ 4011 conftest$ac_exeext 4012 if ${ac_cv_search_strerror+:} false; then : 4013 break 4014fi 4015done 4016if ${ac_cv_search_strerror+:} false; then : 4017 4018else 4019 ac_cv_search_strerror=no 4020fi 4021rm conftest.$ac_ext 4022LIBS=$ac_func_search_save_LIBS 4023fi 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4025$as_echo "$ac_cv_search_strerror" >&6; } 4026ac_res=$ac_cv_search_strerror 4027if test "$ac_res" != no; then : 4028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4029 4030fi 4031 for ac_prog in gawk mawk nawk awk 4032do 4033 # Extract the first word of "$ac_prog", so it can be a program name with args. 4034set dummy $ac_prog; ac_word=$2 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4036$as_echo_n "checking for $ac_word... " >&6; } 4037if ${ac_cv_prog_AWK+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 if test -n "$AWK"; then 4041 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4042else 4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_AWK="$ac_prog" 4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi 4059fi 4060AWK=$ac_cv_prog_AWK 4061if test -n "$AWK"; then 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4063$as_echo "$AWK" >&6; } 4064else 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4066$as_echo "no" >&6; } 4067fi 4068 4069 4070 test -n "$AWK" && break 4071done 4072 4073# Extract the first word of "strip", so it can be a program name with args. 4074set dummy strip; ac_word=$2 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4076$as_echo_n "checking for $ac_word... " >&6; } 4077if ${ac_cv_prog_STRIP+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 if test -n "$STRIP"; then 4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4082else 4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4090 ac_cv_prog_STRIP="strip" 4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4092 break 2 4093 fi 4094done 4095 done 4096IFS=$as_save_IFS 4097 4098 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4099fi 4100fi 4101STRIP=$ac_cv_prog_STRIP 4102if test -n "$STRIP"; then 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4104$as_echo "$STRIP" >&6; } 4105else 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4107$as_echo "no" >&6; } 4108fi 4109 4110 4111 4112 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4115$as_echo_n "checking for ANSI C header files... " >&6; } 4116if ${ac_cv_header_stdc+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121#include <stdlib.h> 4122#include <stdarg.h> 4123#include <string.h> 4124#include <float.h> 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_c_try_compile "$LINENO"; then : 4135 ac_cv_header_stdc=yes 4136else 4137 ac_cv_header_stdc=no 4138fi 4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4140 4141if test $ac_cv_header_stdc = yes; then 4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145#include <string.h> 4146 4147_ACEOF 4148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4149 $EGREP "memchr" >/dev/null 2>&1; then : 4150 4151else 4152 ac_cv_header_stdc=no 4153fi 4154rm -f conftest* 4155 4156fi 4157 4158if test $ac_cv_header_stdc = yes; then 4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162#include <stdlib.h> 4163 4164_ACEOF 4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4166 $EGREP "free" >/dev/null 2>&1; then : 4167 4168else 4169 ac_cv_header_stdc=no 4170fi 4171rm -f conftest* 4172 4173fi 4174 4175if test $ac_cv_header_stdc = yes; then 4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4177 if test "$cross_compiling" = yes; then : 4178 : 4179else 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <ctype.h> 4183#include <stdlib.h> 4184#if ((' ' & 0x0FF) == 0x020) 4185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4187#else 4188# define ISLOWER(c) \ 4189 (('a' <= (c) && (c) <= 'i') \ 4190 || ('j' <= (c) && (c) <= 'r') \ 4191 || ('s' <= (c) && (c) <= 'z')) 4192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4193#endif 4194 4195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4196int 4197main () 4198{ 4199 int i; 4200 for (i = 0; i < 256; i++) 4201 if (XOR (islower (i), ISLOWER (i)) 4202 || toupper (i) != TOUPPER (i)) 4203 return 2; 4204 return 0; 4205} 4206_ACEOF 4207if ac_fn_c_try_run "$LINENO"; then : 4208 4209else 4210 ac_cv_header_stdc=no 4211fi 4212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4213 conftest.$ac_objext conftest.beam conftest.$ac_ext 4214fi 4215 4216fi 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4219$as_echo "$ac_cv_header_stdc" >&6; } 4220if test $ac_cv_header_stdc = yes; then 4221 4222$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4223 4224fi 4225 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4227$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4228if ${ac_cv_header_sys_wait_h+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230else 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <sys/types.h> 4234#include <sys/wait.h> 4235#ifndef WEXITSTATUS 4236# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4237#endif 4238#ifndef WIFEXITED 4239# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4240#endif 4241 4242int 4243main () 4244{ 4245 int s; 4246 wait (&s); 4247 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252if ac_fn_c_try_compile "$LINENO"; then : 4253 ac_cv_header_sys_wait_h=yes 4254else 4255 ac_cv_header_sys_wait_h=no 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4260$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4261if test $ac_cv_header_sys_wait_h = yes; then 4262 4263$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4264 4265fi 4266 4267 4268if test x"$ac_cv_prog_cc_c99" != xno; then 4269 4270 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 4272$as_echo_n "checking for unsigned long long int... " >&6; } 4273if ${ac_cv_type_unsigned_long_long_int+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 ac_cv_type_unsigned_long_long_int=yes 4277 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280 4281 /* For now, do not test the preprocessor; as of 2007 there are too many 4282 implementations with broken preprocessors. Perhaps this can 4283 be revisited in 2012. In the meantime, code should not expect 4284 #if to work with literals wider than 32 bits. */ 4285 /* Test literals. */ 4286 long long int ll = 9223372036854775807ll; 4287 long long int nll = -9223372036854775807LL; 4288 unsigned long long int ull = 18446744073709551615ULL; 4289 /* Test constant expressions. */ 4290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 4291 ? 1 : -1)]; 4292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 4293 ? 1 : -1)]; 4294 int i = 63; 4295int 4296main () 4297{ 4298/* Test availability of runtime routines for shift and division. */ 4299 long long int llmax = 9223372036854775807ll; 4300 unsigned long long int ullmax = 18446744073709551615ull; 4301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 4302 | (llmax / ll) | (llmax % ll) 4303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 4304 | (ullmax / ull) | (ullmax % ull)); 4305 ; 4306 return 0; 4307} 4308 4309_ACEOF 4310if ac_fn_c_try_link "$LINENO"; then : 4311 4312else 4313 ac_cv_type_unsigned_long_long_int=no 4314fi 4315rm -f core conftest.err conftest.$ac_objext \ 4316 conftest$ac_exeext conftest.$ac_ext 4317 fi 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 4320$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 4321 if test $ac_cv_type_unsigned_long_long_int = yes; then 4322 4323$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 4324 4325 fi 4326 4327 4328 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 4330$as_echo_n "checking for long long int... " >&6; } 4331if ${ac_cv_type_long_long_int+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_cv_type_long_long_int=yes 4335 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4336 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 4337 if test $ac_cv_type_long_long_int = yes; then 4338 if test "$cross_compiling" = yes; then : 4339 : 4340else 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343#include <limits.h> 4344 #ifndef LLONG_MAX 4345 # define HALF \ 4346 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 4347 # define LLONG_MAX (HALF - 1 + HALF) 4348 #endif 4349int 4350main () 4351{ 4352long long int n = 1; 4353 int i; 4354 for (i = 0; ; i++) 4355 { 4356 long long int m = n << i; 4357 if (m >> i != n) 4358 return 1; 4359 if (LLONG_MAX / 2 < m) 4360 break; 4361 } 4362 return 0; 4363 ; 4364 return 0; 4365} 4366_ACEOF 4367if ac_fn_c_try_run "$LINENO"; then : 4368 4369else 4370 ac_cv_type_long_long_int=no 4371fi 4372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4373 conftest.$ac_objext conftest.beam conftest.$ac_ext 4374fi 4375 4376 fi 4377 fi 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 4380$as_echo "$ac_cv_type_long_long_int" >&6; } 4381 if test $ac_cv_type_long_long_int = yes; then 4382 4383$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 4384 4385 fi 4386 4387 if test "$ac_cv_type_long_long_int" = no; then 4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4390as_fn_error $? "Compiler does not support long long int 4391See \`config.log' for more details" "$LINENO" 5; } 4392 fi 4393 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 4395$as_echo_n "checking if the compiler supports trailing commas... " >&6; } 4396 trailing_commas=no 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399 4400int 4401main () 4402{ 4403 4404 enum { 4405 one, 4406 }; 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411if ac_fn_c_try_compile "$LINENO"; then : 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4413$as_echo "yes" >&6; }; trailing_commas=yes 4414else 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416$as_echo "no" >&6; } 4417fi 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4419 if test "$trailing_commas" = no; then 4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4422as_fn_error $? "Compiler does not support trailing comma in enum 4423See \`config.log' for more details" "$LINENO" 5; } 4424 fi 4425 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 4427$as_echo_n "checking if the compiler supports C++ comments... " >&6; } 4428 slash_comments=no 4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430/* end confdefs.h. */ 4431 4432int 4433main () 4434{ 4435// C++ comments? 4436 ; 4437 return 0; 4438} 4439_ACEOF 4440if ac_fn_c_try_compile "$LINENO"; then : 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4442$as_echo "yes" >&6; }; slash_comments=yes 4443else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445$as_echo "no" >&6; } 4446fi 4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4448 if test "$slash_comments" = no; then 4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4451as_fn_error $? "Compiler does not support C++ comments 4452See \`config.log' for more details" "$LINENO" 5; } 4453 fi 4454fi 4455 4456 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4458$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4459# Check whether --enable-fail_if_missing was given. 4460if test "${enable_fail_if_missing+set}" = set; then : 4461 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4462else 4463 fail_if_missing="no" 4464fi 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4467$as_echo "$fail_if_missing" >&6; } 4468 4469with_x_arg="$with_x" 4470 4471if test -z "$CFLAGS"; then 4472 CFLAGS="-O" 4473 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4474fi 4475if test "$GCC" = yes; then 4476 gccversion=`$CC -dumpversion` 4477 if test "x$gccversion" = "x"; then 4478 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4479 fi 4480 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4481 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4482 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4483 else 4484 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4485 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4486 CFLAGS="$CFLAGS -fno-strength-reduce" 4487 fi 4488 fi 4489fi 4490 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4492$as_echo_n "checking for clang version... " >&6; } 4493CLANG_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'` 4494if test x"$CLANG_VERSION_STRING" != x"" ; then 4495 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4496 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4497 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4498 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4500$as_echo "$CLANG_VERSION" >&6; } 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4502$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4503 if test "$CLANG_VERSION" -ge 500002075 ; then 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4505$as_echo "no" >&6; } 4506 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4507 else 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4509$as_echo "yes" >&6; } 4510 fi 4511else 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4513$as_echo "N/A" >&6; } 4514fi 4515 4516CROSS_COMPILING= 4517if test "$cross_compiling" = yes; then 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4519$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4520 CROSS_COMPILING=1 4521fi 4522 4523 4524test "$GCC" = yes && CPP_MM=M; 4525 4526if test -f ./toolcheck; then 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4528$as_echo "$as_me: checking for buggy tools..." >&6;} 4529 sh ./toolcheck 1>&6 4530fi 4531 4532OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4535$as_echo_n "checking for BeOS... " >&6; } 4536case `uname` in 4537 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4538 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4539$as_echo "yes" >&6; };; 4540 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541$as_echo "no" >&6; };; 4542esac 4543 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4545$as_echo_n "checking for QNX... " >&6; } 4546case `uname` in 4547 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4548 test -z "$with_x" && with_x=no 4549 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4550$as_echo "yes" >&6; };; 4551 *) QNX=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 Darwin (Mac OS X)" >&5 4556$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4557if test "`(uname) 2>/dev/null`" = Darwin; then 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4559$as_echo "yes" >&6; } 4560 MACOS_X=yes 4561 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4562 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4564$as_echo_n "checking --disable-darwin argument... " >&6; } 4565 # Check whether --enable-darwin was given. 4566if test "${enable_darwin+set}" = set; then : 4567 enableval=$enable_darwin; 4568else 4569 enable_darwin="yes" 4570fi 4571 4572 if test "$enable_darwin" = "yes"; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4576$as_echo_n "checking if Darwin files are there... " >&6; } 4577 if test -f os_macosx.m; then 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4579$as_echo "yes" >&6; } 4580 else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4582$as_echo "no, Darwin support disabled" >&6; } 4583 enable_darwin=no 4584 fi 4585 else 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4587$as_echo "yes, Darwin support excluded" >&6; } 4588 fi 4589 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4591$as_echo_n "checking --with-mac-arch argument... " >&6; } 4592 4593# Check whether --with-mac-arch was given. 4594if test "${with_mac_arch+set}" = set; then : 4595 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4596$as_echo "$MACARCH" >&6; } 4597else 4598 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4599$as_echo "defaulting to $MACARCH" >&6; } 4600fi 4601 4602 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4604$as_echo_n "checking --with-developer-dir argument... " >&6; } 4605 4606# Check whether --with-developer-dir was given. 4607if test "${with_developer_dir+set}" = set; then : 4608 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4609$as_echo "$DEVELOPER_DIR" >&6; } 4610else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4612$as_echo "not present" >&6; } 4613fi 4614 4615 4616 if test "x$DEVELOPER_DIR" = "x"; then 4617 # Extract the first word of "xcode-select", so it can be a program name with args. 4618set dummy xcode-select; ac_word=$2 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620$as_echo_n "checking for $ac_word... " >&6; } 4621if ${ac_cv_path_XCODE_SELECT+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 case $XCODE_SELECT in 4625 [\\/]* | ?:[\\/]*) 4626 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4627 ;; 4628 *) 4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH 4631do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_exec_ext in '' $ac_executable_extensions; do 4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4636 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4638 break 2 4639 fi 4640done 4641 done 4642IFS=$as_save_IFS 4643 4644 ;; 4645esac 4646fi 4647XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4648if test -n "$XCODE_SELECT"; then 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4650$as_echo "$XCODE_SELECT" >&6; } 4651else 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4653$as_echo "no" >&6; } 4654fi 4655 4656 4657 if test "x$XCODE_SELECT" != "x"; then 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4659$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4660 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4662$as_echo "$DEVELOPER_DIR" >&6; } 4663 else 4664 DEVELOPER_DIR=/Developer 4665 fi 4666 fi 4667 4668 if test "x$MACARCH" = "xboth"; then 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4670$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4671 save_cppflags="$CPPFLAGS" 4672 save_cflags="$CFLAGS" 4673 save_ldflags="$LDFLAGS" 4674 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677 4678int 4679main () 4680{ 4681 4682 ; 4683 return 0; 4684} 4685_ACEOF 4686if ac_fn_c_try_link "$LINENO"; then : 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4688$as_echo "found" >&6; } 4689else 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4691$as_echo "not found" >&6; } 4692 CFLAGS="$save_cflags" 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4694$as_echo_n "checking if Intel architecture is supported... " >&6; } 4695 CPPFLAGS="$CPPFLAGS -arch i386" 4696 LDFLAGS="$save_ldflags -arch i386" 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699 4700int 4701main () 4702{ 4703 4704 ; 4705 return 0; 4706} 4707_ACEOF 4708if ac_fn_c_try_link "$LINENO"; then : 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4710$as_echo "yes" >&6; }; MACARCH="intel" 4711else 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4713$as_echo "no" >&6; } 4714 MACARCH="ppc" 4715 CPPFLAGS="$save_cppflags -arch ppc" 4716 LDFLAGS="$save_ldflags -arch ppc" 4717fi 4718rm -f core conftest.err conftest.$ac_objext \ 4719 conftest$ac_exeext conftest.$ac_ext 4720fi 4721rm -f core conftest.err conftest.$ac_objext \ 4722 conftest$ac_exeext conftest.$ac_ext 4723 elif test "x$MACARCH" = "xintel"; then 4724 CPPFLAGS="$CPPFLAGS -arch intel" 4725 LDFLAGS="$LDFLAGS -arch intel" 4726 elif test "x$MACARCH" = "xppc"; then 4727 CPPFLAGS="$CPPFLAGS -arch ppc" 4728 LDFLAGS="$LDFLAGS -arch ppc" 4729 fi 4730 4731 if test "$enable_darwin" = "yes"; then 4732 MACOS_X_DARWIN=yes 4733 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4734 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4735 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4736 4737 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4738for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4739 inttypes.h stdint.h unistd.h 4740do : 4741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4742ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4743" 4744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4745 cat >>confdefs.h <<_ACEOF 4746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4747_ACEOF 4748 4749fi 4750 4751done 4752 4753 4754ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4755if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4756 CARBON=yes 4757fi 4758 4759 4760 if test "x$CARBON" = "xyes"; then 4761 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 4762 with_x=no 4763 fi 4764 fi 4765 fi 4766 4767 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4768 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4769 fi 4770 4771else 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4773$as_echo "no" >&6; } 4774fi 4775 4776for ac_header in AvailabilityMacros.h 4777do : 4778 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4779if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4780 cat >>confdefs.h <<_ACEOF 4781#define HAVE_AVAILABILITYMACROS_H 1 4782_ACEOF 4783 4784fi 4785 4786done 4787 4788 4789 4790 4791 4792if test "$cross_compiling" = no; then 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4794$as_echo_n "checking --with-local-dir argument... " >&6; } 4795 have_local_include='' 4796 have_local_lib='' 4797 4798# Check whether --with-local-dir was given. 4799if test "${with_local_dir+set}" = set; then : 4800 withval=$with_local_dir; 4801 local_dir="$withval" 4802 case "$withval" in 4803 */*) ;; 4804 no) 4805 # avoid adding local dir to LDFLAGS and CPPFLAGS 4806 have_local_include=yes 4807 have_local_lib=yes 4808 ;; 4809 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4810 esac 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4812$as_echo "$local_dir" >&6; } 4813 4814else 4815 4816 local_dir=/usr/local 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4818$as_echo "Defaulting to $local_dir" >&6; } 4819 4820fi 4821 4822 if test "$GCC" = yes -a "$local_dir" != no; then 4823 echo 'void f(){}' > conftest.c 4824 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4825 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4826 rm -f conftest.c conftest.o 4827 fi 4828 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4829 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4830 if test "$tt" = "$LDFLAGS"; then 4831 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4832 fi 4833 fi 4834 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4835 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4836 if test "$tt" = "$CPPFLAGS"; then 4837 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4838 fi 4839 fi 4840fi 4841 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4843$as_echo_n "checking --with-vim-name argument... " >&6; } 4844 4845# Check whether --with-vim-name was given. 4846if test "${with_vim_name+set}" = set; then : 4847 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4848$as_echo "$VIMNAME" >&6; } 4849else 4850 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4851$as_echo "Defaulting to $VIMNAME" >&6; } 4852fi 4853 4854 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4856$as_echo_n "checking --with-ex-name argument... " >&6; } 4857 4858# Check whether --with-ex-name was given. 4859if test "${with_ex_name+set}" = set; then : 4860 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4861$as_echo "$EXNAME" >&6; } 4862else 4863 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4864$as_echo "Defaulting to ex" >&6; } 4865fi 4866 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4869$as_echo_n "checking --with-view-name argument... " >&6; } 4870 4871# Check whether --with-view-name was given. 4872if test "${with_view_name+set}" = set; then : 4873 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4874$as_echo "$VIEWNAME" >&6; } 4875else 4876 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4877$as_echo "Defaulting to view" >&6; } 4878fi 4879 4880 4881 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4883$as_echo_n "checking --with-global-runtime argument... " >&6; } 4884 4885# Check whether --with-global-runtime was given. 4886if test "${with_global_runtime+set}" = set; then : 4887 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4888$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4889#define RUNTIME_GLOBAL "$withval" 4890_ACEOF 4891 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894$as_echo "no" >&6; } 4895fi 4896 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4899$as_echo_n "checking --with-modified-by argument... " >&6; } 4900 4901# Check whether --with-modified-by was given. 4902if test "${with_modified_by+set}" = set; then : 4903 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4904$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4905#define MODIFIED_BY "$withval" 4906_ACEOF 4907 4908else 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4910$as_echo "no" >&6; } 4911fi 4912 4913 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4915$as_echo_n "checking if character set is EBCDIC... " >&6; } 4916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917/* end confdefs.h. */ 4918 4919int 4920main () 4921{ 4922 /* TryCompile function for CharSet. 4923 Treat any failure as ASCII for compatibility with existing art. 4924 Use compile-time rather than run-time tests for cross-compiler 4925 tolerance. */ 4926#if '0'!=240 4927make an error "Character set is not EBCDIC" 4928#endif 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933if ac_fn_c_try_compile "$LINENO"; then : 4934 # TryCompile action if true 4935cf_cv_ebcdic=yes 4936else 4937 # TryCompile action if false 4938cf_cv_ebcdic=no 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941# end of TryCompile ]) 4942# end of CacheVal CvEbcdic 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4944$as_echo "$cf_cv_ebcdic" >&6; } 4945case "$cf_cv_ebcdic" in #(vi 4946 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4947 4948 line_break='"\\n"' 4949 ;; 4950 *) line_break='"\\012"';; 4951esac 4952 4953 4954if test "$cf_cv_ebcdic" = "yes"; then 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4956$as_echo_n "checking for z/OS Unix... " >&6; } 4957case `uname` in 4958 OS/390) zOSUnix="yes"; 4959 if test "$CC" = "cc"; then 4960 ccm="$_CC_CCMODE" 4961 ccn="CC" 4962 else 4963 if test "$CC" = "c89"; then 4964 ccm="$_CC_C89MODE" 4965 ccn="C89" 4966 else 4967 ccm=1 4968 fi 4969 fi 4970 if test "$ccm" != "1"; then 4971 echo "" 4972 echo "------------------------------------------" 4973 echo " On z/OS Unix, the environment variable" 4974 echo " _CC_${ccn}MODE must be set to \"1\"!" 4975 echo " Do:" 4976 echo " export _CC_${ccn}MODE=1" 4977 echo " and then call configure again." 4978 echo "------------------------------------------" 4979 exit 1 4980 fi 4981 # Set CFLAGS for configure process. 4982 # This will be reset later for config.mk. 4983 # Use haltonmsg to force error for missing H files. 4984 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4985 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4987$as_echo "yes" >&6; } 4988 ;; 4989 *) zOSUnix="no"; 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4991$as_echo "no" >&6; } 4992 ;; 4993esac 4994fi 4995 4996if test "$zOSUnix" = "yes"; then 4997 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4998else 4999 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 5000fi 5001 5002 5003 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 5005$as_echo_n "checking --disable-smack argument... " >&6; } 5006# Check whether --enable-smack was given. 5007if test "${enable_smack+set}" = set; then : 5008 enableval=$enable_smack; 5009else 5010 enable_smack="yes" 5011fi 5012 5013if test "$enable_smack" = "yes"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5015$as_echo "no" >&6; } 5016 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 5017if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 5018 true 5019else 5020 enable_smack="no" 5021fi 5022 5023 5024else 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5026$as_echo "yes" >&6; } 5027fi 5028if test "$enable_smack" = "yes"; then 5029 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 5030if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 5031 true 5032else 5033 enable_smack="no" 5034fi 5035 5036 5037fi 5038if test "$enable_smack" = "yes"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 5040$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043#include <linux/xattr.h> 5044_ACEOF 5045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5046 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5048$as_echo "yes" >&6; } 5049else 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5051$as_echo "no" >&6; }; enable_smack="no" 5052fi 5053rm -f conftest* 5054 5055fi 5056if test "$enable_smack" = "yes"; then 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 5058$as_echo_n "checking for setxattr in -lattr... " >&6; } 5059if ${ac_cv_lib_attr_setxattr+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 ac_check_lib_save_LIBS=$LIBS 5063LIBS="-lattr $LIBS" 5064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066 5067/* Override any GCC internal prototype to avoid an error. 5068 Use char because int might match the return type of a GCC 5069 builtin and then its argument prototype would still apply. */ 5070#ifdef __cplusplus 5071extern "C" 5072#endif 5073char setxattr (); 5074int 5075main () 5076{ 5077return setxattr (); 5078 ; 5079 return 0; 5080} 5081_ACEOF 5082if ac_fn_c_try_link "$LINENO"; then : 5083 ac_cv_lib_attr_setxattr=yes 5084else 5085 ac_cv_lib_attr_setxattr=no 5086fi 5087rm -f core conftest.err conftest.$ac_objext \ 5088 conftest$ac_exeext conftest.$ac_ext 5089LIBS=$ac_check_lib_save_LIBS 5090fi 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 5092$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 5093if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 5094 LIBS="$LIBS -lattr" 5095 found_smack="yes" 5096 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 5097 5098fi 5099 5100fi 5101 5102if test "x$found_smack" = "x"; then 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 5104$as_echo_n "checking --disable-selinux argument... " >&6; } 5105 # Check whether --enable-selinux was given. 5106if test "${enable_selinux+set}" = set; then : 5107 enableval=$enable_selinux; 5108else 5109 enable_selinux="yes" 5110fi 5111 5112 if test "$enable_selinux" = "yes"; then 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5114$as_echo "no" >&6; } 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 5116$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 5117if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 ac_check_lib_save_LIBS=$LIBS 5121LIBS="-lselinux $LIBS" 5122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124 5125/* Override any GCC internal prototype to avoid an error. 5126 Use char because int might match the return type of a GCC 5127 builtin and then its argument prototype would still apply. */ 5128#ifdef __cplusplus 5129extern "C" 5130#endif 5131char is_selinux_enabled (); 5132int 5133main () 5134{ 5135return is_selinux_enabled (); 5136 ; 5137 return 0; 5138} 5139_ACEOF 5140if ac_fn_c_try_link "$LINENO"; then : 5141 ac_cv_lib_selinux_is_selinux_enabled=yes 5142else 5143 ac_cv_lib_selinux_is_selinux_enabled=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext \ 5146 conftest$ac_exeext conftest.$ac_ext 5147LIBS=$ac_check_lib_save_LIBS 5148fi 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 5150$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 5151if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 5152 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 5153if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 5154 LIBS="$LIBS -lselinux" 5155 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5156 5157fi 5158 5159 5160fi 5161 5162 else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5164$as_echo "yes" >&6; } 5165 fi 5166fi 5167 5168 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 5170$as_echo_n "checking --with-features argument... " >&6; } 5171 5172# Check whether --with-features was given. 5173if test "${with_features+set}" = set; then : 5174 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 5175$as_echo "$features" >&6; } 5176else 5177 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 5178$as_echo "Defaulting to huge" >&6; } 5179fi 5180 5181 5182dovimdiff="" 5183dogvimdiff="" 5184case "$features" in 5185 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 5186 ;; 5187 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 5188 ;; 5189 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 5190 dovimdiff="installvimdiff"; 5191 dogvimdiff="installgvimdiff" ;; 5192 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 5193 dovimdiff="installvimdiff"; 5194 dogvimdiff="installgvimdiff" ;; 5195 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 5196 dovimdiff="installvimdiff"; 5197 dogvimdiff="installgvimdiff" ;; 5198 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 5199$as_echo "Sorry, $features is not supported" >&6; } ;; 5200esac 5201 5202 5203 5204 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 5206$as_echo_n "checking --with-compiledby argument... " >&6; } 5207 5208# Check whether --with-compiledby was given. 5209if test "${with_compiledby+set}" = set; then : 5210 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5211$as_echo "$withval" >&6; } 5212else 5213 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5214$as_echo "no" >&6; } 5215fi 5216 5217 5218 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 5220$as_echo_n "checking --disable-xsmp argument... " >&6; } 5221# Check whether --enable-xsmp was given. 5222if test "${enable_xsmp+set}" = set; then : 5223 enableval=$enable_xsmp; 5224else 5225 enable_xsmp="yes" 5226fi 5227 5228 5229if test "$enable_xsmp" = "yes"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5231$as_echo "no" >&6; } 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 5233$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 5234 # Check whether --enable-xsmp-interact was given. 5235if test "${enable_xsmp_interact+set}" = set; then : 5236 enableval=$enable_xsmp_interact; 5237else 5238 enable_xsmp_interact="yes" 5239fi 5240 5241 if test "$enable_xsmp_interact" = "yes"; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5243$as_echo "no" >&6; } 5244 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 5245 5246 else 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5248$as_echo "yes" >&6; } 5249 fi 5250else 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5252$as_echo "yes" >&6; } 5253fi 5254 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 5256$as_echo_n "checking --enable-luainterp argument... " >&6; } 5257# Check whether --enable-luainterp was given. 5258if test "${enable_luainterp+set}" = set; then : 5259 enableval=$enable_luainterp; 5260else 5261 enable_luainterp="no" 5262fi 5263 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 5265$as_echo "$enable_luainterp" >&6; } 5266 5267if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 5268 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5269 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 5270 fi 5271 5272 5273 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 5275$as_echo_n "checking --with-lua-prefix argument... " >&6; } 5276 5277# Check whether --with-lua_prefix was given. 5278if test "${with_lua_prefix+set}" = set; then : 5279 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 5280$as_echo "$with_lua_prefix" >&6; } 5281else 5282 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283$as_echo "no" >&6; } 5284fi 5285 5286 5287 if test "X$with_lua_prefix" != "X"; then 5288 vi_cv_path_lua_pfx="$with_lua_prefix" 5289 else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 5291$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 5292 if test "X$LUA_PREFIX" != "X"; then 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 5294$as_echo "\"$LUA_PREFIX\"" >&6; } 5295 vi_cv_path_lua_pfx="$LUA_PREFIX" 5296 else 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 5298$as_echo "not set, default to /usr" >&6; } 5299 vi_cv_path_lua_pfx="/usr" 5300 fi 5301 fi 5302 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 5304$as_echo_n "checking --with-luajit... " >&6; } 5305 5306# Check whether --with-luajit was given. 5307if test "${with_luajit+set}" = set; then : 5308 withval=$with_luajit; vi_cv_with_luajit="$withval" 5309else 5310 vi_cv_with_luajit="no" 5311fi 5312 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 5314$as_echo "$vi_cv_with_luajit" >&6; } 5315 5316 LUA_INC= 5317 if test "X$vi_cv_path_lua_pfx" != "X"; then 5318 if test "x$vi_cv_with_luajit" != "xno"; then 5319 # Extract the first word of "luajit", so it can be a program name with args. 5320set dummy luajit; ac_word=$2 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322$as_echo_n "checking for $ac_word... " >&6; } 5323if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 case $vi_cv_path_luajit in 5327 [\\/]* | ?:[\\/]*) 5328 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 5329 ;; 5330 *) 5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5338 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342done 5343 done 5344IFS=$as_save_IFS 5345 5346 ;; 5347esac 5348fi 5349vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 5350if test -n "$vi_cv_path_luajit"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 5352$as_echo "$vi_cv_path_luajit" >&6; } 5353else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5355$as_echo "no" >&6; } 5356fi 5357 5358 5359 if test "X$vi_cv_path_luajit" != "X"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 5361$as_echo_n "checking LuaJIT version... " >&6; } 5362if ${vi_cv_version_luajit+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 5366fi 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5368$as_echo "$vi_cv_version_luajit" >&6; } 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5370$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5371if ${vi_cv_version_lua_luajit+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5377$as_echo "$vi_cv_version_lua_luajit" >&6; } 5378 vi_cv_path_lua="$vi_cv_path_luajit" 5379 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5380 fi 5381 else 5382 # Extract the first word of "lua", so it can be a program name with args. 5383set dummy lua; ac_word=$2 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5385$as_echo_n "checking for $ac_word... " >&6; } 5386if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5387 $as_echo_n "(cached) " >&6 5388else 5389 case $vi_cv_path_plain_lua in 5390 [\\/]* | ?:[\\/]*) 5391 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5392 ;; 5393 *) 5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5395for as_dir in $PATH 5396do 5397 IFS=$as_save_IFS 5398 test -z "$as_dir" && as_dir=. 5399 for ac_exec_ext in '' $ac_executable_extensions; do 5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5401 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5403 break 2 5404 fi 5405done 5406 done 5407IFS=$as_save_IFS 5408 5409 ;; 5410esac 5411fi 5412vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5413if test -n "$vi_cv_path_plain_lua"; then 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5415$as_echo "$vi_cv_path_plain_lua" >&6; } 5416else 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5418$as_echo "no" >&6; } 5419fi 5420 5421 5422 if test "X$vi_cv_path_plain_lua" != "X"; then 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5424$as_echo_n "checking Lua version... " >&6; } 5425if ${vi_cv_version_plain_lua+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5431$as_echo "$vi_cv_version_plain_lua" >&6; } 5432 fi 5433 vi_cv_path_lua="$vi_cv_path_plain_lua" 5434 vi_cv_version_lua="$vi_cv_version_plain_lua" 5435 fi 5436 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5437 { $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 5438$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5439 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5441$as_echo "yes" >&6; } 5442 LUA_INC=/luajit-$vi_cv_version_luajit 5443 fi 5444 fi 5445 if test "X$LUA_INC" = "X"; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5447$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5448 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5450$as_echo "yes" >&6; } 5451 else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454 { $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 5455$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5456 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5458$as_echo "yes" >&6; } 5459 LUA_INC=/lua$vi_cv_version_lua 5460 else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5462$as_echo "no" >&6; } 5463 vi_cv_path_lua_pfx= 5464 fi 5465 fi 5466 fi 5467 fi 5468 5469 if test "X$vi_cv_path_lua_pfx" != "X"; then 5470 if test "x$vi_cv_with_luajit" != "xno"; then 5471 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5472 if test "X$multiarch" != "X"; then 5473 lib_multiarch="lib/${multiarch}" 5474 else 5475 lib_multiarch="lib" 5476 fi 5477 if test "X$vi_cv_version_lua" = "X"; then 5478 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5479 else 5480 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5481 fi 5482 else 5483 if test "X$LUA_INC" != "X"; then 5484 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5485 else 5486 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5487 fi 5488 fi 5489 if test "$enable_luainterp" = "dynamic"; then 5490 lua_ok="yes" 5491 else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5493$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5494 libs_save=$LIBS 5495 LIBS="$LIBS $LUA_LIBS" 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498 5499int 5500main () 5501{ 5502 5503 ; 5504 return 0; 5505} 5506_ACEOF 5507if ac_fn_c_try_link "$LINENO"; then : 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5509$as_echo "yes" >&6; }; lua_ok="yes" 5510else 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5512$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5513fi 5514rm -f core conftest.err conftest.$ac_objext \ 5515 conftest$ac_exeext conftest.$ac_ext 5516 LIBS=$libs_save 5517 fi 5518 if test "x$lua_ok" = "xyes"; then 5519 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5520 LUA_SRC="if_lua.c" 5521 LUA_OBJ="objects/if_lua.o" 5522 LUA_PRO="if_lua.pro" 5523 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5524 5525 fi 5526 if test "$enable_luainterp" = "dynamic"; then 5527 if test "x$vi_cv_with_luajit" != "xno"; then 5528 luajit="jit" 5529 fi 5530 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5531 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5532 else 5533 if test "x$MACOS_X" = "xyes"; then 5534 ext="dylib" 5535 indexes="" 5536 else 5537 ext="so" 5538 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5539 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5540 if test "X$multiarch" != "X"; then 5541 lib_multiarch="lib/${multiarch}" 5542 fi 5543 fi 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5545$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5546 for subdir in "${lib_multiarch}" lib64 lib; do 5547 if test -z "$subdir"; then 5548 continue 5549 fi 5550 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5551 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5552 for i in $indexes ""; do 5553 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5554 sover2="$i" 5555 break 3 5556 fi 5557 done 5558 done 5559 sover="" 5560 done 5561 if test "X$sover" = "X"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5563$as_echo "no" >&6; } 5564 lua_ok="no" 5565 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5566 else 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5568$as_echo "yes" >&6; } 5569 lua_ok="yes" 5570 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5571 fi 5572 fi 5573 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5574 5575 LUA_LIBS="" 5576 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5577 fi 5578 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5579 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5580 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5581 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5582 fi 5583 fi 5584 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5585 as_fn_error $? "could not configure lua" "$LINENO" 5 5586 fi 5587 5588 5589 5590 5591 5592fi 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5596$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5597# Check whether --enable-mzschemeinterp was given. 5598if test "${enable_mzschemeinterp+set}" = set; then : 5599 enableval=$enable_mzschemeinterp; 5600else 5601 enable_mzschemeinterp="no" 5602fi 5603 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5605$as_echo "$enable_mzschemeinterp" >&6; } 5606 5607if test "$enable_mzschemeinterp" = "yes"; then 5608 5609 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5611$as_echo_n "checking --with-plthome argument... " >&6; } 5612 5613# Check whether --with-plthome was given. 5614if test "${with_plthome+set}" = set; then : 5615 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5616$as_echo "$with_plthome" >&6; } 5617else 5618 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5619$as_echo "\"no\"" >&6; } 5620fi 5621 5622 5623 if test "X$with_plthome" != "X"; then 5624 vi_cv_path_mzscheme_pfx="$with_plthome" 5625 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5626 else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5628$as_echo_n "checking PLTHOME environment var... " >&6; } 5629 if test "X$PLTHOME" != "X"; then 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5631$as_echo "\"$PLTHOME\"" >&6; } 5632 vi_cv_path_mzscheme_pfx="$PLTHOME" 5633 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5634 else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5636$as_echo "not set" >&6; } 5637 # Extract the first word of "mzscheme", so it can be a program name with args. 5638set dummy mzscheme; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 case $vi_cv_path_mzscheme in 5645 [\\/]* | ?:[\\/]*) 5646 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5647 ;; 5648 *) 5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5650for as_dir in $PATH 5651do 5652 IFS=$as_save_IFS 5653 test -z "$as_dir" && as_dir=. 5654 for ac_exec_ext in '' $ac_executable_extensions; do 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5656 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5658 break 2 5659 fi 5660done 5661 done 5662IFS=$as_save_IFS 5663 5664 ;; 5665esac 5666fi 5667vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5668if test -n "$vi_cv_path_mzscheme"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5670$as_echo "$vi_cv_path_mzscheme" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 5677 5678 if test "X$vi_cv_path_mzscheme" != "X"; then 5679 lsout=`ls -l $vi_cv_path_mzscheme` 5680 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5681 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5682 fi 5683 fi 5684 5685 if test "X$vi_cv_path_mzscheme" != "X"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5687$as_echo_n "checking MzScheme install prefix... " >&6; } 5688if ${vi_cv_path_mzscheme_pfx+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 echo "(display (simplify-path \ 5692 (build-path (call-with-values \ 5693 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5694 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5695 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5696 sed -e 's+/$++'` 5697fi 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5699$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5700 rm -f mzdirs.scm 5701 fi 5702 fi 5703 fi 5704 5705 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5707$as_echo_n "checking for racket include directory... " >&6; } 5708 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5709 if test "X$SCHEME_INC" != "X"; then 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5711$as_echo "${SCHEME_INC}" >&6; } 5712 else 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5714$as_echo "not found" >&6; } 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5716$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5717 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5718 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5720$as_echo "yes" >&6; } 5721 else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723$as_echo "no" >&6; } 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5725$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5726 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5728$as_echo "yes" >&6; } 5729 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5730 else 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5732$as_echo "no" >&6; } 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5734$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5735 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5737$as_echo "yes" >&6; } 5738 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5739 else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741$as_echo "no" >&6; } 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5743$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5744 if test -f /usr/include/plt/scheme.h; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5746$as_echo "yes" >&6; } 5747 SCHEME_INC=/usr/include/plt 5748 else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5750$as_echo "no" >&6; } 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5752$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5753 if test -f /usr/include/racket/scheme.h; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5755$as_echo "yes" >&6; } 5756 SCHEME_INC=/usr/include/racket 5757 else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5759$as_echo "no" >&6; } 5760 vi_cv_path_mzscheme_pfx= 5761 fi 5762 fi 5763 fi 5764 fi 5765 fi 5766 fi 5767 fi 5768 5769 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5770 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5772$as_echo_n "checking for racket lib directory... " >&6; } 5773 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5774 if test "X$SCHEME_LIB" != "X"; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5776$as_echo "${SCHEME_LIB}" >&6; } 5777 else 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5779$as_echo "not found" >&6; } 5780 fi 5781 5782 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5783 if test "X$path" != "X"; then 5784 if test "x$MACOS_X" = "xyes"; then 5785 MZSCHEME_LIBS="-framework Racket" 5786 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5787 elif test -f "${path}/libmzscheme3m.a"; then 5788 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5789 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5790 elif test -f "${path}/libracket3m.a"; then 5791 MZSCHEME_LIBS="${path}/libracket3m.a" 5792 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5793 elif test -f "${path}/libracket.a"; then 5794 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5795 elif test -f "${path}/libmzscheme.a"; then 5796 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5797 else 5798 if test -f "${path}/libmzscheme3m.so"; then 5799 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5800 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5801 elif test -f "${path}/libracket3m.so"; then 5802 MZSCHEME_LIBS="-L${path} -lracket3m" 5803 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5804 elif test -f "${path}/libracket.so"; then 5805 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5806 else 5807 if test "$path" != "$SCHEME_LIB"; then 5808 continue 5809 fi 5810 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5811 fi 5812 if test "$GCC" = yes; then 5813 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5814 elif test "`(uname) 2>/dev/null`" = SunOS && 5815 uname -r | grep '^5' >/dev/null; then 5816 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5817 fi 5818 fi 5819 fi 5820 if test "X$MZSCHEME_LIBS" != "X"; then 5821 break 5822 fi 5823 done 5824 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5826$as_echo_n "checking if racket requires -pthread... " >&6; } 5827 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5829$as_echo "yes" >&6; } 5830 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5831 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5832 else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5834$as_echo "no" >&6; } 5835 fi 5836 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5838$as_echo_n "checking for racket config directory... " >&6; } 5839 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5840 if test "X$SCHEME_CONFIGDIR" != "X"; then 5841 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5843$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5844 else 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5846$as_echo "not found" >&6; } 5847 fi 5848 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5850$as_echo_n "checking for racket collects directory... " >&6; } 5851 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))))'` 5852 if test "X$SCHEME_COLLECTS" = "X"; then 5853 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5854 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5855 else 5856 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5857 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5858 else 5859 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5860 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5861 else 5862 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5863 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5864 fi 5865 fi 5866 fi 5867 fi 5868 fi 5869 if test "X$SCHEME_COLLECTS" != "X" ; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5871$as_echo "${SCHEME_COLLECTS}" >&6; } 5872 else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5874$as_echo "not found" >&6; } 5875 fi 5876 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5878$as_echo_n "checking for mzscheme_base.c... " >&6; } 5879 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5880 MZSCHEME_EXTRA="mzscheme_base.c" 5881 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5882 MZSCHEME_MOD="++lib scheme/base" 5883 else 5884 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5885 MZSCHEME_EXTRA="mzscheme_base.c" 5886 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5887 MZSCHEME_MOD="++lib scheme/base" 5888 else 5889 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5890 MZSCHEME_EXTRA="mzscheme_base.c" 5891 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5892 MZSCHEME_MOD="" 5893 fi 5894 fi 5895 fi 5896 if test "X$MZSCHEME_EXTRA" != "X" ; then 5897 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5899$as_echo "needed" >&6; } 5900 else 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5902$as_echo "not needed" >&6; } 5903 fi 5904 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5906$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5907if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909else 5910 ac_check_lib_save_LIBS=$LIBS 5911LIBS="-lffi $LIBS" 5912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914 5915/* Override any GCC internal prototype to avoid an error. 5916 Use char because int might match the return type of a GCC 5917 builtin and then its argument prototype would still apply. */ 5918#ifdef __cplusplus 5919extern "C" 5920#endif 5921char ffi_type_void (); 5922int 5923main () 5924{ 5925return ffi_type_void (); 5926 ; 5927 return 0; 5928} 5929_ACEOF 5930if ac_fn_c_try_link "$LINENO"; then : 5931 ac_cv_lib_ffi_ffi_type_void=yes 5932else 5933 ac_cv_lib_ffi_ffi_type_void=no 5934fi 5935rm -f core conftest.err conftest.$ac_objext \ 5936 conftest$ac_exeext conftest.$ac_ext 5937LIBS=$ac_check_lib_save_LIBS 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5940$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5941if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5942 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5943fi 5944 5945 5946 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5947 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5948 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5950$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5951 cflags_save=$CFLAGS 5952 libs_save=$LIBS 5953 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5954 LIBS="$LIBS $MZSCHEME_LIBS" 5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5956/* end confdefs.h. */ 5957 5958int 5959main () 5960{ 5961 5962 ; 5963 return 0; 5964} 5965_ACEOF 5966if ac_fn_c_try_link "$LINENO"; then : 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5968$as_echo "yes" >&6; }; mzs_ok=yes 5969else 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5971$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5972fi 5973rm -f core conftest.err conftest.$ac_objext \ 5974 conftest$ac_exeext conftest.$ac_ext 5975 CFLAGS=$cflags_save 5976 LIBS=$libs_save 5977 if test $mzs_ok = yes; then 5978 MZSCHEME_SRC="if_mzsch.c" 5979 MZSCHEME_OBJ="objects/if_mzsch.o" 5980 MZSCHEME_PRO="if_mzsch.pro" 5981 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5982 5983 else 5984 MZSCHEME_CFLAGS= 5985 MZSCHEME_LIBS= 5986 MZSCHEME_EXTRA= 5987 MZSCHEME_MZC= 5988 fi 5989 fi 5990 5991 5992 5993 5994 5995 5996 5997fi 5998 5999 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 6001$as_echo_n "checking --enable-perlinterp argument... " >&6; } 6002# Check whether --enable-perlinterp was given. 6003if test "${enable_perlinterp+set}" = set; then : 6004 enableval=$enable_perlinterp; 6005else 6006 enable_perlinterp="no" 6007fi 6008 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 6010$as_echo "$enable_perlinterp" >&6; } 6011if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 6012 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6013 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 6014 fi 6015 6016 # Extract the first word of "perl", so it can be a program name with args. 6017set dummy perl; ac_word=$2 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6019$as_echo_n "checking for $ac_word... " >&6; } 6020if ${ac_cv_path_vi_cv_path_perl+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 case $vi_cv_path_perl in 6024 [\\/]* | ?:[\\/]*) 6025 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 6026 ;; 6027 *) 6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6029for as_dir in $PATH 6030do 6031 IFS=$as_save_IFS 6032 test -z "$as_dir" && as_dir=. 6033 for ac_exec_ext in '' $ac_executable_extensions; do 6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6035 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6037 break 2 6038 fi 6039done 6040 done 6041IFS=$as_save_IFS 6042 6043 ;; 6044esac 6045fi 6046vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 6047if test -n "$vi_cv_path_perl"; then 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 6049$as_echo "$vi_cv_path_perl" >&6; } 6050else 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6052$as_echo "no" >&6; } 6053fi 6054 6055 6056 if test "X$vi_cv_path_perl" != "X"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 6058$as_echo_n "checking Perl version... " >&6; } 6059 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 6060 eval `$vi_cv_path_perl -V:usethreads` 6061 eval `$vi_cv_path_perl -V:libperl` 6062 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 6063 badthreads=no 6064 else 6065 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 6066 eval `$vi_cv_path_perl -V:use5005threads` 6067 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 6068 badthreads=no 6069 else 6070 badthreads=yes 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 6072$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 6073 fi 6074 else 6075 badthreads=yes 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 6077$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 6078 fi 6079 fi 6080 if test $badthreads = no; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6082$as_echo "OK" >&6; } 6083 eval `$vi_cv_path_perl -V:shrpenv` 6084 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 6085 shrpenv="" 6086 fi 6087 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 6088 6089 vi_cv_perl_extutils=unknown_perl_extutils_path 6090 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 6091 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 6092 if test -f "$xsubpp_path"; then 6093 vi_cv_perl_xsubpp="$xsubpp_path" 6094 fi 6095 done 6096 6097 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 6098 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 6099 -e 's/-fdebug-prefix-map[^ ]*//g' \ 6100 -e 's/-pipe //' \ 6101 -e 's/-W[^ ]*//g' \ 6102 -e 's/-D_FORTIFY_SOURCE=.//g'` 6103 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 6104 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 6105 -e 's/-bE:perl.exp//' -e 's/-lc //'` 6106 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 6107 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 6108 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 6110$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 6111 cflags_save=$CFLAGS 6112 libs_save=$LIBS 6113 ldflags_save=$LDFLAGS 6114 CFLAGS="$CFLAGS $perlcppflags" 6115 LIBS="$LIBS $perllibs" 6116 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 6117 LDFLAGS="$perlldflags $LDFLAGS" 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120 6121int 6122main () 6123{ 6124 6125 ; 6126 return 0; 6127} 6128_ACEOF 6129if ac_fn_c_try_link "$LINENO"; then : 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6131$as_echo "yes" >&6; }; perl_ok=yes 6132else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 6134$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext \ 6137 conftest$ac_exeext conftest.$ac_ext 6138 CFLAGS=$cflags_save 6139 LIBS=$libs_save 6140 LDFLAGS=$ldflags_save 6141 if test $perl_ok = yes; then 6142 if test "X$perlcppflags" != "X"; then 6143 PERL_CFLAGS=$perlcppflags 6144 fi 6145 if test "X$perlldflags" != "X"; then 6146 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 6147 LDFLAGS="$perlldflags $LDFLAGS" 6148 fi 6149 fi 6150 PERL_LIBS=$perllibs 6151 PERL_SRC="auto/if_perl.c if_perlsfio.c" 6152 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 6153 PERL_PRO="if_perl.pro if_perlsfio.pro" 6154 $as_echo "#define FEAT_PERL 1" >>confdefs.h 6155 6156 fi 6157 fi 6158 else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 6160$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 6161 fi 6162 fi 6163 6164 if test "x$MACOS_X" = "xyes"; then 6165 dir=/System/Library/Perl 6166 darwindir=$dir/darwin 6167 if test -d $darwindir; then 6168 PERL=/usr/bin/perl 6169 else 6170 dir=/System/Library/Perl/5.8.1 6171 darwindir=$dir/darwin-thread-multi-2level 6172 if test -d $darwindir; then 6173 PERL=/usr/bin/perl 6174 fi 6175 fi 6176 if test -n "$PERL"; then 6177 PERL_DIR="$dir" 6178 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 6179 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 6180 PERL_LIBS="-L$darwindir/CORE -lperl" 6181 fi 6182 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6183 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6184 fi 6185 if test "$enable_perlinterp" = "dynamic"; then 6186 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 6187 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 6188 6189 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 6190 fi 6191 fi 6192 6193 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 6194 as_fn_error $? "could not configure perl" "$LINENO" 5 6195 fi 6196fi 6197 6198 6199 6200 6201 6202 6203 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 6205$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 6206# Check whether --enable-pythoninterp was given. 6207if test "${enable_pythoninterp+set}" = set; then : 6208 enableval=$enable_pythoninterp; 6209else 6210 enable_pythoninterp="no" 6211fi 6212 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 6214$as_echo "$enable_pythoninterp" >&6; } 6215if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 6216 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6217 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6218 fi 6219 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 6221$as_echo_n "checking --with-python-command argument... " >&6; } 6222 6223 6224# Check whether --with-python-command was given. 6225if test "${with_python_command+set}" = set; then : 6226 withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6227$as_echo "$vi_cv_path_python" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234 if test "X$vi_cv_path_python" = "X"; then 6235 for ac_prog in python2 python 6236do 6237 # Extract the first word of "$ac_prog", so it can be a program name with args. 6238set dummy $ac_prog; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_path_vi_cv_path_python+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 case $vi_cv_path_python in 6245 [\\/]* | ?:[\\/]*) 6246 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 6247 ;; 6248 *) 6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6250for as_dir in $PATH 6251do 6252 IFS=$as_save_IFS 6253 test -z "$as_dir" && as_dir=. 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6256 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260done 6261 done 6262IFS=$as_save_IFS 6263 6264 ;; 6265esac 6266fi 6267vi_cv_path_python=$ac_cv_path_vi_cv_path_python 6268if test -n "$vi_cv_path_python"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6270$as_echo "$vi_cv_path_python" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 6277 test -n "$vi_cv_path_python" && break 6278done 6279 6280 fi 6281 if test "X$vi_cv_path_python" != "X"; then 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6284$as_echo_n "checking Python version... " >&6; } 6285if ${vi_cv_var_python_version+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 vi_cv_var_python_version=` 6289 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 6290 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 6293$as_echo "$vi_cv_var_python_version" >&6; } 6294 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 6296$as_echo_n "checking Python is 2.3 or better... " >&6; } 6297 if ${vi_cv_path_python} -c \ 6298 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 6299 then 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6301$as_echo "yep" >&6; } 6302 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6304$as_echo_n "checking Python's install prefix... " >&6; } 6305if ${vi_cv_path_python_pfx+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 vi_cv_path_python_pfx=` 6309 ${vi_cv_path_python} -c \ 6310 "import sys; print sys.prefix"` 6311fi 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 6313$as_echo "$vi_cv_path_python_pfx" >&6; } 6314 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6316$as_echo_n "checking Python's execution prefix... " >&6; } 6317if ${vi_cv_path_python_epfx+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 vi_cv_path_python_epfx=` 6321 ${vi_cv_path_python} -c \ 6322 "import sys; print sys.exec_prefix"` 6323fi 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 6325$as_echo "$vi_cv_path_python_epfx" >&6; } 6326 6327 6328 if ${vi_cv_path_pythonpath+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 vi_cv_path_pythonpath=` 6332 unset PYTHONPATH; 6333 ${vi_cv_path_python} -c \ 6334 "import sys, string; print string.join(sys.path,':')"` 6335fi 6336 6337 6338 6339 6340# Check whether --with-python-config-dir was given. 6341if test "${with_python_config_dir+set}" = set; then : 6342 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 6343fi 6344 6345 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6347$as_echo_n "checking Python's configuration directory... " >&6; } 6348if ${vi_cv_path_python_conf+:} false; then : 6349 $as_echo_n "(cached) " >&6 6350else 6351 6352 vi_cv_path_python_conf= 6353 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 6354 if test -d "$d" && test -f "$d/config.c"; then 6355 vi_cv_path_python_conf="$d" 6356 else 6357 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 6358 for subdir in lib64 lib share; do 6359 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 6360 if test -d "$d" && test -f "$d/config.c"; then 6361 vi_cv_path_python_conf="$d" 6362 fi 6363 done 6364 done 6365 fi 6366 6367fi 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 6369$as_echo "$vi_cv_path_python_conf" >&6; } 6370 6371 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 6372 6373 if test "X$PYTHON_CONFDIR" = "X"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6375$as_echo "can't find it!" >&6; } 6376 else 6377 6378 if ${vi_cv_path_python_plibs+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 6382 pwd=`pwd` 6383 tmp_mkf="$pwd/config-PyMake$$" 6384 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6385__: 6386 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6387 @echo "python_LIBS='$(LIBS)'" 6388 @echo "python_SYSLIBS='$(SYSLIBS)'" 6389 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6390 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6391 @echo "python_INSTSONAME='$(INSTSONAME)'" 6392 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6393 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6394 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6395eof 6396 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6397 rm -f -- "${tmp_mkf}" 6398 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6399 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6400 vi_cv_path_python_plibs="-framework Python" 6401 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6402 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6403 fi 6404 else 6405 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6406 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6407 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6408 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6409 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6410 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6411 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6412 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6413 fi 6414 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6415 fi 6416 fi 6417 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6418 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6419 fi 6420 6421fi 6422 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6424$as_echo_n "checking Python's dll name... " >&6; } 6425if ${vi_cv_dll_name_python+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 6429 if test "X$python_DLLLIBRARY" != "X"; then 6430 vi_cv_dll_name_python="$python_DLLLIBRARY" 6431 else 6432 vi_cv_dll_name_python="$python_INSTSONAME" 6433 fi 6434 6435fi 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6437$as_echo "$vi_cv_dll_name_python" >&6; } 6438 6439 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6440 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6441 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 6442 else 6443 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}" 6444 fi 6445 if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then 6446 PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6447 6448 fi 6449 PYTHON_SRC="if_python.c" 6450 PYTHON_OBJ="objects/if_python.o" 6451 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6453$as_echo_n "checking if -pthread should be used... " >&6; } 6454 threadsafe_flag= 6455 thread_lib= 6456 if test "`(uname) 2>/dev/null`" != Darwin; then 6457 test "$GCC" = yes && threadsafe_flag="-pthread" 6458 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6459 threadsafe_flag="-D_THREAD_SAFE" 6460 thread_lib="-pthread" 6461 fi 6462 if test "`(uname) 2>/dev/null`" = SunOS; then 6463 threadsafe_flag="-pthreads" 6464 fi 6465 fi 6466 libs_save_old=$LIBS 6467 if test -n "$threadsafe_flag"; then 6468 cflags_save=$CFLAGS 6469 CFLAGS="$CFLAGS $threadsafe_flag" 6470 LIBS="$LIBS $thread_lib" 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473 6474int 6475main () 6476{ 6477 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_c_try_link "$LINENO"; then : 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6484$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6487$as_echo "no" >&6; }; LIBS=$libs_save_old 6488 6489fi 6490rm -f core conftest.err conftest.$ac_objext \ 6491 conftest$ac_exeext conftest.$ac_ext 6492 CFLAGS=$cflags_save 6493 else 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6495$as_echo "no" >&6; } 6496 fi 6497 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6499$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6500 cflags_save=$CFLAGS 6501 libs_save=$LIBS 6502 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6503 LIBS="$LIBS $PYTHON_LIBS" 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506 6507int 6508main () 6509{ 6510 6511 ; 6512 return 0; 6513} 6514_ACEOF 6515if ac_fn_c_try_link "$LINENO"; then : 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6517$as_echo "yes" >&6; }; python_ok=yes 6518else 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6520$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6521fi 6522rm -f core conftest.err conftest.$ac_objext \ 6523 conftest$ac_exeext conftest.$ac_ext 6524 CFLAGS=$cflags_save 6525 LIBS=$libs_save 6526 if test $python_ok = yes; then 6527 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6528 6529 else 6530 LIBS=$libs_save_old 6531 PYTHON_SRC= 6532 PYTHON_OBJ= 6533 PYTHON_LIBS= 6534 PYTHON_CFLAGS= 6535 fi 6536 fi 6537 else 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6539$as_echo "too old" >&6; } 6540 fi 6541 fi 6542 6543 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6544 as_fn_error $? "could not configure python" "$LINENO" 5 6545 fi 6546fi 6547 6548 6549 6550 6551 6552 6553 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6555$as_echo_n "checking --enable-python3interp argument... " >&6; } 6556# Check whether --enable-python3interp was given. 6557if test "${enable_python3interp+set}" = set; then : 6558 enableval=$enable_python3interp; 6559else 6560 enable_python3interp="no" 6561fi 6562 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6564$as_echo "$enable_python3interp" >&6; } 6565if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6566 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6567 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6568 fi 6569 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 6571$as_echo_n "checking --with-python3-command argument... " >&6; } 6572 6573 6574# Check whether --with-python3-command was given. 6575if test "${with_python3_command+set}" = set; then : 6576 withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6577$as_echo "$vi_cv_path_python3" >&6; } 6578else 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6580$as_echo "no" >&6; } 6581fi 6582 6583 6584 if test "X$vi_cv_path_python3" = "X"; then 6585 for ac_prog in python3 python 6586do 6587 # Extract the first word of "$ac_prog", so it can be a program name with args. 6588set dummy $ac_prog; ac_word=$2 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6590$as_echo_n "checking for $ac_word... " >&6; } 6591if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6592 $as_echo_n "(cached) " >&6 6593else 6594 case $vi_cv_path_python3 in 6595 [\\/]* | ?:[\\/]*) 6596 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6597 ;; 6598 *) 6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6600for as_dir in $PATH 6601do 6602 IFS=$as_save_IFS 6603 test -z "$as_dir" && as_dir=. 6604 for ac_exec_ext in '' $ac_executable_extensions; do 6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6606 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6608 break 2 6609 fi 6610done 6611 done 6612IFS=$as_save_IFS 6613 6614 ;; 6615esac 6616fi 6617vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6618if test -n "$vi_cv_path_python3"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6620$as_echo "$vi_cv_path_python3" >&6; } 6621else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6623$as_echo "no" >&6; } 6624fi 6625 6626 6627 test -n "$vi_cv_path_python3" && break 6628done 6629 6630 fi 6631 if test "X$vi_cv_path_python3" != "X"; then 6632 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6634$as_echo_n "checking Python version... " >&6; } 6635if ${vi_cv_var_python3_version+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 vi_cv_var_python3_version=` 6639 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6640 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6643$as_echo "$vi_cv_var_python3_version" >&6; } 6644 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6646$as_echo_n "checking Python is 3.0 or better... " >&6; } 6647 if ${vi_cv_path_python3} -c \ 6648 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6649 then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6651$as_echo "yep" >&6; } 6652 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6654$as_echo_n "checking Python's abiflags... " >&6; } 6655if ${vi_cv_var_python3_abiflags+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 6659 vi_cv_var_python3_abiflags= 6660 if ${vi_cv_path_python3} -c \ 6661 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6662 then 6663 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6664 "import sys; print(sys.abiflags)"` 6665 fi 6666fi 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6668$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6669 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6671$as_echo_n "checking Python's install prefix... " >&6; } 6672if ${vi_cv_path_python3_pfx+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 vi_cv_path_python3_pfx=` 6676 ${vi_cv_path_python3} -c \ 6677 "import sys; print(sys.prefix)"` 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6680$as_echo "$vi_cv_path_python3_pfx" >&6; } 6681 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6683$as_echo_n "checking Python's execution prefix... " >&6; } 6684if ${vi_cv_path_python3_epfx+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 vi_cv_path_python3_epfx=` 6688 ${vi_cv_path_python3} -c \ 6689 "import sys; print(sys.exec_prefix)"` 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6692$as_echo "$vi_cv_path_python3_epfx" >&6; } 6693 6694 6695 if ${vi_cv_path_python3path+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 vi_cv_path_python3path=` 6699 unset PYTHONPATH; 6700 ${vi_cv_path_python3} -c \ 6701 "import sys, string; print(':'.join(sys.path))"` 6702fi 6703 6704 6705 6706 6707# Check whether --with-python3-config-dir was given. 6708if test "${with_python3_config_dir+set}" = set; then : 6709 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 6710fi 6711 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6714$as_echo_n "checking Python's configuration directory... " >&6; } 6715if ${vi_cv_path_python3_conf+:} false; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 6719 vi_cv_path_python3_conf= 6720 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6721 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6722 if test -d "$d" && test -f "$d/config.c"; then 6723 vi_cv_path_python3_conf="$d" 6724 else 6725 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6726 for subdir in lib64 lib share; do 6727 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6728 if test -d "$d" && test -f "$d/config.c"; then 6729 vi_cv_path_python3_conf="$d" 6730 fi 6731 done 6732 done 6733 fi 6734 6735fi 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6737$as_echo "$vi_cv_path_python3_conf" >&6; } 6738 6739 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6740 6741 if test "X$PYTHON3_CONFDIR" = "X"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6743$as_echo "can't find it!" >&6; } 6744 else 6745 6746 if ${vi_cv_path_python3_plibs+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 6750 pwd=`pwd` 6751 tmp_mkf="$pwd/config-PyMake$$" 6752 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6753__: 6754 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6755 @echo "python3_LIBS='$(LIBS)'" 6756 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6757 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6758 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6759eof 6760 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6761 rm -f -- "${tmp_mkf}" 6762 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6763 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6764 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6765 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6766 6767fi 6768 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6770$as_echo_n "checking Python3's dll name... " >&6; } 6771if ${vi_cv_dll_name_python3+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 6775 if test "X$python3_DLLLIBRARY" != "X"; then 6776 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6777 else 6778 vi_cv_dll_name_python3="$python3_INSTSONAME" 6779 fi 6780 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6783$as_echo "$vi_cv_dll_name_python3" >&6; } 6784 6785 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6786 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6787 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6788 else 6789 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}" 6790 fi 6791 if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then 6792 PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6793 fi 6794 PYTHON3_SRC="if_python3.c" 6795 PYTHON3_OBJ="objects/if_python3.o" 6796 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6798$as_echo_n "checking if -pthread should be used... " >&6; } 6799 threadsafe_flag= 6800 thread_lib= 6801 if test "`(uname) 2>/dev/null`" != Darwin; then 6802 test "$GCC" = yes && threadsafe_flag="-pthread" 6803 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6804 threadsafe_flag="-D_THREAD_SAFE" 6805 thread_lib="-pthread" 6806 fi 6807 if test "`(uname) 2>/dev/null`" = SunOS; then 6808 threadsafe_flag="-pthreads" 6809 fi 6810 fi 6811 libs_save_old=$LIBS 6812 if test -n "$threadsafe_flag"; then 6813 cflags_save=$CFLAGS 6814 CFLAGS="$CFLAGS $threadsafe_flag" 6815 LIBS="$LIBS $thread_lib" 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6817/* end confdefs.h. */ 6818 6819int 6820main () 6821{ 6822 6823 ; 6824 return 0; 6825} 6826_ACEOF 6827if ac_fn_c_try_link "$LINENO"; then : 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6829$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; }; LIBS=$libs_save_old 6833 6834fi 6835rm -f core conftest.err conftest.$ac_objext \ 6836 conftest$ac_exeext conftest.$ac_ext 6837 CFLAGS=$cflags_save 6838 else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841 fi 6842 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6844$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6845 cflags_save=$CFLAGS 6846 libs_save=$LIBS 6847 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6848 LIBS="$LIBS $PYTHON3_LIBS" 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850/* end confdefs.h. */ 6851 6852int 6853main () 6854{ 6855 6856 ; 6857 return 0; 6858} 6859_ACEOF 6860if ac_fn_c_try_link "$LINENO"; then : 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6862$as_echo "yes" >&6; }; python3_ok=yes 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6865$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6866fi 6867rm -f core conftest.err conftest.$ac_objext \ 6868 conftest$ac_exeext conftest.$ac_ext 6869 CFLAGS=$cflags_save 6870 LIBS=$libs_save 6871 if test "$python3_ok" = yes; then 6872 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6873 6874 else 6875 LIBS=$libs_save_old 6876 PYTHON3_SRC= 6877 PYTHON3_OBJ= 6878 PYTHON3_LIBS= 6879 PYTHON3_CFLAGS= 6880 fi 6881 fi 6882 else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6884$as_echo "too old" >&6; } 6885 fi 6886 fi 6887 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6888 as_fn_error $? "could not configure python3" "$LINENO" 5 6889 fi 6890fi 6891 6892 6893 6894 6895 6896 6897if test "$python_ok" = yes && test "$python3_ok" = yes; then 6898 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6899 6900 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6901 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6903$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6904 cflags_save=$CFLAGS 6905 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6906 libs_save=$LIBS 6907 LIBS="-ldl $LIBS" 6908 if test "$cross_compiling" = yes; then : 6909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6911as_fn_error $? "cannot run test program while cross compiling 6912See \`config.log' for more details" "$LINENO" 5; } 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916 6917 #include <dlfcn.h> 6918 /* If this program fails, then RTLD_GLOBAL is needed. 6919 * RTLD_GLOBAL will be used and then it is not possible to 6920 * have both python versions enabled in the same vim instance. 6921 * Only the first python version used will be switched on. 6922 */ 6923 6924 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6925 { 6926 int needed = 0; 6927 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6928 if (pylib != 0) 6929 { 6930 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6931 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6932 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6933 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6934 (*pfx)(prefix); 6935 (*init)(); 6936 needed = (*simple)("import termios") == -1; 6937 (*final)(); 6938 dlclose(pylib); 6939 } 6940 return !needed; 6941 } 6942 6943 int main(int argc, char** argv) 6944 { 6945 int not_needed = 0; 6946 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6947 not_needed = 1; 6948 return !not_needed; 6949 } 6950_ACEOF 6951if ac_fn_c_try_run "$LINENO"; then : 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6953$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6954 6955else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957$as_echo "no" >&6; } 6958fi 6959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6960 conftest.$ac_objext conftest.beam conftest.$ac_ext 6961fi 6962 6963 6964 CFLAGS=$cflags_save 6965 LIBS=$libs_save 6966 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6968$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6969 cflags_save=$CFLAGS 6970 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6971 libs_save=$LIBS 6972 LIBS="-ldl $LIBS" 6973 if test "$cross_compiling" = yes; then : 6974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6976as_fn_error $? "cannot run test program while cross compiling 6977See \`config.log' for more details" "$LINENO" 5; } 6978else 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6980/* end confdefs.h. */ 6981 6982 #include <dlfcn.h> 6983 #include <wchar.h> 6984 /* If this program fails, then RTLD_GLOBAL is needed. 6985 * RTLD_GLOBAL will be used and then it is not possible to 6986 * have both python versions enabled in the same vim instance. 6987 * Only the first python version used will be switched on. 6988 */ 6989 6990 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6991 { 6992 int needed = 0; 6993 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6994 if (pylib != 0) 6995 { 6996 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6997 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6998 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6999 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 7000 (*pfx)(prefix); 7001 (*init)(); 7002 needed = (*simple)("import termios") == -1; 7003 (*final)(); 7004 dlclose(pylib); 7005 } 7006 return !needed; 7007 } 7008 7009 int main(int argc, char** argv) 7010 { 7011 int not_needed = 0; 7012 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 7013 not_needed = 1; 7014 return !not_needed; 7015 } 7016_ACEOF 7017if ac_fn_c_try_run "$LINENO"; then : 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7019$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 7020 7021else 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7023$as_echo "no" >&6; } 7024fi 7025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7026 conftest.$ac_objext conftest.beam conftest.$ac_ext 7027fi 7028 7029 7030 CFLAGS=$cflags_save 7031 LIBS=$libs_save 7032 7033 PYTHON_SRC="if_python.c" 7034 PYTHON_OBJ="objects/if_python.o" 7035 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7036 PYTHON_LIBS= 7037 PYTHON3_SRC="if_python3.c" 7038 PYTHON3_OBJ="objects/if_python3.o" 7039 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7040 PYTHON3_LIBS= 7041elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 7042 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 7043 7044 PYTHON_SRC="if_python.c" 7045 PYTHON_OBJ="objects/if_python.o" 7046 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7047 PYTHON_LIBS= 7048elif test "$python_ok" = yes; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 7050$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 7051 cflags_save=$CFLAGS 7052 libs_save=$LIBS 7053 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 7054 LIBS="$LIBS $PYTHON_LIBS" 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057 7058int 7059main () 7060{ 7061 7062 ; 7063 return 0; 7064} 7065_ACEOF 7066if ac_fn_c_try_link "$LINENO"; then : 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7068$as_echo "yes" >&6; }; fpie_ok=yes 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; }; fpie_ok=no 7072fi 7073rm -f core conftest.err conftest.$ac_objext \ 7074 conftest$ac_exeext conftest.$ac_ext 7075 CFLAGS=$cflags_save 7076 LIBS=$libs_save 7077 if test $fpie_ok = yes; then 7078 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 7079 fi 7080elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 7081 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 7082 7083 PYTHON3_SRC="if_python3.c" 7084 PYTHON3_OBJ="objects/if_python3.o" 7085 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7086 PYTHON3_LIBS= 7087elif test "$python3_ok" = yes; then 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 7089$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 7090 cflags_save=$CFLAGS 7091 libs_save=$LIBS 7092 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 7093 LIBS="$LIBS $PYTHON3_LIBS" 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096 7097int 7098main () 7099{ 7100 7101 ; 7102 return 0; 7103} 7104_ACEOF 7105if ac_fn_c_try_link "$LINENO"; then : 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7107$as_echo "yes" >&6; }; fpie_ok=yes 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; }; fpie_ok=no 7111fi 7112rm -f core conftest.err conftest.$ac_objext \ 7113 conftest$ac_exeext conftest.$ac_ext 7114 CFLAGS=$cflags_save 7115 LIBS=$libs_save 7116 if test $fpie_ok = yes; then 7117 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 7118 fi 7119fi 7120 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 7122$as_echo_n "checking --enable-tclinterp argument... " >&6; } 7123# Check whether --enable-tclinterp was given. 7124if test "${enable_tclinterp+set}" = set; then : 7125 enableval=$enable_tclinterp; 7126else 7127 enable_tclinterp="no" 7128fi 7129 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 7131$as_echo "$enable_tclinterp" >&6; } 7132 7133if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 7134 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 7136$as_echo_n "checking --with-tclsh argument... " >&6; } 7137 7138# Check whether --with-tclsh was given. 7139if test "${with_tclsh+set}" = set; then : 7140 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 7141$as_echo "$tclsh_name" >&6; } 7142else 7143 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7144$as_echo "no" >&6; } 7145fi 7146 7147 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7148set dummy $tclsh_name; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 case $vi_cv_path_tcl in 7155 [\\/]* | ?:[\\/]*) 7156 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7157 ;; 7158 *) 7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7166 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174 ;; 7175esac 7176fi 7177vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7178if test -n "$vi_cv_path_tcl"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7180$as_echo "$vi_cv_path_tcl" >&6; } 7181else 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7183$as_echo "no" >&6; } 7184fi 7185 7186 7187 7188 7189 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 7190 tclsh_name="tclsh8.4" 7191 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7192set dummy $tclsh_name; ac_word=$2 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7194$as_echo_n "checking for $ac_word... " >&6; } 7195if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 case $vi_cv_path_tcl in 7199 [\\/]* | ?:[\\/]*) 7200 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7201 ;; 7202 *) 7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7210 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214done 7215 done 7216IFS=$as_save_IFS 7217 7218 ;; 7219esac 7220fi 7221vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7222if test -n "$vi_cv_path_tcl"; then 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7224$as_echo "$vi_cv_path_tcl" >&6; } 7225else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227$as_echo "no" >&6; } 7228fi 7229 7230 7231 fi 7232 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 7233 tclsh_name="tclsh8.2" 7234 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7235set dummy $tclsh_name; ac_word=$2 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7237$as_echo_n "checking for $ac_word... " >&6; } 7238if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 case $vi_cv_path_tcl in 7242 [\\/]* | ?:[\\/]*) 7243 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7244 ;; 7245 *) 7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7247for as_dir in $PATH 7248do 7249 IFS=$as_save_IFS 7250 test -z "$as_dir" && as_dir=. 7251 for ac_exec_ext in '' $ac_executable_extensions; do 7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7253 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7255 break 2 7256 fi 7257done 7258 done 7259IFS=$as_save_IFS 7260 7261 ;; 7262esac 7263fi 7264vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7265if test -n "$vi_cv_path_tcl"; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7267$as_echo "$vi_cv_path_tcl" >&6; } 7268else 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7270$as_echo "no" >&6; } 7271fi 7272 7273 7274 fi 7275 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 7276 tclsh_name="tclsh8.0" 7277 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7278set dummy $tclsh_name; ac_word=$2 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7280$as_echo_n "checking for $ac_word... " >&6; } 7281if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 case $vi_cv_path_tcl in 7285 [\\/]* | ?:[\\/]*) 7286 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7287 ;; 7288 *) 7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7296 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301 done 7302IFS=$as_save_IFS 7303 7304 ;; 7305esac 7306fi 7307vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7308if test -n "$vi_cv_path_tcl"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7310$as_echo "$vi_cv_path_tcl" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 7317 fi 7318 if test "X$vi_cv_path_tcl" = "X"; then 7319 tclsh_name="tclsh" 7320 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7321set dummy $tclsh_name; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 case $vi_cv_path_tcl in 7328 [\\/]* | ?:[\\/]*) 7329 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7330 ;; 7331 *) 7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7333for as_dir in $PATH 7334do 7335 IFS=$as_save_IFS 7336 test -z "$as_dir" && as_dir=. 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7339 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7341 break 2 7342 fi 7343done 7344 done 7345IFS=$as_save_IFS 7346 7347 ;; 7348esac 7349fi 7350vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7351if test -n "$vi_cv_path_tcl"; then 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7353$as_echo "$vi_cv_path_tcl" >&6; } 7354else 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356$as_echo "no" >&6; } 7357fi 7358 7359 7360 fi 7361 if test "X$vi_cv_path_tcl" != "X"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 7363$as_echo_n "checking Tcl version... " >&6; } 7364 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 7365 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 7367$as_echo "$tclver - OK" >&6; }; 7368 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 -` 7369 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 7370 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 7372$as_echo_n "checking for location of Tcl include... " >&6; } 7373 if test "x$MACOS_X" != "xyes"; then 7374 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 7375 else 7376 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 7377 fi 7378 TCL_INC= 7379 for try in $tclinc; do 7380 if test -f "$try/tcl.h"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 7382$as_echo "$try/tcl.h" >&6; } 7383 TCL_INC=$try 7384 break 7385 fi 7386 done 7387 if test -z "$TCL_INC"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7389$as_echo "<not found>" >&6; } 7390 SKIP_TCL=YES 7391 fi 7392 if test -z "$SKIP_TCL"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 7394$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 7395 if test "x$MACOS_X" != "xyes"; then 7396 tclcnf=`echo $tclinc | sed s/include/lib/g` 7397 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7398 else 7399 tclcnf="/System/Library/Frameworks/Tcl.framework" 7400 fi 7401 for try in $tclcnf; do 7402 if test -f "$try/tclConfig.sh"; then 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7404$as_echo "$try/tclConfig.sh" >&6; } 7405 . "$try/tclConfig.sh" 7406 if test "$enable_tclinterp" = "dynamic"; then 7407 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7408 else 7409 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7410 fi 7411 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'` 7412 break 7413 fi 7414 done 7415 if test -z "$TCL_LIBS"; then 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7417$as_echo "<not found>" >&6; } 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7419$as_echo_n "checking for Tcl library by myself... " >&6; } 7420 tcllib=`echo $tclinc | sed s/include/lib/g` 7421 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7422 for ext in .so .a ; do 7423 for ver in "" $tclver ; do 7424 for try in $tcllib ; do 7425 trylib=tcl$ver$ext 7426 if test -f "$try/lib$trylib" ; then 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7428$as_echo "$try/lib$trylib" >&6; } 7429 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7430 if test "`(uname) 2>/dev/null`" = SunOS && 7431 uname -r | grep '^5' >/dev/null; then 7432 TCL_LIBS="$TCL_LIBS -R $try" 7433 fi 7434 break 3 7435 fi 7436 done 7437 done 7438 done 7439 if test -z "$TCL_LIBS"; then 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7441$as_echo "<not found>" >&6; } 7442 SKIP_TCL=YES 7443 fi 7444 fi 7445 if test -z "$SKIP_TCL"; then 7446 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7447 7448 TCL_SRC=if_tcl.c 7449 TCL_OBJ=objects/if_tcl.o 7450 TCL_PRO=if_tcl.pro 7451 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7452 fi 7453 fi 7454 else 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7456$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7457 fi 7458 fi 7459 if test "$enable_tclinterp" = "dynamic"; then 7460 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7461 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7462 7463 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7464 fi 7465 fi 7466 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7467 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7468 fi 7469fi 7470 7471 7472 7473 7474 7475 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7477$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7478# Check whether --enable-rubyinterp was given. 7479if test "${enable_rubyinterp+set}" = set; then : 7480 enableval=$enable_rubyinterp; 7481else 7482 enable_rubyinterp="no" 7483fi 7484 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7486$as_echo "$enable_rubyinterp" >&6; } 7487if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7488 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7489 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7490 fi 7491 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7493$as_echo_n "checking --with-ruby-command argument... " >&6; } 7494 7495 7496# Check whether --with-ruby-command was given. 7497if test "${with_ruby_command+set}" = set; then : 7498 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7499$as_echo "$RUBY_CMD" >&6; } 7500else 7501 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7502$as_echo "defaulting to $RUBY_CMD" >&6; } 7503fi 7504 7505 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7506set dummy $RUBY_CMD; ac_word=$2 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508$as_echo_n "checking for $ac_word... " >&6; } 7509if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 case $vi_cv_path_ruby in 7513 [\\/]* | ?:[\\/]*) 7514 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7515 ;; 7516 *) 7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7524 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532 ;; 7533esac 7534fi 7535vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7536if test -n "$vi_cv_path_ruby"; then 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7538$as_echo "$vi_cv_path_ruby" >&6; } 7539else 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7541$as_echo "no" >&6; } 7542fi 7543 7544 7545 if test "X$vi_cv_path_ruby" != "X"; then 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7547$as_echo_n "checking Ruby version... " >&6; } 7548 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7550$as_echo "OK" >&6; } 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7552$as_echo_n "checking Ruby rbconfig... " >&6; } 7553 ruby_rbconfig="RbConfig" 7554 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7555 ruby_rbconfig="Config" 7556 fi 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7558$as_echo "$ruby_rbconfig" >&6; } 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7560$as_echo_n "checking Ruby header files... " >&6; } 7561 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7562 if test "X$rubyhdrdir" != "X"; then 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7564$as_echo "$rubyhdrdir" >&6; } 7565 RUBY_CFLAGS="-I$rubyhdrdir" 7566 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7567 if test -d "$rubyarchdir"; then 7568 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7569 fi 7570 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7571 if test "X$rubyversion" = "X"; then 7572 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7573 fi 7574 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7575 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7576 if test "X$rubylibs" != "X"; then 7577 RUBY_LIBS="$rubylibs" 7578 fi 7579 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7580 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7581 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7582 if test -f "$rubylibdir/$librubya"; then 7583 librubyarg="$librubyarg" 7584 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7585 elif test "$librubyarg" = "libruby.a"; then 7586 librubyarg="-lruby" 7587 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7588 fi 7589 7590 if test "X$librubyarg" != "X"; then 7591 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7592 fi 7593 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7594 if test "X$rubyldflags" != "X"; then 7595 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7596 if test "X$rubyldflags" != "X"; then 7597 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7598 LDFLAGS="$rubyldflags $LDFLAGS" 7599 fi 7600 fi 7601 fi 7602 RUBY_SRC="if_ruby.c" 7603 RUBY_OBJ="objects/if_ruby.o" 7604 RUBY_PRO="if_ruby.pro" 7605 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7606 7607 if test "$enable_rubyinterp" = "dynamic"; then 7608 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7609 if test -z "$libruby_soname"; then 7610 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7611 fi 7612 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7613 7614 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7615 RUBY_LIBS= 7616 fi 7617 else 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7619$as_echo "not found; disabling Ruby" >&6; } 7620 fi 7621 else 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7623$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7624 fi 7625 fi 7626 7627 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7628 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7629 fi 7630fi 7631 7632 7633 7634 7635 7636 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7638$as_echo_n "checking --enable-cscope argument... " >&6; } 7639# Check whether --enable-cscope was given. 7640if test "${enable_cscope+set}" = set; then : 7641 enableval=$enable_cscope; 7642else 7643 enable_cscope="no" 7644fi 7645 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7647$as_echo "$enable_cscope" >&6; } 7648if test "$enable_cscope" = "yes"; then 7649 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7650 7651fi 7652 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7654$as_echo_n "checking --enable-workshop argument... " >&6; } 7655# Check whether --enable-workshop was given. 7656if test "${enable_workshop+set}" = set; then : 7657 enableval=$enable_workshop; 7658else 7659 enable_workshop="no" 7660fi 7661 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7663$as_echo "$enable_workshop" >&6; } 7664if test "$enable_workshop" = "yes"; then 7665 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7666 7667 WORKSHOP_SRC="workshop.c integration.c" 7668 7669 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7670 7671 if test "${enable_gui-xxx}" = xxx; then 7672 enable_gui=motif 7673 fi 7674fi 7675 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7677$as_echo_n "checking --disable-netbeans argument... " >&6; } 7678# Check whether --enable-netbeans was given. 7679if test "${enable_netbeans+set}" = set; then : 7680 enableval=$enable_netbeans; 7681else 7682 enable_netbeans="yes" 7683fi 7684 7685if test "$enable_netbeans" = "yes"; then 7686 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7688$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7689 enable_netbeans="no" 7690 else 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7692$as_echo "no" >&6; } 7693 fi 7694else 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7696$as_echo "yes" >&6; } 7697fi 7698 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7700$as_echo_n "checking --disable-channel argument... " >&6; } 7701# Check whether --enable-channel was given. 7702if test "${enable_channel+set}" = set; then : 7703 enableval=$enable_channel; 7704else 7705 enable_channel="yes" 7706fi 7707 7708if test "$enable_channel" = "yes"; then 7709 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7711$as_echo "cannot use channels with tiny or small features" >&6; } 7712 enable_channel="no" 7713 else 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7715$as_echo "no" >&6; } 7716 fi 7717else 7718 if test "$enable_netbeans" = "yes"; then 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7720$as_echo "yes, netbeans also disabled" >&6; } 7721 enable_netbeans="no" 7722 else 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7724$as_echo "yes" >&6; } 7725 fi 7726fi 7727 7728if test "$enable_channel" = "yes"; then 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7730$as_echo_n "checking for socket in -lsocket... " >&6; } 7731if ${ac_cv_lib_socket_socket+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 ac_check_lib_save_LIBS=$LIBS 7735LIBS="-lsocket $LIBS" 7736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738 7739/* Override any GCC internal prototype to avoid an error. 7740 Use char because int might match the return type of a GCC 7741 builtin and then its argument prototype would still apply. */ 7742#ifdef __cplusplus 7743extern "C" 7744#endif 7745char socket (); 7746int 7747main () 7748{ 7749return socket (); 7750 ; 7751 return 0; 7752} 7753_ACEOF 7754if ac_fn_c_try_link "$LINENO"; then : 7755 ac_cv_lib_socket_socket=yes 7756else 7757 ac_cv_lib_socket_socket=no 7758fi 7759rm -f core conftest.err conftest.$ac_objext \ 7760 conftest$ac_exeext conftest.$ac_ext 7761LIBS=$ac_check_lib_save_LIBS 7762fi 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7764$as_echo "$ac_cv_lib_socket_socket" >&6; } 7765if test "x$ac_cv_lib_socket_socket" = xyes; then : 7766 cat >>confdefs.h <<_ACEOF 7767#define HAVE_LIBSOCKET 1 7768_ACEOF 7769 7770 LIBS="-lsocket $LIBS" 7771 7772fi 7773 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7775$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7776if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 ac_check_lib_save_LIBS=$LIBS 7780LIBS="-lnsl $LIBS" 7781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783 7784/* Override any GCC internal prototype to avoid an error. 7785 Use char because int might match the return type of a GCC 7786 builtin and then its argument prototype would still apply. */ 7787#ifdef __cplusplus 7788extern "C" 7789#endif 7790char gethostbyname (); 7791int 7792main () 7793{ 7794return gethostbyname (); 7795 ; 7796 return 0; 7797} 7798_ACEOF 7799if ac_fn_c_try_link "$LINENO"; then : 7800 ac_cv_lib_nsl_gethostbyname=yes 7801else 7802 ac_cv_lib_nsl_gethostbyname=no 7803fi 7804rm -f core conftest.err conftest.$ac_objext \ 7805 conftest$ac_exeext conftest.$ac_ext 7806LIBS=$ac_check_lib_save_LIBS 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7809$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7810if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7811 cat >>confdefs.h <<_ACEOF 7812#define HAVE_LIBNSL 1 7813_ACEOF 7814 7815 LIBS="-lnsl $LIBS" 7816 7817fi 7818 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7820$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823 7824#include <stdio.h> 7825#include <stdlib.h> 7826#include <stdarg.h> 7827#include <fcntl.h> 7828#include <netdb.h> 7829#include <netinet/in.h> 7830#include <errno.h> 7831#include <sys/types.h> 7832#include <sys/socket.h> 7833 /* Check bitfields */ 7834 struct nbbuf { 7835 unsigned int initDone:1; 7836 unsigned short signmaplen; 7837 }; 7838 7839int 7840main () 7841{ 7842 7843 /* Check creating a socket. */ 7844 struct sockaddr_in server; 7845 (void)socket(AF_INET, SOCK_STREAM, 0); 7846 (void)htons(100); 7847 (void)gethostbyname("microsoft.com"); 7848 if (errno == ECONNREFUSED) 7849 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7850 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855if ac_fn_c_try_link "$LINENO"; then : 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7857$as_echo "yes" >&6; } 7858else 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7860$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7861fi 7862rm -f core conftest.err conftest.$ac_objext \ 7863 conftest$ac_exeext conftest.$ac_ext 7864fi 7865if test "$enable_netbeans" = "yes"; then 7866 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7867 7868 NETBEANS_SRC="netbeans.c" 7869 7870 NETBEANS_OBJ="objects/netbeans.o" 7871 7872fi 7873if test "$enable_channel" = "yes"; then 7874 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7875 7876 CHANNEL_SRC="channel.c" 7877 7878 CHANNEL_OBJ="objects/channel.o" 7879 7880fi 7881 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7883$as_echo_n "checking --enable-terminal argument... " >&6; } 7884# Check whether --enable-terminal was given. 7885if test "${enable_terminal+set}" = set; then : 7886 enableval=$enable_terminal; 7887else 7888 enable_terminal="auto" 7889fi 7890 7891if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7892 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7894$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7895 enable_terminal="no" 7896 else 7897 if test "$enable_terminal" = "auto"; then 7898 enable_terminal="yes" 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7900$as_echo "defaulting to yes" >&6; } 7901 else 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7903$as_echo "yes" >&6; } 7904 fi 7905 fi 7906else 7907 if test "$enable_terminal" = "auto"; then 7908 enable_terminal="no" 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7910$as_echo "defaulting to no" >&6; } 7911 else 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7913$as_echo "no" >&6; } 7914 fi 7915fi 7916if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 7917 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7918 7919 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/termscreen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 7920 7921 TERM_OBJ="objects/encoding.o objects/keyboard.o objects/mouse.o objects/parser.o objects/pen.o objects/termscreen.o objects/state.o objects/unicode.o objects/vterm.o" 7922 7923fi 7924 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 7926$as_echo_n "checking --enable-autoservername argument... " >&6; } 7927# Check whether --enable-autoservername was given. 7928if test "${enable_autoservername+set}" = set; then : 7929 enableval=$enable_autoservername; 7930else 7931 enable_autoservername="no" 7932fi 7933 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 7935$as_echo "$enable_autoservername" >&6; } 7936if test "$enable_autoservername" = "yes"; then 7937 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 7938 7939fi 7940 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7942$as_echo_n "checking --enable-multibyte argument... " >&6; } 7943# Check whether --enable-multibyte was given. 7944if test "${enable_multibyte+set}" = set; then : 7945 enableval=$enable_multibyte; 7946else 7947 enable_multibyte="no" 7948fi 7949 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7951$as_echo "$enable_multibyte" >&6; } 7952if test "$enable_multibyte" = "yes"; then 7953 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7954 7955fi 7956 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7958$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7959# Check whether --enable-hangulinput was given. 7960if test "${enable_hangulinput+set}" = set; then : 7961 enableval=$enable_hangulinput; 7962else 7963 enable_hangulinput="no" 7964fi 7965 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7967$as_echo "$enable_hangulinput" >&6; } 7968 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7970$as_echo_n "checking --enable-xim argument... " >&6; } 7971# Check whether --enable-xim was given. 7972if test "${enable_xim+set}" = set; then : 7973 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7974$as_echo "$enable_xim" >&6; } 7975else 7976 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7977$as_echo "defaulting to auto" >&6; } 7978fi 7979 7980 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7982$as_echo_n "checking --enable-fontset argument... " >&6; } 7983# Check whether --enable-fontset was given. 7984if test "${enable_fontset+set}" = set; then : 7985 enableval=$enable_fontset; 7986else 7987 enable_fontset="no" 7988fi 7989 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7991$as_echo "$enable_fontset" >&6; } 7992 7993test -z "$with_x" && with_x=yes 7994test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7995if test "$with_x" = no; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7997$as_echo "defaulting to: don't HAVE_X11" >&6; } 7998else 7999 8000 # Extract the first word of "xmkmf", so it can be a program name with args. 8001set dummy xmkmf; ac_word=$2 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8003$as_echo_n "checking for $ac_word... " >&6; } 8004if ${ac_cv_path_xmkmfpath+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 case $xmkmfpath in 8008 [\\/]* | ?:[\\/]*) 8009 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 8010 ;; 8011 *) 8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8013for as_dir in $PATH 8014do 8015 IFS=$as_save_IFS 8016 test -z "$as_dir" && as_dir=. 8017 for ac_exec_ext in '' $ac_executable_extensions; do 8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8019 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8021 break 2 8022 fi 8023done 8024 done 8025IFS=$as_save_IFS 8026 8027 ;; 8028esac 8029fi 8030xmkmfpath=$ac_cv_path_xmkmfpath 8031if test -n "$xmkmfpath"; then 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 8033$as_echo "$xmkmfpath" >&6; } 8034else 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8036$as_echo "no" >&6; } 8037fi 8038 8039 8040 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8042$as_echo_n "checking for X... " >&6; } 8043 8044 8045# Check whether --with-x was given. 8046if test "${with_x+set}" = set; then : 8047 withval=$with_x; 8048fi 8049 8050# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8051if test "x$with_x" = xno; then 8052 # The user explicitly disabled X. 8053 have_x=disabled 8054else 8055 case $x_includes,$x_libraries in #( 8056 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8057 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 # One or both of the vars are not set, and there is no cached value. 8061ac_x_includes=no ac_x_libraries=no 8062rm -f -r conftest.dir 8063if mkdir conftest.dir; then 8064 cd conftest.dir 8065 cat >Imakefile <<'_ACEOF' 8066incroot: 8067 @echo incroot='${INCROOT}' 8068usrlibdir: 8069 @echo usrlibdir='${USRLIBDIR}' 8070libdir: 8071 @echo libdir='${LIBDIR}' 8072_ACEOF 8073 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8075 for ac_var in incroot usrlibdir libdir; do 8076 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8077 done 8078 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8079 for ac_extension in a so sl dylib la dll; do 8080 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8081 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8082 ac_im_usrlibdir=$ac_im_libdir; break 8083 fi 8084 done 8085 # Screen out bogus values from the imake configuration. They are 8086 # bogus both because they are the default anyway, and because 8087 # using them would break gcc on systems where it needs fixed includes. 8088 case $ac_im_incroot in 8089 /usr/include) ac_x_includes= ;; 8090 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8091 esac 8092 case $ac_im_usrlibdir in 8093 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8094 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8095 esac 8096 fi 8097 cd .. 8098 rm -f -r conftest.dir 8099fi 8100 8101# Standard set of common directories for X headers. 8102# Check X11 before X11Rn because it is often a symlink to the current release. 8103ac_x_header_dirs=' 8104/usr/X11/include 8105/usr/X11R7/include 8106/usr/X11R6/include 8107/usr/X11R5/include 8108/usr/X11R4/include 8109 8110/usr/include/X11 8111/usr/include/X11R7 8112/usr/include/X11R6 8113/usr/include/X11R5 8114/usr/include/X11R4 8115 8116/usr/local/X11/include 8117/usr/local/X11R7/include 8118/usr/local/X11R6/include 8119/usr/local/X11R5/include 8120/usr/local/X11R4/include 8121 8122/usr/local/include/X11 8123/usr/local/include/X11R7 8124/usr/local/include/X11R6 8125/usr/local/include/X11R5 8126/usr/local/include/X11R4 8127 8128/usr/X386/include 8129/usr/x386/include 8130/usr/XFree86/include/X11 8131 8132/usr/include 8133/usr/local/include 8134/usr/unsupported/include 8135/usr/athena/include 8136/usr/local/x11r5/include 8137/usr/lpp/Xamples/include 8138 8139/usr/openwin/include 8140/usr/openwin/share/include' 8141 8142if test "$ac_x_includes" = no; then 8143 # Guess where to find include files, by looking for Xlib.h. 8144 # First, try using that file with no special directory specified. 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147#include <X11/Xlib.h> 8148_ACEOF 8149if ac_fn_c_try_cpp "$LINENO"; then : 8150 # We can compile using X headers with no special include directory. 8151ac_x_includes= 8152else 8153 for ac_dir in $ac_x_header_dirs; do 8154 if test -r "$ac_dir/X11/Xlib.h"; then 8155 ac_x_includes=$ac_dir 8156 break 8157 fi 8158done 8159fi 8160rm -f conftest.err conftest.i conftest.$ac_ext 8161fi # $ac_x_includes = no 8162 8163if test "$ac_x_libraries" = no; then 8164 # Check for the libraries. 8165 # See if we find them without any special options. 8166 # Don't add to $LIBS permanently. 8167 ac_save_LIBS=$LIBS 8168 LIBS="-lX11 $LIBS" 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170/* end confdefs.h. */ 8171#include <X11/Xlib.h> 8172int 8173main () 8174{ 8175XrmInitialize () 8176 ; 8177 return 0; 8178} 8179_ACEOF 8180if ac_fn_c_try_link "$LINENO"; then : 8181 LIBS=$ac_save_LIBS 8182# We can link X programs with no special library path. 8183ac_x_libraries= 8184else 8185 LIBS=$ac_save_LIBS 8186for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8187do 8188 # Don't even attempt the hair of trying to link an X program! 8189 for ac_extension in a so sl dylib la dll; do 8190 if test -r "$ac_dir/libX11.$ac_extension"; then 8191 ac_x_libraries=$ac_dir 8192 break 2 8193 fi 8194 done 8195done 8196fi 8197rm -f core conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199fi # $ac_x_libraries = no 8200 8201case $ac_x_includes,$ac_x_libraries in #( 8202 no,* | *,no | *\'*) 8203 # Didn't find X, or a directory has "'" in its name. 8204 ac_cv_have_x="have_x=no";; #( 8205 *) 8206 # Record where we found X for the cache. 8207 ac_cv_have_x="have_x=yes\ 8208 ac_x_includes='$ac_x_includes'\ 8209 ac_x_libraries='$ac_x_libraries'" 8210esac 8211fi 8212;; #( 8213 *) have_x=yes;; 8214 esac 8215 eval "$ac_cv_have_x" 8216fi # $with_x != no 8217 8218if test "$have_x" != yes; then 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8220$as_echo "$have_x" >&6; } 8221 no_x=yes 8222else 8223 # If each of the values was on the command line, it overrides each guess. 8224 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8225 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8226 # Update the cache value to reflect the command line values. 8227 ac_cv_have_x="have_x=yes\ 8228 ac_x_includes='$x_includes'\ 8229 ac_x_libraries='$x_libraries'" 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8231$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8232fi 8233 8234if test "$no_x" = yes; then 8235 # Not all programs may use this symbol, but it does not hurt to define it. 8236 8237$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8238 8239 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8240else 8241 if test -n "$x_includes"; then 8242 X_CFLAGS="$X_CFLAGS -I$x_includes" 8243 fi 8244 8245 # It would also be nice to do this for all -L options, not just this one. 8246 if test -n "$x_libraries"; then 8247 X_LIBS="$X_LIBS -L$x_libraries" 8248 # For Solaris; some versions of Sun CC require a space after -R and 8249 # others require no space. Words are not sufficient . . . . 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8251$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8252 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8253 ac_xsave_c_werror_flag=$ac_c_werror_flag 8254 ac_c_werror_flag=yes 8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256/* end confdefs.h. */ 8257 8258int 8259main () 8260{ 8261 8262 ; 8263 return 0; 8264} 8265_ACEOF 8266if ac_fn_c_try_link "$LINENO"; then : 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8268$as_echo "no" >&6; } 8269 X_LIBS="$X_LIBS -R$x_libraries" 8270else 8271 LIBS="$ac_xsave_LIBS -R $x_libraries" 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274 8275int 8276main () 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO"; then : 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8285$as_echo "yes" >&6; } 8286 X_LIBS="$X_LIBS -R $x_libraries" 8287else 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8289$as_echo "neither works" >&6; } 8290fi 8291rm -f core conftest.err conftest.$ac_objext \ 8292 conftest$ac_exeext conftest.$ac_ext 8293fi 8294rm -f core conftest.err conftest.$ac_objext \ 8295 conftest$ac_exeext conftest.$ac_ext 8296 ac_c_werror_flag=$ac_xsave_c_werror_flag 8297 LIBS=$ac_xsave_LIBS 8298 fi 8299 8300 # Check for system-dependent libraries X programs must link with. 8301 # Do this before checking for the system-independent R6 libraries 8302 # (-lICE), since we may need -lsocket or whatever for X linking. 8303 8304 if test "$ISC" = yes; then 8305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8306 else 8307 # Martyn Johnson says this is needed for Ultrix, if the X 8308 # libraries were built with DECnet support. And Karl Berry says 8309 # the Alpha needs dnet_stub (dnet does not exist). 8310 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313 8314/* Override any GCC internal prototype to avoid an error. 8315 Use char because int might match the return type of a GCC 8316 builtin and then its argument prototype would still apply. */ 8317#ifdef __cplusplus 8318extern "C" 8319#endif 8320char XOpenDisplay (); 8321int 8322main () 8323{ 8324return XOpenDisplay (); 8325 ; 8326 return 0; 8327} 8328_ACEOF 8329if ac_fn_c_try_link "$LINENO"; then : 8330 8331else 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8333$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8334if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 ac_check_lib_save_LIBS=$LIBS 8338LIBS="-ldnet $LIBS" 8339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341 8342/* Override any GCC internal prototype to avoid an error. 8343 Use char because int might match the return type of a GCC 8344 builtin and then its argument prototype would still apply. */ 8345#ifdef __cplusplus 8346extern "C" 8347#endif 8348char dnet_ntoa (); 8349int 8350main () 8351{ 8352return dnet_ntoa (); 8353 ; 8354 return 0; 8355} 8356_ACEOF 8357if ac_fn_c_try_link "$LINENO"; then : 8358 ac_cv_lib_dnet_dnet_ntoa=yes 8359else 8360 ac_cv_lib_dnet_dnet_ntoa=no 8361fi 8362rm -f core conftest.err conftest.$ac_objext \ 8363 conftest$ac_exeext conftest.$ac_ext 8364LIBS=$ac_check_lib_save_LIBS 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8367$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8368if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8369 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8370fi 8371 8372 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8374$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8375if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8376 $as_echo_n "(cached) " >&6 8377else 8378 ac_check_lib_save_LIBS=$LIBS 8379LIBS="-ldnet_stub $LIBS" 8380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8381/* end confdefs.h. */ 8382 8383/* Override any GCC internal prototype to avoid an error. 8384 Use char because int might match the return type of a GCC 8385 builtin and then its argument prototype would still apply. */ 8386#ifdef __cplusplus 8387extern "C" 8388#endif 8389char dnet_ntoa (); 8390int 8391main () 8392{ 8393return dnet_ntoa (); 8394 ; 8395 return 0; 8396} 8397_ACEOF 8398if ac_fn_c_try_link "$LINENO"; then : 8399 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8400else 8401 ac_cv_lib_dnet_stub_dnet_ntoa=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext \ 8404 conftest$ac_exeext conftest.$ac_ext 8405LIBS=$ac_check_lib_save_LIBS 8406fi 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8408$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8409if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8410 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8411fi 8412 8413 fi 8414fi 8415rm -f core conftest.err conftest.$ac_objext \ 8416 conftest$ac_exeext conftest.$ac_ext 8417 LIBS="$ac_xsave_LIBS" 8418 8419 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8420 # to get the SysV transport functions. 8421 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8422 # needs -lnsl. 8423 # The nsl library prevents programs from opening the X display 8424 # on Irix 5.2, according to T.E. Dickey. 8425 # The functions gethostbyname, getservbyname, and inet_addr are 8426 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8427 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8428if test "x$ac_cv_func_gethostbyname" = xyes; then : 8429 8430fi 8431 8432 if test $ac_cv_func_gethostbyname = no; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8434$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8435if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 ac_check_lib_save_LIBS=$LIBS 8439LIBS="-lnsl $LIBS" 8440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441/* end confdefs.h. */ 8442 8443/* Override any GCC internal prototype to avoid an error. 8444 Use char because int might match the return type of a GCC 8445 builtin and then its argument prototype would still apply. */ 8446#ifdef __cplusplus 8447extern "C" 8448#endif 8449char gethostbyname (); 8450int 8451main () 8452{ 8453return gethostbyname (); 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458if ac_fn_c_try_link "$LINENO"; then : 8459 ac_cv_lib_nsl_gethostbyname=yes 8460else 8461 ac_cv_lib_nsl_gethostbyname=no 8462fi 8463rm -f core conftest.err conftest.$ac_objext \ 8464 conftest$ac_exeext conftest.$ac_ext 8465LIBS=$ac_check_lib_save_LIBS 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8468$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8469if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8471fi 8472 8473 if test $ac_cv_lib_nsl_gethostbyname = no; then 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8475$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8476if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 ac_check_lib_save_LIBS=$LIBS 8480LIBS="-lbsd $LIBS" 8481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483 8484/* Override any GCC internal prototype to avoid an error. 8485 Use char because int might match the return type of a GCC 8486 builtin and then its argument prototype would still apply. */ 8487#ifdef __cplusplus 8488extern "C" 8489#endif 8490char gethostbyname (); 8491int 8492main () 8493{ 8494return gethostbyname (); 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499if ac_fn_c_try_link "$LINENO"; then : 8500 ac_cv_lib_bsd_gethostbyname=yes 8501else 8502 ac_cv_lib_bsd_gethostbyname=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext conftest.$ac_ext 8506LIBS=$ac_check_lib_save_LIBS 8507fi 8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8509$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8510if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8512fi 8513 8514 fi 8515 fi 8516 8517 # [email protected] says without -lsocket, 8518 # socket/setsockopt and other routines are undefined under SCO ODT 8519 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8520 # on later versions), says Simon Leinen: it contains gethostby* 8521 # variants that don't use the name server (or something). -lsocket 8522 # must be given before -lnsl if both are needed. We assume that 8523 # if connect needs -lnsl, so does gethostbyname. 8524 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8525if test "x$ac_cv_func_connect" = xyes; then : 8526 8527fi 8528 8529 if test $ac_cv_func_connect = no; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8531$as_echo_n "checking for connect in -lsocket... " >&6; } 8532if ${ac_cv_lib_socket_connect+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 ac_check_lib_save_LIBS=$LIBS 8536LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538/* end confdefs.h. */ 8539 8540/* Override any GCC internal prototype to avoid an error. 8541 Use char because int might match the return type of a GCC 8542 builtin and then its argument prototype would still apply. */ 8543#ifdef __cplusplus 8544extern "C" 8545#endif 8546char connect (); 8547int 8548main () 8549{ 8550return connect (); 8551 ; 8552 return 0; 8553} 8554_ACEOF 8555if ac_fn_c_try_link "$LINENO"; then : 8556 ac_cv_lib_socket_connect=yes 8557else 8558 ac_cv_lib_socket_connect=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext \ 8561 conftest$ac_exeext conftest.$ac_ext 8562LIBS=$ac_check_lib_save_LIBS 8563fi 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8565$as_echo "$ac_cv_lib_socket_connect" >&6; } 8566if test "x$ac_cv_lib_socket_connect" = xyes; then : 8567 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8568fi 8569 8570 fi 8571 8572 # Guillermo Gomez says -lposix is necessary on A/UX. 8573 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8574if test "x$ac_cv_func_remove" = xyes; then : 8575 8576fi 8577 8578 if test $ac_cv_func_remove = no; then 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8580$as_echo_n "checking for remove in -lposix... " >&6; } 8581if ${ac_cv_lib_posix_remove+:} false; then : 8582 $as_echo_n "(cached) " >&6 8583else 8584 ac_check_lib_save_LIBS=$LIBS 8585LIBS="-lposix $LIBS" 8586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588 8589/* Override any GCC internal prototype to avoid an error. 8590 Use char because int might match the return type of a GCC 8591 builtin and then its argument prototype would still apply. */ 8592#ifdef __cplusplus 8593extern "C" 8594#endif 8595char remove (); 8596int 8597main () 8598{ 8599return remove (); 8600 ; 8601 return 0; 8602} 8603_ACEOF 8604if ac_fn_c_try_link "$LINENO"; then : 8605 ac_cv_lib_posix_remove=yes 8606else 8607 ac_cv_lib_posix_remove=no 8608fi 8609rm -f core conftest.err conftest.$ac_objext \ 8610 conftest$ac_exeext conftest.$ac_ext 8611LIBS=$ac_check_lib_save_LIBS 8612fi 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8614$as_echo "$ac_cv_lib_posix_remove" >&6; } 8615if test "x$ac_cv_lib_posix_remove" = xyes; then : 8616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8617fi 8618 8619 fi 8620 8621 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8622 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8623if test "x$ac_cv_func_shmat" = xyes; then : 8624 8625fi 8626 8627 if test $ac_cv_func_shmat = no; then 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8629$as_echo_n "checking for shmat in -lipc... " >&6; } 8630if ${ac_cv_lib_ipc_shmat+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 ac_check_lib_save_LIBS=$LIBS 8634LIBS="-lipc $LIBS" 8635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636/* end confdefs.h. */ 8637 8638/* Override any GCC internal prototype to avoid an error. 8639 Use char because int might match the return type of a GCC 8640 builtin and then its argument prototype would still apply. */ 8641#ifdef __cplusplus 8642extern "C" 8643#endif 8644char shmat (); 8645int 8646main () 8647{ 8648return shmat (); 8649 ; 8650 return 0; 8651} 8652_ACEOF 8653if ac_fn_c_try_link "$LINENO"; then : 8654 ac_cv_lib_ipc_shmat=yes 8655else 8656 ac_cv_lib_ipc_shmat=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext \ 8659 conftest$ac_exeext conftest.$ac_ext 8660LIBS=$ac_check_lib_save_LIBS 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8663$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8664if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8666fi 8667 8668 fi 8669 fi 8670 8671 # Check for libraries that X11R6 Xt/Xaw programs need. 8672 ac_save_LDFLAGS=$LDFLAGS 8673 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8674 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8675 # check for ICE first), but we must link in the order -lSM -lICE or 8676 # we get undefined symbols. So assume we have SM if we have ICE. 8677 # These have to be linked with before -lX11, unlike the other 8678 # libraries we check for below, so use a different variable. 8679 # John Interrante, Karl Berry 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8681$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8682if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 ac_check_lib_save_LIBS=$LIBS 8686LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688/* end confdefs.h. */ 8689 8690/* Override any GCC internal prototype to avoid an error. 8691 Use char because int might match the return type of a GCC 8692 builtin and then its argument prototype would still apply. */ 8693#ifdef __cplusplus 8694extern "C" 8695#endif 8696char IceConnectionNumber (); 8697int 8698main () 8699{ 8700return IceConnectionNumber (); 8701 ; 8702 return 0; 8703} 8704_ACEOF 8705if ac_fn_c_try_link "$LINENO"; then : 8706 ac_cv_lib_ICE_IceConnectionNumber=yes 8707else 8708 ac_cv_lib_ICE_IceConnectionNumber=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext \ 8711 conftest$ac_exeext conftest.$ac_ext 8712LIBS=$ac_check_lib_save_LIBS 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8715$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8716if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8717 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8718fi 8719 8720 LDFLAGS=$ac_save_LDFLAGS 8721 8722fi 8723 8724 8725 if test "$zOSUnix" = "yes"; then 8726 CFLAGS="$CFLAGS -W c,dll" 8727 LDFLAGS="$LDFLAGS -W l,dll" 8728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8729 fi 8730 8731 8732 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8733 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8735$as_echo "Corrected X libraries to $x_libraries" >&6; } 8736 X_LIBS="$X_LIBS -L$x_libraries" 8737 if test "`(uname) 2>/dev/null`" = SunOS && 8738 uname -r | grep '^5' >/dev/null; then 8739 X_LIBS="$X_LIBS -R $x_libraries" 8740 fi 8741 fi 8742 8743 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8744 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8746$as_echo "Corrected X includes to $x_includes" >&6; } 8747 X_CFLAGS="$X_CFLAGS -I$x_includes" 8748 fi 8749 8750 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8751 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8752 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8753 8754 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8756$as_echo_n "checking if X11 header files can be found... " >&6; } 8757 cflags_save=$CFLAGS 8758 CFLAGS="$CFLAGS $X_CFLAGS" 8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8760/* end confdefs.h. */ 8761#include <X11/Xlib.h> 8762#include <X11/Intrinsic.h> 8763int 8764main () 8765{ 8766 8767 ; 8768 return 0; 8769} 8770_ACEOF 8771if ac_fn_c_try_compile "$LINENO"; then : 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8773$as_echo "yes" >&6; } 8774else 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8776$as_echo "no" >&6; }; no_x=yes 8777fi 8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8779 CFLAGS=$cflags_save 8780 8781 if test "${no_x-no}" = yes; then 8782 with_x=no 8783 else 8784 $as_echo "#define HAVE_X11 1" >>confdefs.h 8785 8786 X_LIB="-lXt -lX11"; 8787 8788 8789 ac_save_LDFLAGS="$LDFLAGS" 8790 LDFLAGS="-L$x_libraries $LDFLAGS" 8791 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8793$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8794if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 ac_check_lib_save_LIBS=$LIBS 8798LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800/* end confdefs.h. */ 8801 8802/* Override any GCC internal prototype to avoid an error. 8803 Use char because int might match the return type of a GCC 8804 builtin and then its argument prototype would still apply. */ 8805#ifdef __cplusplus 8806extern "C" 8807#endif 8808char _XdmcpAuthDoIt (); 8809int 8810main () 8811{ 8812return _XdmcpAuthDoIt (); 8813 ; 8814 return 0; 8815} 8816_ACEOF 8817if ac_fn_c_try_link "$LINENO"; then : 8818 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8819else 8820 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824LIBS=$ac_check_lib_save_LIBS 8825fi 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8827$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8828if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8830fi 8831 8832 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8834$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8835if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837else 8838 ac_check_lib_save_LIBS=$LIBS 8839LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842 8843/* Override any GCC internal prototype to avoid an error. 8844 Use char because int might match the return type of a GCC 8845 builtin and then its argument prototype would still apply. */ 8846#ifdef __cplusplus 8847extern "C" 8848#endif 8849char IceOpenConnection (); 8850int 8851main () 8852{ 8853return IceOpenConnection (); 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858if ac_fn_c_try_link "$LINENO"; then : 8859 ac_cv_lib_ICE_IceOpenConnection=yes 8860else 8861 ac_cv_lib_ICE_IceOpenConnection=no 8862fi 8863rm -f core conftest.err conftest.$ac_objext \ 8864 conftest$ac_exeext conftest.$ac_ext 8865LIBS=$ac_check_lib_save_LIBS 8866fi 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8868$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8869if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8871fi 8872 8873 8874 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8876$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8877if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8878 $as_echo_n "(cached) " >&6 8879else 8880 ac_check_lib_save_LIBS=$LIBS 8881LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884 8885/* Override any GCC internal prototype to avoid an error. 8886 Use char because int might match the return type of a GCC 8887 builtin and then its argument prototype would still apply. */ 8888#ifdef __cplusplus 8889extern "C" 8890#endif 8891char XpmCreatePixmapFromData (); 8892int 8893main () 8894{ 8895return XpmCreatePixmapFromData (); 8896 ; 8897 return 0; 8898} 8899_ACEOF 8900if ac_fn_c_try_link "$LINENO"; then : 8901 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8902else 8903 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8904fi 8905rm -f core conftest.err conftest.$ac_objext \ 8906 conftest$ac_exeext conftest.$ac_ext 8907LIBS=$ac_check_lib_save_LIBS 8908fi 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8910$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8911if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8912 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8913fi 8914 8915 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8917$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8918 cflags_save=$CFLAGS 8919 if test "$GCC" = yes; then 8920 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8921 else 8922 CFLAGS="$CFLAGS $X_CFLAGS" 8923 fi 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926#include <X11/Xlib.h> 8927int 8928main () 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_compile "$LINENO"; then : 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8937$as_echo "no" >&6; } 8938else 8939 CFLAGS="$CFLAGS -Wno-implicit-int" 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942#include <X11/Xlib.h> 8943int 8944main () 8945{ 8946 8947 ; 8948 return 0; 8949} 8950_ACEOF 8951if ac_fn_c_try_compile "$LINENO"; then : 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8953$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8954else 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8956$as_echo "test failed" >&6; } 8957 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8960 8961fi 8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8963 CFLAGS=$cflags_save 8964 8965 LDFLAGS="$ac_save_LDFLAGS" 8966 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8968$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8969 if ${ac_cv_small_wchar_t+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 if test "$cross_compiling" = yes; then : 8973 as_fn_error $? "failed to compile test program" "$LINENO" 5 8974else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977 8978#include <X11/Xlib.h> 8979#if STDC_HEADERS 8980# include <stdlib.h> 8981# include <stddef.h> 8982#endif 8983 main() 8984 { 8985 if (sizeof(wchar_t) <= 2) 8986 exit(1); 8987 exit(0); 8988 } 8989_ACEOF 8990if ac_fn_c_try_run "$LINENO"; then : 8991 ac_cv_small_wchar_t="no" 8992else 8993 ac_cv_small_wchar_t="yes" 8994fi 8995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8996 conftest.$ac_objext conftest.beam conftest.$ac_ext 8997fi 8998 8999fi 9000 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 9002$as_echo "$ac_cv_small_wchar_t" >&6; } 9003 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 9004 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 9005 9006 fi 9007 9008 fi 9009fi 9010 9011if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then 9012 as_fn_error $? "could not configure X" "$LINENO" 5 9013fi 9014 9015test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 9016 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 9018$as_echo_n "checking --enable-gui argument... " >&6; } 9019# Check whether --enable-gui was given. 9020if test "${enable_gui+set}" = set; then : 9021 enableval=$enable_gui; 9022else 9023 enable_gui="auto" 9024fi 9025 9026 9027enable_gui_canon=`echo "_$enable_gui" | \ 9028 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 9029 9030SKIP_GTK2=YES 9031SKIP_GTK3=YES 9032SKIP_GNOME=YES 9033SKIP_MOTIF=YES 9034SKIP_ATHENA=YES 9035SKIP_NEXTAW=YES 9036SKIP_PHOTON=YES 9037SKIP_CARBON=YES 9038GUITYPE=NONE 9039 9040if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 9041 SKIP_PHOTON= 9042 case "$enable_gui_canon" in 9043 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9044$as_echo "no GUI support" >&6; } 9045 SKIP_PHOTON=YES ;; 9046 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9047$as_echo "yes - automatic GUI support" >&6; } ;; 9048 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 9049$as_echo "auto - automatic GUI support" >&6; } ;; 9050 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 9051$as_echo "Photon GUI support" >&6; } ;; 9052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9053$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9054 SKIP_PHOTON=YES ;; 9055 esac 9056 9057elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 9058 SKIP_CARBON= 9059 case "$enable_gui_canon" in 9060 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9061$as_echo "no GUI support" >&6; } 9062 SKIP_CARBON=YES ;; 9063 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9064$as_echo "yes - automatic GUI support" >&6; } ;; 9065 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 9066$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 9067 SKIP_CARBON=YES ;; 9068 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 9069$as_echo "Carbon GUI support" >&6; } ;; 9070 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9071$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9072 SKIP_CARBON=YES ;; 9073 esac 9074 9075else 9076 9077 case "$enable_gui_canon" in 9078 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9079$as_echo "no GUI support" >&6; } ;; 9080 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 9081$as_echo "yes/auto - automatic GUI support" >&6; } 9082 SKIP_GTK2= 9083 SKIP_GNOME= 9084 SKIP_MOTIF= 9085 SKIP_ATHENA= 9086 SKIP_NEXTAW= 9087 SKIP_CARBON=;; 9088 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 9089$as_echo "GTK+ 2.x GUI support" >&6; } 9090 SKIP_GTK2=;; 9091 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 9092$as_echo "GNOME 2.x GUI support" >&6; } 9093 SKIP_GNOME= 9094 SKIP_GTK2=;; 9095 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 9096$as_echo "GTK+ 3.x GUI support" >&6; } 9097 SKIP_GTK3=;; 9098 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 9099$as_echo "Motif GUI support" >&6; } 9100 SKIP_MOTIF=;; 9101 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 9102$as_echo "Athena GUI support" >&6; } 9103 SKIP_ATHENA=;; 9104 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 9105$as_echo "neXtaw GUI support" >&6; } 9106 SKIP_NEXTAW=;; 9107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9108$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9109 esac 9110 9111fi 9112 9113if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 9114 -a "$enable_gui_canon" != "gnome2"; then 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 9116$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 9117 # Check whether --enable-gtk2-check was given. 9118if test "${enable_gtk2_check+set}" = set; then : 9119 enableval=$enable_gtk2_check; 9120else 9121 enable_gtk2_check="yes" 9122fi 9123 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 9125$as_echo "$enable_gtk2_check" >&6; } 9126 if test "x$enable_gtk2_check" = "xno"; then 9127 SKIP_GTK2=YES 9128 SKIP_GNOME=YES 9129 fi 9130fi 9131 9132if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 9134$as_echo_n "checking whether or not to look for GNOME... " >&6; } 9135 # Check whether --enable-gnome-check was given. 9136if test "${enable_gnome_check+set}" = set; then : 9137 enableval=$enable_gnome_check; 9138else 9139 enable_gnome_check="no" 9140fi 9141 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 9143$as_echo "$enable_gnome_check" >&6; } 9144 if test "x$enable_gnome_check" = "xno"; then 9145 SKIP_GNOME=YES 9146 fi 9147fi 9148 9149if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 9151$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 9152 # Check whether --enable-gtk3-check was given. 9153if test "${enable_gtk3_check+set}" = set; then : 9154 enableval=$enable_gtk3_check; 9155else 9156 enable_gtk3_check="yes" 9157fi 9158 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 9160$as_echo "$enable_gtk3_check" >&6; } 9161 if test "x$enable_gtk3_check" = "xno"; then 9162 SKIP_GTK3=YES 9163 fi 9164fi 9165 9166if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 9168$as_echo_n "checking whether or not to look for Motif... " >&6; } 9169 # Check whether --enable-motif-check was given. 9170if test "${enable_motif_check+set}" = set; then : 9171 enableval=$enable_motif_check; 9172else 9173 enable_motif_check="yes" 9174fi 9175 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 9177$as_echo "$enable_motif_check" >&6; } 9178 if test "x$enable_motif_check" = "xno"; then 9179 SKIP_MOTIF=YES 9180 fi 9181fi 9182 9183if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 9185$as_echo_n "checking whether or not to look for Athena... " >&6; } 9186 # Check whether --enable-athena-check was given. 9187if test "${enable_athena_check+set}" = set; then : 9188 enableval=$enable_athena_check; 9189else 9190 enable_athena_check="yes" 9191fi 9192 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 9194$as_echo "$enable_athena_check" >&6; } 9195 if test "x$enable_athena_check" = "xno"; then 9196 SKIP_ATHENA=YES 9197 fi 9198fi 9199 9200if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 9202$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 9203 # Check whether --enable-nextaw-check was given. 9204if test "${enable_nextaw_check+set}" = set; then : 9205 enableval=$enable_nextaw_check; 9206else 9207 enable_nextaw_check="yes" 9208fi 9209 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 9211$as_echo "$enable_nextaw_check" >&6; }; 9212 if test "x$enable_nextaw_check" = "xno"; then 9213 SKIP_NEXTAW=YES 9214 fi 9215fi 9216 9217if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 9219$as_echo_n "checking whether or not to look for Carbon... " >&6; } 9220 # Check whether --enable-carbon-check was given. 9221if test "${enable_carbon_check+set}" = set; then : 9222 enableval=$enable_carbon_check; 9223else 9224 enable_carbon_check="yes" 9225fi 9226 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 9228$as_echo "$enable_carbon_check" >&6; }; 9229 if test "x$enable_carbon_check" = "xno"; then 9230 SKIP_CARBON=YES 9231 fi 9232fi 9233 9234 9235if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 9237$as_echo_n "checking for Carbon GUI... " >&6; } 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9239$as_echo "yes" >&6; }; 9240 GUITYPE=CARBONGUI 9241 if test "$VIMNAME" = "vim"; then 9242 VIMNAME=Vim 9243 fi 9244 9245 if test "x$MACARCH" = "xboth"; then 9246 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 9247 else 9248 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 9249 fi 9250 9251 if test x$prefix = xNONE; then 9252 prefix=/Applications 9253 fi 9254 9255 datadir='${prefix}/Vim.app/Contents/Resources' 9256 9257 SKIP_GTK2=YES; 9258 SKIP_GNOME=YES; 9259 SKIP_MOTIF=YES; 9260 SKIP_ATHENA=YES; 9261 SKIP_NEXTAW=YES; 9262 SKIP_PHOTON=YES; 9263 SKIP_CARBON=YES 9264fi 9265 9266 9267 9268 9269 9270 9271 9272 9273if test -z "$SKIP_GTK2"; then 9274 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9276$as_echo_n "checking --disable-gtktest argument... " >&6; } 9277 # Check whether --enable-gtktest was given. 9278if test "${enable_gtktest+set}" = set; then : 9279 enableval=$enable_gtktest; 9280else 9281 enable_gtktest=yes 9282fi 9283 9284 if test "x$enable_gtktest" = "xyes" ; then 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9286$as_echo "gtk test enabled" >&6; } 9287 else 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9289$as_echo "gtk test disabled" >&6; } 9290 fi 9291 9292 if test "X$PKG_CONFIG" = "X"; then 9293 if test -n "$ac_tool_prefix"; then 9294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9295set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9297$as_echo_n "checking for $ac_word... " >&6; } 9298if ${ac_cv_path_PKG_CONFIG+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 case $PKG_CONFIG in 9302 [\\/]* | ?:[\\/]*) 9303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9304 ;; 9305 *) 9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9307for as_dir in $PATH 9308do 9309 IFS=$as_save_IFS 9310 test -z "$as_dir" && as_dir=. 9311 for ac_exec_ext in '' $ac_executable_extensions; do 9312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9315 break 2 9316 fi 9317done 9318 done 9319IFS=$as_save_IFS 9320 9321 ;; 9322esac 9323fi 9324PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9325if test -n "$PKG_CONFIG"; then 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9327$as_echo "$PKG_CONFIG" >&6; } 9328else 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9330$as_echo "no" >&6; } 9331fi 9332 9333 9334fi 9335if test -z "$ac_cv_path_PKG_CONFIG"; then 9336 ac_pt_PKG_CONFIG=$PKG_CONFIG 9337 # Extract the first word of "pkg-config", so it can be a program name with args. 9338set dummy pkg-config; ac_word=$2 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9340$as_echo_n "checking for $ac_word... " >&6; } 9341if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9342 $as_echo_n "(cached) " >&6 9343else 9344 case $ac_pt_PKG_CONFIG in 9345 [\\/]* | ?:[\\/]*) 9346 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9347 ;; 9348 *) 9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9350for as_dir in $PATH 9351do 9352 IFS=$as_save_IFS 9353 test -z "$as_dir" && as_dir=. 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9358 break 2 9359 fi 9360done 9361 done 9362IFS=$as_save_IFS 9363 9364 ;; 9365esac 9366fi 9367ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9368if test -n "$ac_pt_PKG_CONFIG"; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9370$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9371else 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9373$as_echo "no" >&6; } 9374fi 9375 9376 if test "x$ac_pt_PKG_CONFIG" = x; then 9377 PKG_CONFIG="no" 9378 else 9379 case $cross_compiling:$ac_tool_warned in 9380yes:) 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9383ac_tool_warned=yes ;; 9384esac 9385 PKG_CONFIG=$ac_pt_PKG_CONFIG 9386 fi 9387else 9388 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9389fi 9390 9391 fi 9392 9393 if test "x$PKG_CONFIG" != "xno"; then 9394 9395 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9396 { 9397 no_gtk="" 9398 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9399 && $PKG_CONFIG --exists gtk+-2.0; then 9400 { 9401 min_gtk_version=2.2.0 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9403$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9404 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9405 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9406 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9407 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9408 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9409 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9410 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9411 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9412 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9413 } 9414 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9415 && $PKG_CONFIG --exists gtk+-3.0; then 9416 { 9417 min_gtk_version=2.2.0 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9419$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9420 9421 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9422 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9423 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9424 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9425 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9426 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9427 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9428 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9429 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9430 } 9431 else 9432 no_gtk=yes 9433 fi 9434 9435 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9436 { 9437 ac_save_CFLAGS="$CFLAGS" 9438 ac_save_LIBS="$LIBS" 9439 CFLAGS="$CFLAGS $GTK_CFLAGS" 9440 LIBS="$LIBS $GTK_LIBS" 9441 9442 rm -f conf.gtktest 9443 if test "$cross_compiling" = yes; then : 9444 echo $ac_n "cross compiling; assumed OK... $ac_c" 9445else 9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448 9449#include <gtk/gtk.h> 9450#include <stdio.h> 9451#if STDC_HEADERS 9452# include <stdlib.h> 9453# include <stddef.h> 9454#endif 9455 9456int 9457main () 9458{ 9459int major, minor, micro; 9460char *tmp_version; 9461 9462system ("touch conf.gtktest"); 9463 9464/* HP/UX 9 (%@#!) writes to sscanf strings */ 9465tmp_version = g_strdup("$min_gtk_version"); 9466if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9467 printf("%s, bad version string\n", "$min_gtk_version"); 9468 exit(1); 9469 } 9470 9471if ((gtk_major_version > major) || 9472 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9473 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9474 (gtk_micro_version >= micro))) 9475{ 9476 return 0; 9477} 9478return 1; 9479} 9480 9481_ACEOF 9482if ac_fn_c_try_run "$LINENO"; then : 9483 9484else 9485 no_gtk=yes 9486fi 9487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9488 conftest.$ac_objext conftest.beam conftest.$ac_ext 9489fi 9490 9491 CFLAGS="$ac_save_CFLAGS" 9492 LIBS="$ac_save_LIBS" 9493 } 9494 fi 9495 if test "x$no_gtk" = x ; then 9496 if test "x$enable_gtktest" = "xyes"; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9498$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9499 else 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9501$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9502 fi 9503 GUI_LIB_LOC="$GTK_LIBDIR" 9504 GTK_LIBNAME="$GTK_LIBS" 9505 GUI_INC_LOC="$GTK_CFLAGS" 9506 else 9507 { 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9509$as_echo "no" >&6; } 9510 GTK_CFLAGS="" 9511 GTK_LIBS="" 9512 : 9513 } 9514 fi 9515 } 9516 else 9517 GTK_CFLAGS="" 9518 GTK_LIBS="" 9519 : 9520 fi 9521 9522 9523 rm -f conf.gtktest 9524 9525 if test "x$GTK_CFLAGS" != "x"; then 9526 SKIP_GTK3=YES 9527 SKIP_ATHENA=YES 9528 SKIP_NEXTAW=YES 9529 SKIP_MOTIF=YES 9530 GUITYPE=GTK 9531 9532 fi 9533 fi 9534 if test "x$GUITYPE" = "xGTK"; then 9535 if test -z "$SKIP_GNOME"; then 9536 { 9537 9538 9539 9540 9541 9542 9543# Check whether --with-gnome-includes was given. 9544if test "${with_gnome_includes+set}" = set; then : 9545 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9546 9547fi 9548 9549 9550 9551# Check whether --with-gnome-libs was given. 9552if test "${with_gnome_libs+set}" = set; then : 9553 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9554 9555fi 9556 9557 9558 9559# Check whether --with-gnome was given. 9560if test "${with_gnome+set}" = set; then : 9561 withval=$with_gnome; if test x$withval = xyes; then 9562 want_gnome=yes 9563 have_gnome=yes 9564 else 9565 if test "x$withval" = xno; then 9566 want_gnome=no 9567 else 9568 want_gnome=yes 9569 LDFLAGS="$LDFLAGS -L$withval/lib" 9570 CFLAGS="$CFLAGS -I$withval/include" 9571 gnome_prefix=$withval/lib 9572 fi 9573 fi 9574else 9575 want_gnome=yes 9576fi 9577 9578 9579 if test "x$want_gnome" = xyes; then 9580 { 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9582$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9583 if $PKG_CONFIG --exists libgnomeui-2.0; then 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9585$as_echo "yes" >&6; } 9586 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9587 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9588 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9589 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9591$as_echo_n "checking for FreeBSD... " >&6; } 9592 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9594$as_echo "yes" >&6; } 9595 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9596 GNOME_LIBS="$GNOME_LIBS -pthread" 9597 else 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599$as_echo "no" >&6; } 9600 fi 9601 have_gnome=yes 9602 else 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9604$as_echo "not found" >&6; } 9605 if test "x" = xfail; then 9606 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9607 fi 9608 fi 9609 } 9610 fi 9611 9612 if test "x$have_gnome" = xyes ; then 9613 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9614 9615 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9616 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9617 fi 9618 } 9619 fi 9620 fi 9621fi 9622 9623 9624if test -z "$SKIP_GTK3"; then 9625 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9627$as_echo_n "checking --disable-gtktest argument... " >&6; } 9628 # Check whether --enable-gtktest was given. 9629if test "${enable_gtktest+set}" = set; then : 9630 enableval=$enable_gtktest; 9631else 9632 enable_gtktest=yes 9633fi 9634 9635 if test "x$enable_gtktest" = "xyes" ; then 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9637$as_echo "gtk test enabled" >&6; } 9638 else 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9640$as_echo "gtk test disabled" >&6; } 9641 fi 9642 9643 if test "X$PKG_CONFIG" = "X"; then 9644 if test -n "$ac_tool_prefix"; then 9645 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9646set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9648$as_echo_n "checking for $ac_word... " >&6; } 9649if ${ac_cv_path_PKG_CONFIG+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 case $PKG_CONFIG in 9653 [\\/]* | ?:[\\/]*) 9654 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9655 ;; 9656 *) 9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9658for as_dir in $PATH 9659do 9660 IFS=$as_save_IFS 9661 test -z "$as_dir" && as_dir=. 9662 for ac_exec_ext in '' $ac_executable_extensions; do 9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9664 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9666 break 2 9667 fi 9668done 9669 done 9670IFS=$as_save_IFS 9671 9672 ;; 9673esac 9674fi 9675PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9676if test -n "$PKG_CONFIG"; then 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9678$as_echo "$PKG_CONFIG" >&6; } 9679else 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9681$as_echo "no" >&6; } 9682fi 9683 9684 9685fi 9686if test -z "$ac_cv_path_PKG_CONFIG"; then 9687 ac_pt_PKG_CONFIG=$PKG_CONFIG 9688 # Extract the first word of "pkg-config", so it can be a program name with args. 9689set dummy pkg-config; ac_word=$2 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9691$as_echo_n "checking for $ac_word... " >&6; } 9692if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 case $ac_pt_PKG_CONFIG in 9696 [\\/]* | ?:[\\/]*) 9697 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9698 ;; 9699 *) 9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9701for as_dir in $PATH 9702do 9703 IFS=$as_save_IFS 9704 test -z "$as_dir" && as_dir=. 9705 for ac_exec_ext in '' $ac_executable_extensions; do 9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9707 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9709 break 2 9710 fi 9711done 9712 done 9713IFS=$as_save_IFS 9714 9715 ;; 9716esac 9717fi 9718ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9719if test -n "$ac_pt_PKG_CONFIG"; then 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9721$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9722else 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9724$as_echo "no" >&6; } 9725fi 9726 9727 if test "x$ac_pt_PKG_CONFIG" = x; then 9728 PKG_CONFIG="no" 9729 else 9730 case $cross_compiling:$ac_tool_warned in 9731yes:) 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9734ac_tool_warned=yes ;; 9735esac 9736 PKG_CONFIG=$ac_pt_PKG_CONFIG 9737 fi 9738else 9739 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9740fi 9741 9742 fi 9743 9744 if test "x$PKG_CONFIG" != "xno"; then 9745 9746 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9747 { 9748 no_gtk="" 9749 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9750 && $PKG_CONFIG --exists gtk+-2.0; then 9751 { 9752 min_gtk_version=3.0.0 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9754$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9755 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9756 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9757 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9758 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9759 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9760 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9761 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9762 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9763 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9764 } 9765 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9766 && $PKG_CONFIG --exists gtk+-3.0; then 9767 { 9768 min_gtk_version=3.0.0 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9770$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9771 9772 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9773 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9774 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9775 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9776 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9777 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9778 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9779 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9780 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9781 } 9782 else 9783 no_gtk=yes 9784 fi 9785 9786 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9787 { 9788 ac_save_CFLAGS="$CFLAGS" 9789 ac_save_LIBS="$LIBS" 9790 CFLAGS="$CFLAGS $GTK_CFLAGS" 9791 LIBS="$LIBS $GTK_LIBS" 9792 9793 rm -f conf.gtktest 9794 if test "$cross_compiling" = yes; then : 9795 echo $ac_n "cross compiling; assumed OK... $ac_c" 9796else 9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799 9800#include <gtk/gtk.h> 9801#include <stdio.h> 9802#if STDC_HEADERS 9803# include <stdlib.h> 9804# include <stddef.h> 9805#endif 9806 9807int 9808main () 9809{ 9810int major, minor, micro; 9811char *tmp_version; 9812 9813system ("touch conf.gtktest"); 9814 9815/* HP/UX 9 (%@#!) writes to sscanf strings */ 9816tmp_version = g_strdup("$min_gtk_version"); 9817if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9818 printf("%s, bad version string\n", "$min_gtk_version"); 9819 exit(1); 9820 } 9821 9822if ((gtk_major_version > major) || 9823 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9824 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9825 (gtk_micro_version >= micro))) 9826{ 9827 return 0; 9828} 9829return 1; 9830} 9831 9832_ACEOF 9833if ac_fn_c_try_run "$LINENO"; then : 9834 9835else 9836 no_gtk=yes 9837fi 9838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9839 conftest.$ac_objext conftest.beam conftest.$ac_ext 9840fi 9841 9842 CFLAGS="$ac_save_CFLAGS" 9843 LIBS="$ac_save_LIBS" 9844 } 9845 fi 9846 if test "x$no_gtk" = x ; then 9847 if test "x$enable_gtktest" = "xyes"; then 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9849$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9850 else 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9852$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9853 fi 9854 GUI_LIB_LOC="$GTK_LIBDIR" 9855 GTK_LIBNAME="$GTK_LIBS" 9856 GUI_INC_LOC="$GTK_CFLAGS" 9857 else 9858 { 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9860$as_echo "no" >&6; } 9861 GTK_CFLAGS="" 9862 GTK_LIBS="" 9863 : 9864 } 9865 fi 9866 } 9867 else 9868 GTK_CFLAGS="" 9869 GTK_LIBS="" 9870 : 9871 fi 9872 9873 9874 rm -f conf.gtktest 9875 9876 if test "x$GTK_CFLAGS" != "x"; then 9877 SKIP_GTK2=YES 9878 SKIP_GNOME=YES 9879 SKIP_ATHENA=YES 9880 SKIP_NEXTAW=YES 9881 SKIP_MOTIF=YES 9882 GUITYPE=GTK 9883 9884 $as_echo "#define USE_GTK3 1" >>confdefs.h 9885 9886 fi 9887 fi 9888fi 9889 9890if test "x$GUITYPE" = "xGTK"; then 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9892$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9893 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9894 if test "x$gdk_pixbuf_version" != x ; then 9895 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9896 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9897 if test "x$gdk_pixbuf_version_minor" != x -a \ 9898 $gdk_pixbuf_version_minor -ge 31 ; then 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9900$as_echo "OK." >&6; } 9901 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9902set dummy glib-compile-resources; ac_word=$2 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9904$as_echo_n "checking for $ac_word... " >&6; } 9905if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 case $GLIB_COMPILE_RESOURCES in 9909 [\\/]* | ?:[\\/]*) 9910 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9911 ;; 9912 *) 9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9914for as_dir in $PATH 9915do 9916 IFS=$as_save_IFS 9917 test -z "$as_dir" && as_dir=. 9918 for ac_exec_ext in '' $ac_executable_extensions; do 9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9920 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9922 break 2 9923 fi 9924done 9925 done 9926IFS=$as_save_IFS 9927 9928 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9929 ;; 9930esac 9931fi 9932GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9933if test -n "$GLIB_COMPILE_RESOURCES"; then 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9935$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9936else 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9938$as_echo "no" >&6; } 9939fi 9940 9941 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9943$as_echo_n "checking glib-compile-resources... " >&6; } 9944 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9945 GLIB_COMPILE_RESOURCES="" 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9947$as_echo "cannot be found in PATH." >&6; } 9948 else 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9950$as_echo "usable." >&6; } 9951 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9952 9953 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9954 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9955 fi 9956 else 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9958$as_echo "not usable." >&6; } 9959 fi 9960 else 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9962$as_echo "cannot obtain from pkg_config." >&6; } 9963 fi 9964 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9966$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9967 # Check whether --enable-icon_cache_update was given. 9968if test "${enable_icon_cache_update+set}" = set; then : 9969 enableval=$enable_icon_cache_update; 9970else 9971 enable_icon_cache_update="yes" 9972fi 9973 9974 if test "$enable_icon_cache_update" = "yes"; then 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9976$as_echo "not set" >&6; } 9977 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9978set dummy gtk-update-icon-cache; ac_word=$2 9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9980$as_echo_n "checking for $ac_word... " >&6; } 9981if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9982 $as_echo_n "(cached) " >&6 9983else 9984 case $GTK_UPDATE_ICON_CACHE in 9985 [\\/]* | ?:[\\/]*) 9986 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9987 ;; 9988 *) 9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9990for as_dir in $PATH 9991do 9992 IFS=$as_save_IFS 9993 test -z "$as_dir" && as_dir=. 9994 for ac_exec_ext in '' $ac_executable_extensions; do 9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9996 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9998 break 2 9999 fi 10000done 10001 done 10002IFS=$as_save_IFS 10003 10004 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 10005 ;; 10006esac 10007fi 10008GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 10009if test -n "$GTK_UPDATE_ICON_CACHE"; then 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 10011$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 10012else 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10014$as_echo "no" >&6; } 10015fi 10016 10017 10018 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10020$as_echo "not found in PATH." >&6; } 10021 fi 10022 else 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10024$as_echo "update disabled" >&6; } 10025 fi 10026 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 10028$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 10029 # Check whether --enable-desktop_database_update was given. 10030if test "${enable_desktop_database_update+set}" = set; then : 10031 enableval=$enable_desktop_database_update; 10032else 10033 enable_desktop_database_update="yes" 10034fi 10035 10036 if test "$enable_desktop_database_update" = "yes"; then 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10038$as_echo "not set" >&6; } 10039 # Extract the first word of "update-desktop-database", so it can be a program name with args. 10040set dummy update-desktop-database; ac_word=$2 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10042$as_echo_n "checking for $ac_word... " >&6; } 10043if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 case $UPDATE_DESKTOP_DATABASE in 10047 [\\/]* | ?:[\\/]*) 10048 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 10049 ;; 10050 *) 10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10052for as_dir in $PATH 10053do 10054 IFS=$as_save_IFS 10055 test -z "$as_dir" && as_dir=. 10056 for ac_exec_ext in '' $ac_executable_extensions; do 10057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10058 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10060 break 2 10061 fi 10062done 10063 done 10064IFS=$as_save_IFS 10065 10066 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 10067 ;; 10068esac 10069fi 10070UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 10071if test -n "$UPDATE_DESKTOP_DATABASE"; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 10073$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 10074else 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076$as_echo "no" >&6; } 10077fi 10078 10079 10080 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10082$as_echo "not found in PATH." >&6; } 10083 fi 10084 else 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10086$as_echo "update disabled" >&6; } 10087 fi 10088fi 10089 10090 10091 10092 10093 10094 10095 10096if test -z "$SKIP_MOTIF"; then 10097 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" 10098 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 10099 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 10101$as_echo_n "checking for location of Motif GUI includes... " >&6; } 10102 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 10103 GUI_INC_LOC= 10104 for try in $gui_includes; do 10105 if test -f "$try/Xm/Xm.h"; then 10106 GUI_INC_LOC=$try 10107 fi 10108 done 10109 if test -n "$GUI_INC_LOC"; then 10110 if test "$GUI_INC_LOC" = /usr/include; then 10111 GUI_INC_LOC= 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10113$as_echo "in default path" >&6; } 10114 else 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 10116$as_echo "$GUI_INC_LOC" >&6; } 10117 fi 10118 else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10120$as_echo "<not found>" >&6; } 10121 SKIP_MOTIF=YES 10122 fi 10123fi 10124 10125 10126if test -z "$SKIP_MOTIF"; then 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 10128$as_echo_n "checking --with-motif-lib argument... " >&6; } 10129 10130# Check whether --with-motif-lib was given. 10131if test "${with_motif_lib+set}" = set; then : 10132 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 10133fi 10134 10135 10136 if test -n "$MOTIF_LIBNAME"; then 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 10138$as_echo "$MOTIF_LIBNAME" >&6; } 10139 GUI_LIB_LOC= 10140 else 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10142$as_echo "no" >&6; } 10143 10144 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 10145 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 10147$as_echo_n "checking for location of Motif GUI libs... " >&6; } 10148 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" 10149 GUI_LIB_LOC= 10150 for try in $gui_libs; do 10151 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 10152 if test -f "$libtry"; then 10153 GUI_LIB_LOC=$try 10154 fi 10155 done 10156 done 10157 if test -n "$GUI_LIB_LOC"; then 10158 if test "$GUI_LIB_LOC" = /usr/lib \ 10159 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 10160 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 10161 GUI_LIB_LOC= 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10163$as_echo "in default path" >&6; } 10164 else 10165 if test -n "$GUI_LIB_LOC"; then 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 10167$as_echo "$GUI_LIB_LOC" >&6; } 10168 if test "`(uname) 2>/dev/null`" = SunOS && 10169 uname -r | grep '^5' >/dev/null; then 10170 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 10171 fi 10172 fi 10173 fi 10174 MOTIF_LIBNAME=-lXm 10175 else 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10177$as_echo "<not found>" >&6; } 10178 SKIP_MOTIF=YES 10179 fi 10180 fi 10181fi 10182 10183if test -z "$SKIP_MOTIF"; then 10184 SKIP_ATHENA=YES 10185 SKIP_NEXTAW=YES 10186 GUITYPE=MOTIF 10187 10188fi 10189 10190 10191GUI_X_LIBS= 10192 10193if test -z "$SKIP_ATHENA"; then 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 10195$as_echo_n "checking if Athena header files can be found... " >&6; } 10196 cflags_save=$CFLAGS 10197 CFLAGS="$CFLAGS $X_CFLAGS" 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199/* end confdefs.h. */ 10200 10201#include <X11/Intrinsic.h> 10202#include <X11/Xaw/Paned.h> 10203int 10204main () 10205{ 10206 10207 ; 10208 return 0; 10209} 10210_ACEOF 10211if ac_fn_c_try_compile "$LINENO"; then : 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10213$as_echo "yes" >&6; } 10214else 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10216$as_echo "no" >&6; }; SKIP_ATHENA=YES 10217fi 10218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10219 CFLAGS=$cflags_save 10220fi 10221 10222if test -z "$SKIP_ATHENA"; then 10223 GUITYPE=ATHENA 10224fi 10225 10226if test -z "$SKIP_NEXTAW"; then 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 10228$as_echo_n "checking if neXtaw header files can be found... " >&6; } 10229 cflags_save=$CFLAGS 10230 CFLAGS="$CFLAGS $X_CFLAGS" 10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233 10234#include <X11/Intrinsic.h> 10235#include <X11/neXtaw/Paned.h> 10236int 10237main () 10238{ 10239 10240 ; 10241 return 0; 10242} 10243_ACEOF 10244if ac_fn_c_try_compile "$LINENO"; then : 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10246$as_echo "yes" >&6; } 10247else 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10249$as_echo "no" >&6; }; SKIP_NEXTAW=YES 10250fi 10251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10252 CFLAGS=$cflags_save 10253fi 10254 10255if test -z "$SKIP_NEXTAW"; then 10256 GUITYPE=NEXTAW 10257fi 10258 10259if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10260 if test -n "$GUI_INC_LOC"; then 10261 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 10262 fi 10263 if test -n "$GUI_LIB_LOC"; then 10264 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 10265 fi 10266 10267 ldflags_save=$LDFLAGS 10268 LDFLAGS="$X_LIBS $LDFLAGS" 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10270$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10271if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273else 10274 ac_check_lib_save_LIBS=$LIBS 10275LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10277/* end confdefs.h. */ 10278 10279/* Override any GCC internal prototype to avoid an error. 10280 Use char because int might match the return type of a GCC 10281 builtin and then its argument prototype would still apply. */ 10282#ifdef __cplusplus 10283extern "C" 10284#endif 10285char XShapeQueryExtension (); 10286int 10287main () 10288{ 10289return XShapeQueryExtension (); 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294if ac_fn_c_try_link "$LINENO"; then : 10295 ac_cv_lib_Xext_XShapeQueryExtension=yes 10296else 10297 ac_cv_lib_Xext_XShapeQueryExtension=no 10298fi 10299rm -f core conftest.err conftest.$ac_objext \ 10300 conftest$ac_exeext conftest.$ac_ext 10301LIBS=$ac_check_lib_save_LIBS 10302fi 10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10304$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10305if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 10306 GUI_X_LIBS="-lXext" 10307fi 10308 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 10310$as_echo_n "checking for wslen in -lw... " >&6; } 10311if ${ac_cv_lib_w_wslen+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 ac_check_lib_save_LIBS=$LIBS 10315LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10317/* end confdefs.h. */ 10318 10319/* Override any GCC internal prototype to avoid an error. 10320 Use char because int might match the return type of a GCC 10321 builtin and then its argument prototype would still apply. */ 10322#ifdef __cplusplus 10323extern "C" 10324#endif 10325char wslen (); 10326int 10327main () 10328{ 10329return wslen (); 10330 ; 10331 return 0; 10332} 10333_ACEOF 10334if ac_fn_c_try_link "$LINENO"; then : 10335 ac_cv_lib_w_wslen=yes 10336else 10337 ac_cv_lib_w_wslen=no 10338fi 10339rm -f core conftest.err conftest.$ac_objext \ 10340 conftest$ac_exeext conftest.$ac_ext 10341LIBS=$ac_check_lib_save_LIBS 10342fi 10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 10344$as_echo "$ac_cv_lib_w_wslen" >&6; } 10345if test "x$ac_cv_lib_w_wslen" = xyes; then : 10346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 10347fi 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10350$as_echo_n "checking for dlsym in -ldl... " >&6; } 10351if ${ac_cv_lib_dl_dlsym+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 ac_check_lib_save_LIBS=$LIBS 10355LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358 10359/* Override any GCC internal prototype to avoid an error. 10360 Use char because int might match the return type of a GCC 10361 builtin and then its argument prototype would still apply. */ 10362#ifdef __cplusplus 10363extern "C" 10364#endif 10365char dlsym (); 10366int 10367main () 10368{ 10369return dlsym (); 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374if ac_fn_c_try_link "$LINENO"; then : 10375 ac_cv_lib_dl_dlsym=yes 10376else 10377 ac_cv_lib_dl_dlsym=no 10378fi 10379rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381LIBS=$ac_check_lib_save_LIBS 10382fi 10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10384$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10385if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10386 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 10387fi 10388 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 10390$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 10391if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 10392 $as_echo_n "(cached) " >&6 10393else 10394 ac_check_lib_save_LIBS=$LIBS 10395LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398 10399/* Override any GCC internal prototype to avoid an error. 10400 Use char because int might match the return type of a GCC 10401 builtin and then its argument prototype would still apply. */ 10402#ifdef __cplusplus 10403extern "C" 10404#endif 10405char XmuCreateStippledPixmap (); 10406int 10407main () 10408{ 10409return XmuCreateStippledPixmap (); 10410 ; 10411 return 0; 10412} 10413_ACEOF 10414if ac_fn_c_try_link "$LINENO"; then : 10415 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10416else 10417 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext \ 10420 conftest$ac_exeext conftest.$ac_ext 10421LIBS=$ac_check_lib_save_LIBS 10422fi 10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10424$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10425if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10426 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10427fi 10428 10429 if test -z "$SKIP_MOTIF"; then 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10431$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10432if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 ac_check_lib_save_LIBS=$LIBS 10436LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439 10440/* Override any GCC internal prototype to avoid an error. 10441 Use char because int might match the return type of a GCC 10442 builtin and then its argument prototype would still apply. */ 10443#ifdef __cplusplus 10444extern "C" 10445#endif 10446char XpEndJob (); 10447int 10448main () 10449{ 10450return XpEndJob (); 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 ac_cv_lib_Xp_XpEndJob=yes 10457else 10458 ac_cv_lib_Xp_XpEndJob=no 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462LIBS=$ac_check_lib_save_LIBS 10463fi 10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10465$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10466if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10467 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10468fi 10469 10470 fi 10471 LDFLAGS=$ldflags_save 10472 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10474$as_echo_n "checking for extra X11 defines... " >&6; } 10475 NARROW_PROTO= 10476 rm -fr conftestdir 10477 if mkdir conftestdir; then 10478 cd conftestdir 10479 cat > Imakefile <<'EOF' 10480acfindx: 10481 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10482EOF 10483 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10484 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10485 fi 10486 cd .. 10487 rm -fr conftestdir 10488 fi 10489 if test -z "$NARROW_PROTO"; then 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10491$as_echo "no" >&6; } 10492 else 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10494$as_echo "$NARROW_PROTO" >&6; } 10495 fi 10496 10497fi 10498 10499if test "$enable_xsmp" = "yes"; then 10500 cppflags_save=$CPPFLAGS 10501 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10502 for ac_header in X11/SM/SMlib.h 10503do : 10504 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10505if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10506 cat >>confdefs.h <<_ACEOF 10507#define HAVE_X11_SM_SMLIB_H 1 10508_ACEOF 10509 10510fi 10511 10512done 10513 10514 CPPFLAGS=$cppflags_save 10515fi 10516 10517 10518if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10519 cppflags_save=$CPPFLAGS 10520 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10521 for ac_header in X11/xpm.h X11/Sunkeysym.h 10522do : 10523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10524ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10526 cat >>confdefs.h <<_ACEOF 10527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10528_ACEOF 10529 10530fi 10531 10532done 10533 10534 10535 if test ! "$enable_xim" = "no"; then 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10537$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10539/* end confdefs.h. */ 10540#include <X11/Xlib.h> 10541_ACEOF 10542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10543 $EGREP "XIMText" >/dev/null 2>&1; then : 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10545$as_echo "yes" >&6; } 10546else 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10548$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10549fi 10550rm -f conftest* 10551 10552 fi 10553 CPPFLAGS=$cppflags_save 10554 10555 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10556 -a "x$GUITYPE" != "xNONE" ; then 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10558$as_echo "X GUI selected; xim has been enabled" >&6; } 10559 enable_xim="yes" 10560 fi 10561fi 10562 10563if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10564 cppflags_save=$CPPFLAGS 10565 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10567$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569/* end confdefs.h. */ 10570 10571#include <X11/Intrinsic.h> 10572#include <X11/Xmu/Editres.h> 10573int 10574main () 10575{ 10576int i; i = 0; 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581if ac_fn_c_try_compile "$LINENO"; then : 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10583$as_echo "yes" >&6; } 10584 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10585 10586else 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10588$as_echo "no" >&6; } 10589fi 10590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10591 CPPFLAGS=$cppflags_save 10592fi 10593 10594if test -z "$SKIP_MOTIF"; then 10595 cppflags_save=$CPPFLAGS 10596 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10597 if test "$zOSUnix" = "yes"; then 10598 xmheader="Xm/Xm.h" 10599 else 10600 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10601 Xm/UnhighlightT.h Xm/Notebook.h" 10602 fi 10603 for ac_header in $xmheader 10604do : 10605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10606ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10608 cat >>confdefs.h <<_ACEOF 10609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10610_ACEOF 10611 10612fi 10613 10614done 10615 10616 10617 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10619$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622#include <Xm/XpmP.h> 10623int 10624main () 10625{ 10626XpmAttributes_21 attr; 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631if ac_fn_c_try_compile "$LINENO"; then : 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10633$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10634 10635else 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10637$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10638 10639 10640fi 10641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10642 else 10643 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10644 10645 fi 10646 CPPFLAGS=$cppflags_save 10647fi 10648 10649if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10651$as_echo "no GUI selected; xim has been disabled" >&6; } 10652 enable_xim="no" 10653fi 10654if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10656$as_echo "no GUI selected; fontset has been disabled" >&6; } 10657 enable_fontset="no" 10658fi 10659if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10661$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10662 enable_fontset="no" 10663fi 10664 10665if test -z "$SKIP_PHOTON"; then 10666 GUITYPE=PHOTONGUI 10667fi 10668 10669 10670 10671 10672 10673 10674if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10675 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10676fi 10677 10678if test "$enable_xim" = "yes"; then 10679 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10680 10681fi 10682if test "$enable_fontset" = "yes"; then 10683 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10684 10685fi 10686 10687 10688 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10690$as_echo_n "checking for /proc link to executable... " >&6; } 10691if test -L "/proc/self/exe"; then 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10693$as_echo "/proc/self/exe" >&6; } 10694 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10695 10696elif test -L "/proc/self/path/a.out"; then 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10698$as_echo "/proc/self/path/a.out" >&6; } 10699 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10700 10701elif test -L "/proc/curproc/file"; then 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10703$as_echo "/proc/curproc/file" >&6; } 10704 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10705 10706else 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10708$as_echo "no" >&6; } 10709fi 10710 10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10712$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10713case `uname` in 10714 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10715$as_echo "yes" >&6; } 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10717$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10718 if test "x$with_x" = "xno" ; then 10719 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10721$as_echo "yes" >&6; } 10722 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10723 10724 else 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10726$as_echo "no - using X11" >&6; } 10727 fi ;; 10728 10729 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10730$as_echo "no" >&6; };; 10731esac 10732 10733if test "$enable_hangulinput" = "yes"; then 10734 if test "x$GUITYPE" = "xNONE"; then 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10736$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10737 enable_hangulinput=no 10738 else 10739 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10740 10741 HANGULIN_SRC=hangulin.c 10742 10743 HANGULIN_OBJ=objects/hangulin.o 10744 10745 fi 10746fi 10747 10748 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10750$as_echo_n "checking whether toupper is broken... " >&6; } 10751if ${vim_cv_toupper_broken+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753else 10754 10755 if test "$cross_compiling" = yes; then : 10756 10757 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10758 10759else 10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10761/* end confdefs.h. */ 10762 10763#include "confdefs.h" 10764#include <ctype.h> 10765#if STDC_HEADERS 10766# include <stdlib.h> 10767# include <stddef.h> 10768#endif 10769main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10770 10771_ACEOF 10772if ac_fn_c_try_run "$LINENO"; then : 10773 10774 vim_cv_toupper_broken=yes 10775 10776else 10777 10778 vim_cv_toupper_broken=no 10779 10780fi 10781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10782 conftest.$ac_objext conftest.beam conftest.$ac_ext 10783fi 10784 10785fi 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10787$as_echo "$vim_cv_toupper_broken" >&6; } 10788 10789if test "x$vim_cv_toupper_broken" = "xyes" ; then 10790 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10791 10792fi 10793 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10795$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798#include <stdio.h> 10799int 10800main () 10801{ 10802printf("(" __DATE__ " " __TIME__ ")"); 10803 ; 10804 return 0; 10805} 10806_ACEOF 10807if ac_fn_c_try_compile "$LINENO"; then : 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10809$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10810 10811else 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10813$as_echo "no" >&6; } 10814fi 10815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10816 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10818$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821#include <stdio.h> 10822int 10823main () 10824{ 10825int x __attribute__((unused)); 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830if ac_fn_c_try_compile "$LINENO"; then : 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10832$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10833 10834else 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10836$as_echo "no" >&6; } 10837fi 10838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10839 10840ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10841if test "x$ac_cv_header_elf_h" = xyes; then : 10842 HAS_ELF=1 10843fi 10844 10845 10846if test "$HAS_ELF" = 1; then 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10848$as_echo_n "checking for main in -lelf... " >&6; } 10849if ${ac_cv_lib_elf_main+:} false; then : 10850 $as_echo_n "(cached) " >&6 10851else 10852 ac_check_lib_save_LIBS=$LIBS 10853LIBS="-lelf $LIBS" 10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856 10857 10858int 10859main () 10860{ 10861return main (); 10862 ; 10863 return 0; 10864} 10865_ACEOF 10866if ac_fn_c_try_link "$LINENO"; then : 10867 ac_cv_lib_elf_main=yes 10868else 10869 ac_cv_lib_elf_main=no 10870fi 10871rm -f core conftest.err conftest.$ac_objext \ 10872 conftest$ac_exeext conftest.$ac_ext 10873LIBS=$ac_check_lib_save_LIBS 10874fi 10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10876$as_echo "$ac_cv_lib_elf_main" >&6; } 10877if test "x$ac_cv_lib_elf_main" = xyes; then : 10878 cat >>confdefs.h <<_ACEOF 10879#define HAVE_LIBELF 1 10880_ACEOF 10881 10882 LIBS="-lelf $LIBS" 10883 10884fi 10885 10886fi 10887 10888ac_header_dirent=no 10889for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10890 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10892$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10893if eval \${$as_ac_Header+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10897/* end confdefs.h. */ 10898#include <sys/types.h> 10899#include <$ac_hdr> 10900 10901int 10902main () 10903{ 10904if ((DIR *) 0) 10905return 0; 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_compile "$LINENO"; then : 10911 eval "$as_ac_Header=yes" 10912else 10913 eval "$as_ac_Header=no" 10914fi 10915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10916fi 10917eval ac_res=\$$as_ac_Header 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10919$as_echo "$ac_res" >&6; } 10920if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10921 cat >>confdefs.h <<_ACEOF 10922#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10923_ACEOF 10924 10925ac_header_dirent=$ac_hdr; break 10926fi 10927 10928done 10929# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10930if test $ac_header_dirent = dirent.h; then 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10932$as_echo_n "checking for library containing opendir... " >&6; } 10933if ${ac_cv_search_opendir+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935else 10936 ac_func_search_save_LIBS=$LIBS 10937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938/* end confdefs.h. */ 10939 10940/* Override any GCC internal prototype to avoid an error. 10941 Use char because int might match the return type of a GCC 10942 builtin and then its argument prototype would still apply. */ 10943#ifdef __cplusplus 10944extern "C" 10945#endif 10946char opendir (); 10947int 10948main () 10949{ 10950return opendir (); 10951 ; 10952 return 0; 10953} 10954_ACEOF 10955for ac_lib in '' dir; do 10956 if test -z "$ac_lib"; then 10957 ac_res="none required" 10958 else 10959 ac_res=-l$ac_lib 10960 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10961 fi 10962 if ac_fn_c_try_link "$LINENO"; then : 10963 ac_cv_search_opendir=$ac_res 10964fi 10965rm -f core conftest.err conftest.$ac_objext \ 10966 conftest$ac_exeext 10967 if ${ac_cv_search_opendir+:} false; then : 10968 break 10969fi 10970done 10971if ${ac_cv_search_opendir+:} false; then : 10972 10973else 10974 ac_cv_search_opendir=no 10975fi 10976rm conftest.$ac_ext 10977LIBS=$ac_func_search_save_LIBS 10978fi 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10980$as_echo "$ac_cv_search_opendir" >&6; } 10981ac_res=$ac_cv_search_opendir 10982if test "$ac_res" != no; then : 10983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10984 10985fi 10986 10987else 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10989$as_echo_n "checking for library containing opendir... " >&6; } 10990if ${ac_cv_search_opendir+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992else 10993 ac_func_search_save_LIBS=$LIBS 10994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10995/* end confdefs.h. */ 10996 10997/* Override any GCC internal prototype to avoid an error. 10998 Use char because int might match the return type of a GCC 10999 builtin and then its argument prototype would still apply. */ 11000#ifdef __cplusplus 11001extern "C" 11002#endif 11003char opendir (); 11004int 11005main () 11006{ 11007return opendir (); 11008 ; 11009 return 0; 11010} 11011_ACEOF 11012for ac_lib in '' x; do 11013 if test -z "$ac_lib"; then 11014 ac_res="none required" 11015 else 11016 ac_res=-l$ac_lib 11017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11018 fi 11019 if ac_fn_c_try_link "$LINENO"; then : 11020 ac_cv_search_opendir=$ac_res 11021fi 11022rm -f core conftest.err conftest.$ac_objext \ 11023 conftest$ac_exeext 11024 if ${ac_cv_search_opendir+:} false; then : 11025 break 11026fi 11027done 11028if ${ac_cv_search_opendir+:} false; then : 11029 11030else 11031 ac_cv_search_opendir=no 11032fi 11033rm conftest.$ac_ext 11034LIBS=$ac_func_search_save_LIBS 11035fi 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11037$as_echo "$ac_cv_search_opendir" >&6; } 11038ac_res=$ac_cv_search_opendir 11039if test "$ac_res" != no; then : 11040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11041 11042fi 11043 11044fi 11045 11046 11047if test $ac_cv_header_sys_wait_h = no; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 11049$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052#include <sys/wait.h> 11053int 11054main () 11055{ 11056union wait xx, yy; xx = yy 11057 ; 11058 return 0; 11059} 11060_ACEOF 11061if ac_fn_c_try_compile "$LINENO"; then : 11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11063$as_echo "yes" >&6; } 11064 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11065 11066 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 11067 11068else 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11070$as_echo "no" >&6; } 11071fi 11072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11073fi 11074 11075for ac_header in stdint.h stdlib.h string.h \ 11076 sys/select.h sys/utsname.h termcap.h fcntl.h \ 11077 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 11078 termio.h iconv.h inttypes.h langinfo.h math.h \ 11079 unistd.h stropts.h errno.h sys/resource.h \ 11080 sys/systeminfo.h locale.h sys/stream.h termios.h \ 11081 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 11082 utime.h sys/param.h libintl.h libgen.h \ 11083 util/debug.h util/msg18n.h frame.h sys/acl.h \ 11084 sys/access.h sys/sysinfo.h wchar.h wctype.h 11085do : 11086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11087ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11089 cat >>confdefs.h <<_ACEOF 11090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11091_ACEOF 11092 11093fi 11094 11095done 11096 11097 11098for ac_header in sys/ptem.h 11099do : 11100 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 11101# include <sys/stream.h> 11102#endif 11103" 11104if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 11105 cat >>confdefs.h <<_ACEOF 11106#define HAVE_SYS_PTEM_H 1 11107_ACEOF 11108 11109fi 11110 11111done 11112 11113 11114for ac_header in sys/sysctl.h 11115do : 11116 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 11117# include <sys/param.h> 11118#endif 11119" 11120if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 11121 cat >>confdefs.h <<_ACEOF 11122#define HAVE_SYS_SYSCTL_H 1 11123_ACEOF 11124 11125fi 11126 11127done 11128 11129 11130 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 11132$as_echo_n "checking for pthread_np.h... " >&6; } 11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135 11136#include <pthread.h> 11137#include <pthread_np.h> 11138int 11139main () 11140{ 11141int i; i = 0; 11142 ; 11143 return 0; 11144} 11145_ACEOF 11146if ac_fn_c_try_compile "$LINENO"; then : 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11148$as_echo "yes" >&6; } 11149 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 11150 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154fi 11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11156 11157for ac_header in strings.h 11158do : 11159 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 11160if test "x$ac_cv_header_strings_h" = xyes; then : 11161 cat >>confdefs.h <<_ACEOF 11162#define HAVE_STRINGS_H 1 11163_ACEOF 11164 11165fi 11166 11167done 11168 11169if test "x$MACOS_X" = "xyes"; then 11170 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11171 11172else 11173 11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 11175$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 11176cppflags_save=$CPPFLAGS 11177CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11179/* end confdefs.h. */ 11180 11181#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11182# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11183 /* but don't do it on AIX 5.1 (Uribarri) */ 11184#endif 11185#ifdef HAVE_XM_XM_H 11186# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11187#endif 11188#ifdef HAVE_STRING_H 11189# include <string.h> 11190#endif 11191#if defined(HAVE_STRINGS_H) 11192# include <strings.h> 11193#endif 11194 11195int 11196main () 11197{ 11198int i; i = 0; 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203if ac_fn_c_try_compile "$LINENO"; then : 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11205$as_echo "yes" >&6; } 11206else 11207 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11208 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210$as_echo "no" >&6; } 11211fi 11212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11213CPPFLAGS=$cppflags_save 11214fi 11215 11216if test $ac_cv_c_compiler_gnu = yes; then 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11218$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11219if ${ac_cv_prog_gcc_traditional+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 ac_pattern="Autoconf.*'x'" 11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225#include <sgtty.h> 11226Autoconf TIOCGETP 11227_ACEOF 11228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11229 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11230 ac_cv_prog_gcc_traditional=yes 11231else 11232 ac_cv_prog_gcc_traditional=no 11233fi 11234rm -f conftest* 11235 11236 11237 if test $ac_cv_prog_gcc_traditional = no; then 11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11239/* end confdefs.h. */ 11240#include <termio.h> 11241Autoconf TCGETA 11242_ACEOF 11243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11244 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11245 ac_cv_prog_gcc_traditional=yes 11246fi 11247rm -f conftest* 11248 11249 fi 11250fi 11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11252$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11253 if test $ac_cv_prog_gcc_traditional = yes; then 11254 CC="$CC -traditional" 11255 fi 11256fi 11257 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11259$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11260if ${ac_cv_c_const+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265 11266int 11267main () 11268{ 11269 11270#ifndef __cplusplus 11271 /* Ultrix mips cc rejects this sort of thing. */ 11272 typedef int charset[2]; 11273 const charset cs = { 0, 0 }; 11274 /* SunOS 4.1.1 cc rejects this. */ 11275 char const *const *pcpcc; 11276 char **ppc; 11277 /* NEC SVR4.0.2 mips cc rejects this. */ 11278 struct point {int x, y;}; 11279 static struct point const zero = {0,0}; 11280 /* AIX XL C 1.02.0.0 rejects this. 11281 It does not let you subtract one const X* pointer from another in 11282 an arm of an if-expression whose if-part is not a constant 11283 expression */ 11284 const char *g = "string"; 11285 pcpcc = &g + (g ? g-g : 0); 11286 /* HPUX 7.0 cc rejects these. */ 11287 ++pcpcc; 11288 ppc = (char**) pcpcc; 11289 pcpcc = (char const *const *) ppc; 11290 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11291 char tx; 11292 char *t = &tx; 11293 char const *s = 0 ? (char *) 0 : (char const *) 0; 11294 11295 *t++ = 0; 11296 if (s) return 0; 11297 } 11298 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11299 int x[] = {25, 17}; 11300 const int *foo = &x[0]; 11301 ++foo; 11302 } 11303 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11304 typedef const int *iptr; 11305 iptr p = 0; 11306 ++p; 11307 } 11308 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11309 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11310 struct s { int j; const int *ap[3]; } bx; 11311 struct s *b = &bx; b->j = 5; 11312 } 11313 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11314 const int foo = 10; 11315 if (!foo) return 0; 11316 } 11317 return !cs[0] && !zero.x; 11318#endif 11319 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324if ac_fn_c_try_compile "$LINENO"; then : 11325 ac_cv_c_const=yes 11326else 11327 ac_cv_c_const=no 11328fi 11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11330fi 11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11332$as_echo "$ac_cv_c_const" >&6; } 11333if test $ac_cv_c_const = no; then 11334 11335$as_echo "#define const /**/" >>confdefs.h 11336 11337fi 11338 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11340$as_echo_n "checking for working volatile... " >&6; } 11341if ${ac_cv_c_volatile+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346 11347int 11348main () 11349{ 11350 11351volatile int x; 11352int * volatile y = (int *) 0; 11353return !x && !y; 11354 ; 11355 return 0; 11356} 11357_ACEOF 11358if ac_fn_c_try_compile "$LINENO"; then : 11359 ac_cv_c_volatile=yes 11360else 11361 ac_cv_c_volatile=no 11362fi 11363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11364fi 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11366$as_echo "$ac_cv_c_volatile" >&6; } 11367if test $ac_cv_c_volatile = no; then 11368 11369$as_echo "#define volatile /**/" >>confdefs.h 11370 11371fi 11372 11373ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11374if test "x$ac_cv_type_mode_t" = xyes; then : 11375 11376else 11377 11378cat >>confdefs.h <<_ACEOF 11379#define mode_t int 11380_ACEOF 11381 11382fi 11383 11384ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11385if test "x$ac_cv_type_off_t" = xyes; then : 11386 11387else 11388 11389cat >>confdefs.h <<_ACEOF 11390#define off_t long int 11391_ACEOF 11392 11393fi 11394 11395ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11396if test "x$ac_cv_type_pid_t" = xyes; then : 11397 11398else 11399 11400cat >>confdefs.h <<_ACEOF 11401#define pid_t int 11402_ACEOF 11403 11404fi 11405 11406ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11407if test "x$ac_cv_type_size_t" = xyes; then : 11408 11409else 11410 11411cat >>confdefs.h <<_ACEOF 11412#define size_t unsigned int 11413_ACEOF 11414 11415fi 11416 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11418$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11419if ${ac_cv_type_uid_t+:} false; then : 11420 $as_echo_n "(cached) " >&6 11421else 11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11423/* end confdefs.h. */ 11424#include <sys/types.h> 11425 11426_ACEOF 11427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11428 $EGREP "uid_t" >/dev/null 2>&1; then : 11429 ac_cv_type_uid_t=yes 11430else 11431 ac_cv_type_uid_t=no 11432fi 11433rm -f conftest* 11434 11435fi 11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11437$as_echo "$ac_cv_type_uid_t" >&6; } 11438if test $ac_cv_type_uid_t = no; then 11439 11440$as_echo "#define uid_t int" >>confdefs.h 11441 11442 11443$as_echo "#define gid_t int" >>confdefs.h 11444 11445fi 11446 11447ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11448case $ac_cv_c_uint32_t in #( 11449 no|yes) ;; #( 11450 *) 11451 11452$as_echo "#define _UINT32_T 1" >>confdefs.h 11453 11454 11455cat >>confdefs.h <<_ACEOF 11456#define uint32_t $ac_cv_c_uint32_t 11457_ACEOF 11458;; 11459 esac 11460 11461 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11463$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11464if ${ac_cv_header_time+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11468/* end confdefs.h. */ 11469#include <sys/types.h> 11470#include <sys/time.h> 11471#include <time.h> 11472 11473int 11474main () 11475{ 11476if ((struct tm *) 0) 11477return 0; 11478 ; 11479 return 0; 11480} 11481_ACEOF 11482if ac_fn_c_try_compile "$LINENO"; then : 11483 ac_cv_header_time=yes 11484else 11485 ac_cv_header_time=no 11486fi 11487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11488fi 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11490$as_echo "$ac_cv_header_time" >&6; } 11491if test $ac_cv_header_time = yes; then 11492 11493$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11494 11495fi 11496 11497ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11498if test "x$ac_cv_type_ino_t" = xyes; then : 11499 11500else 11501 11502cat >>confdefs.h <<_ACEOF 11503#define ino_t long 11504_ACEOF 11505 11506fi 11507 11508ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11509if test "x$ac_cv_type_dev_t" = xyes; then : 11510 11511else 11512 11513cat >>confdefs.h <<_ACEOF 11514#define dev_t unsigned 11515_ACEOF 11516 11517fi 11518 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11520$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11521if ${ac_cv_c_bigendian+:} false; then : 11522 $as_echo_n "(cached) " >&6 11523else 11524 ac_cv_c_bigendian=unknown 11525 # See if we're dealing with a universal compiler. 11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527/* end confdefs.h. */ 11528#ifndef __APPLE_CC__ 11529 not a universal capable compiler 11530 #endif 11531 typedef int dummy; 11532 11533_ACEOF 11534if ac_fn_c_try_compile "$LINENO"; then : 11535 11536 # Check for potential -arch flags. It is not universal unless 11537 # there are at least two -arch flags with different values. 11538 ac_arch= 11539 ac_prev= 11540 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11541 if test -n "$ac_prev"; then 11542 case $ac_word in 11543 i?86 | x86_64 | ppc | ppc64) 11544 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11545 ac_arch=$ac_word 11546 else 11547 ac_cv_c_bigendian=universal 11548 break 11549 fi 11550 ;; 11551 esac 11552 ac_prev= 11553 elif test "x$ac_word" = "x-arch"; then 11554 ac_prev=arch 11555 fi 11556 done 11557fi 11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11559 if test $ac_cv_c_bigendian = unknown; then 11560 # See if sys/param.h defines the BYTE_ORDER macro. 11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11562/* end confdefs.h. */ 11563#include <sys/types.h> 11564 #include <sys/param.h> 11565 11566int 11567main () 11568{ 11569#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11570 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11571 && LITTLE_ENDIAN) 11572 bogus endian macros 11573 #endif 11574 11575 ; 11576 return 0; 11577} 11578_ACEOF 11579if ac_fn_c_try_compile "$LINENO"; then : 11580 # It does; now see whether it defined to BIG_ENDIAN or not. 11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582/* end confdefs.h. */ 11583#include <sys/types.h> 11584 #include <sys/param.h> 11585 11586int 11587main () 11588{ 11589#if BYTE_ORDER != BIG_ENDIAN 11590 not big endian 11591 #endif 11592 11593 ; 11594 return 0; 11595} 11596_ACEOF 11597if ac_fn_c_try_compile "$LINENO"; then : 11598 ac_cv_c_bigendian=yes 11599else 11600 ac_cv_c_bigendian=no 11601fi 11602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11603fi 11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11605 fi 11606 if test $ac_cv_c_bigendian = unknown; then 11607 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11609/* end confdefs.h. */ 11610#include <limits.h> 11611 11612int 11613main () 11614{ 11615#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11616 bogus endian macros 11617 #endif 11618 11619 ; 11620 return 0; 11621} 11622_ACEOF 11623if ac_fn_c_try_compile "$LINENO"; then : 11624 # It does; now see whether it defined to _BIG_ENDIAN or not. 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626/* end confdefs.h. */ 11627#include <limits.h> 11628 11629int 11630main () 11631{ 11632#ifndef _BIG_ENDIAN 11633 not big endian 11634 #endif 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640if ac_fn_c_try_compile "$LINENO"; then : 11641 ac_cv_c_bigendian=yes 11642else 11643 ac_cv_c_bigendian=no 11644fi 11645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11646fi 11647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11648 fi 11649 if test $ac_cv_c_bigendian = unknown; then 11650 # Compile a test program. 11651 if test "$cross_compiling" = yes; then : 11652 # Try to guess by grepping values from an object file. 11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11654/* end confdefs.h. */ 11655short int ascii_mm[] = 11656 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11657 short int ascii_ii[] = 11658 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11659 int use_ascii (int i) { 11660 return ascii_mm[i] + ascii_ii[i]; 11661 } 11662 short int ebcdic_ii[] = 11663 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11664 short int ebcdic_mm[] = 11665 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11666 int use_ebcdic (int i) { 11667 return ebcdic_mm[i] + ebcdic_ii[i]; 11668 } 11669 extern int foo; 11670 11671int 11672main () 11673{ 11674return use_ascii (foo) == use_ebcdic (foo); 11675 ; 11676 return 0; 11677} 11678_ACEOF 11679if ac_fn_c_try_compile "$LINENO"; then : 11680 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11681 ac_cv_c_bigendian=yes 11682 fi 11683 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11684 if test "$ac_cv_c_bigendian" = unknown; then 11685 ac_cv_c_bigendian=no 11686 else 11687 # finding both strings is unlikely to happen, but who knows? 11688 ac_cv_c_bigendian=unknown 11689 fi 11690 fi 11691fi 11692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11693else 11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11695/* end confdefs.h. */ 11696$ac_includes_default 11697int 11698main () 11699{ 11700 11701 /* Are we little or big endian? From Harbison&Steele. */ 11702 union 11703 { 11704 long int l; 11705 char c[sizeof (long int)]; 11706 } u; 11707 u.l = 1; 11708 return u.c[sizeof (long int) - 1] == 1; 11709 11710 ; 11711 return 0; 11712} 11713_ACEOF 11714if ac_fn_c_try_run "$LINENO"; then : 11715 ac_cv_c_bigendian=no 11716else 11717 ac_cv_c_bigendian=yes 11718fi 11719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11720 conftest.$ac_objext conftest.beam conftest.$ac_ext 11721fi 11722 11723 fi 11724fi 11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11726$as_echo "$ac_cv_c_bigendian" >&6; } 11727 case $ac_cv_c_bigendian in #( 11728 yes) 11729 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11730;; #( 11731 no) 11732 ;; #( 11733 universal) 11734 11735$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11736 11737 ;; #( 11738 *) 11739 as_fn_error $? "unknown endianness 11740 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11741 esac 11742 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11744$as_echo_n "checking for inline... " >&6; } 11745if ${ac_cv_c_inline+:} false; then : 11746 $as_echo_n "(cached) " >&6 11747else 11748 ac_cv_c_inline=no 11749for ac_kw in inline __inline__ __inline; do 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752#ifndef __cplusplus 11753typedef int foo_t; 11754static $ac_kw foo_t static_foo () {return 0; } 11755$ac_kw foo_t foo () {return 0; } 11756#endif 11757 11758_ACEOF 11759if ac_fn_c_try_compile "$LINENO"; then : 11760 ac_cv_c_inline=$ac_kw 11761fi 11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11763 test "$ac_cv_c_inline" != no && break 11764done 11765 11766fi 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11768$as_echo "$ac_cv_c_inline" >&6; } 11769 11770case $ac_cv_c_inline in 11771 inline | yes) ;; 11772 *) 11773 case $ac_cv_c_inline in 11774 no) ac_val=;; 11775 *) ac_val=$ac_cv_c_inline;; 11776 esac 11777 cat >>confdefs.h <<_ACEOF 11778#ifndef __cplusplus 11779#define inline $ac_val 11780#endif 11781_ACEOF 11782 ;; 11783esac 11784 11785 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11787$as_echo_n "checking for rlim_t... " >&6; } 11788if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11790$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11791else 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793/* end confdefs.h. */ 11794 11795#include <sys/types.h> 11796#if STDC_HEADERS 11797# include <stdlib.h> 11798# include <stddef.h> 11799#endif 11800#ifdef HAVE_SYS_RESOURCE_H 11801# include <sys/resource.h> 11802#endif 11803 11804_ACEOF 11805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11806 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11807 ac_cv_type_rlim_t=yes 11808else 11809 ac_cv_type_rlim_t=no 11810fi 11811rm -f conftest* 11812 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11814$as_echo "$ac_cv_type_rlim_t" >&6; } 11815fi 11816if test $ac_cv_type_rlim_t = no; then 11817 cat >> confdefs.h <<\EOF 11818#define rlim_t unsigned long 11819EOF 11820fi 11821 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11823$as_echo_n "checking for stack_t... " >&6; } 11824if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11826$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11827else 11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830 11831#include <sys/types.h> 11832#if STDC_HEADERS 11833# include <stdlib.h> 11834# include <stddef.h> 11835#endif 11836#include <signal.h> 11837 11838_ACEOF 11839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11840 $EGREP "stack_t" >/dev/null 2>&1; then : 11841 ac_cv_type_stack_t=yes 11842else 11843 ac_cv_type_stack_t=no 11844fi 11845rm -f conftest* 11846 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11848$as_echo "$ac_cv_type_stack_t" >&6; } 11849fi 11850if test $ac_cv_type_stack_t = no; then 11851 cat >> confdefs.h <<\EOF 11852#define stack_t struct sigaltstack 11853EOF 11854fi 11855 11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11857$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11859/* end confdefs.h. */ 11860 11861#include <sys/types.h> 11862#if STDC_HEADERS 11863# include <stdlib.h> 11864# include <stddef.h> 11865#endif 11866#include <signal.h> 11867#include "confdefs.h" 11868 11869int 11870main () 11871{ 11872stack_t sigstk; sigstk.ss_base = 0; 11873 ; 11874 return 0; 11875} 11876_ACEOF 11877if ac_fn_c_try_compile "$LINENO"; then : 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11879$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11880 11881else 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11883$as_echo "no" >&6; } 11884fi 11885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11886 11887olibs="$LIBS" 11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11889$as_echo_n "checking --with-tlib argument... " >&6; } 11890 11891# Check whether --with-tlib was given. 11892if test "${with_tlib+set}" = set; then : 11893 withval=$with_tlib; 11894fi 11895 11896if test -n "$with_tlib"; then 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11898$as_echo "$with_tlib" >&6; } 11899 LIBS="$LIBS -l$with_tlib" 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11901$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11903/* end confdefs.h. */ 11904 11905int 11906main () 11907{ 11908 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_c_try_link "$LINENO"; then : 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11915$as_echo "OK" >&6; } 11916else 11917 as_fn_error $? "FAILED" "$LINENO" 5 11918fi 11919rm -f core conftest.err conftest.$ac_objext \ 11920 conftest$ac_exeext conftest.$ac_ext 11921 olibs="$LIBS" 11922else 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11924$as_echo "empty: automatic terminal library selection" >&6; } 11925 case "`uname -s 2>/dev/null`" in 11926 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11927 *) tlibs="tinfo ncurses termlib termcap curses";; 11928 esac 11929 for libname in $tlibs; do 11930 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11932$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11933if eval \${$as_ac_Lib+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 ac_check_lib_save_LIBS=$LIBS 11937LIBS="-l${libname} $LIBS" 11938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940 11941/* Override any GCC internal prototype to avoid an error. 11942 Use char because int might match the return type of a GCC 11943 builtin and then its argument prototype would still apply. */ 11944#ifdef __cplusplus 11945extern "C" 11946#endif 11947char tgetent (); 11948int 11949main () 11950{ 11951return tgetent (); 11952 ; 11953 return 0; 11954} 11955_ACEOF 11956if ac_fn_c_try_link "$LINENO"; then : 11957 eval "$as_ac_Lib=yes" 11958else 11959 eval "$as_ac_Lib=no" 11960fi 11961rm -f core conftest.err conftest.$ac_objext \ 11962 conftest$ac_exeext conftest.$ac_ext 11963LIBS=$ac_check_lib_save_LIBS 11964fi 11965eval ac_res=\$$as_ac_Lib 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11967$as_echo "$ac_res" >&6; } 11968if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11969 cat >>confdefs.h <<_ACEOF 11970#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11971_ACEOF 11972 11973 LIBS="-l${libname} $LIBS" 11974 11975fi 11976 11977 if test "x$olibs" != "x$LIBS"; then 11978 if test "$cross_compiling" = yes; then : 11979 res="FAIL" 11980else 11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11982/* end confdefs.h. */ 11983 11984#ifdef HAVE_TERMCAP_H 11985# include <termcap.h> 11986#endif 11987#if STDC_HEADERS 11988# include <stdlib.h> 11989# include <stddef.h> 11990#endif 11991main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11992_ACEOF 11993if ac_fn_c_try_run "$LINENO"; then : 11994 res="OK" 11995else 11996 res="FAIL" 11997fi 11998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11999 conftest.$ac_objext conftest.beam conftest.$ac_ext 12000fi 12001 12002 if test "$res" = "OK"; then 12003 break 12004 fi 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 12006$as_echo "$libname library is not usable" >&6; } 12007 LIBS="$olibs" 12008 fi 12009 done 12010 if test "x$olibs" = "x$LIBS"; then 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 12012$as_echo "no terminal library found" >&6; } 12013 fi 12014fi 12015 12016if test "x$olibs" = "x$LIBS"; then 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 12018$as_echo_n "checking for tgetent()... " >&6; } 12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12020/* end confdefs.h. */ 12021 12022int 12023main () 12024{ 12025char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12026 ; 12027 return 0; 12028} 12029_ACEOF 12030if ac_fn_c_try_link "$LINENO"; then : 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12032$as_echo "yes" >&6; } 12033else 12034 as_fn_error $? "NOT FOUND! 12035 You need to install a terminal library; for example ncurses. 12036 Or specify the name of the library with --with-tlib." "$LINENO" 5 12037fi 12038rm -f core conftest.err conftest.$ac_objext \ 12039 conftest$ac_exeext conftest.$ac_ext 12040fi 12041 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 12043$as_echo_n "checking whether we talk terminfo... " >&6; } 12044if ${vim_cv_terminfo+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 12048 if test "$cross_compiling" = yes; then : 12049 12050 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 12051 12052else 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055 12056#include "confdefs.h" 12057#ifdef HAVE_TERMCAP_H 12058# include <termcap.h> 12059#endif 12060#ifdef HAVE_STRING_H 12061# include <string.h> 12062#endif 12063#if STDC_HEADERS 12064# include <stdlib.h> 12065# include <stddef.h> 12066#endif 12067main() 12068{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12069 12070_ACEOF 12071if ac_fn_c_try_run "$LINENO"; then : 12072 12073 vim_cv_terminfo=no 12074 12075else 12076 12077 vim_cv_terminfo=yes 12078 12079fi 12080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12081 conftest.$ac_objext conftest.beam conftest.$ac_ext 12082fi 12083 12084 12085fi 12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 12087$as_echo "$vim_cv_terminfo" >&6; } 12088 12089if test "x$vim_cv_terminfo" = "xyes" ; then 12090 $as_echo "#define TERMINFO 1" >>confdefs.h 12091 12092fi 12093 12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 12095$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 12096if ${vim_cv_tgetent+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 12100 if test "$cross_compiling" = yes; then : 12101 12102 as_fn_error $? "failed to compile test program." "$LINENO" 5 12103 12104else 12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12106/* end confdefs.h. */ 12107 12108#include "confdefs.h" 12109#ifdef HAVE_TERMCAP_H 12110# include <termcap.h> 12111#endif 12112#if STDC_HEADERS 12113# include <stdlib.h> 12114# include <stddef.h> 12115#endif 12116main() 12117{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12118 12119_ACEOF 12120if ac_fn_c_try_run "$LINENO"; then : 12121 12122 vim_cv_tgetent=zero 12123 12124else 12125 12126 vim_cv_tgetent=non-zero 12127 12128fi 12129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12130 conftest.$ac_objext conftest.beam conftest.$ac_ext 12131fi 12132 12133 12134fi 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 12136$as_echo "$vim_cv_tgetent" >&6; } 12137 12138if test "x$vim_cv_tgetent" = "xzero" ; then 12139 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 12140 12141fi 12142 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 12144$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 12145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146/* end confdefs.h. */ 12147 12148#ifdef HAVE_TERMCAP_H 12149# include <termcap.h> 12150#endif 12151 12152int 12153main () 12154{ 12155ospeed = 20000 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160if ac_fn_c_try_link "$LINENO"; then : 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12162$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 12163 12164else 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12166$as_echo "no" >&6; } 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 12168$as_echo_n "checking whether ospeed can be extern... " >&6; } 12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12170/* end confdefs.h. */ 12171 12172#ifdef HAVE_TERMCAP_H 12173# include <termcap.h> 12174#endif 12175extern short ospeed; 12176 12177int 12178main () 12179{ 12180ospeed = 20000 12181 ; 12182 return 0; 12183} 12184_ACEOF 12185if ac_fn_c_try_link "$LINENO"; then : 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12187$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 12188 12189else 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12191$as_echo "no" >&6; } 12192fi 12193rm -f core conftest.err conftest.$ac_objext \ 12194 conftest$ac_exeext conftest.$ac_ext 12195 12196fi 12197rm -f core conftest.err conftest.$ac_objext \ 12198 conftest$ac_exeext conftest.$ac_ext 12199 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 12201$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204 12205#ifdef HAVE_TERMCAP_H 12206# include <termcap.h> 12207#endif 12208 12209int 12210main () 12211{ 12212if (UP == 0 && BC == 0) PC = 1 12213 ; 12214 return 0; 12215} 12216_ACEOF 12217if ac_fn_c_try_link "$LINENO"; then : 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12219$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 12220 12221else 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12223$as_echo "no" >&6; } 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 12225$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228 12229#ifdef HAVE_TERMCAP_H 12230# include <termcap.h> 12231#endif 12232extern char *UP, *BC, PC; 12233 12234int 12235main () 12236{ 12237if (UP == 0 && BC == 0) PC = 1 12238 ; 12239 return 0; 12240} 12241_ACEOF 12242if ac_fn_c_try_link "$LINENO"; then : 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12244$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 12245 12246else 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12248$as_echo "no" >&6; } 12249fi 12250rm -f core conftest.err conftest.$ac_objext \ 12251 conftest$ac_exeext conftest.$ac_ext 12252 12253fi 12254rm -f core conftest.err conftest.$ac_objext \ 12255 conftest$ac_exeext conftest.$ac_ext 12256 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 12258$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12260/* end confdefs.h. */ 12261 12262#ifdef HAVE_TERMCAP_H 12263# include <termcap.h> 12264#endif 12265 12266int 12267main () 12268{ 12269extern int xx(); tputs("test", 1, (outfuntype)xx) 12270 ; 12271 return 0; 12272} 12273_ACEOF 12274if ac_fn_c_try_compile "$LINENO"; then : 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12276$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 12277 12278else 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12280$as_echo "no" >&6; } 12281fi 12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12283 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12285$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288 12289#include <sys/types.h> 12290#include <sys/time.h> 12291#include <sys/select.h> 12292int 12293main () 12294{ 12295 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_compile "$LINENO"; then : 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12302$as_echo "yes" >&6; } 12303 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12304 12305else 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12307$as_echo "no" >&6; } 12308fi 12309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12310 12311 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 12313$as_echo_n "checking for /dev/ptc... " >&6; } 12314if test -r /dev/ptc; then 12315 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 12316 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12318$as_echo "yes" >&6; } 12319else 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12321$as_echo "no" >&6; } 12322fi 12323 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 12325$as_echo_n "checking for SVR4 ptys... " >&6; } 12326if test -c /dev/ptmx ; then 12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12328/* end confdefs.h. */ 12329 12330int 12331main () 12332{ 12333ptsname(0);grantpt(0);unlockpt(0); 12334 ; 12335 return 0; 12336} 12337_ACEOF 12338if ac_fn_c_try_link "$LINENO"; then : 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12340$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 12341 12342else 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12344$as_echo "no" >&6; } 12345fi 12346rm -f core conftest.err conftest.$ac_objext \ 12347 conftest$ac_exeext conftest.$ac_ext 12348else 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12350$as_echo "no" >&6; } 12351fi 12352 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 12354$as_echo_n "checking for ptyranges... " >&6; } 12355if test -d /dev/ptym ; then 12356 pdir='/dev/ptym' 12357else 12358 pdir='/dev' 12359fi 12360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362#ifdef M_UNIX 12363 yes; 12364#endif 12365 12366_ACEOF 12367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12368 $EGREP "yes" >/dev/null 2>&1; then : 12369 ptys=`echo /dev/ptyp??` 12370else 12371 ptys=`echo $pdir/pty??` 12372fi 12373rm -f conftest* 12374 12375if test "$ptys" != "$pdir/pty??" ; then 12376 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 12377 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 12378 cat >>confdefs.h <<_ACEOF 12379#define PTYRANGE0 "$p0" 12380_ACEOF 12381 12382 cat >>confdefs.h <<_ACEOF 12383#define PTYRANGE1 "$p1" 12384_ACEOF 12385 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 12387$as_echo "$p0 / $p1" >&6; } 12388else 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 12390$as_echo "don't know" >&6; } 12391fi 12392 12393rm -f conftest_grp 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 12395$as_echo_n "checking default tty permissions/group... " >&6; } 12396if ${vim_cv_tty_group+:} false; then : 12397 $as_echo_n "(cached) " >&6 12398else 12399 12400 if test "$cross_compiling" = yes; then : 12401 12402 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 12403 12404else 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407 12408#include "confdefs.h" 12409#include <sys/types.h> 12410#if STDC_HEADERS 12411# include <stdlib.h> 12412# include <stddef.h> 12413#endif 12414#ifdef HAVE_UNISTD_H 12415#include <unistd.h> 12416#endif 12417#include <sys/stat.h> 12418#include <stdio.h> 12419main() 12420{ 12421 struct stat sb; 12422 char *x,*ttyname(); 12423 int om, m; 12424 FILE *fp; 12425 12426 if (!(x = ttyname(0))) exit(1); 12427 if (stat(x, &sb)) exit(1); 12428 om = sb.st_mode; 12429 if (om & 002) exit(0); 12430 m = system("mesg y"); 12431 if (m == -1 || m == 127) exit(1); 12432 if (stat(x, &sb)) exit(1); 12433 m = sb.st_mode; 12434 if (chmod(x, om)) exit(1); 12435 if (m & 002) exit(0); 12436 if (sb.st_gid == getgid()) exit(1); 12437 if (!(fp=fopen("conftest_grp", "w"))) 12438 exit(1); 12439 fprintf(fp, "%d\n", sb.st_gid); 12440 fclose(fp); 12441 exit(0); 12442} 12443 12444_ACEOF 12445if ac_fn_c_try_run "$LINENO"; then : 12446 12447 if test -f conftest_grp; then 12448 vim_cv_tty_group=`cat conftest_grp` 12449 if test "x$vim_cv_tty_mode" = "x" ; then 12450 vim_cv_tty_mode=0620 12451 fi 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 12453$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 12454 else 12455 vim_cv_tty_group=world 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 12457$as_echo "ptys are world accessible" >&6; } 12458 fi 12459 12460else 12461 12462 vim_cv_tty_group=world 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 12464$as_echo "can't determine - assume ptys are world accessible" >&6; } 12465 12466fi 12467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12468 conftest.$ac_objext conftest.beam conftest.$ac_ext 12469fi 12470 12471 12472fi 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 12474$as_echo "$vim_cv_tty_group" >&6; } 12475rm -f conftest_grp 12476 12477if test "x$vim_cv_tty_group" != "xworld" ; then 12478 cat >>confdefs.h <<_ACEOF 12479#define PTYGROUP $vim_cv_tty_group 12480_ACEOF 12481 12482 if test "x$vim_cv_tty_mode" = "x" ; then 12483 as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5 12484 else 12485 $as_echo "#define PTYMODE 0620" >>confdefs.h 12486 12487 fi 12488fi 12489 12490 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12492$as_echo_n "checking return type of signal handlers... " >&6; } 12493if ${ac_cv_type_signal+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498#include <sys/types.h> 12499#include <signal.h> 12500 12501int 12502main () 12503{ 12504return *(signal (0, 0)) (0) == 1; 12505 ; 12506 return 0; 12507} 12508_ACEOF 12509if ac_fn_c_try_compile "$LINENO"; then : 12510 ac_cv_type_signal=int 12511else 12512 ac_cv_type_signal=void 12513fi 12514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12515fi 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12517$as_echo "$ac_cv_type_signal" >&6; } 12518 12519cat >>confdefs.h <<_ACEOF 12520#define RETSIGTYPE $ac_cv_type_signal 12521_ACEOF 12522 12523 12524 12525if test $ac_cv_type_signal = void; then 12526 $as_echo "#define SIGRETURN return" >>confdefs.h 12527 12528else 12529 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12530 12531fi 12532 12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12534$as_echo_n "checking for struct sigcontext... " >&6; } 12535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12536/* end confdefs.h. */ 12537 12538#include <signal.h> 12539test_sig() 12540{ 12541 struct sigcontext *scont; 12542 scont = (struct sigcontext *)0; 12543 return 1; 12544} 12545int 12546main () 12547{ 12548 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553if ac_fn_c_try_compile "$LINENO"; then : 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12555$as_echo "yes" >&6; } 12556 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12557 12558else 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12560$as_echo "no" >&6; } 12561fi 12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12563 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12565$as_echo_n "checking getcwd implementation is broken... " >&6; } 12566if ${vim_cv_getcwd_broken+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 12570 if test "$cross_compiling" = yes; then : 12571 12572 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12573 12574else 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577 12578#include "confdefs.h" 12579#ifdef HAVE_UNISTD_H 12580#include <unistd.h> 12581#endif 12582char *dagger[] = { "IFS=pwd", 0 }; 12583main() 12584{ 12585 char buffer[500]; 12586 extern char **environ; 12587 environ = dagger; 12588 return getcwd(buffer, 500) ? 0 : 1; 12589} 12590 12591_ACEOF 12592if ac_fn_c_try_run "$LINENO"; then : 12593 12594 vim_cv_getcwd_broken=no 12595 12596else 12597 12598 vim_cv_getcwd_broken=yes 12599 12600fi 12601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12602 conftest.$ac_objext conftest.beam conftest.$ac_ext 12603fi 12604 12605 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12608$as_echo "$vim_cv_getcwd_broken" >&6; } 12609 12610if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12611 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12612 12613fi 12614 12615for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12616 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12617 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12618 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12619 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12620 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12621 usleep utime utimes mblen ftruncate unsetenv 12622do : 12623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12624ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12625if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12626 cat >>confdefs.h <<_ACEOF 12627#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12628_ACEOF 12629 12630fi 12631done 12632 12633for ac_header in sys/select.h sys/socket.h 12634do : 12635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12638 cat >>confdefs.h <<_ACEOF 12639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12640_ACEOF 12641 12642fi 12643 12644done 12645 12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 12647$as_echo_n "checking types of arguments for select... " >&6; } 12648if ${ac_cv_func_select_args+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 12652 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 12653 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12655/* end confdefs.h. */ 12656$ac_includes_default 12657#ifdef HAVE_SYS_SELECT_H 12658# include <sys/select.h> 12659#endif 12660#ifdef HAVE_SYS_SOCKET_H 12661# include <sys/socket.h> 12662#endif 12663 12664int 12665main () 12666{ 12667extern int select ($ac_arg1, 12668 $ac_arg234, $ac_arg234, $ac_arg234, 12669 $ac_arg5); 12670 ; 12671 return 0; 12672} 12673_ACEOF 12674if ac_fn_c_try_compile "$LINENO"; then : 12675 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 12676fi 12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12678 done 12679 done 12680done 12681# Provide a safe default value. 12682: "${ac_cv_func_select_args=int,int *,struct timeval *}" 12683 12684fi 12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 12686$as_echo "$ac_cv_func_select_args" >&6; } 12687ac_save_IFS=$IFS; IFS=',' 12688set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 12689IFS=$ac_save_IFS 12690shift 12691 12692cat >>confdefs.h <<_ACEOF 12693#define SELECT_TYPE_ARG1 $1 12694_ACEOF 12695 12696 12697cat >>confdefs.h <<_ACEOF 12698#define SELECT_TYPE_ARG234 ($2) 12699_ACEOF 12700 12701 12702cat >>confdefs.h <<_ACEOF 12703#define SELECT_TYPE_ARG5 ($3) 12704_ACEOF 12705 12706rm -f conftest* 12707 12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12709$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12710if ${ac_cv_sys_largefile_source+:} false; then : 12711 $as_echo_n "(cached) " >&6 12712else 12713 while :; do 12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715/* end confdefs.h. */ 12716#include <sys/types.h> /* for off_t */ 12717 #include <stdio.h> 12718int 12719main () 12720{ 12721int (*fp) (FILE *, off_t, int) = fseeko; 12722 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12723 ; 12724 return 0; 12725} 12726_ACEOF 12727if ac_fn_c_try_link "$LINENO"; then : 12728 ac_cv_sys_largefile_source=no; break 12729fi 12730rm -f core conftest.err conftest.$ac_objext \ 12731 conftest$ac_exeext conftest.$ac_ext 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734#define _LARGEFILE_SOURCE 1 12735#include <sys/types.h> /* for off_t */ 12736 #include <stdio.h> 12737int 12738main () 12739{ 12740int (*fp) (FILE *, off_t, int) = fseeko; 12741 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12742 ; 12743 return 0; 12744} 12745_ACEOF 12746if ac_fn_c_try_link "$LINENO"; then : 12747 ac_cv_sys_largefile_source=1; break 12748fi 12749rm -f core conftest.err conftest.$ac_objext \ 12750 conftest$ac_exeext conftest.$ac_ext 12751 ac_cv_sys_largefile_source=unknown 12752 break 12753done 12754fi 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12756$as_echo "$ac_cv_sys_largefile_source" >&6; } 12757case $ac_cv_sys_largefile_source in #( 12758 no | unknown) ;; 12759 *) 12760cat >>confdefs.h <<_ACEOF 12761#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12762_ACEOF 12763;; 12764esac 12765rm -rf conftest* 12766 12767# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12768# in glibc 2.1.3, but that breaks too many other things. 12769# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12770if test $ac_cv_sys_largefile_source != unknown; then 12771 12772$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12773 12774fi 12775 12776 12777# Check whether --enable-largefile was given. 12778if test "${enable_largefile+set}" = set; then : 12779 enableval=$enable_largefile; 12780fi 12781 12782if test "$enable_largefile" != no; then 12783 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12785$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12786if ${ac_cv_sys_largefile_CC+:} false; then : 12787 $as_echo_n "(cached) " >&6 12788else 12789 ac_cv_sys_largefile_CC=no 12790 if test "$GCC" != yes; then 12791 ac_save_CC=$CC 12792 while :; do 12793 # IRIX 6.2 and later do not support large files by default, 12794 # so use the C compiler's -n32 option if that helps. 12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12796/* end confdefs.h. */ 12797#include <sys/types.h> 12798 /* Check that off_t can represent 2**63 - 1 correctly. 12799 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12800 since some C++ compilers masquerading as C compilers 12801 incorrectly reject 9223372036854775807. */ 12802#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12804 && LARGE_OFF_T % 2147483647 == 1) 12805 ? 1 : -1]; 12806int 12807main () 12808{ 12809 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814 if ac_fn_c_try_compile "$LINENO"; then : 12815 break 12816fi 12817rm -f core conftest.err conftest.$ac_objext 12818 CC="$CC -n32" 12819 if ac_fn_c_try_compile "$LINENO"; then : 12820 ac_cv_sys_largefile_CC=' -n32'; break 12821fi 12822rm -f core conftest.err conftest.$ac_objext 12823 break 12824 done 12825 CC=$ac_save_CC 12826 rm -f conftest.$ac_ext 12827 fi 12828fi 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12830$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12831 if test "$ac_cv_sys_largefile_CC" != no; then 12832 CC=$CC$ac_cv_sys_largefile_CC 12833 fi 12834 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12836$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12837if ${ac_cv_sys_file_offset_bits+:} false; then : 12838 $as_echo_n "(cached) " >&6 12839else 12840 while :; do 12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12842/* end confdefs.h. */ 12843#include <sys/types.h> 12844 /* Check that off_t can represent 2**63 - 1 correctly. 12845 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12846 since some C++ compilers masquerading as C compilers 12847 incorrectly reject 9223372036854775807. */ 12848#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12850 && LARGE_OFF_T % 2147483647 == 1) 12851 ? 1 : -1]; 12852int 12853main () 12854{ 12855 12856 ; 12857 return 0; 12858} 12859_ACEOF 12860if ac_fn_c_try_compile "$LINENO"; then : 12861 ac_cv_sys_file_offset_bits=no; break 12862fi 12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866#define _FILE_OFFSET_BITS 64 12867#include <sys/types.h> 12868 /* Check that off_t can represent 2**63 - 1 correctly. 12869 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12870 since some C++ compilers masquerading as C compilers 12871 incorrectly reject 9223372036854775807. */ 12872#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12874 && LARGE_OFF_T % 2147483647 == 1) 12875 ? 1 : -1]; 12876int 12877main () 12878{ 12879 12880 ; 12881 return 0; 12882} 12883_ACEOF 12884if ac_fn_c_try_compile "$LINENO"; then : 12885 ac_cv_sys_file_offset_bits=64; break 12886fi 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12888 ac_cv_sys_file_offset_bits=unknown 12889 break 12890done 12891fi 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12893$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12894case $ac_cv_sys_file_offset_bits in #( 12895 no | unknown) ;; 12896 *) 12897cat >>confdefs.h <<_ACEOF 12898#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12899_ACEOF 12900;; 12901esac 12902rm -rf conftest* 12903 if test $ac_cv_sys_file_offset_bits = unknown; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12905$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12906if ${ac_cv_sys_large_files+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 while :; do 12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12911/* end confdefs.h. */ 12912#include <sys/types.h> 12913 /* Check that off_t can represent 2**63 - 1 correctly. 12914 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12915 since some C++ compilers masquerading as C compilers 12916 incorrectly reject 9223372036854775807. */ 12917#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12919 && LARGE_OFF_T % 2147483647 == 1) 12920 ? 1 : -1]; 12921int 12922main () 12923{ 12924 12925 ; 12926 return 0; 12927} 12928_ACEOF 12929if ac_fn_c_try_compile "$LINENO"; then : 12930 ac_cv_sys_large_files=no; break 12931fi 12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934/* end confdefs.h. */ 12935#define _LARGE_FILES 1 12936#include <sys/types.h> 12937 /* Check that off_t can represent 2**63 - 1 correctly. 12938 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12939 since some C++ compilers masquerading as C compilers 12940 incorrectly reject 9223372036854775807. */ 12941#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12943 && LARGE_OFF_T % 2147483647 == 1) 12944 ? 1 : -1]; 12945int 12946main () 12947{ 12948 12949 ; 12950 return 0; 12951} 12952_ACEOF 12953if ac_fn_c_try_compile "$LINENO"; then : 12954 ac_cv_sys_large_files=1; break 12955fi 12956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12957 ac_cv_sys_large_files=unknown 12958 break 12959done 12960fi 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12962$as_echo "$ac_cv_sys_large_files" >&6; } 12963case $ac_cv_sys_large_files in #( 12964 no | unknown) ;; 12965 *) 12966cat >>confdefs.h <<_ACEOF 12967#define _LARGE_FILES $ac_cv_sys_large_files 12968_ACEOF 12969;; 12970esac 12971rm -rf conftest* 12972 fi 12973 12974 12975fi 12976 12977 12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12979$as_echo_n "checking for st_blksize... " >&6; } 12980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12981/* end confdefs.h. */ 12982#include <sys/types.h> 12983#include <sys/stat.h> 12984int 12985main () 12986{ 12987 struct stat st; 12988 int n; 12989 12990 stat("/", &st); 12991 n = (int)st.st_blksize; 12992 ; 12993 return 0; 12994} 12995_ACEOF 12996if ac_fn_c_try_compile "$LINENO"; then : 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12998$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12999 13000else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13002$as_echo "no" >&6; } 13003fi 13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13005 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 13007$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 13008if ${vim_cv_stat_ignores_slash+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 13012 if test "$cross_compiling" = yes; then : 13013 13014 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 13015 13016else 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019 13020#include "confdefs.h" 13021#if STDC_HEADERS 13022# include <stdlib.h> 13023# include <stddef.h> 13024#endif 13025#include <sys/types.h> 13026#include <sys/stat.h> 13027main() {struct stat st; exit(stat("configure/", &st) != 0); } 13028 13029_ACEOF 13030if ac_fn_c_try_run "$LINENO"; then : 13031 13032 vim_cv_stat_ignores_slash=yes 13033 13034else 13035 13036 vim_cv_stat_ignores_slash=no 13037 13038fi 13039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13040 conftest.$ac_objext conftest.beam conftest.$ac_ext 13041fi 13042 13043 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 13046$as_echo "$vim_cv_stat_ignores_slash" >&6; } 13047 13048if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 13049 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 13050 13051fi 13052 13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 13054$as_echo_n "checking for iconv_open()... " >&6; } 13055save_LIBS="$LIBS" 13056LIBS="$LIBS -liconv" 13057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13058/* end confdefs.h. */ 13059 13060#ifdef HAVE_ICONV_H 13061# include <iconv.h> 13062#endif 13063 13064int 13065main () 13066{ 13067iconv_open("fr", "to"); 13068 ; 13069 return 0; 13070} 13071_ACEOF 13072if ac_fn_c_try_link "$LINENO"; then : 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 13074$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13075 13076else 13077 LIBS="$save_LIBS" 13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13079/* end confdefs.h. */ 13080 13081#ifdef HAVE_ICONV_H 13082# include <iconv.h> 13083#endif 13084 13085int 13086main () 13087{ 13088iconv_open("fr", "to"); 13089 ; 13090 return 0; 13091} 13092_ACEOF 13093if ac_fn_c_try_link "$LINENO"; then : 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13095$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13096 13097else 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099$as_echo "no" >&6; } 13100fi 13101rm -f core conftest.err conftest.$ac_objext \ 13102 conftest$ac_exeext conftest.$ac_ext 13103fi 13104rm -f core conftest.err conftest.$ac_objext \ 13105 conftest$ac_exeext conftest.$ac_ext 13106 13107 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 13109$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 13110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13111/* end confdefs.h. */ 13112 13113#ifdef HAVE_LANGINFO_H 13114# include <langinfo.h> 13115#endif 13116 13117int 13118main () 13119{ 13120char *cs = nl_langinfo(CODESET); 13121 ; 13122 return 0; 13123} 13124_ACEOF 13125if ac_fn_c_try_link "$LINENO"; then : 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13127$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 13128 13129else 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13131$as_echo "no" >&6; } 13132fi 13133rm -f core conftest.err conftest.$ac_objext \ 13134 conftest$ac_exeext conftest.$ac_ext 13135 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 13137$as_echo_n "checking for strtod in -lm... " >&6; } 13138if ${ac_cv_lib_m_strtod+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 ac_check_lib_save_LIBS=$LIBS 13142LIBS="-lm $LIBS" 13143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145 13146/* Override any GCC internal prototype to avoid an error. 13147 Use char because int might match the return type of a GCC 13148 builtin and then its argument prototype would still apply. */ 13149#ifdef __cplusplus 13150extern "C" 13151#endif 13152char strtod (); 13153int 13154main () 13155{ 13156return strtod (); 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_link "$LINENO"; then : 13162 ac_cv_lib_m_strtod=yes 13163else 13164 ac_cv_lib_m_strtod=no 13165fi 13166rm -f core conftest.err conftest.$ac_objext \ 13167 conftest$ac_exeext conftest.$ac_ext 13168LIBS=$ac_check_lib_save_LIBS 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 13171$as_echo "$ac_cv_lib_m_strtod" >&6; } 13172if test "x$ac_cv_lib_m_strtod" = xyes; then : 13173 cat >>confdefs.h <<_ACEOF 13174#define HAVE_LIBM 1 13175_ACEOF 13176 13177 LIBS="-lm $LIBS" 13178 13179fi 13180 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 13182$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186#ifdef HAVE_MATH_H 13187# include <math.h> 13188#endif 13189#if STDC_HEADERS 13190# include <stdlib.h> 13191# include <stddef.h> 13192#endif 13193 13194int 13195main () 13196{ 13197char *s; double d; 13198 d = strtod("1.1", &s); 13199 d = fabs(1.11); 13200 d = ceil(1.11); 13201 d = floor(1.11); 13202 d = log10(1.11); 13203 d = pow(1.11, 2.22); 13204 d = sqrt(1.11); 13205 d = sin(1.11); 13206 d = cos(1.11); 13207 d = atan(1.11); 13208 13209 ; 13210 return 0; 13211} 13212_ACEOF 13213if ac_fn_c_try_link "$LINENO"; then : 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13215$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 13216 13217else 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13219$as_echo "no" >&6; } 13220fi 13221rm -f core conftest.err conftest.$ac_objext \ 13222 conftest$ac_exeext conftest.$ac_ext 13223 13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 13225$as_echo_n "checking for isinf()... " >&6; } 13226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228 13229#ifdef HAVE_MATH_H 13230# include <math.h> 13231#endif 13232#if STDC_HEADERS 13233# include <stdlib.h> 13234# include <stddef.h> 13235#endif 13236 13237int 13238main () 13239{ 13240int r = isinf(1.11); 13241 ; 13242 return 0; 13243} 13244_ACEOF 13245if ac_fn_c_try_link "$LINENO"; then : 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13247$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 13248 13249else 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13251$as_echo "no" >&6; } 13252fi 13253rm -f core conftest.err conftest.$ac_objext \ 13254 conftest$ac_exeext conftest.$ac_ext 13255 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 13257$as_echo_n "checking for isnan()... " >&6; } 13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260 13261#ifdef HAVE_MATH_H 13262# include <math.h> 13263#endif 13264#if STDC_HEADERS 13265# include <stdlib.h> 13266# include <stddef.h> 13267#endif 13268 13269int 13270main () 13271{ 13272int r = isnan(1.11); 13273 ; 13274 return 0; 13275} 13276_ACEOF 13277if ac_fn_c_try_link "$LINENO"; then : 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13279$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 13280 13281else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13283$as_echo "no" >&6; } 13284fi 13285rm -f core conftest.err conftest.$ac_objext \ 13286 conftest$ac_exeext conftest.$ac_ext 13287 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 13289$as_echo_n "checking --disable-acl argument... " >&6; } 13290# Check whether --enable-acl was given. 13291if test "${enable_acl+set}" = set; then : 13292 enableval=$enable_acl; 13293else 13294 enable_acl="yes" 13295fi 13296 13297if test "$enable_acl" = "yes"; then 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13299$as_echo "no" >&6; } 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 13301$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 13302if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304else 13305 ac_check_lib_save_LIBS=$LIBS 13306LIBS="-lposix1e $LIBS" 13307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309 13310/* Override any GCC internal prototype to avoid an error. 13311 Use char because int might match the return type of a GCC 13312 builtin and then its argument prototype would still apply. */ 13313#ifdef __cplusplus 13314extern "C" 13315#endif 13316char acl_get_file (); 13317int 13318main () 13319{ 13320return acl_get_file (); 13321 ; 13322 return 0; 13323} 13324_ACEOF 13325if ac_fn_c_try_link "$LINENO"; then : 13326 ac_cv_lib_posix1e_acl_get_file=yes 13327else 13328 ac_cv_lib_posix1e_acl_get_file=no 13329fi 13330rm -f core conftest.err conftest.$ac_objext \ 13331 conftest$ac_exeext conftest.$ac_ext 13332LIBS=$ac_check_lib_save_LIBS 13333fi 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13335$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 13336if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 13337 LIBS="$LIBS -lposix1e" 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 13340$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 13341if ${ac_cv_lib_acl_acl_get_file+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 ac_check_lib_save_LIBS=$LIBS 13345LIBS="-lacl $LIBS" 13346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13347/* end confdefs.h. */ 13348 13349/* Override any GCC internal prototype to avoid an error. 13350 Use char because int might match the return type of a GCC 13351 builtin and then its argument prototype would still apply. */ 13352#ifdef __cplusplus 13353extern "C" 13354#endif 13355char acl_get_file (); 13356int 13357main () 13358{ 13359return acl_get_file (); 13360 ; 13361 return 0; 13362} 13363_ACEOF 13364if ac_fn_c_try_link "$LINENO"; then : 13365 ac_cv_lib_acl_acl_get_file=yes 13366else 13367 ac_cv_lib_acl_acl_get_file=no 13368fi 13369rm -f core conftest.err conftest.$ac_objext \ 13370 conftest$ac_exeext conftest.$ac_ext 13371LIBS=$ac_check_lib_save_LIBS 13372fi 13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 13374$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 13375if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 13376 LIBS="$LIBS -lacl" 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 13378$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 13379if ${ac_cv_lib_attr_fgetxattr+:} false; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 ac_check_lib_save_LIBS=$LIBS 13383LIBS="-lattr $LIBS" 13384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386 13387/* Override any GCC internal prototype to avoid an error. 13388 Use char because int might match the return type of a GCC 13389 builtin and then its argument prototype would still apply. */ 13390#ifdef __cplusplus 13391extern "C" 13392#endif 13393char fgetxattr (); 13394int 13395main () 13396{ 13397return fgetxattr (); 13398 ; 13399 return 0; 13400} 13401_ACEOF 13402if ac_fn_c_try_link "$LINENO"; then : 13403 ac_cv_lib_attr_fgetxattr=yes 13404else 13405 ac_cv_lib_attr_fgetxattr=no 13406fi 13407rm -f core conftest.err conftest.$ac_objext \ 13408 conftest$ac_exeext conftest.$ac_ext 13409LIBS=$ac_check_lib_save_LIBS 13410fi 13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 13412$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 13413if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 13414 LIBS="$LIBS -lattr" 13415fi 13416 13417fi 13418 13419fi 13420 13421 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 13423$as_echo_n "checking for POSIX ACL support... " >&6; } 13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13425/* end confdefs.h. */ 13426 13427#include <sys/types.h> 13428#ifdef HAVE_SYS_ACL_H 13429# include <sys/acl.h> 13430#endif 13431acl_t acl; 13432int 13433main () 13434{ 13435acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13436 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13437 acl_free(acl); 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO"; then : 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13444$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 13445 13446else 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13448$as_echo "no" >&6; } 13449fi 13450rm -f core conftest.err conftest.$ac_objext \ 13451 conftest$ac_exeext conftest.$ac_ext 13452 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 13454$as_echo_n "checking for acl_get in -lsec... " >&6; } 13455if ${ac_cv_lib_sec_acl_get+:} false; then : 13456 $as_echo_n "(cached) " >&6 13457else 13458 ac_check_lib_save_LIBS=$LIBS 13459LIBS="-lsec $LIBS" 13460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13461/* end confdefs.h. */ 13462 13463/* Override any GCC internal prototype to avoid an error. 13464 Use char because int might match the return type of a GCC 13465 builtin and then its argument prototype would still apply. */ 13466#ifdef __cplusplus 13467extern "C" 13468#endif 13469char acl_get (); 13470int 13471main () 13472{ 13473return acl_get (); 13474 ; 13475 return 0; 13476} 13477_ACEOF 13478if ac_fn_c_try_link "$LINENO"; then : 13479 ac_cv_lib_sec_acl_get=yes 13480else 13481 ac_cv_lib_sec_acl_get=no 13482fi 13483rm -f core conftest.err conftest.$ac_objext \ 13484 conftest$ac_exeext conftest.$ac_ext 13485LIBS=$ac_check_lib_save_LIBS 13486fi 13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13488$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13489if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13490 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13491 13492else 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13494$as_echo_n "checking for Solaris ACL support... " >&6; } 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497 13498#ifdef HAVE_SYS_ACL_H 13499# include <sys/acl.h> 13500#endif 13501int 13502main () 13503{ 13504acl("foo", GETACLCNT, 0, NULL); 13505 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_link "$LINENO"; then : 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13512$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13513 13514else 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13516$as_echo "no" >&6; } 13517fi 13518rm -f core conftest.err conftest.$ac_objext \ 13519 conftest$ac_exeext conftest.$ac_ext 13520fi 13521 13522 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13524$as_echo_n "checking for AIX ACL support... " >&6; } 13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526/* end confdefs.h. */ 13527 13528#if STDC_HEADERS 13529# include <stdlib.h> 13530# include <stddef.h> 13531#endif 13532#ifdef HAVE_SYS_ACL_H 13533# include <sys/acl.h> 13534#endif 13535#ifdef HAVE_SYS_ACCESS_H 13536# include <sys/access.h> 13537#endif 13538#define _ALL_SOURCE 13539 13540#include <sys/stat.h> 13541 13542int aclsize; 13543struct acl *aclent; 13544int 13545main () 13546{ 13547aclsize = sizeof(struct acl); 13548 aclent = (void *)malloc(aclsize); 13549 statacl("foo", STX_NORMAL, aclent, aclsize); 13550 13551 ; 13552 return 0; 13553} 13554_ACEOF 13555if ac_fn_c_try_link "$LINENO"; then : 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13557$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13558 13559else 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13561$as_echo "no" >&6; } 13562fi 13563rm -f core conftest.err conftest.$ac_objext \ 13564 conftest$ac_exeext conftest.$ac_ext 13565else 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13567$as_echo "yes" >&6; } 13568fi 13569 13570if test "x$GTK_CFLAGS" != "x"; then 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13572$as_echo_n "checking for pango_shape_full... " >&6; } 13573 ac_save_CFLAGS="$CFLAGS" 13574 ac_save_LIBS="$LIBS" 13575 CFLAGS="$CFLAGS $GTK_CFLAGS" 13576 LIBS="$LIBS $GTK_LIBS" 13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13578/* end confdefs.h. */ 13579#include <gtk/gtk.h> 13580int 13581main () 13582{ 13583 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13584 ; 13585 return 0; 13586} 13587_ACEOF 13588if ac_fn_c_try_link "$LINENO"; then : 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13590$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13591 13592else 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13594$as_echo "no" >&6; } 13595fi 13596rm -f core conftest.err conftest.$ac_objext \ 13597 conftest$ac_exeext conftest.$ac_ext 13598 CFLAGS="$ac_save_CFLAGS" 13599 LIBS="$ac_save_LIBS" 13600fi 13601 13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13603$as_echo_n "checking --disable-gpm argument... " >&6; } 13604# Check whether --enable-gpm was given. 13605if test "${enable_gpm+set}" = set; then : 13606 enableval=$enable_gpm; 13607else 13608 enable_gpm="yes" 13609fi 13610 13611 13612if test "$enable_gpm" = "yes"; then 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13614$as_echo "no" >&6; } 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13616$as_echo_n "checking for gpm... " >&6; } 13617if ${vi_cv_have_gpm+:} false; then : 13618 $as_echo_n "(cached) " >&6 13619else 13620 olibs="$LIBS" ; LIBS="-lgpm" 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623#include <gpm.h> 13624 #include <linux/keyboard.h> 13625int 13626main () 13627{ 13628Gpm_GetLibVersion(NULL); 13629 ; 13630 return 0; 13631} 13632_ACEOF 13633if ac_fn_c_try_link "$LINENO"; then : 13634 vi_cv_have_gpm=yes 13635else 13636 vi_cv_have_gpm=no 13637fi 13638rm -f core conftest.err conftest.$ac_objext \ 13639 conftest$ac_exeext conftest.$ac_ext 13640 LIBS="$olibs" 13641 13642fi 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13644$as_echo "$vi_cv_have_gpm" >&6; } 13645 if test $vi_cv_have_gpm = yes; then 13646 LIBS="$LIBS -lgpm" 13647 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13648 13649 fi 13650else 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13652$as_echo "yes" >&6; } 13653fi 13654 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13656$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13657# Check whether --enable-sysmouse was given. 13658if test "${enable_sysmouse+set}" = set; then : 13659 enableval=$enable_sysmouse; 13660else 13661 enable_sysmouse="yes" 13662fi 13663 13664 13665if test "$enable_sysmouse" = "yes"; then 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13667$as_echo "no" >&6; } 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13669$as_echo_n "checking for sysmouse... " >&6; } 13670if ${vi_cv_have_sysmouse+:} false; then : 13671 $as_echo_n "(cached) " >&6 13672else 13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13674/* end confdefs.h. */ 13675#include <sys/consio.h> 13676 #include <signal.h> 13677 #include <sys/fbio.h> 13678int 13679main () 13680{ 13681struct mouse_info mouse; 13682 mouse.operation = MOUSE_MODE; 13683 mouse.operation = MOUSE_SHOW; 13684 mouse.u.mode.mode = 0; 13685 mouse.u.mode.signal = SIGUSR2; 13686 ; 13687 return 0; 13688} 13689_ACEOF 13690if ac_fn_c_try_link "$LINENO"; then : 13691 vi_cv_have_sysmouse=yes 13692else 13693 vi_cv_have_sysmouse=no 13694fi 13695rm -f core conftest.err conftest.$ac_objext \ 13696 conftest$ac_exeext conftest.$ac_ext 13697 13698fi 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13700$as_echo "$vi_cv_have_sysmouse" >&6; } 13701 if test $vi_cv_have_sysmouse = yes; then 13702 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13703 13704 fi 13705else 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707$as_echo "yes" >&6; } 13708fi 13709 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13711$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714#if HAVE_FCNTL_H 13715# include <fcntl.h> 13716#endif 13717int 13718main () 13719{ 13720 int flag = FD_CLOEXEC; 13721 ; 13722 return 0; 13723} 13724_ACEOF 13725if ac_fn_c_try_compile "$LINENO"; then : 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13727$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13728 13729else 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13731$as_echo "not usable" >&6; } 13732fi 13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13734 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13736$as_echo_n "checking for rename... " >&6; } 13737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738/* end confdefs.h. */ 13739#include <stdio.h> 13740int 13741main () 13742{ 13743rename("this", "that") 13744 ; 13745 return 0; 13746} 13747_ACEOF 13748if ac_fn_c_try_link "$LINENO"; then : 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13750$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13751 13752else 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13754$as_echo "no" >&6; } 13755fi 13756rm -f core conftest.err conftest.$ac_objext \ 13757 conftest$ac_exeext conftest.$ac_ext 13758 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13760$as_echo_n "checking for sysctl... " >&6; } 13761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13762/* end confdefs.h. */ 13763#include <sys/types.h> 13764#include <sys/sysctl.h> 13765int 13766main () 13767{ 13768 int mib[2], r; 13769 size_t len; 13770 13771 mib[0] = CTL_HW; 13772 mib[1] = HW_USERMEM; 13773 len = sizeof(r); 13774 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13775 13776 ; 13777 return 0; 13778} 13779_ACEOF 13780if ac_fn_c_try_compile "$LINENO"; then : 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13782$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13783 13784else 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13786$as_echo "not usable" >&6; } 13787fi 13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13789 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13791$as_echo_n "checking for sysinfo... " >&6; } 13792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794#include <sys/types.h> 13795#include <sys/sysinfo.h> 13796int 13797main () 13798{ 13799 struct sysinfo sinfo; 13800 int t; 13801 13802 (void)sysinfo(&sinfo); 13803 t = sinfo.totalram; 13804 13805 ; 13806 return 0; 13807} 13808_ACEOF 13809if ac_fn_c_try_compile "$LINENO"; then : 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13811$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13812 13813else 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13815$as_echo "not usable" >&6; } 13816fi 13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13818 13819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13820$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823#include <sys/types.h> 13824#include <sys/sysinfo.h> 13825int 13826main () 13827{ 13828 struct sysinfo sinfo; 13829 sinfo.mem_unit = 1; 13830 13831 ; 13832 return 0; 13833} 13834_ACEOF 13835if ac_fn_c_try_compile "$LINENO"; then : 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13837$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13838 13839else 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13841$as_echo "no" >&6; } 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13844 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13846$as_echo_n "checking for sysconf... " >&6; } 13847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849#include <unistd.h> 13850int 13851main () 13852{ 13853 (void)sysconf(_SC_PAGESIZE); 13854 (void)sysconf(_SC_PHYS_PAGES); 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_SYSCONF 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# The cast to long int works around a bug in the HP C Compiler 13871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13873# This bug is HP SR number 8606223364. 13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13875$as_echo_n "checking size of int... " >&6; } 13876if ${ac_cv_sizeof_int+:} false; then : 13877 $as_echo_n "(cached) " >&6 13878else 13879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13880 13881else 13882 if test "$ac_cv_type_int" = yes; then 13883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13885as_fn_error 77 "cannot compute sizeof (int) 13886See \`config.log' for more details" "$LINENO" 5; } 13887 else 13888 ac_cv_sizeof_int=0 13889 fi 13890fi 13891 13892fi 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13894$as_echo "$ac_cv_sizeof_int" >&6; } 13895 13896 13897 13898cat >>confdefs.h <<_ACEOF 13899#define SIZEOF_INT $ac_cv_sizeof_int 13900_ACEOF 13901 13902 13903# The cast to long int works around a bug in the HP C Compiler 13904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13906# This bug is HP SR number 8606223364. 13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13908$as_echo_n "checking size of long... " >&6; } 13909if ${ac_cv_sizeof_long+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13913 13914else 13915 if test "$ac_cv_type_long" = yes; then 13916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13918as_fn_error 77 "cannot compute sizeof (long) 13919See \`config.log' for more details" "$LINENO" 5; } 13920 else 13921 ac_cv_sizeof_long=0 13922 fi 13923fi 13924 13925fi 13926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13927$as_echo "$ac_cv_sizeof_long" >&6; } 13928 13929 13930 13931cat >>confdefs.h <<_ACEOF 13932#define SIZEOF_LONG $ac_cv_sizeof_long 13933_ACEOF 13934 13935 13936# The cast to long int works around a bug in the HP C Compiler 13937# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13938# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13939# This bug is HP SR number 8606223364. 13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13941$as_echo_n "checking size of time_t... " >&6; } 13942if ${ac_cv_sizeof_time_t+:} false; then : 13943 $as_echo_n "(cached) " >&6 13944else 13945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13946 13947else 13948 if test "$ac_cv_type_time_t" = yes; then 13949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13951as_fn_error 77 "cannot compute sizeof (time_t) 13952See \`config.log' for more details" "$LINENO" 5; } 13953 else 13954 ac_cv_sizeof_time_t=0 13955 fi 13956fi 13957 13958fi 13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13960$as_echo "$ac_cv_sizeof_time_t" >&6; } 13961 13962 13963 13964cat >>confdefs.h <<_ACEOF 13965#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13966_ACEOF 13967 13968 13969# The cast to long int works around a bug in the HP C Compiler 13970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13972# This bug is HP SR number 8606223364. 13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13974$as_echo_n "checking size of off_t... " >&6; } 13975if ${ac_cv_sizeof_off_t+:} false; then : 13976 $as_echo_n "(cached) " >&6 13977else 13978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13979 13980else 13981 if test "$ac_cv_type_off_t" = yes; then 13982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13984as_fn_error 77 "cannot compute sizeof (off_t) 13985See \`config.log' for more details" "$LINENO" 5; } 13986 else 13987 ac_cv_sizeof_off_t=0 13988 fi 13989fi 13990 13991fi 13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13993$as_echo "$ac_cv_sizeof_off_t" >&6; } 13994 13995 13996 13997cat >>confdefs.h <<_ACEOF 13998#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13999_ACEOF 14000 14001 14002 14003cat >>confdefs.h <<_ACEOF 14004#define VIM_SIZEOF_INT $ac_cv_sizeof_int 14005_ACEOF 14006 14007cat >>confdefs.h <<_ACEOF 14008#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 14009_ACEOF 14010 14011 14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 14013$as_echo_n "checking uint32_t is 32 bits... " >&6; } 14014if test "$cross_compiling" = yes; then : 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 14016$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 14017else 14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14019/* end confdefs.h. */ 14020 14021#ifdef HAVE_STDINT_H 14022# include <stdint.h> 14023#endif 14024#ifdef HAVE_INTTYPES_H 14025# include <inttypes.h> 14026#endif 14027main() { 14028 uint32_t nr1 = (uint32_t)-1; 14029 uint32_t nr2 = (uint32_t)0xffffffffUL; 14030 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 14031 exit(0); 14032} 14033_ACEOF 14034if ac_fn_c_try_run "$LINENO"; then : 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14036$as_echo "ok" >&6; } 14037else 14038 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 14039fi 14040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14041 conftest.$ac_objext conftest.beam conftest.$ac_ext 14042fi 14043 14044 14045 14046bcopy_test_prog=' 14047#include "confdefs.h" 14048#ifdef HAVE_STRING_H 14049# include <string.h> 14050#endif 14051#if STDC_HEADERS 14052# include <stdlib.h> 14053# include <stddef.h> 14054#endif 14055main() { 14056 char buf[10]; 14057 strcpy(buf, "abcdefghi"); 14058 mch_memmove(buf, buf + 2, 3); 14059 if (strncmp(buf, "ababcf", 6)) 14060 exit(1); 14061 strcpy(buf, "abcdefghi"); 14062 mch_memmove(buf + 2, buf, 3); 14063 if (strncmp(buf, "cdedef", 6)) 14064 exit(1); 14065 exit(0); /* libc version works properly. */ 14066}' 14067 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 14069$as_echo_n "checking whether memmove handles overlaps... " >&6; } 14070if ${vim_cv_memmove_handles_overlap+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 14074 if test "$cross_compiling" = yes; then : 14075 14076 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 14077 14078else 14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14080/* end confdefs.h. */ 14081#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 14082_ACEOF 14083if ac_fn_c_try_run "$LINENO"; then : 14084 14085 vim_cv_memmove_handles_overlap=yes 14086 14087else 14088 14089 vim_cv_memmove_handles_overlap=no 14090 14091fi 14092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14093 conftest.$ac_objext conftest.beam conftest.$ac_ext 14094fi 14095 14096 14097fi 14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 14099$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 14100 14101if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 14102 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 14103 14104else 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 14106$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 14107if ${vim_cv_bcopy_handles_overlap+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109else 14110 14111 if test "$cross_compiling" = yes; then : 14112 14113 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 14114 14115else 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117/* end confdefs.h. */ 14118#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14119_ACEOF 14120if ac_fn_c_try_run "$LINENO"; then : 14121 14122 vim_cv_bcopy_handles_overlap=yes 14123 14124else 14125 14126 vim_cv_bcopy_handles_overlap=no 14127 14128fi 14129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14130 conftest.$ac_objext conftest.beam conftest.$ac_ext 14131fi 14132 14133 14134fi 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 14136$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 14137 14138 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 14139 $as_echo "#define USEBCOPY 1" >>confdefs.h 14140 14141 else 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 14143$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 14144if ${vim_cv_memcpy_handles_overlap+:} false; then : 14145 $as_echo_n "(cached) " >&6 14146else 14147 14148 if test "$cross_compiling" = yes; then : 14149 14150 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 14151 14152else 14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14154/* end confdefs.h. */ 14155#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14156_ACEOF 14157if ac_fn_c_try_run "$LINENO"; then : 14158 14159 vim_cv_memcpy_handles_overlap=yes 14160 14161else 14162 14163 vim_cv_memcpy_handles_overlap=no 14164 14165fi 14166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14167 conftest.$ac_objext conftest.beam conftest.$ac_ext 14168fi 14169 14170 14171fi 14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 14173$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 14174 14175 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 14176 $as_echo "#define USEMEMCPY 1" >>confdefs.h 14177 14178 fi 14179 fi 14180fi 14181 14182 14183if test "x$with_x" = "xyes"; then 14184 cflags_save=$CFLAGS 14185 libs_save=$LIBS 14186 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 14187 CFLAGS="$CFLAGS $X_CFLAGS" 14188 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 14190$as_echo_n "checking whether X_LOCALE needed... " >&6; } 14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14192/* end confdefs.h. */ 14193#include <X11/Xlocale.h> 14194int 14195main () 14196{ 14197 14198 ; 14199 return 0; 14200} 14201_ACEOF 14202if ac_fn_c_try_compile "$LINENO"; then : 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205 14206/* Override any GCC internal prototype to avoid an error. 14207 Use char because int might match the return type of a GCC 14208 builtin and then its argument prototype would still apply. */ 14209#ifdef __cplusplus 14210extern "C" 14211#endif 14212char _Xsetlocale (); 14213int 14214main () 14215{ 14216return _Xsetlocale (); 14217 ; 14218 return 0; 14219} 14220_ACEOF 14221if ac_fn_c_try_link "$LINENO"; then : 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14223$as_echo "yes" >&6; } 14224 $as_echo "#define X_LOCALE 1" >>confdefs.h 14225 14226else 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14228$as_echo "no" >&6; } 14229fi 14230rm -f core conftest.err conftest.$ac_objext \ 14231 conftest$ac_exeext conftest.$ac_ext 14232else 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14234$as_echo "no" >&6; } 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14237 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 14239$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14241/* end confdefs.h. */ 14242 14243/* Override any GCC internal prototype to avoid an error. 14244 Use char because int might match the return type of a GCC 14245 builtin and then its argument prototype would still apply. */ 14246#ifdef __cplusplus 14247extern "C" 14248#endif 14249char Xutf8SetWMProperties (); 14250int 14251main () 14252{ 14253return Xutf8SetWMProperties (); 14254 ; 14255 return 0; 14256} 14257_ACEOF 14258if ac_fn_c_try_link "$LINENO"; then : 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14260$as_echo "yes" >&6; } 14261 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 14262 14263else 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14265$as_echo "no" >&6; } 14266fi 14267rm -f core conftest.err conftest.$ac_objext \ 14268 conftest$ac_exeext conftest.$ac_ext 14269 14270 CFLAGS=$cflags_save 14271 LIBS=$libs_save 14272fi 14273 14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 14275$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 14276if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 ac_check_lib_save_LIBS=$LIBS 14280LIBS="-lxpg4 $LIBS" 14281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14282/* end confdefs.h. */ 14283 14284/* Override any GCC internal prototype to avoid an error. 14285 Use char because int might match the return type of a GCC 14286 builtin and then its argument prototype would still apply. */ 14287#ifdef __cplusplus 14288extern "C" 14289#endif 14290char _xpg4_setrunelocale (); 14291int 14292main () 14293{ 14294return _xpg4_setrunelocale (); 14295 ; 14296 return 0; 14297} 14298_ACEOF 14299if ac_fn_c_try_link "$LINENO"; then : 14300 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14301else 14302 ac_cv_lib_xpg4__xpg4_setrunelocale=no 14303fi 14304rm -f core conftest.err conftest.$ac_objext \ 14305 conftest$ac_exeext conftest.$ac_ext 14306LIBS=$ac_check_lib_save_LIBS 14307fi 14308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14309$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 14310if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 14311 LIBS="$LIBS -lxpg4" 14312fi 14313 14314 14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 14316$as_echo_n "checking how to create tags... " >&6; } 14317test -f tags && mv tags tags.save 14318if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14319 TAGPRG="ctags -I INIT+ --fields=+S" 14320elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14321 TAGPRG="exctags -I INIT+ --fields=+S" 14322elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14323 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 14324else 14325 TAGPRG="ctags" 14326 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14327 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14328 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14329 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14330 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14331 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14332 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14333fi 14334test -f tags.save && mv tags.save tags 14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 14336$as_echo "$TAGPRG" >&6; } 14337 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 14339$as_echo_n "checking how to run man with a section nr... " >&6; } 14340MANDEF="man" 14341(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 14343$as_echo "$MANDEF" >&6; } 14344if test "$MANDEF" = "man -s"; then 14345 $as_echo "#define USEMAN_S 1" >>confdefs.h 14346 14347fi 14348 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 14350$as_echo_n "checking --disable-nls argument... " >&6; } 14351# Check whether --enable-nls was given. 14352if test "${enable_nls+set}" = set; then : 14353 enableval=$enable_nls; 14354else 14355 enable_nls="yes" 14356fi 14357 14358 14359if test "$enable_nls" = "yes"; then 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14361$as_echo "no" >&6; } 14362 14363 INSTALL_LANGS=install-languages 14364 14365 INSTALL_TOOL_LANGS=install-tool-languages 14366 14367 14368 # Extract the first word of "msgfmt", so it can be a program name with args. 14369set dummy msgfmt; ac_word=$2 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14371$as_echo_n "checking for $ac_word... " >&6; } 14372if ${ac_cv_prog_MSGFMT+:} false; then : 14373 $as_echo_n "(cached) " >&6 14374else 14375 if test -n "$MSGFMT"; then 14376 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14377else 14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14379for as_dir in $PATH 14380do 14381 IFS=$as_save_IFS 14382 test -z "$as_dir" && as_dir=. 14383 for ac_exec_ext in '' $ac_executable_extensions; do 14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14385 ac_cv_prog_MSGFMT="msgfmt" 14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14387 break 2 14388 fi 14389done 14390 done 14391IFS=$as_save_IFS 14392 14393fi 14394fi 14395MSGFMT=$ac_cv_prog_MSGFMT 14396if test -n "$MSGFMT"; then 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 14398$as_echo "$MSGFMT" >&6; } 14399else 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14401$as_echo "no" >&6; } 14402fi 14403 14404 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 14406$as_echo_n "checking for NLS... " >&6; } 14407 if test -f po/Makefile; then 14408 have_gettext="no" 14409 if test -n "$MSGFMT"; then 14410 olibs=$LIBS 14411 LIBS="" 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14413/* end confdefs.h. */ 14414#include <libintl.h> 14415int 14416main () 14417{ 14418gettext("Test"); 14419 ; 14420 return 0; 14421} 14422_ACEOF 14423if ac_fn_c_try_link "$LINENO"; then : 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 14425$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 14426else 14427 LIBS="-lintl" 14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14429/* end confdefs.h. */ 14430#include <libintl.h> 14431int 14432main () 14433{ 14434gettext("Test"); 14435 ; 14436 return 0; 14437} 14438_ACEOF 14439if ac_fn_c_try_link "$LINENO"; then : 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 14441$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 14442 LIBS="$olibs -lintl" 14443else 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 14445$as_echo "gettext() doesn't work" >&6; }; 14446 LIBS=$olibs 14447fi 14448rm -f core conftest.err conftest.$ac_objext \ 14449 conftest$ac_exeext conftest.$ac_ext 14450fi 14451rm -f core conftest.err conftest.$ac_objext \ 14452 conftest$ac_exeext conftest.$ac_ext 14453 else 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 14455$as_echo "msgfmt not found - disabled" >&6; }; 14456 fi 14457 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 14458 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14459 14460 MAKEMO=yes 14461 14462 for ac_func in bind_textdomain_codeset 14463do : 14464 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14465if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14466 cat >>confdefs.h <<_ACEOF 14467#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14468_ACEOF 14469 14470fi 14471done 14472 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 14474$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14476/* end confdefs.h. */ 14477#include <libintl.h> 14478 extern int _nl_msg_cat_cntr; 14479int 14480main () 14481{ 14482++_nl_msg_cat_cntr; 14483 ; 14484 return 0; 14485} 14486_ACEOF 14487if ac_fn_c_try_link "$LINENO"; then : 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14489$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14490 14491else 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14493$as_echo "no" >&6; } 14494fi 14495rm -f core conftest.err conftest.$ac_objext \ 14496 conftest$ac_exeext conftest.$ac_ext 14497 fi 14498 else 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14500$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14501 fi 14502else 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14504$as_echo "yes" >&6; } 14505fi 14506 14507ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14508if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14509 DLL=dlfcn.h 14510else 14511 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14512if test "x$ac_cv_header_dl_h" = xyes; then : 14513 DLL=dl.h 14514fi 14515 14516 14517fi 14518 14519 14520if test x${DLL} = xdlfcn.h; then 14521 14522$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14523 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14525$as_echo_n "checking for dlopen()... " >&6; } 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528 14529int 14530main () 14531{ 14532 14533 extern void* dlopen(); 14534 dlopen(); 14535 14536 ; 14537 return 0; 14538} 14539_ACEOF 14540if ac_fn_c_try_link "$LINENO"; then : 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14542$as_echo "yes" >&6; }; 14543 14544$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14545 14546else 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14548$as_echo "no" >&6; }; 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14550$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14551 olibs=$LIBS 14552 LIBS="$LIBS -ldl" 14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14554/* end confdefs.h. */ 14555 14556int 14557main () 14558{ 14559 14560 extern void* dlopen(); 14561 dlopen(); 14562 14563 ; 14564 return 0; 14565} 14566_ACEOF 14567if ac_fn_c_try_link "$LINENO"; then : 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14569$as_echo "yes" >&6; }; 14570 14571$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14572 14573else 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14575$as_echo "no" >&6; }; 14576 LIBS=$olibs 14577fi 14578rm -f core conftest.err conftest.$ac_objext \ 14579 conftest$ac_exeext conftest.$ac_ext 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14584$as_echo_n "checking for dlsym()... " >&6; } 14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14586/* end confdefs.h. */ 14587 14588int 14589main () 14590{ 14591 14592 extern void* dlsym(); 14593 dlsym(); 14594 14595 ; 14596 return 0; 14597} 14598_ACEOF 14599if ac_fn_c_try_link "$LINENO"; then : 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14601$as_echo "yes" >&6; }; 14602 14603$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14604 14605else 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14607$as_echo "no" >&6; }; 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14609$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14610 olibs=$LIBS 14611 LIBS="$LIBS -ldl" 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614 14615int 14616main () 14617{ 14618 14619 extern void* dlsym(); 14620 dlsym(); 14621 14622 ; 14623 return 0; 14624} 14625_ACEOF 14626if ac_fn_c_try_link "$LINENO"; then : 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14628$as_echo "yes" >&6; }; 14629 14630$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14631 14632else 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14634$as_echo "no" >&6; }; 14635 LIBS=$olibs 14636fi 14637rm -f core conftest.err conftest.$ac_objext \ 14638 conftest$ac_exeext conftest.$ac_ext 14639fi 14640rm -f core conftest.err conftest.$ac_objext \ 14641 conftest$ac_exeext conftest.$ac_ext 14642elif test x${DLL} = xdl.h; then 14643 14644$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14645 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14647$as_echo_n "checking for shl_load()... " >&6; } 14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14649/* end confdefs.h. */ 14650 14651int 14652main () 14653{ 14654 14655 extern void* shl_load(); 14656 shl_load(); 14657 14658 ; 14659 return 0; 14660} 14661_ACEOF 14662if ac_fn_c_try_link "$LINENO"; then : 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14664$as_echo "yes" >&6; }; 14665 14666$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14667 14668else 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14670$as_echo "no" >&6; }; 14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14672$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14673 olibs=$LIBS 14674 LIBS="$LIBS -ldld" 14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14676/* end confdefs.h. */ 14677 14678int 14679main () 14680{ 14681 14682 extern void* shl_load(); 14683 shl_load(); 14684 14685 ; 14686 return 0; 14687} 14688_ACEOF 14689if ac_fn_c_try_link "$LINENO"; then : 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14691$as_echo "yes" >&6; }; 14692 14693$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14694 14695else 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14697$as_echo "no" >&6; }; 14698 LIBS=$olibs 14699fi 14700rm -f core conftest.err conftest.$ac_objext \ 14701 conftest$ac_exeext conftest.$ac_ext 14702fi 14703rm -f core conftest.err conftest.$ac_objext \ 14704 conftest$ac_exeext conftest.$ac_ext 14705fi 14706for ac_header in setjmp.h 14707do : 14708 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14709if test "x$ac_cv_header_setjmp_h" = xyes; then : 14710 cat >>confdefs.h <<_ACEOF 14711#define HAVE_SETJMP_H 1 14712_ACEOF 14713 14714fi 14715 14716done 14717 14718 14719if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14720 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14721 LIBS=`echo $LIBS | sed s/-ldl//` 14722 PERL_LIBS="$PERL_LIBS -ldl" 14723 fi 14724fi 14725 14726if test "$MACOS_X" = "yes"; then 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14728$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14729 if test "$GUITYPE" = "CARBONGUI"; then 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14731$as_echo "yes, we need Carbon" >&6; } 14732 LIBS="$LIBS -framework Carbon" 14733 elif test "$MACOS_X_DARWIN" = "yes"; then 14734 if test "$features" = "tiny"; then 14735 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14736 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14737 if test "$enable_multibyte" = "yes"; then 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14739$as_echo "yes, we need CoreServices" >&6; } 14740 LIBS="$LIBS -framework CoreServices" 14741 else 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14743$as_echo "no" >&6; } 14744 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'` 14745 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'` 14746 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'` 14747 fi 14748 else 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14750$as_echo "yes, we need AppKit" >&6; } 14751 LIBS="$LIBS -framework AppKit" 14752 if test "$features" = "small" -a "$enable_multibyte" = "no"; then 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5 14754$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;} 14755 enable_multibyte=yes 14756 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 14757 14758 fi 14759 fi 14760 else 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14762$as_echo "no" >&6; } 14763 fi 14764fi 14765if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14766 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14767fi 14768 14769DEPEND_CFLAGS_FILTER= 14770if test "$GCC" = yes; then 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14772$as_echo_n "checking for GCC 3 or later... " >&6; } 14773 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14774 if test "$gccmajor" -gt "2"; then 14775 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14777$as_echo "yes" >&6; } 14778 else 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14780$as_echo "no" >&6; } 14781 fi 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14783$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14784 if test "$gccmajor" -gt "3"; then 14785 CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14787$as_echo "yes" >&6; } 14788 else 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14790$as_echo "no" >&6; } 14791 fi 14792fi 14793 14794 14795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14796$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14797if 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 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14799$as_echo "yes" >&6; } 14800 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14801 14802else 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14804$as_echo "no" >&6; } 14805fi 14806 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14808$as_echo_n "checking linker --as-needed support... " >&6; } 14809LINK_AS_NEEDED= 14810# Check if linker supports --as-needed and --no-as-needed options 14811if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14812 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14813 LINK_AS_NEEDED=yes 14814fi 14815if test "$LINK_AS_NEEDED" = yes; then 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14817$as_echo "yes" >&6; } 14818else 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14820$as_echo "no" >&6; } 14821fi 14822 14823 14824# IBM z/OS reset CFLAGS for config.mk 14825if test "$zOSUnix" = "yes"; then 14826 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14827fi 14828 14829ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14830 14831cat >confcache <<\_ACEOF 14832# This file is a shell script that caches the results of configure 14833# tests run on this system so they can be shared between configure 14834# scripts and configure runs, see configure's option --config-cache. 14835# It is not useful on other systems. If it contains results you don't 14836# want to keep, you may remove or edit it. 14837# 14838# config.status only pays attention to the cache file if you give it 14839# the --recheck option to rerun configure. 14840# 14841# `ac_cv_env_foo' variables (set or unset) will be overridden when 14842# loading this file, other *unset* `ac_cv_foo' will be assigned the 14843# following values. 14844 14845_ACEOF 14846 14847# The following way of writing the cache mishandles newlines in values, 14848# but we know of no workaround that is simple, portable, and efficient. 14849# So, we kill variables containing newlines. 14850# Ultrix sh set writes to stderr and can't be redirected directly, 14851# and sets the high bit in the cache file unless we assign to the vars. 14852( 14853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14854 eval ac_val=\$$ac_var 14855 case $ac_val in #( 14856 *${as_nl}*) 14857 case $ac_var in #( 14858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14860 esac 14861 case $ac_var in #( 14862 _ | IFS | as_nl) ;; #( 14863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14864 *) { eval $ac_var=; unset $ac_var;} ;; 14865 esac ;; 14866 esac 14867 done 14868 14869 (set) 2>&1 | 14870 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14871 *${as_nl}ac_space=\ *) 14872 # `set' does not quote correctly, so add quotes: double-quote 14873 # substitution turns \\\\ into \\, and sed turns \\ into \. 14874 sed -n \ 14875 "s/'/'\\\\''/g; 14876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14877 ;; #( 14878 *) 14879 # `set' quotes correctly as required by POSIX, so do not add quotes. 14880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14881 ;; 14882 esac | 14883 sort 14884) | 14885 sed ' 14886 /^ac_cv_env_/b end 14887 t clear 14888 :clear 14889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14890 t end 14891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14892 :end' >>confcache 14893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14894 if test -w "$cache_file"; then 14895 if test "x$cache_file" != "x/dev/null"; then 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14897$as_echo "$as_me: updating cache $cache_file" >&6;} 14898 if test ! -f "$cache_file" || test -h "$cache_file"; then 14899 cat confcache >"$cache_file" 14900 else 14901 case $cache_file in #( 14902 */* | ?:*) 14903 mv -f confcache "$cache_file"$$ && 14904 mv -f "$cache_file"$$ "$cache_file" ;; #( 14905 *) 14906 mv -f confcache "$cache_file" ;; 14907 esac 14908 fi 14909 fi 14910 else 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14913 fi 14914fi 14915rm -f confcache 14916 14917test "x$prefix" = xNONE && prefix=$ac_default_prefix 14918# Let make expand exec_prefix. 14919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14920 14921DEFS=-DHAVE_CONFIG_H 14922 14923ac_libobjs= 14924ac_ltlibobjs= 14925U= 14926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14927 # 1. Remove the extension, and $U if already installed. 14928 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14929 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14931 # will be set to the directory where LIBOBJS objects are built. 14932 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14933 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14934done 14935LIBOBJS=$ac_libobjs 14936 14937LTLIBOBJS=$ac_ltlibobjs 14938 14939 14940 14941 14942: "${CONFIG_STATUS=./config.status}" 14943ac_write_fail=0 14944ac_clean_files_save=$ac_clean_files 14945ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14948as_write_fail=0 14949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14950#! $SHELL 14951# Generated by $as_me. 14952# Run this file to recreate the current configuration. 14953# Compiler output produced by configure, useful for debugging 14954# configure, is in config.log if it exists. 14955 14956debug=false 14957ac_cs_recheck=false 14958ac_cs_silent=false 14959 14960SHELL=\${CONFIG_SHELL-$SHELL} 14961export SHELL 14962_ASEOF 14963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14964## -------------------- ## 14965## M4sh Initialization. ## 14966## -------------------- ## 14967 14968# Be more Bourne compatible 14969DUALCASE=1; export DUALCASE # for MKS sh 14970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14971 emulate sh 14972 NULLCMD=: 14973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14974 # is contrary to our usage. Disable this feature. 14975 alias -g '${1+"$@"}'='"$@"' 14976 setopt NO_GLOB_SUBST 14977else 14978 case `(set -o) 2>/dev/null` in #( 14979 *posix*) : 14980 set -o posix ;; #( 14981 *) : 14982 ;; 14983esac 14984fi 14985 14986 14987as_nl=' 14988' 14989export as_nl 14990# Printing a long string crashes Solaris 7 /usr/bin/printf. 14991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14994# Prefer a ksh shell builtin over an external printf program on Solaris, 14995# but without wasting forks for bash or zsh. 14996if test -z "$BASH_VERSION$ZSH_VERSION" \ 14997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14998 as_echo='print -r --' 14999 as_echo_n='print -rn --' 15000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15001 as_echo='printf %s\n' 15002 as_echo_n='printf %s' 15003else 15004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15006 as_echo_n='/usr/ucb/echo -n' 15007 else 15008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15009 as_echo_n_body='eval 15010 arg=$1; 15011 case $arg in #( 15012 *"$as_nl"*) 15013 expr "X$arg" : "X\\(.*\\)$as_nl"; 15014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15015 esac; 15016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15017 ' 15018 export as_echo_n_body 15019 as_echo_n='sh -c $as_echo_n_body as_echo' 15020 fi 15021 export as_echo_body 15022 as_echo='sh -c $as_echo_body as_echo' 15023fi 15024 15025# The user is always right. 15026if test "${PATH_SEPARATOR+set}" != set; then 15027 PATH_SEPARATOR=: 15028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15030 PATH_SEPARATOR=';' 15031 } 15032fi 15033 15034 15035# IFS 15036# We need space, tab and new line, in precisely that order. Quoting is 15037# there to prevent editors from complaining about space-tab. 15038# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15039# splitting by setting IFS to empty value.) 15040IFS=" "" $as_nl" 15041 15042# Find who we are. Look in the path if we contain no directory separator. 15043as_myself= 15044case $0 in #(( 15045 *[\\/]* ) as_myself=$0 ;; 15046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15047for as_dir in $PATH 15048do 15049 IFS=$as_save_IFS 15050 test -z "$as_dir" && as_dir=. 15051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15052 done 15053IFS=$as_save_IFS 15054 15055 ;; 15056esac 15057# We did not find ourselves, most probably we were run as `sh COMMAND' 15058# in which case we are not to be found in the path. 15059if test "x$as_myself" = x; then 15060 as_myself=$0 15061fi 15062if test ! -f "$as_myself"; then 15063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15064 exit 1 15065fi 15066 15067# Unset variables that we do not need and which cause bugs (e.g. in 15068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15069# suppresses any "Segmentation fault" message there. '((' could 15070# trigger a bug in pdksh 5.2.14. 15071for as_var in BASH_ENV ENV MAIL MAILPATH 15072do eval test x\${$as_var+set} = xset \ 15073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15074done 15075PS1='$ ' 15076PS2='> ' 15077PS4='+ ' 15078 15079# NLS nuisances. 15080LC_ALL=C 15081export LC_ALL 15082LANGUAGE=C 15083export LANGUAGE 15084 15085# CDPATH. 15086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15087 15088 15089# as_fn_error STATUS ERROR [LINENO LOG_FD] 15090# ---------------------------------------- 15091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15093# script with STATUS, using 1 if that was 0. 15094as_fn_error () 15095{ 15096 as_status=$1; test $as_status -eq 0 && as_status=1 15097 if test "$4"; then 15098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15100 fi 15101 $as_echo "$as_me: error: $2" >&2 15102 as_fn_exit $as_status 15103} # as_fn_error 15104 15105 15106# as_fn_set_status STATUS 15107# ----------------------- 15108# Set $? to STATUS, without forking. 15109as_fn_set_status () 15110{ 15111 return $1 15112} # as_fn_set_status 15113 15114# as_fn_exit STATUS 15115# ----------------- 15116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15117as_fn_exit () 15118{ 15119 set +e 15120 as_fn_set_status $1 15121 exit $1 15122} # as_fn_exit 15123 15124# as_fn_unset VAR 15125# --------------- 15126# Portably unset VAR. 15127as_fn_unset () 15128{ 15129 { eval $1=; unset $1;} 15130} 15131as_unset=as_fn_unset 15132# as_fn_append VAR VALUE 15133# ---------------------- 15134# Append the text in VALUE to the end of the definition contained in VAR. Take 15135# advantage of any shell optimizations that allow amortized linear growth over 15136# repeated appends, instead of the typical quadratic growth present in naive 15137# implementations. 15138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15139 eval 'as_fn_append () 15140 { 15141 eval $1+=\$2 15142 }' 15143else 15144 as_fn_append () 15145 { 15146 eval $1=\$$1\$2 15147 } 15148fi # as_fn_append 15149 15150# as_fn_arith ARG... 15151# ------------------ 15152# Perform arithmetic evaluation on the ARGs, and store the result in the 15153# global $as_val. Take advantage of shells that can avoid forks. The arguments 15154# must be portable across $(()) and expr. 15155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15156 eval 'as_fn_arith () 15157 { 15158 as_val=$(( $* )) 15159 }' 15160else 15161 as_fn_arith () 15162 { 15163 as_val=`expr "$@" || test $? -eq 1` 15164 } 15165fi # as_fn_arith 15166 15167 15168if expr a : '\(a\)' >/dev/null 2>&1 && 15169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15170 as_expr=expr 15171else 15172 as_expr=false 15173fi 15174 15175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15176 as_basename=basename 15177else 15178 as_basename=false 15179fi 15180 15181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15182 as_dirname=dirname 15183else 15184 as_dirname=false 15185fi 15186 15187as_me=`$as_basename -- "$0" || 15188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15189 X"$0" : 'X\(//\)$' \| \ 15190 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15191$as_echo X/"$0" | 15192 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15193 s//\1/ 15194 q 15195 } 15196 /^X\/\(\/\/\)$/{ 15197 s//\1/ 15198 q 15199 } 15200 /^X\/\(\/\).*/{ 15201 s//\1/ 15202 q 15203 } 15204 s/.*/./; q'` 15205 15206# Avoid depending upon Character Ranges. 15207as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15209as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15210as_cr_digits='0123456789' 15211as_cr_alnum=$as_cr_Letters$as_cr_digits 15212 15213ECHO_C= ECHO_N= ECHO_T= 15214case `echo -n x` in #((((( 15215-n*) 15216 case `echo 'xy\c'` in 15217 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15218 xy) ECHO_C='\c';; 15219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15220 ECHO_T=' ';; 15221 esac;; 15222*) 15223 ECHO_N='-n';; 15224esac 15225 15226rm -f conf$$ conf$$.exe conf$$.file 15227if test -d conf$$.dir; then 15228 rm -f conf$$.dir/conf$$.file 15229else 15230 rm -f conf$$.dir 15231 mkdir conf$$.dir 2>/dev/null 15232fi 15233if (echo >conf$$.file) 2>/dev/null; then 15234 if ln -s conf$$.file conf$$ 2>/dev/null; then 15235 as_ln_s='ln -s' 15236 # ... but there are two gotchas: 15237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15239 # In both cases, we have to default to `cp -pR'. 15240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15241 as_ln_s='cp -pR' 15242 elif ln conf$$.file conf$$ 2>/dev/null; then 15243 as_ln_s=ln 15244 else 15245 as_ln_s='cp -pR' 15246 fi 15247else 15248 as_ln_s='cp -pR' 15249fi 15250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15251rmdir conf$$.dir 2>/dev/null 15252 15253 15254# as_fn_mkdir_p 15255# ------------- 15256# Create "$as_dir" as a directory, including parents if necessary. 15257as_fn_mkdir_p () 15258{ 15259 15260 case $as_dir in #( 15261 -*) as_dir=./$as_dir;; 15262 esac 15263 test -d "$as_dir" || eval $as_mkdir_p || { 15264 as_dirs= 15265 while :; do 15266 case $as_dir in #( 15267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15268 *) as_qdir=$as_dir;; 15269 esac 15270 as_dirs="'$as_qdir' $as_dirs" 15271 as_dir=`$as_dirname -- "$as_dir" || 15272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15273 X"$as_dir" : 'X\(//\)[^/]' \| \ 15274 X"$as_dir" : 'X\(//\)$' \| \ 15275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15276$as_echo X"$as_dir" | 15277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15278 s//\1/ 15279 q 15280 } 15281 /^X\(\/\/\)[^/].*/{ 15282 s//\1/ 15283 q 15284 } 15285 /^X\(\/\/\)$/{ 15286 s//\1/ 15287 q 15288 } 15289 /^X\(\/\).*/{ 15290 s//\1/ 15291 q 15292 } 15293 s/.*/./; q'` 15294 test -d "$as_dir" && break 15295 done 15296 test -z "$as_dirs" || eval "mkdir $as_dirs" 15297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15298 15299 15300} # as_fn_mkdir_p 15301if mkdir -p . 2>/dev/null; then 15302 as_mkdir_p='mkdir -p "$as_dir"' 15303else 15304 test -d ./-p && rmdir ./-p 15305 as_mkdir_p=false 15306fi 15307 15308 15309# as_fn_executable_p FILE 15310# ----------------------- 15311# Test if FILE is an executable regular file. 15312as_fn_executable_p () 15313{ 15314 test -f "$1" && test -x "$1" 15315} # as_fn_executable_p 15316as_test_x='test -x' 15317as_executable_p=as_fn_executable_p 15318 15319# Sed expression to map a string onto a valid CPP name. 15320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15321 15322# Sed expression to map a string onto a valid variable name. 15323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15324 15325 15326exec 6>&1 15327## ----------------------------------- ## 15328## Main body of $CONFIG_STATUS script. ## 15329## ----------------------------------- ## 15330_ASEOF 15331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15332 15333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15334# Save the log message, to keep $0 and so on meaningful, and to 15335# report actual input values of CONFIG_FILES etc. instead of their 15336# values after options handling. 15337ac_log=" 15338This file was extended by $as_me, which was 15339generated by GNU Autoconf 2.69. Invocation command line was 15340 15341 CONFIG_FILES = $CONFIG_FILES 15342 CONFIG_HEADERS = $CONFIG_HEADERS 15343 CONFIG_LINKS = $CONFIG_LINKS 15344 CONFIG_COMMANDS = $CONFIG_COMMANDS 15345 $ $0 $@ 15346 15347on `(hostname || uname -n) 2>/dev/null | sed 1q` 15348" 15349 15350_ACEOF 15351 15352case $ac_config_files in *" 15353"*) set x $ac_config_files; shift; ac_config_files=$*;; 15354esac 15355 15356case $ac_config_headers in *" 15357"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15358esac 15359 15360 15361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15362# Files that config.status was made for. 15363config_files="$ac_config_files" 15364config_headers="$ac_config_headers" 15365 15366_ACEOF 15367 15368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15369ac_cs_usage="\ 15370\`$as_me' instantiates files and other configuration actions 15371from templates according to the current configuration. Unless the files 15372and actions are specified as TAGs, all are instantiated by default. 15373 15374Usage: $0 [OPTION]... [TAG]... 15375 15376 -h, --help print this help, then exit 15377 -V, --version print version number and configuration settings, then exit 15378 --config print configuration, then exit 15379 -q, --quiet, --silent 15380 do not print progress messages 15381 -d, --debug don't remove temporary files 15382 --recheck update $as_me by reconfiguring in the same conditions 15383 --file=FILE[:TEMPLATE] 15384 instantiate the configuration file FILE 15385 --header=FILE[:TEMPLATE] 15386 instantiate the configuration header FILE 15387 15388Configuration files: 15389$config_files 15390 15391Configuration headers: 15392$config_headers 15393 15394Report bugs to the package provider." 15395 15396_ACEOF 15397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15398ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15399ac_cs_version="\\ 15400config.status 15401configured by $0, generated by GNU Autoconf 2.69, 15402 with options \\"\$ac_cs_config\\" 15403 15404Copyright (C) 2012 Free Software Foundation, Inc. 15405This config.status script is free software; the Free Software Foundation 15406gives unlimited permission to copy, distribute and modify it." 15407 15408ac_pwd='$ac_pwd' 15409srcdir='$srcdir' 15410AWK='$AWK' 15411test -n "\$AWK" || AWK=awk 15412_ACEOF 15413 15414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15415# The default lists apply if the user does not specify any file. 15416ac_need_defaults=: 15417while test $# != 0 15418do 15419 case $1 in 15420 --*=?*) 15421 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15423 ac_shift=: 15424 ;; 15425 --*=) 15426 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15427 ac_optarg= 15428 ac_shift=: 15429 ;; 15430 *) 15431 ac_option=$1 15432 ac_optarg=$2 15433 ac_shift=shift 15434 ;; 15435 esac 15436 15437 case $ac_option in 15438 # Handling of the options. 15439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15440 ac_cs_recheck=: ;; 15441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15442 $as_echo "$ac_cs_version"; exit ;; 15443 --config | --confi | --conf | --con | --co | --c ) 15444 $as_echo "$ac_cs_config"; exit ;; 15445 --debug | --debu | --deb | --de | --d | -d ) 15446 debug=: ;; 15447 --file | --fil | --fi | --f ) 15448 $ac_shift 15449 case $ac_optarg in 15450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15451 '') as_fn_error $? "missing file argument" ;; 15452 esac 15453 as_fn_append CONFIG_FILES " '$ac_optarg'" 15454 ac_need_defaults=false;; 15455 --header | --heade | --head | --hea ) 15456 $ac_shift 15457 case $ac_optarg in 15458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15459 esac 15460 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15461 ac_need_defaults=false;; 15462 --he | --h) 15463 # Conflict between --help and --header 15464 as_fn_error $? "ambiguous option: \`$1' 15465Try \`$0 --help' for more information.";; 15466 --help | --hel | -h ) 15467 $as_echo "$ac_cs_usage"; exit ;; 15468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15469 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15470 ac_cs_silent=: ;; 15471 15472 # This is an error. 15473 -*) as_fn_error $? "unrecognized option: \`$1' 15474Try \`$0 --help' for more information." ;; 15475 15476 *) as_fn_append ac_config_targets " $1" 15477 ac_need_defaults=false ;; 15478 15479 esac 15480 shift 15481done 15482 15483ac_configure_extra_args= 15484 15485if $ac_cs_silent; then 15486 exec 6>/dev/null 15487 ac_configure_extra_args="$ac_configure_extra_args --silent" 15488fi 15489 15490_ACEOF 15491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15492if \$ac_cs_recheck; then 15493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15494 shift 15495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15496 CONFIG_SHELL='$SHELL' 15497 export CONFIG_SHELL 15498 exec "\$@" 15499fi 15500 15501_ACEOF 15502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15503exec 5>>auto/config.log 15504{ 15505 echo 15506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15507## Running $as_me. ## 15508_ASBOX 15509 $as_echo "$ac_log" 15510} >&5 15511 15512_ACEOF 15513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15514_ACEOF 15515 15516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15517 15518# Handling of arguments. 15519for ac_config_target in $ac_config_targets 15520do 15521 case $ac_config_target in 15522 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15523 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15524 15525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15526 esac 15527done 15528 15529 15530# If the user did not use the arguments to specify the items to instantiate, 15531# then the envvar interface is used. Set only those that are not. 15532# We use the long form for the default assignment because of an extremely 15533# bizarre bug on SunOS 4.1.3. 15534if $ac_need_defaults; then 15535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15537fi 15538 15539# Have a temporary directory for convenience. Make it in the build tree 15540# simply because there is no reason against having it here, and in addition, 15541# creating and moving files from /tmp can sometimes cause problems. 15542# Hook for its removal unless debugging. 15543# Note that there is a small window in which the directory will not be cleaned: 15544# after its creation but before its name has been assigned to `$tmp'. 15545$debug || 15546{ 15547 tmp= ac_tmp= 15548 trap 'exit_status=$? 15549 : "${ac_tmp:=$tmp}" 15550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15551' 0 15552 trap 'as_fn_exit 1' 1 2 13 15 15553} 15554# Create a (secure) tmp directory for tmp files. 15555 15556{ 15557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15558 test -d "$tmp" 15559} || 15560{ 15561 tmp=./conf$$-$RANDOM 15562 (umask 077 && mkdir "$tmp") 15563} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15564ac_tmp=$tmp 15565 15566# Set up the scripts for CONFIG_FILES section. 15567# No need to generate them if there are no CONFIG_FILES. 15568# This happens for instance with `./config.status config.h'. 15569if test -n "$CONFIG_FILES"; then 15570 15571 15572ac_cr=`echo X | tr X '\015'` 15573# On cygwin, bash can eat \r inside `` if the user requested igncr. 15574# But we know of no other shell where ac_cr would be empty at this 15575# point, so we can use a bashism as a fallback. 15576if test "x$ac_cr" = x; then 15577 eval ac_cr=\$\'\\r\' 15578fi 15579ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15580if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15581 ac_cs_awk_cr='\\r' 15582else 15583 ac_cs_awk_cr=$ac_cr 15584fi 15585 15586echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15587_ACEOF 15588 15589 15590{ 15591 echo "cat >conf$$subs.awk <<_ACEOF" && 15592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15593 echo "_ACEOF" 15594} >conf$$subs.sh || 15595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15596ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15597ac_delim='%!_!# ' 15598for ac_last_try in false false false false false :; do 15599 . ./conf$$subs.sh || 15600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15601 15602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15603 if test $ac_delim_n = $ac_delim_num; then 15604 break 15605 elif $ac_last_try; then 15606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15607 else 15608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15609 fi 15610done 15611rm -f conf$$subs.sh 15612 15613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15614cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15615_ACEOF 15616sed -n ' 15617h 15618s/^/S["/; s/!.*/"]=/ 15619p 15620g 15621s/^[^!]*!// 15622:repl 15623t repl 15624s/'"$ac_delim"'$// 15625t delim 15626:nl 15627h 15628s/\(.\{148\}\)..*/\1/ 15629t more1 15630s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15631p 15632n 15633b repl 15634:more1 15635s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15636p 15637g 15638s/.\{148\}// 15639t nl 15640:delim 15641h 15642s/\(.\{148\}\)..*/\1/ 15643t more2 15644s/["\\]/\\&/g; s/^/"/; s/$/"/ 15645p 15646b 15647:more2 15648s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15649p 15650g 15651s/.\{148\}// 15652t delim 15653' <conf$$subs.awk | sed ' 15654/^[^""]/{ 15655 N 15656 s/\n// 15657} 15658' >>$CONFIG_STATUS || ac_write_fail=1 15659rm -f conf$$subs.awk 15660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15661_ACAWK 15662cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15663 for (key in S) S_is_set[key] = 1 15664 FS = "" 15665 15666} 15667{ 15668 line = $ 0 15669 nfields = split(line, field, "@") 15670 substed = 0 15671 len = length(field[1]) 15672 for (i = 2; i < nfields; i++) { 15673 key = field[i] 15674 keylen = length(key) 15675 if (S_is_set[key]) { 15676 value = S[key] 15677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15678 len += length(value) + length(field[++i]) 15679 substed = 1 15680 } else 15681 len += 1 + keylen 15682 } 15683 15684 print line 15685} 15686 15687_ACAWK 15688_ACEOF 15689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15690if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15692else 15693 cat 15694fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15695 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15696_ACEOF 15697 15698# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15699# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15700# trailing colons and then remove the whole line if VPATH becomes empty 15701# (actually we leave an empty line to preserve line numbers). 15702if test "x$srcdir" = x.; then 15703 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15704h 15705s/// 15706s/^/:/ 15707s/[ ]*$/:/ 15708s/:\$(srcdir):/:/g 15709s/:\${srcdir}:/:/g 15710s/:@srcdir@:/:/g 15711s/^:*// 15712s/:*$// 15713x 15714s/\(=[ ]*\).*/\1/ 15715G 15716s/\n// 15717s/^[^=]*=[ ]*$// 15718}' 15719fi 15720 15721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15722fi # test -n "$CONFIG_FILES" 15723 15724# Set up the scripts for CONFIG_HEADERS section. 15725# No need to generate them if there are no CONFIG_HEADERS. 15726# This happens for instance with `./config.status Makefile'. 15727if test -n "$CONFIG_HEADERS"; then 15728cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15729BEGIN { 15730_ACEOF 15731 15732# Transform confdefs.h into an awk script `defines.awk', embedded as 15733# here-document in config.status, that substitutes the proper values into 15734# config.h.in to produce config.h. 15735 15736# Create a delimiter string that does not exist in confdefs.h, to ease 15737# handling of long lines. 15738ac_delim='%!_!# ' 15739for ac_last_try in false false :; do 15740 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15741 if test -z "$ac_tt"; then 15742 break 15743 elif $ac_last_try; then 15744 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15745 else 15746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15747 fi 15748done 15749 15750# For the awk script, D is an array of macro values keyed by name, 15751# likewise P contains macro parameters if any. Preserve backslash 15752# newline sequences. 15753 15754ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15755sed -n ' 15756s/.\{148\}/&'"$ac_delim"'/g 15757t rset 15758:rset 15759s/^[ ]*#[ ]*define[ ][ ]*/ / 15760t def 15761d 15762:def 15763s/\\$// 15764t bsnl 15765s/["\\]/\\&/g 15766s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15767D["\1"]=" \3"/p 15768s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15769d 15770:bsnl 15771s/["\\]/\\&/g 15772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15773D["\1"]=" \3\\\\\\n"\\/p 15774t cont 15775s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15776t cont 15777d 15778:cont 15779n 15780s/.\{148\}/&'"$ac_delim"'/g 15781t clear 15782:clear 15783s/\\$// 15784t bsnlc 15785s/["\\]/\\&/g; s/^/"/; s/$/"/p 15786d 15787:bsnlc 15788s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15789b cont 15790' <confdefs.h | sed ' 15791s/'"$ac_delim"'/"\\\ 15792"/g' >>$CONFIG_STATUS || ac_write_fail=1 15793 15794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15795 for (key in D) D_is_set[key] = 1 15796 FS = "" 15797} 15798/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15799 line = \$ 0 15800 split(line, arg, " ") 15801 if (arg[1] == "#") { 15802 defundef = arg[2] 15803 mac1 = arg[3] 15804 } else { 15805 defundef = substr(arg[1], 2) 15806 mac1 = arg[2] 15807 } 15808 split(mac1, mac2, "(") #) 15809 macro = mac2[1] 15810 prefix = substr(line, 1, index(line, defundef) - 1) 15811 if (D_is_set[macro]) { 15812 # Preserve the white space surrounding the "#". 15813 print prefix "define", macro P[macro] D[macro] 15814 next 15815 } else { 15816 # Replace #undef with comments. This is necessary, for example, 15817 # in the case of _POSIX_SOURCE, which is predefined and required 15818 # on some systems where configure will not decide to define it. 15819 if (defundef == "undef") { 15820 print "/*", prefix defundef, macro, "*/" 15821 next 15822 } 15823 } 15824} 15825{ print } 15826_ACAWK 15827_ACEOF 15828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15829 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15830fi # test -n "$CONFIG_HEADERS" 15831 15832 15833eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15834shift 15835for ac_tag 15836do 15837 case $ac_tag in 15838 :[FHLC]) ac_mode=$ac_tag; continue;; 15839 esac 15840 case $ac_mode$ac_tag in 15841 :[FHL]*:*);; 15842 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15843 :[FH]-) ac_tag=-:-;; 15844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15845 esac 15846 ac_save_IFS=$IFS 15847 IFS=: 15848 set x $ac_tag 15849 IFS=$ac_save_IFS 15850 shift 15851 ac_file=$1 15852 shift 15853 15854 case $ac_mode in 15855 :L) ac_source=$1;; 15856 :[FH]) 15857 ac_file_inputs= 15858 for ac_f 15859 do 15860 case $ac_f in 15861 -) ac_f="$ac_tmp/stdin";; 15862 *) # Look for the file first in the build tree, then in the source tree 15863 # (if the path is not absolute). The absolute path cannot be DOS-style, 15864 # because $ac_f cannot contain `:'. 15865 test -f "$ac_f" || 15866 case $ac_f in 15867 [\\/$]*) false;; 15868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15869 esac || 15870 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15871 esac 15872 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15873 as_fn_append ac_file_inputs " '$ac_f'" 15874 done 15875 15876 # Let's still pretend it is `configure' which instantiates (i.e., don't 15877 # use $as_me), people would be surprised to read: 15878 # /* config.h. Generated by config.status. */ 15879 configure_input='Generated from '` 15880 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15881 `' by configure.' 15882 if test x"$ac_file" != x-; then 15883 configure_input="$ac_file. $configure_input" 15884 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15885$as_echo "$as_me: creating $ac_file" >&6;} 15886 fi 15887 # Neutralize special characters interpreted by sed in replacement strings. 15888 case $configure_input in #( 15889 *\&* | *\|* | *\\* ) 15890 ac_sed_conf_input=`$as_echo "$configure_input" | 15891 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15892 *) ac_sed_conf_input=$configure_input;; 15893 esac 15894 15895 case $ac_tag in 15896 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15898 esac 15899 ;; 15900 esac 15901 15902 ac_dir=`$as_dirname -- "$ac_file" || 15903$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15904 X"$ac_file" : 'X\(//\)[^/]' \| \ 15905 X"$ac_file" : 'X\(//\)$' \| \ 15906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15907$as_echo X"$ac_file" | 15908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15909 s//\1/ 15910 q 15911 } 15912 /^X\(\/\/\)[^/].*/{ 15913 s//\1/ 15914 q 15915 } 15916 /^X\(\/\/\)$/{ 15917 s//\1/ 15918 q 15919 } 15920 /^X\(\/\).*/{ 15921 s//\1/ 15922 q 15923 } 15924 s/.*/./; q'` 15925 as_dir="$ac_dir"; as_fn_mkdir_p 15926 ac_builddir=. 15927 15928case "$ac_dir" in 15929.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15930*) 15931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15932 # A ".." for each directory in $ac_dir_suffix. 15933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15934 case $ac_top_builddir_sub in 15935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15937 esac ;; 15938esac 15939ac_abs_top_builddir=$ac_pwd 15940ac_abs_builddir=$ac_pwd$ac_dir_suffix 15941# for backward compatibility: 15942ac_top_builddir=$ac_top_build_prefix 15943 15944case $srcdir in 15945 .) # We are building in place. 15946 ac_srcdir=. 15947 ac_top_srcdir=$ac_top_builddir_sub 15948 ac_abs_top_srcdir=$ac_pwd ;; 15949 [\\/]* | ?:[\\/]* ) # Absolute name. 15950 ac_srcdir=$srcdir$ac_dir_suffix; 15951 ac_top_srcdir=$srcdir 15952 ac_abs_top_srcdir=$srcdir ;; 15953 *) # Relative name. 15954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15955 ac_top_srcdir=$ac_top_build_prefix$srcdir 15956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15957esac 15958ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15959 15960 15961 case $ac_mode in 15962 :F) 15963 # 15964 # CONFIG_FILE 15965 # 15966 15967_ACEOF 15968 15969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15970# If the template does not know about datarootdir, expand it. 15971# FIXME: This hack should be removed a few years after 2.60. 15972ac_datarootdir_hack=; ac_datarootdir_seen= 15973ac_sed_dataroot=' 15974/datarootdir/ { 15975 p 15976 q 15977} 15978/@datadir@/p 15979/@docdir@/p 15980/@infodir@/p 15981/@localedir@/p 15982/@mandir@/p' 15983case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15984*datarootdir*) ac_datarootdir_seen=yes;; 15985*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15987$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15988_ACEOF 15989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15990 ac_datarootdir_hack=' 15991 s&@datadir@&$datadir&g 15992 s&@docdir@&$docdir&g 15993 s&@infodir@&$infodir&g 15994 s&@localedir@&$localedir&g 15995 s&@mandir@&$mandir&g 15996 s&\\\${datarootdir}&$datarootdir&g' ;; 15997esac 15998_ACEOF 15999 16000# Neutralize VPATH when `$srcdir' = `.'. 16001# Shell code in configure.ac might set extrasub. 16002# FIXME: do we really want to maintain this feature? 16003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16004ac_sed_extra="$ac_vpsub 16005$extrasub 16006_ACEOF 16007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16008:t 16009/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16010s|@configure_input@|$ac_sed_conf_input|;t t 16011s&@top_builddir@&$ac_top_builddir_sub&;t t 16012s&@top_build_prefix@&$ac_top_build_prefix&;t t 16013s&@srcdir@&$ac_srcdir&;t t 16014s&@abs_srcdir@&$ac_abs_srcdir&;t t 16015s&@top_srcdir@&$ac_top_srcdir&;t t 16016s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16017s&@builddir@&$ac_builddir&;t t 16018s&@abs_builddir@&$ac_abs_builddir&;t t 16019s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16020$ac_datarootdir_hack 16021" 16022eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16023 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16024 16025test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16026 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16028 "$ac_tmp/out"`; test -z "$ac_out"; } && 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16030which seems to be undefined. Please make sure it is defined" >&5 16031$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16032which seems to be undefined. Please make sure it is defined" >&2;} 16033 16034 rm -f "$ac_tmp/stdin" 16035 case $ac_file in 16036 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16037 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16038 esac \ 16039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16040 ;; 16041 :H) 16042 # 16043 # CONFIG_HEADER 16044 # 16045 if test x"$ac_file" != x-; then 16046 { 16047 $as_echo "/* $configure_input */" \ 16048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16049 } >"$ac_tmp/config.h" \ 16050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16051 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16053$as_echo "$as_me: $ac_file is unchanged" >&6;} 16054 else 16055 rm -f "$ac_file" 16056 mv "$ac_tmp/config.h" "$ac_file" \ 16057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16058 fi 16059 else 16060 $as_echo "/* $configure_input */" \ 16061 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16062 || as_fn_error $? "could not create -" "$LINENO" 5 16063 fi 16064 ;; 16065 16066 16067 esac 16068 16069done # for ac_tag 16070 16071 16072as_fn_exit 0 16073_ACEOF 16074ac_clean_files=$ac_clean_files_save 16075 16076test $ac_write_fail = 0 || 16077 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16078 16079 16080# configure is writing to config.log, and then calls config.status. 16081# config.status does its own redirection, appending to config.log. 16082# Unfortunately, on DOS this fails, as config.log is still kept open 16083# by configure, so config.status won't be able to write to it; its 16084# output is simply discarded. So we exec the FD to /dev/null, 16085# effectively closing config.log, so it can be properly (re)opened and 16086# appended to by config.status. When coming back to configure, we 16087# need to make the FD available again. 16088if test "$no_create" != yes; then 16089 ac_cs_success=: 16090 ac_config_status_args= 16091 test "$silent" = yes && 16092 ac_config_status_args="$ac_config_status_args --quiet" 16093 exec 5>/dev/null 16094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16095 exec 5>>auto/config.log 16096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16097 # would make configure fail if this is the last instruction. 16098 $ac_cs_success || as_fn_exit 1 16099fi 16100if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16102$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16103fi 16104 16105 16106