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 641GLIB_COMPILE_RESOURCES 642GNOME_INCLUDEDIR 643GNOME_LIBDIR 644GNOME_LIBS 645GTK_LIBNAME 646GTK_LIBS 647GTK_CFLAGS 648PKG_CONFIG 649X_LIB 650X_EXTRA_LIBS 651X_LIBS 652X_PRE_LIBS 653X_CFLAGS 654XMKMF 655xmkmfpath 656SNIFF_OBJ 657SNIFF_SRC 658CHANNEL_OBJ 659CHANNEL_SRC 660NETBEANS_OBJ 661NETBEANS_SRC 662WORKSHOP_OBJ 663WORKSHOP_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680PYTHON3_CONFDIR 681vi_cv_path_python3 682PYTHON_OBJ 683PYTHON_SRC 684PYTHON_CFLAGS 685PYTHON_GETPATH_CFLAGS 686PYTHON_LIBS 687PYTHON_CONFDIR 688vi_cv_path_python 689PERL_LIBS 690PERL_CFLAGS 691PERL_PRO 692PERL_OBJ 693PERL_SRC 694shrpenv 695vi_cv_perl_xsubpp 696vi_cv_perllib 697vi_cv_path_perl 698MZSCHEME_MZC 699MZSCHEME_EXTRA 700MZSCHEME_CFLAGS 701MZSCHEME_LIBS 702MZSCHEME_PRO 703MZSCHEME_OBJ 704MZSCHEME_SRC 705vi_cv_path_mzscheme 706LUA_CFLAGS 707LUA_LIBS 708LUA_PRO 709LUA_OBJ 710LUA_SRC 711vi_cv_path_plain_lua 712vi_cv_path_luajit 713vi_cv_path_lua 714compiledby 715dogvimdiff 716dovimdiff 717QUOTESED 718line_break 719VIEWNAME 720EXNAME 721VIMNAME 722OS_EXTRA_OBJ 723OS_EXTRA_SRC 724XCODE_SELECT 725CPP_MM 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 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_fail_if_missing 782enable_darwin 783with_mac_arch 784with_developer_dir 785with_local_dir 786with_vim_name 787with_ex_name 788with_view_name 789with_global_runtime 790with_modified_by 791enable_smack 792enable_selinux 793with_features 794with_compiledby 795enable_xsmp 796enable_xsmp_interact 797enable_luainterp 798with_lua_prefix 799with_luajit 800enable_mzschemeinterp 801with_plthome 802enable_perlinterp 803enable_pythoninterp 804with_python_config_dir 805enable_python3interp 806with_python3_config_dir 807enable_tclinterp 808with_tclsh 809enable_rubyinterp 810with_ruby_command 811enable_cscope 812enable_workshop 813enable_netbeans 814enable_channel 815enable_sniff 816enable_multibyte 817enable_hangulinput 818enable_xim 819enable_fontset 820with_x 821enable_gui 822enable_gtk2_check 823enable_gnome_check 824enable_motif_check 825enable_athena_check 826enable_nextaw_check 827enable_carbon_check 828enable_gtktest 829with_gnome_includes 830with_gnome_libs 831with_gnome 832with_motif_lib 833with_tlib 834enable_largefile 835enable_acl 836enable_gpm 837enable_sysmouse 838enable_nls 839' 840 ac_precious_vars='build_alias 841host_alias 842target_alias 843CC 844CFLAGS 845LDFLAGS 846LIBS 847CPPFLAGS 848CPP 849XMKMF' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 # Accept the important Cygnus configure options, so we can diagnose typos. 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: $ac_useropt" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1236Try \`$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258done 1259 1260if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263fi 1264 1265if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271fi 1272 1273# Check all directory arguments for consistency. 1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir 1278do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292done 1293 1294# There might be people who depend on the old broken behavior: `$host' 1295# used to hold the argument of --host etc. 1296# FIXME: To remove some day. 1297build=$build_alias 1298host=$host_alias 1299target=$target_alias 1300 1301# FIXME: To remove some day. 1302if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333$as_echo X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures this package to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447X features: 1448 --x-includes=DIR X include files are in DIR 1449 --x-libraries=DIR X library files are in DIR 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 1455 cat <<\_ACEOF 1456 1457Optional Features: 1458 --disable-option-checking ignore unrecognized --enable/--with options 1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1461 --enable-fail-if-missing Fail if dependencies on additional features 1462 specified on the command line are missing. 1463 --disable-darwin Disable Darwin (Mac OS X) support. 1464 --disable-smack Do not check for Smack support. 1465 --disable-selinux Do not check for SELinux support. 1466 --disable-xsmp Disable XSMP session management 1467 --disable-xsmp-interact Disable XSMP interaction 1468 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1469 --enable-mzschemeinterp Include MzScheme interpreter. 1470 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1471 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1472 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1473 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1474 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1475 --enable-cscope Include cscope interface. 1476 --enable-workshop Include Sun Visual Workshop support. 1477 --disable-netbeans Disable NetBeans integration support. 1478 --disable-channel Disable process communication support. 1479 --enable-sniff Include Sniff interface. 1480 --enable-multibyte Include multibyte editing support. 1481 --enable-hangulinput Include Hangul input support. 1482 --enable-xim Include XIM input support. 1483 --enable-fontset Include X fontset output support. 1484 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon 1485 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1486 --enable-gnome-check If GTK GUI, check for GNOME default=no 1487 --enable-motif-check If auto-select GUI, check for Motif default=yes 1488 --enable-athena-check If auto-select GUI, check for Athena default=yes 1489 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1490 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1491 --disable-gtktest Do not try to compile and run a test GTK program 1492 --disable-largefile omit support for large files 1493 --disable-acl Don't check for ACL support. 1494 --disable-gpm Don't use gpm (Linux mouse daemon). 1495 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1496 --disable-nls Don't support NLS (gettext()). 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-mac-arch=ARCH current, intel, ppc or both 1502 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1503 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1504 --without-local-dir do not search /usr/local for local libraries. 1505 --with-vim-name=NAME what to call the Vim executable 1506 --with-ex-name=NAME what to call the Ex executable 1507 --with-view-name=NAME what to call the View executable 1508 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1509 --with-modified-by=NAME name of who modified a release version 1510 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1511 --with-compiledby=NAME name to show in :version message 1512 --with-lua-prefix=PFX Prefix where Lua is installed. 1513 --with-luajit Link with LuaJIT instead of Lua. 1514 --with-plthome=PLTHOME Use PLTHOME. 1515 --with-python-config-dir=PATH Python's config directory 1516 --with-python3-config-dir=PATH Python's config directory 1517 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1518 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1519 --with-x use the X Window System 1520 --with-gnome-includes=DIR Specify location of GNOME headers 1521 --with-gnome-libs=DIR Specify location of GNOME libs 1522 --with-gnome Specify prefix for GNOME files 1523 --with-motif-lib=STRING Library for Motif 1524 --with-tlib=library terminal library to be used 1525 1526Some influential environment variables: 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 CPP C preprocessor 1535 XMKMF Path to xmkmf, Makefile generator for X Window System 1536 1537Use these variables to override the choices made by `configure' or to help 1538it to find libraries and programs with nonstandard names/locations. 1539 1540Report bugs to the package provider. 1541_ACEOF 1542ac_status=$? 1543fi 1544 1545if test "$ac_init_help" = "recursive"; then 1546 # If there are subdirs, report their specific --help. 1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1548 test -d "$ac_dir" || 1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1550 continue 1551 ac_builddir=. 1552 1553case "$ac_dir" in 1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555*) 1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1557 # A ".." for each directory in $ac_dir_suffix. 1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1559 case $ac_top_builddir_sub in 1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1562 esac ;; 1563esac 1564ac_abs_top_builddir=$ac_pwd 1565ac_abs_builddir=$ac_pwd$ac_dir_suffix 1566# for backward compatibility: 1567ac_top_builddir=$ac_top_build_prefix 1568 1569case $srcdir in 1570 .) # We are building in place. 1571 ac_srcdir=. 1572 ac_top_srcdir=$ac_top_builddir_sub 1573 ac_abs_top_srcdir=$ac_pwd ;; 1574 [\\/]* | ?:[\\/]* ) # Absolute name. 1575 ac_srcdir=$srcdir$ac_dir_suffix; 1576 ac_top_srcdir=$srcdir 1577 ac_abs_top_srcdir=$srcdir ;; 1578 *) # Relative name. 1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1580 ac_top_srcdir=$ac_top_build_prefix$srcdir 1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1582esac 1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1584 1585 cd "$ac_dir" || { ac_status=$?; continue; } 1586 # Check for guested configure. 1587 if test -f "$ac_srcdir/configure.gnu"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1590 elif test -f "$ac_srcdir/configure"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure" --help=recursive 1593 else 1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1595 fi || ac_status=$? 1596 cd "$ac_pwd" || { ac_status=$?; break; } 1597 done 1598fi 1599 1600test -n "$ac_init_help" && exit $ac_status 1601if $ac_init_version; then 1602 cat <<\_ACEOF 1603configure 1604generated by GNU Autoconf 2.69 1605 1606Copyright (C) 2012 Free Software Foundation, Inc. 1607This configure script is free software; the Free Software Foundation 1608gives unlimited permission to copy, distribute and modify it. 1609_ACEOF 1610 exit 1611fi 1612 1613## ------------------------ ## 1614## Autoconf initialization. ## 1615## ------------------------ ## 1616 1617# ac_fn_c_try_compile LINENO 1618# -------------------------- 1619# Try to compile conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_compile () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext 1624 if { { ac_try="$ac_compile" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_compile") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest.$ac_objext; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_compile 1654 1655# ac_fn_c_try_cpp LINENO 1656# ---------------------- 1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_cpp () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if { { ac_try="$ac_cpp conftest.$ac_ext" 1662case "(($ac_try" in 1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1664 *) ac_try_echo=$ac_try;; 1665esac 1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1667$as_echo "$ac_try_echo"; } >&5 1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1669 ac_status=$? 1670 if test -s conftest.err; then 1671 grep -v '^ *+' conftest.err >conftest.er1 1672 cat conftest.er1 >&5 1673 mv -f conftest.er1 conftest.err 1674 fi 1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1676 test $ac_status = 0; } > conftest.i && { 1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1678 test ! -s conftest.err 1679 }; then : 1680 ac_retval=0 1681else 1682 $as_echo "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_cpp 1691 1692# ac_fn_c_try_link LINENO 1693# ----------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. 1695ac_fn_c_try_link () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 rm -f conftest.$ac_objext conftest$ac_exeext 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { 1715 test -z "$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 } && test -s conftest$ac_exeext && { 1718 test "$cross_compiling" = yes || 1719 test -x conftest$ac_exeext 1720 }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1730 # interfere with the next link command; also delete a directory that is 1731 # left behind by Apple's compiler. We do this before executing the actions. 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_link 1737 1738# ac_fn_c_try_run LINENO 1739# ---------------------- 1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1741# that executables *can* be run. 1742ac_fn_c_try_run () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if { { ac_try="$ac_link" 1746case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749esac 1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751$as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_link") 2>&5 1753 ac_status=$? 1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1756 { { case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_try") 2>&5 1763 ac_status=$? 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; }; }; then : 1766 ac_retval=0 1767else 1768 $as_echo "$as_me: program exited with status $ac_status" >&5 1769 $as_echo "$as_me: failed program was:" >&5 1770sed 's/^/| /' conftest.$ac_ext >&5 1771 1772 ac_retval=$ac_status 1773fi 1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_run 1779 1780# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1781# ------------------------------------------------------- 1782# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1783# the include files in INCLUDES and setting the cache variable VAR 1784# accordingly. 1785ac_fn_c_check_header_mongrel () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 if eval \${$3+:} false; then : 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790$as_echo_n "checking for $2... " >&6; } 1791if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793fi 1794eval ac_res=\$$3 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796$as_echo "$ac_res" >&6; } 1797else 1798 # Is the header compilable? 1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1800$as_echo_n "checking $2 usability... " >&6; } 1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1802/* end confdefs.h. */ 1803$4 1804#include <$2> 1805_ACEOF 1806if ac_fn_c_try_compile "$LINENO"; then : 1807 ac_header_compiler=yes 1808else 1809 ac_header_compiler=no 1810fi 1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1813$as_echo "$ac_header_compiler" >&6; } 1814 1815# Is the header present? 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1817$as_echo_n "checking $2 presence... " >&6; } 1818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820#include <$2> 1821_ACEOF 1822if ac_fn_c_try_cpp "$LINENO"; then : 1823 ac_header_preproc=yes 1824else 1825 ac_header_preproc=no 1826fi 1827rm -f conftest.err conftest.i conftest.$ac_ext 1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1829$as_echo "$ac_header_preproc" >&6; } 1830 1831# So? What about this header? 1832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1833 yes:no: ) 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1835$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1838 ;; 1839 no:yes:* ) 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1841$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1843$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1845$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1847$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1850 ;; 1851esac 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 eval "$3=\$ac_header_compiler" 1858fi 1859eval ac_res=\$$3 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861$as_echo "$ac_res" >&6; } 1862fi 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 1865} # ac_fn_c_check_header_mongrel 1866 1867# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1868# ------------------------------------------------------- 1869# Tests whether HEADER exists and can be compiled using the include files in 1870# INCLUDES, setting the cache variable VAR accordingly. 1871ac_fn_c_check_header_compile () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881$4 1882#include <$2> 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_header_compile 1897 1898# ac_fn_c_check_func LINENO FUNC VAR 1899# ---------------------------------- 1900# Tests whether FUNC exists, setting the cache variable VAR accordingly 1901ac_fn_c_check_func () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1913#define $2 innocuous_$2 1914 1915/* System header to define __stub macros and hopefully few prototypes, 1916 which can conflict with char $2 (); below. 1917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1918 <limits.h> exists even on freestanding compilers. */ 1919 1920#ifdef __STDC__ 1921# include <limits.h> 1922#else 1923# include <assert.h> 1924#endif 1925 1926#undef $2 1927 1928/* Override any GCC internal prototype to avoid an error. 1929 Use char because int might match the return type of a GCC 1930 builtin and then its argument prototype would still apply. */ 1931#ifdef __cplusplus 1932extern "C" 1933#endif 1934char $2 (); 1935/* The GNU C library defines this for functions which it implements 1936 to always fail with ENOSYS. Some functions are actually named 1937 something starting with __ and the normal name is an alias. */ 1938#if defined __stub_$2 || defined __stub___$2 1939choke me 1940#endif 1941 1942int 1943main () 1944{ 1945return $2 (); 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_link "$LINENO"; then : 1951 eval "$3=yes" 1952else 1953 eval "$3=no" 1954fi 1955rm -f core conftest.err conftest.$ac_objext \ 1956 conftest$ac_exeext conftest.$ac_ext 1957fi 1958eval ac_res=\$$3 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1960$as_echo "$ac_res" >&6; } 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 1963} # ac_fn_c_check_func 1964 1965# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1966# ------------------------------------------- 1967# Tests whether TYPE exists after having included INCLUDES, setting cache 1968# variable VAR accordingly. 1969ac_fn_c_check_type () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1973$as_echo_n "checking for $2... " >&6; } 1974if eval \${$3+:} false; then : 1975 $as_echo_n "(cached) " >&6 1976else 1977 eval "$3=no" 1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1979/* end confdefs.h. */ 1980$4 1981int 1982main () 1983{ 1984if (sizeof ($2)) 1985 return 0; 1986 ; 1987 return 0; 1988} 1989_ACEOF 1990if ac_fn_c_try_compile "$LINENO"; then : 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994int 1995main () 1996{ 1997if (sizeof (($2))) 1998 return 0; 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 2005else 2006 eval "$3=yes" 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2011fi 2012eval ac_res=\$$3 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2014$as_echo "$ac_res" >&6; } 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 2017} # ac_fn_c_check_type 2018 2019# ac_fn_c_find_uintX_t LINENO BITS VAR 2020# ------------------------------------ 2021# Finds an unsigned integer type with width BITS, setting cache variable VAR 2022# accordingly. 2023ac_fn_c_find_uintX_t () 2024{ 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2027$as_echo_n "checking for uint$2_t... " >&6; } 2028if eval \${$3+:} false; then : 2029 $as_echo_n "(cached) " >&6 2030else 2031 eval "$3=no" 2032 # Order is important - never check a type that is potentially smaller 2033 # than half of the expected target width. 2034 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2035 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$ac_includes_default 2039int 2040main () 2041{ 2042static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2043test_array [0] = 0; 2044return test_array [0]; 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 case $ac_type in #( 2052 uint$2_t) : 2053 eval "$3=yes" ;; #( 2054 *) : 2055 eval "$3=\$ac_type" ;; 2056esac 2057fi 2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059 if eval test \"x\$"$3"\" = x"no"; then : 2060 2061else 2062 break 2063fi 2064 done 2065fi 2066eval ac_res=\$$3 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2068$as_echo "$ac_res" >&6; } 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2070 2071} # ac_fn_c_find_uintX_t 2072 2073# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2074# -------------------------------------------- 2075# Tries to find the compile-time value of EXPR in a program that includes 2076# INCLUDES, setting VAR accordingly. Returns whether the value could be 2077# computed 2078ac_fn_c_compute_int () 2079{ 2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2081 if test "$cross_compiling" = yes; then 2082 # Depending upon the size, compute the lo and hi bounds. 2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085$4 2086int 2087main () 2088{ 2089static int test_array [1 - 2 * !(($2) >= 0)]; 2090test_array [0] = 0; 2091return test_array [0]; 2092 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_compile "$LINENO"; then : 2098 ac_lo=0 ac_mid=0 2099 while :; do 2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$4 2103int 2104main () 2105{ 2106static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2107test_array [0] = 0; 2108return test_array [0]; 2109 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114if ac_fn_c_try_compile "$LINENO"; then : 2115 ac_hi=$ac_mid; break 2116else 2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2118 if test $ac_lo -le $ac_mid; then 2119 ac_lo= ac_hi= 2120 break 2121 fi 2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2123fi 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125 done 2126else 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2128/* end confdefs.h. */ 2129$4 2130int 2131main () 2132{ 2133static int test_array [1 - 2 * !(($2) < 0)]; 2134test_array [0] = 0; 2135return test_array [0]; 2136 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 ac_hi=-1 ac_mid=-1 2143 while :; do 2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147int 2148main () 2149{ 2150static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2151test_array [0] = 0; 2152return test_array [0]; 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 ac_lo=$ac_mid; break 2160else 2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2162 if test $ac_mid -le $ac_hi; then 2163 ac_lo= ac_hi= 2164 break 2165 fi 2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2167fi 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2169 done 2170else 2171 ac_lo= ac_hi= 2172fi 2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174fi 2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2176# Binary search between lo and hi bounds. 2177while test "x$ac_lo" != "x$ac_hi"; do 2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182int 2183main () 2184{ 2185static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2186test_array [0] = 0; 2187return test_array [0]; 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 ac_hi=$ac_mid 2195else 2196 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199done 2200case $ac_lo in #(( 2201?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2202'') ac_retval=1 ;; 2203esac 2204 else 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208static long int longval () { return $2; } 2209static unsigned long int ulongval () { return $2; } 2210#include <stdio.h> 2211#include <stdlib.h> 2212int 2213main () 2214{ 2215 2216 FILE *f = fopen ("conftest.val", "w"); 2217 if (! f) 2218 return 1; 2219 if (($2) < 0) 2220 { 2221 long int i = longval (); 2222 if (i != ($2)) 2223 return 1; 2224 fprintf (f, "%ld", i); 2225 } 2226 else 2227 { 2228 unsigned long int i = ulongval (); 2229 if (i != ($2)) 2230 return 1; 2231 fprintf (f, "%lu", i); 2232 } 2233 /* Do not output a trailing newline, as this causes \r\n confusion 2234 on some platforms. */ 2235 return ferror (f) || fclose (f) != 0; 2236 2237 ; 2238 return 0; 2239} 2240_ACEOF 2241if ac_fn_c_try_run "$LINENO"; then : 2242 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2243else 2244 ac_retval=1 2245fi 2246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2247 conftest.$ac_objext conftest.beam conftest.$ac_ext 2248rm -f conftest.val 2249 2250 fi 2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2252 as_fn_set_status $ac_retval 2253 2254} # ac_fn_c_compute_int 2255cat >auto/config.log <<_ACEOF 2256This file contains any messages produced by compilers while 2257running configure, to aid debugging if configure makes a mistake. 2258 2259It was created by $as_me, which was 2260generated by GNU Autoconf 2.69. Invocation command line was 2261 2262 $ $0 $@ 2263 2264_ACEOF 2265exec 5>>auto/config.log 2266{ 2267cat <<_ASUNAME 2268## --------- ## 2269## Platform. ## 2270## --------- ## 2271 2272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2273uname -m = `(uname -m) 2>/dev/null || echo unknown` 2274uname -r = `(uname -r) 2>/dev/null || echo unknown` 2275uname -s = `(uname -s) 2>/dev/null || echo unknown` 2276uname -v = `(uname -v) 2>/dev/null || echo unknown` 2277 2278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2279/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2280 2281/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2282/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2284/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2285/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2286/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2287/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2288 2289_ASUNAME 2290 2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292for as_dir in $PATH 2293do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 $as_echo "PATH: $as_dir" 2297 done 2298IFS=$as_save_IFS 2299 2300} >&5 2301 2302cat >&5 <<_ACEOF 2303 2304 2305## ----------- ## 2306## Core tests. ## 2307## ----------- ## 2308 2309_ACEOF 2310 2311 2312# Keep a trace of the command line. 2313# Strip out --no-create and --no-recursion so they do not pile up. 2314# Strip out --silent because we don't want to record it for future runs. 2315# Also quote any args containing shell meta-characters. 2316# Make two passes to allow for proper duplicate-argument suppression. 2317ac_configure_args= 2318ac_configure_args0= 2319ac_configure_args1= 2320ac_must_keep_next=false 2321for ac_pass in 1 2 2322do 2323 for ac_arg 2324 do 2325 case $ac_arg in 2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2328 | -silent | --silent | --silen | --sile | --sil) 2329 continue ;; 2330 *\'*) 2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2332 esac 2333 case $ac_pass in 2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2335 2) 2336 as_fn_append ac_configure_args1 " '$ac_arg'" 2337 if test $ac_must_keep_next = true; then 2338 ac_must_keep_next=false # Got value, back to normal. 2339 else 2340 case $ac_arg in 2341 *=* | --config-cache | -C | -disable-* | --disable-* \ 2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2344 | -with-* | --with-* | -without-* | --without-* | --x) 2345 case "$ac_configure_args0 " in 2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2347 esac 2348 ;; 2349 -* ) ac_must_keep_next=true ;; 2350 esac 2351 fi 2352 as_fn_append ac_configure_args " '$ac_arg'" 2353 ;; 2354 esac 2355 done 2356done 2357{ ac_configure_args0=; unset ac_configure_args0;} 2358{ ac_configure_args1=; unset ac_configure_args1;} 2359 2360# When interrupted or exit'd, cleanup temporary files, and complete 2361# config.log. We remove comments because anyway the quotes in there 2362# would cause problems or look ugly. 2363# WARNING: Use '\'' to represent an apostrophe within the trap. 2364# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2365trap 'exit_status=$? 2366 # Save into config.log some information that might help in debugging. 2367 { 2368 echo 2369 2370 $as_echo "## ---------------- ## 2371## Cache variables. ## 2372## ---------------- ##" 2373 echo 2374 # The following way of writing the cache mishandles newlines in values, 2375( 2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2377 eval ac_val=\$$ac_var 2378 case $ac_val in #( 2379 *${as_nl}*) 2380 case $ac_var in #( 2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2382$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2383 esac 2384 case $ac_var in #( 2385 _ | IFS | as_nl) ;; #( 2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2387 *) { eval $ac_var=; unset $ac_var;} ;; 2388 esac ;; 2389 esac 2390 done 2391 (set) 2>&1 | 2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2393 *${as_nl}ac_space=\ *) 2394 sed -n \ 2395 "s/'\''/'\''\\\\'\'''\''/g; 2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2397 ;; #( 2398 *) 2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2400 ;; 2401 esac | 2402 sort 2403) 2404 echo 2405 2406 $as_echo "## ----------------- ## 2407## Output variables. ## 2408## ----------------- ##" 2409 echo 2410 for ac_var in $ac_subst_vars 2411 do 2412 eval ac_val=\$$ac_var 2413 case $ac_val in 2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2415 esac 2416 $as_echo "$ac_var='\''$ac_val'\''" 2417 done | sort 2418 echo 2419 2420 if test -n "$ac_subst_files"; then 2421 $as_echo "## ------------------- ## 2422## File substitutions. ## 2423## ------------------- ##" 2424 echo 2425 for ac_var in $ac_subst_files 2426 do 2427 eval ac_val=\$$ac_var 2428 case $ac_val in 2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2430 esac 2431 $as_echo "$ac_var='\''$ac_val'\''" 2432 done | sort 2433 echo 2434 fi 2435 2436 if test -s confdefs.h; then 2437 $as_echo "## ----------- ## 2438## confdefs.h. ## 2439## ----------- ##" 2440 echo 2441 cat confdefs.h 2442 echo 2443 fi 2444 test "$ac_signal" != 0 && 2445 $as_echo "$as_me: caught signal $ac_signal" 2446 $as_echo "$as_me: exit $exit_status" 2447 } >&5 2448 rm -f core *.core core.conftest.* && 2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2450 exit $exit_status 2451' 0 2452for ac_signal in 1 2 13 15; do 2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2454done 2455ac_signal=0 2456 2457# confdefs.h avoids OS command line length limits that DEFS can exceed. 2458rm -f -r conftest* confdefs.h 2459 2460$as_echo "/* confdefs.h */" > confdefs.h 2461 2462# Predefined preprocessor variables. 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_NAME "$PACKAGE_NAME" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_VERSION "$PACKAGE_VERSION" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_STRING "$PACKAGE_STRING" 2478_ACEOF 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2482_ACEOF 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_URL "$PACKAGE_URL" 2486_ACEOF 2487 2488 2489# Let the site file select an alternate cache file if it wants to. 2490# Prefer an explicitly selected file to automatically selected ones. 2491ac_site_file1=NONE 2492ac_site_file2=NONE 2493if test -n "$CONFIG_SITE"; then 2494 # We do not want a PATH search for config.site. 2495 case $CONFIG_SITE in #(( 2496 -*) ac_site_file1=./$CONFIG_SITE;; 2497 */*) ac_site_file1=$CONFIG_SITE;; 2498 *) ac_site_file1=./$CONFIG_SITE;; 2499 esac 2500elif test "x$prefix" != xNONE; then 2501 ac_site_file1=$prefix/share/config.site 2502 ac_site_file2=$prefix/etc/config.site 2503else 2504 ac_site_file1=$ac_default_prefix/share/config.site 2505 ac_site_file2=$ac_default_prefix/etc/config.site 2506fi 2507for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2508do 2509 test "x$ac_site_file" = xNONE && continue 2510 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2512$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2513 sed 's/^/| /' "$ac_site_file" >&5 2514 . "$ac_site_file" \ 2515 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2517as_fn_error $? "failed to load site script $ac_site_file 2518See \`config.log' for more details" "$LINENO" 5; } 2519 fi 2520done 2521 2522if test -r "$cache_file"; then 2523 # Some versions of bash will fail to source /dev/null (special files 2524 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2525 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2527$as_echo "$as_me: loading cache $cache_file" >&6;} 2528 case $cache_file in 2529 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2530 *) . "./$cache_file";; 2531 esac 2532 fi 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2535$as_echo "$as_me: creating cache $cache_file" >&6;} 2536 >$cache_file 2537fi 2538 2539# Check that the precious variables saved in the cache have kept the same 2540# value. 2541ac_cache_corrupted=false 2542for ac_var in $ac_precious_vars; do 2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2544 eval ac_new_set=\$ac_env_${ac_var}_set 2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2546 eval ac_new_val=\$ac_env_${ac_var}_value 2547 case $ac_old_set,$ac_new_set in 2548 set,) 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2550$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,set) 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2554$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2555 ac_cache_corrupted=: ;; 2556 ,);; 2557 *) 2558 if test "x$ac_old_val" != "x$ac_new_val"; then 2559 # differences in whitespace do not lead to failure. 2560 ac_old_val_w=`echo x $ac_old_val` 2561 ac_new_val_w=`echo x $ac_new_val` 2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2564$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2565 ac_cache_corrupted=: 2566 else 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2568$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2569 eval $ac_var=\$ac_old_val 2570 fi 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2572$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2574$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2575 fi;; 2576 esac 2577 # Pass precious variables to config.status. 2578 if test "$ac_new_set" = set; then 2579 case $ac_new_val in 2580 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2581 *) ac_arg=$ac_var=$ac_new_val ;; 2582 esac 2583 case " $ac_configure_args " in 2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2586 esac 2587 fi 2588done 2589if $ac_cache_corrupted; then 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2593$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2594 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2595fi 2596## -------------------- ## 2597## Main body of script. ## 2598## -------------------- ## 2599 2600ac_ext=c 2601ac_cpp='$CPP $CPPFLAGS' 2602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2604ac_compiler_gnu=$ac_cv_c_compiler_gnu 2605 2606 2607ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2608 2609 2610$as_echo "#define UNIX 1" >>confdefs.h 2611 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2613$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2614set x ${MAKE-make} 2615ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2616if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 cat >conftest.make <<\_ACEOF 2620SHELL = /bin/sh 2621all: 2622 @echo '@@@%%%=$(MAKE)=@@@%%%' 2623_ACEOF 2624# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2625case `${MAKE-make} -f conftest.make 2>/dev/null` in 2626 *@@@%%%=?*=@@@%%%*) 2627 eval ac_cv_prog_make_${ac_make}_set=yes;; 2628 *) 2629 eval ac_cv_prog_make_${ac_make}_set=no;; 2630esac 2631rm -f conftest.make 2632fi 2633if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635$as_echo "yes" >&6; } 2636 SET_MAKE= 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640 SET_MAKE="MAKE=${MAKE-make}" 2641fi 2642 2643 2644ac_ext=c 2645ac_cpp='$CPP $CPPFLAGS' 2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649if test -n "$ac_tool_prefix"; then 2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2651set dummy ${ac_tool_prefix}gcc; ac_word=$2 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2653$as_echo_n "checking for $ac_word... " >&6; } 2654if ${ac_cv_prog_CC+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if test -n "$CC"; then 2658 ac_cv_prog_CC="$CC" # Let the user override the test. 2659else 2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661for as_dir in $PATH 2662do 2663 IFS=$as_save_IFS 2664 test -z "$as_dir" && as_dir=. 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2667 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672 done 2673IFS=$as_save_IFS 2674 2675fi 2676fi 2677CC=$ac_cv_prog_CC 2678if test -n "$CC"; then 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2680$as_echo "$CC" >&6; } 2681else 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683$as_echo "no" >&6; } 2684fi 2685 2686 2687fi 2688if test -z "$ac_cv_prog_CC"; then 2689 ac_ct_CC=$CC 2690 # Extract the first word of "gcc", so it can be a program name with args. 2691set dummy gcc; ac_word=$2 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2693$as_echo_n "checking for $ac_word... " >&6; } 2694if ${ac_cv_prog_ac_ct_CC+:} false; then : 2695 $as_echo_n "(cached) " >&6 2696else 2697 if test -n "$ac_ct_CC"; then 2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2699else 2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2701for as_dir in $PATH 2702do 2703 IFS=$as_save_IFS 2704 test -z "$as_dir" && as_dir=. 2705 for ac_exec_ext in '' $ac_executable_extensions; do 2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2707 ac_cv_prog_ac_ct_CC="gcc" 2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2709 break 2 2710 fi 2711done 2712 done 2713IFS=$as_save_IFS 2714 2715fi 2716fi 2717ac_ct_CC=$ac_cv_prog_ac_ct_CC 2718if test -n "$ac_ct_CC"; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2720$as_echo "$ac_ct_CC" >&6; } 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2723$as_echo "no" >&6; } 2724fi 2725 2726 if test "x$ac_ct_CC" = x; then 2727 CC="" 2728 else 2729 case $cross_compiling:$ac_tool_warned in 2730yes:) 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2733ac_tool_warned=yes ;; 2734esac 2735 CC=$ac_ct_CC 2736 fi 2737else 2738 CC="$ac_cv_prog_CC" 2739fi 2740 2741if test -z "$CC"; then 2742 if test -n "$ac_tool_prefix"; then 2743 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2744set dummy ${ac_tool_prefix}cc; ac_word=$2 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2746$as_echo_n "checking for $ac_word... " >&6; } 2747if ${ac_cv_prog_CC+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 if test -n "$CC"; then 2751 ac_cv_prog_CC="$CC" # Let the user override the test. 2752else 2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2754for as_dir in $PATH 2755do 2756 IFS=$as_save_IFS 2757 test -z "$as_dir" && as_dir=. 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2760 ac_cv_prog_CC="${ac_tool_prefix}cc" 2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2762 break 2 2763 fi 2764done 2765 done 2766IFS=$as_save_IFS 2767 2768fi 2769fi 2770CC=$ac_cv_prog_CC 2771if test -n "$CC"; then 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2773$as_echo "$CC" >&6; } 2774else 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2776$as_echo "no" >&6; } 2777fi 2778 2779 2780 fi 2781fi 2782if test -z "$CC"; then 2783 # Extract the first word of "cc", so it can be a program name with args. 2784set dummy cc; ac_word=$2 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2786$as_echo_n "checking for $ac_word... " >&6; } 2787if ${ac_cv_prog_CC+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 if test -n "$CC"; then 2791 ac_cv_prog_CC="$CC" # Let the user override the test. 2792else 2793 ac_prog_rejected=no 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2802 ac_prog_rejected=yes 2803 continue 2804 fi 2805 ac_cv_prog_CC="cc" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813if test $ac_prog_rejected = yes; then 2814 # We found a bogon in the path, so make sure we never use it. 2815 set dummy $ac_cv_prog_CC 2816 shift 2817 if test $# != 0; then 2818 # We chose a different compiler from the bogus one. 2819 # However, it has the same basename, so the bogon will be chosen 2820 # first if we set CC to just the basename; use the full file name. 2821 shift 2822 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2823 fi 2824fi 2825fi 2826fi 2827CC=$ac_cv_prog_CC 2828if test -n "$CC"; then 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2830$as_echo "$CC" >&6; } 2831else 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2833$as_echo "no" >&6; } 2834fi 2835 2836 2837fi 2838if test -z "$CC"; then 2839 if test -n "$ac_tool_prefix"; then 2840 for ac_prog in cl.exe 2841 do 2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2843set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if ${ac_cv_prog_CC+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$CC"; then 2850 ac_cv_prog_CC="$CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864 done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869CC=$ac_cv_prog_CC 2870if test -n "$CC"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2872$as_echo "$CC" >&6; } 2873else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 2879 test -n "$CC" && break 2880 done 2881fi 2882if test -z "$CC"; then 2883 ac_ct_CC=$CC 2884 for ac_prog in cl.exe 2885do 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2887set dummy $ac_prog; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_ac_ct_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$ac_ct_CC"; then 2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_CC="$ac_prog" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913ac_ct_CC=$ac_cv_prog_ac_ct_CC 2914if test -n "$ac_ct_CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2916$as_echo "$ac_ct_CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 test -n "$ac_ct_CC" && break 2924done 2925 2926 if test "x$ac_ct_CC" = x; then 2927 CC="" 2928 else 2929 case $cross_compiling:$ac_tool_warned in 2930yes:) 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2933ac_tool_warned=yes ;; 2934esac 2935 CC=$ac_ct_CC 2936 fi 2937fi 2938 2939fi 2940 2941 2942test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2944as_fn_error $? "no acceptable C compiler found in \$PATH 2945See \`config.log' for more details" "$LINENO" 5; } 2946 2947# Provide some information about the compiler. 2948$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2949set X $ac_compile 2950ac_compiler=$2 2951for ac_option in --version -v -V -qversion; do 2952 { { ac_try="$ac_compiler $ac_option >&5" 2953case "(($ac_try" in 2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2955 *) ac_try_echo=$ac_try;; 2956esac 2957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2958$as_echo "$ac_try_echo"; } >&5 2959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2960 ac_status=$? 2961 if test -s conftest.err; then 2962 sed '10a\ 2963... rest of stderr output deleted ... 2964 10q' conftest.err >conftest.er1 2965 cat conftest.er1 >&5 2966 fi 2967 rm -f conftest.er1 conftest.err 2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2969 test $ac_status = 0; } 2970done 2971 2972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2973/* end confdefs.h. */ 2974 2975int 2976main () 2977{ 2978 2979 ; 2980 return 0; 2981} 2982_ACEOF 2983ac_clean_files_save=$ac_clean_files 2984ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2985# Try to create an executable without -o first, disregard a.out. 2986# It will help us diagnose broken compilers, and finding out an intuition 2987# of exeext. 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2989$as_echo_n "checking whether the C compiler works... " >&6; } 2990ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2991 2992# The possible output files: 2993ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2994 2995ac_rmfiles= 2996for ac_file in $ac_files 2997do 2998 case $ac_file in 2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3000 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3001 esac 3002done 3003rm -f $ac_rmfiles 3004 3005if { { ac_try="$ac_link_default" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3011$as_echo "$ac_try_echo"; } >&5 3012 (eval "$ac_link_default") 2>&5 3013 ac_status=$? 3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3015 test $ac_status = 0; }; then : 3016 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3017# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3018# in a Makefile. We should not override ac_cv_exeext if it was cached, 3019# so that the user can short-circuit this test for compilers unknown to 3020# Autoconf. 3021for ac_file in $ac_files '' 3022do 3023 test -f "$ac_file" || continue 3024 case $ac_file in 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3026 ;; 3027 [ab].out ) 3028 # We found the default executable, but exeext='' is most 3029 # certainly right. 3030 break;; 3031 *.* ) 3032 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3033 then :; else 3034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3035 fi 3036 # We set ac_cv_exeext here because the later test for it is not 3037 # safe: cross compilers may not add the suffix if given an `-o' 3038 # argument, so we may need to know it at that point already. 3039 # Even if this section looks crufty: it has the advantage of 3040 # actually working. 3041 break;; 3042 * ) 3043 break;; 3044 esac 3045done 3046test "$ac_cv_exeext" = no && ac_cv_exeext= 3047 3048else 3049 ac_file='' 3050fi 3051if test -z "$ac_file"; then : 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054$as_echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3059as_fn_error 77 "C compiler cannot create executables 3060See \`config.log' for more details" "$LINENO" 5; } 3061else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3063$as_echo "yes" >&6; } 3064fi 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3066$as_echo_n "checking for C compiler default output file name... " >&6; } 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3068$as_echo "$ac_file" >&6; } 3069ac_exeext=$ac_cv_exeext 3070 3071rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3072ac_clean_files=$ac_clean_files_save 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3074$as_echo_n "checking for suffix of executables... " >&6; } 3075if { { ac_try="$ac_link" 3076case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079esac 3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3081$as_echo "$ac_try_echo"; } >&5 3082 (eval "$ac_link") 2>&5 3083 ac_status=$? 3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3085 test $ac_status = 0; }; then : 3086 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3087# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3088# work properly (i.e., refer to `conftest.exe'), while it won't with 3089# `rm'. 3090for ac_file in conftest.exe conftest conftest.*; do 3091 test -f "$ac_file" || continue 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3095 break;; 3096 * ) break;; 3097 esac 3098done 3099else 3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3102as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3103See \`config.log' for more details" "$LINENO" 5; } 3104fi 3105rm -f conftest conftest$ac_cv_exeext 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3107$as_echo "$ac_cv_exeext" >&6; } 3108 3109rm -f conftest.$ac_ext 3110EXEEXT=$ac_cv_exeext 3111ac_exeext=$EXEEXT 3112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114#include <stdio.h> 3115int 3116main () 3117{ 3118FILE *f = fopen ("conftest.out", "w"); 3119 return ferror (f) || fclose (f) != 0; 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125ac_clean_files="$ac_clean_files conftest.out" 3126# Check that the compiler produces executables we can run. If not, either 3127# the compiler is broken, or we cross compile. 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3129$as_echo_n "checking whether we are cross compiling... " >&6; } 3130if test "$cross_compiling" != yes; then 3131 { { ac_try="$ac_link" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3137$as_echo "$ac_try_echo"; } >&5 3138 (eval "$ac_link") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3141 test $ac_status = 0; } 3142 if { ac_try='./conftest$ac_cv_exeext' 3143 { { case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3148$as_echo "$ac_try_echo"; } >&5 3149 (eval "$ac_try") 2>&5 3150 ac_status=$? 3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152 test $ac_status = 0; }; }; then 3153 cross_compiling=no 3154 else 3155 if test "$cross_compiling" = maybe; then 3156 cross_compiling=yes 3157 else 3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3160as_fn_error $? "cannot run C compiled programs. 3161If you meant to cross compile, use \`--host'. 3162See \`config.log' for more details" "$LINENO" 5; } 3163 fi 3164 fi 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3167$as_echo "$cross_compiling" >&6; } 3168 3169rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3170ac_clean_files=$ac_clean_files_save 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3172$as_echo_n "checking for suffix of object files... " >&6; } 3173if ${ac_cv_objext+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187rm -f conftest.o conftest.obj 3188if { { ac_try="$ac_compile" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_compile") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; }; then : 3199 for ac_file in conftest.o conftest.obj conftest.*; do 3200 test -f "$ac_file" || continue; 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3204 break;; 3205 esac 3206done 3207else 3208 $as_echo "$as_me: failed program was:" >&5 3209sed 's/^/| /' conftest.$ac_ext >&5 3210 3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3213as_fn_error $? "cannot compute suffix of object files: cannot compile 3214See \`config.log' for more details" "$LINENO" 5; } 3215fi 3216rm -f conftest.$ac_cv_objext conftest.$ac_ext 3217fi 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3219$as_echo "$ac_cv_objext" >&6; } 3220OBJEXT=$ac_cv_objext 3221ac_objext=$OBJEXT 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3223$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3224if ${ac_cv_c_compiler_gnu+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3228/* end confdefs.h. */ 3229 3230int 3231main () 3232{ 3233#ifndef __GNUC__ 3234 choke me 3235#endif 3236 3237 ; 3238 return 0; 3239} 3240_ACEOF 3241if ac_fn_c_try_compile "$LINENO"; then : 3242 ac_compiler_gnu=yes 3243else 3244 ac_compiler_gnu=no 3245fi 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247ac_cv_c_compiler_gnu=$ac_compiler_gnu 3248 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3251$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3252if test $ac_compiler_gnu = yes; then 3253 GCC=yes 3254else 3255 GCC= 3256fi 3257ac_test_CFLAGS=${CFLAGS+set} 3258ac_save_CFLAGS=$CFLAGS 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3260$as_echo_n "checking whether $CC accepts -g... " >&6; } 3261if ${ac_cv_prog_cc_g+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 ac_save_c_werror_flag=$ac_c_werror_flag 3265 ac_c_werror_flag=yes 3266 ac_cv_prog_cc_g=no 3267 CFLAGS="-g" 3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269/* end confdefs.h. */ 3270 3271int 3272main () 3273{ 3274 3275 ; 3276 return 0; 3277} 3278_ACEOF 3279if ac_fn_c_try_compile "$LINENO"; then : 3280 ac_cv_prog_cc_g=yes 3281else 3282 CFLAGS="" 3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294if ac_fn_c_try_compile "$LINENO"; then : 3295 3296else 3297 ac_c_werror_flag=$ac_save_c_werror_flag 3298 CFLAGS="-g" 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301 3302int 3303main () 3304{ 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310if ac_fn_c_try_compile "$LINENO"; then : 3311 ac_cv_prog_cc_g=yes 3312fi 3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3314fi 3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3316fi 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 ac_c_werror_flag=$ac_save_c_werror_flag 3319fi 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3321$as_echo "$ac_cv_prog_cc_g" >&6; } 3322if test "$ac_test_CFLAGS" = set; then 3323 CFLAGS=$ac_save_CFLAGS 3324elif test $ac_cv_prog_cc_g = yes; then 3325 if test "$GCC" = yes; then 3326 CFLAGS="-g -O2" 3327 else 3328 CFLAGS="-g" 3329 fi 3330else 3331 if test "$GCC" = yes; then 3332 CFLAGS="-O2" 3333 else 3334 CFLAGS= 3335 fi 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3339if ${ac_cv_prog_cc_c89+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 ac_cv_prog_cc_c89=no 3343ac_save_CC=$CC 3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346#include <stdarg.h> 3347#include <stdio.h> 3348struct stat; 3349/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3350struct buf { int x; }; 3351FILE * (*rcsopen) (struct buf *, struct stat *, int); 3352static char *e (p, i) 3353 char **p; 3354 int i; 3355{ 3356 return p[i]; 3357} 3358static char *f (char * (*g) (char **, int), char **p, ...) 3359{ 3360 char *s; 3361 va_list v; 3362 va_start (v,p); 3363 s = g (p, va_arg (v,int)); 3364 va_end (v); 3365 return s; 3366} 3367 3368/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3369 function prototypes and stuff, but not '\xHH' hex character constants. 3370 These don't provoke an error unfortunately, instead are silently treated 3371 as 'x'. The following induces an error, until -std is added to get 3372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3373 array size at least. It's necessary to write '\x00'==0 to get something 3374 that's true only with -std. */ 3375int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3376 3377/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3378 inside strings and character constants. */ 3379#define FOO(x) 'x' 3380int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3381 3382int test (int i, double x); 3383struct s1 {int (*f) (int a);}; 3384struct s2 {int (*f) (double a);}; 3385int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3386int argc; 3387char **argv; 3388int 3389main () 3390{ 3391return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3398do 3399 CC="$ac_save_CC $ac_arg" 3400 if ac_fn_c_try_compile "$LINENO"; then : 3401 ac_cv_prog_cc_c89=$ac_arg 3402fi 3403rm -f core conftest.err conftest.$ac_objext 3404 test "x$ac_cv_prog_cc_c89" != "xno" && break 3405done 3406rm -f conftest.$ac_ext 3407CC=$ac_save_CC 3408 3409fi 3410# AC_CACHE_VAL 3411case "x$ac_cv_prog_cc_c89" in 3412 x) 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3414$as_echo "none needed" >&6; } ;; 3415 xno) 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3417$as_echo "unsupported" >&6; } ;; 3418 *) 3419 CC="$CC $ac_cv_prog_cc_c89" 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3421$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3422esac 3423if test "x$ac_cv_prog_cc_c89" != xno; then : 3424 3425fi 3426 3427ac_ext=c 3428ac_cpp='$CPP $CPPFLAGS' 3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3431ac_compiler_gnu=$ac_cv_c_compiler_gnu 3432 ac_ext=c 3433ac_cpp='$CPP $CPPFLAGS' 3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3436ac_compiler_gnu=$ac_cv_c_compiler_gnu 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3438$as_echo_n "checking how to run the C preprocessor... " >&6; } 3439# On Suns, sometimes $CPP names a directory. 3440if test -n "$CPP" && test -d "$CPP"; then 3441 CPP= 3442fi 3443if test -z "$CPP"; then 3444 if ${ac_cv_prog_CPP+:} false; then : 3445 $as_echo_n "(cached) " >&6 3446else 3447 # Double quotes because CPP needs to be expanded 3448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3449 do 3450 ac_preproc_ok=false 3451for ac_c_preproc_warn_flag in '' yes 3452do 3453 # Use a header file that comes with gcc, so configuring glibc 3454 # with a fresh cross-compiler works. 3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3456 # <limits.h> exists even on freestanding compilers. 3457 # On the NeXT, cc -E runs the code through the compiler's parser, 3458 # not just through cpp. "Syntax error" is here to catch this case. 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461#ifdef __STDC__ 3462# include <limits.h> 3463#else 3464# include <assert.h> 3465#endif 3466 Syntax error 3467_ACEOF 3468if ac_fn_c_try_cpp "$LINENO"; then : 3469 3470else 3471 # Broken: fails on valid input. 3472continue 3473fi 3474rm -f conftest.err conftest.i conftest.$ac_ext 3475 3476 # OK, works on sane cases. Now check whether nonexistent headers 3477 # can be detected and how. 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480#include <ac_nonexistent.h> 3481_ACEOF 3482if ac_fn_c_try_cpp "$LINENO"; then : 3483 # Broken: success on invalid input. 3484continue 3485else 3486 # Passes both tests. 3487ac_preproc_ok=: 3488break 3489fi 3490rm -f conftest.err conftest.i conftest.$ac_ext 3491 3492done 3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3494rm -f conftest.i conftest.err conftest.$ac_ext 3495if $ac_preproc_ok; then : 3496 break 3497fi 3498 3499 done 3500 ac_cv_prog_CPP=$CPP 3501 3502fi 3503 CPP=$ac_cv_prog_CPP 3504else 3505 ac_cv_prog_CPP=$CPP 3506fi 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3508$as_echo "$CPP" >&6; } 3509ac_preproc_ok=false 3510for ac_c_preproc_warn_flag in '' yes 3511do 3512 # Use a header file that comes with gcc, so configuring glibc 3513 # with a fresh cross-compiler works. 3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3515 # <limits.h> exists even on freestanding compilers. 3516 # On the NeXT, cc -E runs the code through the compiler's parser, 3517 # not just through cpp. "Syntax error" is here to catch this case. 3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3519/* end confdefs.h. */ 3520#ifdef __STDC__ 3521# include <limits.h> 3522#else 3523# include <assert.h> 3524#endif 3525 Syntax error 3526_ACEOF 3527if ac_fn_c_try_cpp "$LINENO"; then : 3528 3529else 3530 # Broken: fails on valid input. 3531continue 3532fi 3533rm -f conftest.err conftest.i conftest.$ac_ext 3534 3535 # OK, works on sane cases. Now check whether nonexistent headers 3536 # can be detected and how. 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539#include <ac_nonexistent.h> 3540_ACEOF 3541if ac_fn_c_try_cpp "$LINENO"; then : 3542 # Broken: success on invalid input. 3543continue 3544else 3545 # Passes both tests. 3546ac_preproc_ok=: 3547break 3548fi 3549rm -f conftest.err conftest.i conftest.$ac_ext 3550 3551done 3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3553rm -f conftest.i conftest.err conftest.$ac_ext 3554if $ac_preproc_ok; then : 3555 3556else 3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3559as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3560See \`config.log' for more details" "$LINENO" 5; } 3561fi 3562 3563ac_ext=c 3564ac_cpp='$CPP $CPPFLAGS' 3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3567ac_compiler_gnu=$ac_cv_c_compiler_gnu 3568 3569 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3571$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3572if ${ac_cv_path_GREP+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 if test -z "$GREP"; then 3576 ac_path_GREP_found=false 3577 # Loop through the user's path and test for each of PROGNAME-LIST 3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3580do 3581 IFS=$as_save_IFS 3582 test -z "$as_dir" && as_dir=. 3583 for ac_prog in grep ggrep; do 3584 for ac_exec_ext in '' $ac_executable_extensions; do 3585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3586 as_fn_executable_p "$ac_path_GREP" || continue 3587# Check for GNU ac_path_GREP and select it if it is found. 3588 # Check for GNU $ac_path_GREP 3589case `"$ac_path_GREP" --version 2>&1` in 3590*GNU*) 3591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3592*) 3593 ac_count=0 3594 $as_echo_n 0123456789 >"conftest.in" 3595 while : 3596 do 3597 cat "conftest.in" "conftest.in" >"conftest.tmp" 3598 mv "conftest.tmp" "conftest.in" 3599 cp "conftest.in" "conftest.nl" 3600 $as_echo 'GREP' >> "conftest.nl" 3601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3603 as_fn_arith $ac_count + 1 && ac_count=$as_val 3604 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3605 # Best one so far, save it but keep looking for a better one 3606 ac_cv_path_GREP="$ac_path_GREP" 3607 ac_path_GREP_max=$ac_count 3608 fi 3609 # 10*(2^10) chars as input seems more than enough 3610 test $ac_count -gt 10 && break 3611 done 3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3613esac 3614 3615 $ac_path_GREP_found && break 3 3616 done 3617 done 3618 done 3619IFS=$as_save_IFS 3620 if test -z "$ac_cv_path_GREP"; then 3621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3622 fi 3623else 3624 ac_cv_path_GREP=$GREP 3625fi 3626 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3629$as_echo "$ac_cv_path_GREP" >&6; } 3630 GREP="$ac_cv_path_GREP" 3631 3632 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3634$as_echo_n "checking for egrep... " >&6; } 3635if ${ac_cv_path_EGREP+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3639 then ac_cv_path_EGREP="$GREP -E" 3640 else 3641 if test -z "$EGREP"; then 3642 ac_path_EGREP_found=false 3643 # Loop through the user's path and test for each of PROGNAME-LIST 3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_prog in egrep; do 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3652 as_fn_executable_p "$ac_path_EGREP" || continue 3653# Check for GNU ac_path_EGREP and select it if it is found. 3654 # Check for GNU $ac_path_EGREP 3655case `"$ac_path_EGREP" --version 2>&1` in 3656*GNU*) 3657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3658*) 3659 ac_count=0 3660 $as_echo_n 0123456789 >"conftest.in" 3661 while : 3662 do 3663 cat "conftest.in" "conftest.in" >"conftest.tmp" 3664 mv "conftest.tmp" "conftest.in" 3665 cp "conftest.in" "conftest.nl" 3666 $as_echo 'EGREP' >> "conftest.nl" 3667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3669 as_fn_arith $ac_count + 1 && ac_count=$as_val 3670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3671 # Best one so far, save it but keep looking for a better one 3672 ac_cv_path_EGREP="$ac_path_EGREP" 3673 ac_path_EGREP_max=$ac_count 3674 fi 3675 # 10*(2^10) chars as input seems more than enough 3676 test $ac_count -gt 10 && break 3677 done 3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3679esac 3680 3681 $ac_path_EGREP_found && break 3 3682 done 3683 done 3684 done 3685IFS=$as_save_IFS 3686 if test -z "$ac_cv_path_EGREP"; then 3687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3688 fi 3689else 3690 ac_cv_path_EGREP=$EGREP 3691fi 3692 3693 fi 3694fi 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3696$as_echo "$ac_cv_path_EGREP" >&6; } 3697 EGREP="$ac_cv_path_EGREP" 3698 3699 3700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701/* end confdefs.h. */ 3702 3703_ACEOF 3704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3705 $EGREP "" >/dev/null 2>&1; then : 3706 3707fi 3708rm -f conftest* 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3710$as_echo_n "checking for fgrep... " >&6; } 3711if ${ac_cv_path_FGREP+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3715 then ac_cv_path_FGREP="$GREP -F" 3716 else 3717 if test -z "$FGREP"; then 3718 ac_path_FGREP_found=false 3719 # Loop through the user's path and test for each of PROGNAME-LIST 3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3722do 3723 IFS=$as_save_IFS 3724 test -z "$as_dir" && as_dir=. 3725 for ac_prog in fgrep; do 3726 for ac_exec_ext in '' $ac_executable_extensions; do 3727 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3728 as_fn_executable_p "$ac_path_FGREP" || continue 3729# Check for GNU ac_path_FGREP and select it if it is found. 3730 # Check for GNU $ac_path_FGREP 3731case `"$ac_path_FGREP" --version 2>&1` in 3732*GNU*) 3733 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3734*) 3735 ac_count=0 3736 $as_echo_n 0123456789 >"conftest.in" 3737 while : 3738 do 3739 cat "conftest.in" "conftest.in" >"conftest.tmp" 3740 mv "conftest.tmp" "conftest.in" 3741 cp "conftest.in" "conftest.nl" 3742 $as_echo 'FGREP' >> "conftest.nl" 3743 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3745 as_fn_arith $ac_count + 1 && ac_count=$as_val 3746 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3747 # Best one so far, save it but keep looking for a better one 3748 ac_cv_path_FGREP="$ac_path_FGREP" 3749 ac_path_FGREP_max=$ac_count 3750 fi 3751 # 10*(2^10) chars as input seems more than enough 3752 test $ac_count -gt 10 && break 3753 done 3754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3755esac 3756 3757 $ac_path_FGREP_found && break 3 3758 done 3759 done 3760 done 3761IFS=$as_save_IFS 3762 if test -z "$ac_cv_path_FGREP"; then 3763 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3764 fi 3765else 3766 ac_cv_path_FGREP=$FGREP 3767fi 3768 3769 fi 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3772$as_echo "$ac_cv_path_FGREP" >&6; } 3773 FGREP="$ac_cv_path_FGREP" 3774 3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3776$as_echo_n "checking for library containing strerror... " >&6; } 3777if ${ac_cv_search_strerror+:} false; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 ac_func_search_save_LIBS=$LIBS 3781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784/* Override any GCC internal prototype to avoid an error. 3785 Use char because int might match the return type of a GCC 3786 builtin and then its argument prototype would still apply. */ 3787#ifdef __cplusplus 3788extern "C" 3789#endif 3790char strerror (); 3791int 3792main () 3793{ 3794return strerror (); 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799for ac_lib in '' cposix; do 3800 if test -z "$ac_lib"; then 3801 ac_res="none required" 3802 else 3803 ac_res=-l$ac_lib 3804 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3805 fi 3806 if ac_fn_c_try_link "$LINENO"; then : 3807 ac_cv_search_strerror=$ac_res 3808fi 3809rm -f core conftest.err conftest.$ac_objext \ 3810 conftest$ac_exeext 3811 if ${ac_cv_search_strerror+:} false; then : 3812 break 3813fi 3814done 3815if ${ac_cv_search_strerror+:} false; then : 3816 3817else 3818 ac_cv_search_strerror=no 3819fi 3820rm conftest.$ac_ext 3821LIBS=$ac_func_search_save_LIBS 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3824$as_echo "$ac_cv_search_strerror" >&6; } 3825ac_res=$ac_cv_search_strerror 3826if test "$ac_res" != no; then : 3827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3828 3829fi 3830 for ac_prog in gawk mawk nawk awk 3831do 3832 # Extract the first word of "$ac_prog", so it can be a program name with args. 3833set dummy $ac_prog; ac_word=$2 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3835$as_echo_n "checking for $ac_word... " >&6; } 3836if ${ac_cv_prog_AWK+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 if test -n "$AWK"; then 3840 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3841else 3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843for as_dir in $PATH 3844do 3845 IFS=$as_save_IFS 3846 test -z "$as_dir" && as_dir=. 3847 for ac_exec_ext in '' $ac_executable_extensions; do 3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3849 ac_cv_prog_AWK="$ac_prog" 3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3851 break 2 3852 fi 3853done 3854 done 3855IFS=$as_save_IFS 3856 3857fi 3858fi 3859AWK=$ac_cv_prog_AWK 3860if test -n "$AWK"; then 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3862$as_echo "$AWK" >&6; } 3863else 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3865$as_echo "no" >&6; } 3866fi 3867 3868 3869 test -n "$AWK" && break 3870done 3871 3872# Extract the first word of "strip", so it can be a program name with args. 3873set dummy strip; ac_word=$2 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3875$as_echo_n "checking for $ac_word... " >&6; } 3876if ${ac_cv_prog_STRIP+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 if test -n "$STRIP"; then 3880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3881else 3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3883for as_dir in $PATH 3884do 3885 IFS=$as_save_IFS 3886 test -z "$as_dir" && as_dir=. 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3889 ac_cv_prog_STRIP="strip" 3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893done 3894 done 3895IFS=$as_save_IFS 3896 3897 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3898fi 3899fi 3900STRIP=$ac_cv_prog_STRIP 3901if test -n "$STRIP"; then 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3903$as_echo "$STRIP" >&6; } 3904else 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3906$as_echo "no" >&6; } 3907fi 3908 3909 3910 3911 3912 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3914$as_echo_n "checking for ANSI C header files... " >&6; } 3915if ${ac_cv_header_stdc+:} false; then : 3916 $as_echo_n "(cached) " >&6 3917else 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920#include <stdlib.h> 3921#include <stdarg.h> 3922#include <string.h> 3923#include <float.h> 3924 3925int 3926main () 3927{ 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933if ac_fn_c_try_compile "$LINENO"; then : 3934 ac_cv_header_stdc=yes 3935else 3936 ac_cv_header_stdc=no 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939 3940if test $ac_cv_header_stdc = yes; then 3941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3943/* end confdefs.h. */ 3944#include <string.h> 3945 3946_ACEOF 3947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3948 $EGREP "memchr" >/dev/null 2>&1; then : 3949 3950else 3951 ac_cv_header_stdc=no 3952fi 3953rm -f conftest* 3954 3955fi 3956 3957if test $ac_cv_header_stdc = yes; then 3958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961#include <stdlib.h> 3962 3963_ACEOF 3964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3965 $EGREP "free" >/dev/null 2>&1; then : 3966 3967else 3968 ac_cv_header_stdc=no 3969fi 3970rm -f conftest* 3971 3972fi 3973 3974if test $ac_cv_header_stdc = yes; then 3975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3976 if test "$cross_compiling" = yes; then : 3977 : 3978else 3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981#include <ctype.h> 3982#include <stdlib.h> 3983#if ((' ' & 0x0FF) == 0x020) 3984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3986#else 3987# define ISLOWER(c) \ 3988 (('a' <= (c) && (c) <= 'i') \ 3989 || ('j' <= (c) && (c) <= 'r') \ 3990 || ('s' <= (c) && (c) <= 'z')) 3991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3992#endif 3993 3994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3995int 3996main () 3997{ 3998 int i; 3999 for (i = 0; i < 256; i++) 4000 if (XOR (islower (i), ISLOWER (i)) 4001 || toupper (i) != TOUPPER (i)) 4002 return 2; 4003 return 0; 4004} 4005_ACEOF 4006if ac_fn_c_try_run "$LINENO"; then : 4007 4008else 4009 ac_cv_header_stdc=no 4010fi 4011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4012 conftest.$ac_objext conftest.beam conftest.$ac_ext 4013fi 4014 4015fi 4016fi 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4018$as_echo "$ac_cv_header_stdc" >&6; } 4019if test $ac_cv_header_stdc = yes; then 4020 4021$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4022 4023fi 4024 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4026$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4027if ${ac_cv_header_sys_wait_h+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4031/* end confdefs.h. */ 4032#include <sys/types.h> 4033#include <sys/wait.h> 4034#ifndef WEXITSTATUS 4035# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4036#endif 4037#ifndef WIFEXITED 4038# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4039#endif 4040 4041int 4042main () 4043{ 4044 int s; 4045 wait (&s); 4046 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4047 ; 4048 return 0; 4049} 4050_ACEOF 4051if ac_fn_c_try_compile "$LINENO"; then : 4052 ac_cv_header_sys_wait_h=yes 4053else 4054 ac_cv_header_sys_wait_h=no 4055fi 4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4059$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4060if test $ac_cv_header_sys_wait_h = yes; then 4061 4062$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4063 4064fi 4065 4066 4067 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4069$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4070# Check whether --enable-fail_if_missing was given. 4071if test "${enable_fail_if_missing+set}" = set; then : 4072 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4073else 4074 fail_if_missing="no" 4075fi 4076 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4078$as_echo "$fail_if_missing" >&6; } 4079 4080if test -z "$CFLAGS"; then 4081 CFLAGS="-O" 4082 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4083fi 4084if test "$GCC" = yes; then 4085 gccversion=`$CC -dumpversion` 4086 if test "x$gccversion" = "x"; then 4087 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4088 fi 4089 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4090 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4091 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4092 else 4093 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4094 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4095 CFLAGS="$CFLAGS -fno-strength-reduce" 4096 fi 4097 fi 4098fi 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5 4101$as_echo_n "checking for recent clang version... " >&6; } 4102CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4103if test x"$CLANG_VERSION_STRING" != x"" ; then 4104 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4105 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4106 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4107 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4109$as_echo "$CLANG_VERSION" >&6; } 4110 if test "$CLANG_VERSION" -ge 500002075 ; then 4111 CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'` 4112 fi 4113else 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4115$as_echo "no" >&6; } 4116fi 4117 4118if test "$cross_compiling" = yes; then 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4120$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4121fi 4122 4123test "$GCC" = yes && CPP_MM=M; 4124 4125if test -f ./toolcheck; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4127$as_echo "$as_me: checking for buggy tools..." >&6;} 4128 sh ./toolcheck 1>&6 4129fi 4130 4131OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4134$as_echo_n "checking for BeOS... " >&6; } 4135case `uname` in 4136 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4137 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4138$as_echo "yes" >&6; };; 4139 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4140$as_echo "no" >&6; };; 4141esac 4142 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4144$as_echo_n "checking for QNX... " >&6; } 4145case `uname` in 4146 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4147 test -z "$with_x" && with_x=no 4148 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4149$as_echo "yes" >&6; };; 4150 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4151$as_echo "no" >&6; };; 4152esac 4153 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4155$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4156if test "`(uname) 2>/dev/null`" = Darwin; then 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4158$as_echo "yes" >&6; } 4159 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4161$as_echo_n "checking --disable-darwin argument... " >&6; } 4162 # Check whether --enable-darwin was given. 4163if test "${enable_darwin+set}" = set; then : 4164 enableval=$enable_darwin; 4165else 4166 enable_darwin="yes" 4167fi 4168 4169 if test "$enable_darwin" = "yes"; then 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4171$as_echo "no" >&6; } 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4173$as_echo_n "checking if Darwin files are there... " >&6; } 4174 if test -f os_macosx.m; then 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4176$as_echo "yes" >&6; } 4177 else 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4179$as_echo "no, Darwin support disabled" >&6; } 4180 enable_darwin=no 4181 fi 4182 else 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4184$as_echo "yes, Darwin support excluded" >&6; } 4185 fi 4186 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4188$as_echo_n "checking --with-mac-arch argument... " >&6; } 4189 4190# Check whether --with-mac-arch was given. 4191if test "${with_mac_arch+set}" = set; then : 4192 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4193$as_echo "$MACARCH" >&6; } 4194else 4195 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4196$as_echo "defaulting to $MACARCH" >&6; } 4197fi 4198 4199 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4201$as_echo_n "checking --with-developer-dir argument... " >&6; } 4202 4203# Check whether --with-developer-dir was given. 4204if test "${with_developer_dir+set}" = set; then : 4205 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4206$as_echo "$DEVELOPER_DIR" >&6; } 4207else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4209$as_echo "not present" >&6; } 4210fi 4211 4212 4213 if test "x$DEVELOPER_DIR" = "x"; then 4214 # Extract the first word of "xcode-select", so it can be a program name with args. 4215set dummy xcode-select; ac_word=$2 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4217$as_echo_n "checking for $ac_word... " >&6; } 4218if ${ac_cv_path_XCODE_SELECT+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 case $XCODE_SELECT in 4222 [\\/]* | ?:[\\/]*) 4223 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4224 ;; 4225 *) 4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4227for as_dir in $PATH 4228do 4229 IFS=$as_save_IFS 4230 test -z "$as_dir" && as_dir=. 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4233 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4235 break 2 4236 fi 4237done 4238 done 4239IFS=$as_save_IFS 4240 4241 ;; 4242esac 4243fi 4244XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4245if test -n "$XCODE_SELECT"; then 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4247$as_echo "$XCODE_SELECT" >&6; } 4248else 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4250$as_echo "no" >&6; } 4251fi 4252 4253 4254 if test "x$XCODE_SELECT" != "x"; then 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4256$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4257 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4259$as_echo "$DEVELOPER_DIR" >&6; } 4260 else 4261 DEVELOPER_DIR=/Developer 4262 fi 4263 fi 4264 4265 if test "x$MACARCH" = "xboth"; then 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4267$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4268 save_cppflags="$CPPFLAGS" 4269 save_cflags="$CFLAGS" 4270 save_ldflags="$LDFLAGS" 4271 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274 4275int 4276main () 4277{ 4278 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283if ac_fn_c_try_link "$LINENO"; then : 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4285$as_echo "found" >&6; } 4286else 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4288$as_echo "not found" >&6; } 4289 CFLAGS="$save_cflags" 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4291$as_echo_n "checking if Intel architecture is supported... " >&6; } 4292 CPPFLAGS="$CPPFLAGS -arch i386" 4293 LDFLAGS="$save_ldflags -arch i386" 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296 4297int 4298main () 4299{ 4300 4301 ; 4302 return 0; 4303} 4304_ACEOF 4305if ac_fn_c_try_link "$LINENO"; then : 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4307$as_echo "yes" >&6; }; MACARCH="intel" 4308else 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4310$as_echo "no" >&6; } 4311 MACARCH="ppc" 4312 CPPFLAGS="$save_cppflags -arch ppc" 4313 LDFLAGS="$save_ldflags -arch ppc" 4314fi 4315rm -f core conftest.err conftest.$ac_objext \ 4316 conftest$ac_exeext conftest.$ac_ext 4317fi 4318rm -f core conftest.err conftest.$ac_objext \ 4319 conftest$ac_exeext conftest.$ac_ext 4320 elif test "x$MACARCH" = "xintel"; then 4321 CPPFLAGS="$CPPFLAGS -arch intel" 4322 LDFLAGS="$LDFLAGS -arch intel" 4323 elif test "x$MACARCH" = "xppc"; then 4324 CPPFLAGS="$CPPFLAGS -arch ppc" 4325 LDFLAGS="$LDFLAGS -arch ppc" 4326 fi 4327 4328 if test "$enable_darwin" = "yes"; then 4329 MACOSX=yes 4330 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4331 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4332 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4333 4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4336 inttypes.h stdint.h unistd.h 4337do : 4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4340" 4341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4342 cat >>confdefs.h <<_ACEOF 4343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4344_ACEOF 4345 4346fi 4347 4348done 4349 4350 4351ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4352if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4353 CARBON=yes 4354fi 4355 4356 4357 if test "x$CARBON" = "xyes"; then 4358 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then 4359 with_x=no 4360 fi 4361 fi 4362 fi 4363 4364 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4365 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4366 fi 4367 4368else 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4370$as_echo "no" >&6; } 4371fi 4372 4373for ac_header in AvailabilityMacros.h 4374do : 4375 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4376if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4377 cat >>confdefs.h <<_ACEOF 4378#define HAVE_AVAILABILITYMACROS_H 1 4379_ACEOF 4380 4381fi 4382 4383done 4384 4385 4386 4387 4388 4389if test "$cross_compiling" = no; then 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4391$as_echo_n "checking --with-local-dir argument... " >&6; } 4392 have_local_include='' 4393 have_local_lib='' 4394 4395# Check whether --with-local-dir was given. 4396if test "${with_local_dir+set}" = set; then : 4397 withval=$with_local_dir; 4398 local_dir="$withval" 4399 case "$withval" in 4400 */*) ;; 4401 no) 4402 # avoid adding local dir to LDFLAGS and CPPFLAGS 4403 have_local_include=yes 4404 have_local_lib=yes 4405 ;; 4406 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4407 esac 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4409$as_echo "$local_dir" >&6; } 4410 4411else 4412 4413 local_dir=/usr/local 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4415$as_echo "Defaulting to $local_dir" >&6; } 4416 4417fi 4418 4419 if test "$GCC" = yes -a "$local_dir" != no; then 4420 echo 'void f(){}' > conftest.c 4421 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4422 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4423 rm -f conftest.c conftest.o 4424 fi 4425 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4426 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4427 if test "$tt" = "$LDFLAGS"; then 4428 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4429 fi 4430 fi 4431 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4432 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4433 if test "$tt" = "$CPPFLAGS"; then 4434 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4435 fi 4436 fi 4437fi 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4440$as_echo_n "checking --with-vim-name argument... " >&6; } 4441 4442# Check whether --with-vim-name was given. 4443if test "${with_vim_name+set}" = set; then : 4444 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4445$as_echo "$VIMNAME" >&6; } 4446else 4447 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4448$as_echo "Defaulting to $VIMNAME" >&6; } 4449fi 4450 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4453$as_echo_n "checking --with-ex-name argument... " >&6; } 4454 4455# Check whether --with-ex-name was given. 4456if test "${with_ex_name+set}" = set; then : 4457 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4458$as_echo "$EXNAME" >&6; } 4459else 4460 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4461$as_echo "Defaulting to ex" >&6; } 4462fi 4463 4464 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4466$as_echo_n "checking --with-view-name argument... " >&6; } 4467 4468# Check whether --with-view-name was given. 4469if test "${with_view_name+set}" = set; then : 4470 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4471$as_echo "$VIEWNAME" >&6; } 4472else 4473 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4474$as_echo "Defaulting to view" >&6; } 4475fi 4476 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4480$as_echo_n "checking --with-global-runtime argument... " >&6; } 4481 4482# Check whether --with-global-runtime was given. 4483if test "${with_global_runtime+set}" = set; then : 4484 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4485$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4486#define RUNTIME_GLOBAL "$withval" 4487_ACEOF 4488 4489else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491$as_echo "no" >&6; } 4492fi 4493 4494 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4496$as_echo_n "checking --with-modified-by argument... " >&6; } 4497 4498# Check whether --with-modified-by was given. 4499if test "${with_modified_by+set}" = set; then : 4500 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4501$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4502#define MODIFIED_BY "$withval" 4503_ACEOF 4504 4505else 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4507$as_echo "no" >&6; } 4508fi 4509 4510 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4512$as_echo_n "checking if character set is EBCDIC... " >&6; } 4513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515 4516int 4517main () 4518{ 4519 /* TryCompile function for CharSet. 4520 Treat any failure as ASCII for compatibility with existing art. 4521 Use compile-time rather than run-time tests for cross-compiler 4522 tolerance. */ 4523#if '0'!=240 4524make an error "Character set is not EBCDIC" 4525#endif 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_c_try_compile "$LINENO"; then : 4531 # TryCompile action if true 4532cf_cv_ebcdic=yes 4533else 4534 # TryCompile action if false 4535cf_cv_ebcdic=no 4536fi 4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4538# end of TryCompile ]) 4539# end of CacheVal CvEbcdic 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4541$as_echo "$cf_cv_ebcdic" >&6; } 4542case "$cf_cv_ebcdic" in #(vi 4543 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4544 4545 line_break='"\\n"' 4546 ;; 4547 *) line_break='"\\012"';; 4548esac 4549 4550 4551if test "$cf_cv_ebcdic" = "yes"; then 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4553$as_echo_n "checking for z/OS Unix... " >&6; } 4554case `uname` in 4555 OS/390) zOSUnix="yes"; 4556 if test "$CC" = "cc"; then 4557 ccm="$_CC_CCMODE" 4558 ccn="CC" 4559 else 4560 if test "$CC" = "c89"; then 4561 ccm="$_CC_C89MODE" 4562 ccn="C89" 4563 else 4564 ccm=1 4565 fi 4566 fi 4567 if test "$ccm" != "1"; then 4568 echo "" 4569 echo "------------------------------------------" 4570 echo " On z/OS Unix, the environment variable" 4571 echo " _CC_${ccn}MODE must be set to \"1\"!" 4572 echo " Do:" 4573 echo " export _CC_${ccn}MODE=1" 4574 echo " and then call configure again." 4575 echo "------------------------------------------" 4576 exit 1 4577 fi 4578 # Set CFLAGS for configure process. 4579 # This will be reset later for config.mk. 4580 # Use haltonmsg to force error for missing H files. 4581 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4582 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4584$as_echo "yes" >&6; } 4585 ;; 4586 *) zOSUnix="no"; 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4588$as_echo "no" >&6; } 4589 ;; 4590esac 4591fi 4592 4593if test "$zOSUnix" = "yes"; then 4594 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4595else 4596 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4597fi 4598 4599 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4602$as_echo_n "checking --disable-smack argument... " >&6; } 4603# Check whether --enable-smack was given. 4604if test "${enable_smack+set}" = set; then : 4605 enableval=$enable_smack; 4606else 4607 enable_smack="yes" 4608fi 4609 4610if test "$enable_smack" = "yes"; then 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612$as_echo "no" >&6; } 4613 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4614if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4615 true 4616else 4617 enable_smack="no" 4618fi 4619 4620 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4623$as_echo "yes" >&6; } 4624fi 4625if test "$enable_smack" = "yes"; then 4626 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4627if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4628 true 4629else 4630 enable_smack="no" 4631fi 4632 4633 4634fi 4635if test "$enable_smack" = "yes"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4637$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640#include <linux/xattr.h> 4641_ACEOF 4642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4643 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4645$as_echo "yes" >&6; } 4646else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648$as_echo "no" >&6; }; enable_smack="no" 4649fi 4650rm -f conftest* 4651 4652fi 4653if test "$enable_smack" = "yes"; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4655$as_echo_n "checking for setxattr in -lattr... " >&6; } 4656if ${ac_cv_lib_attr_setxattr+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 ac_check_lib_save_LIBS=$LIBS 4660LIBS="-lattr $LIBS" 4661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663 4664/* Override any GCC internal prototype to avoid an error. 4665 Use char because int might match the return type of a GCC 4666 builtin and then its argument prototype would still apply. */ 4667#ifdef __cplusplus 4668extern "C" 4669#endif 4670char setxattr (); 4671int 4672main () 4673{ 4674return setxattr (); 4675 ; 4676 return 0; 4677} 4678_ACEOF 4679if ac_fn_c_try_link "$LINENO"; then : 4680 ac_cv_lib_attr_setxattr=yes 4681else 4682 ac_cv_lib_attr_setxattr=no 4683fi 4684rm -f core conftest.err conftest.$ac_objext \ 4685 conftest$ac_exeext conftest.$ac_ext 4686LIBS=$ac_check_lib_save_LIBS 4687fi 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4689$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4690if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4691 LIBS="$LIBS -lattr" 4692 found_smack="yes" 4693 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4694 4695fi 4696 4697fi 4698 4699if test "x$found_smack" = "x"; then 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4701$as_echo_n "checking --disable-selinux argument... " >&6; } 4702 # Check whether --enable-selinux was given. 4703if test "${enable_selinux+set}" = set; then : 4704 enableval=$enable_selinux; 4705else 4706 enable_selinux="yes" 4707fi 4708 4709 if test "$enable_selinux" = "yes"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4711$as_echo "no" >&6; } 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4713$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4714if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 ac_check_lib_save_LIBS=$LIBS 4718LIBS="-lselinux $LIBS" 4719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721 4722/* Override any GCC internal prototype to avoid an error. 4723 Use char because int might match the return type of a GCC 4724 builtin and then its argument prototype would still apply. */ 4725#ifdef __cplusplus 4726extern "C" 4727#endif 4728char is_selinux_enabled (); 4729int 4730main () 4731{ 4732return is_selinux_enabled (); 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_link "$LINENO"; then : 4738 ac_cv_lib_selinux_is_selinux_enabled=yes 4739else 4740 ac_cv_lib_selinux_is_selinux_enabled=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext \ 4743 conftest$ac_exeext conftest.$ac_ext 4744LIBS=$ac_check_lib_save_LIBS 4745fi 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4747$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4748if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4749 LIBS="$LIBS -lselinux" 4750 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4751 4752fi 4753 4754 else 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4756$as_echo "yes" >&6; } 4757 fi 4758fi 4759 4760 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4762$as_echo_n "checking --with-features argument... " >&6; } 4763 4764# Check whether --with-features was given. 4765if test "${with_features+set}" = set; then : 4766 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4767$as_echo "$features" >&6; } 4768else 4769 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4770$as_echo "Defaulting to huge" >&6; } 4771fi 4772 4773 4774dovimdiff="" 4775dogvimdiff="" 4776case "$features" in 4777 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4778 ;; 4779 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4780 ;; 4781 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4782 dovimdiff="installvimdiff"; 4783 dogvimdiff="installgvimdiff" ;; 4784 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4785 dovimdiff="installvimdiff"; 4786 dogvimdiff="installgvimdiff" ;; 4787 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4788 dovimdiff="installvimdiff"; 4789 dogvimdiff="installgvimdiff" ;; 4790 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4791$as_echo "Sorry, $features is not supported" >&6; } ;; 4792esac 4793 4794 4795 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4798$as_echo_n "checking --with-compiledby argument... " >&6; } 4799 4800# Check whether --with-compiledby was given. 4801if test "${with_compiledby+set}" = set; then : 4802 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4803$as_echo "$withval" >&6; } 4804else 4805 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806$as_echo "no" >&6; } 4807fi 4808 4809 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4812$as_echo_n "checking --disable-xsmp argument... " >&6; } 4813# Check whether --enable-xsmp was given. 4814if test "${enable_xsmp+set}" = set; then : 4815 enableval=$enable_xsmp; 4816else 4817 enable_xsmp="yes" 4818fi 4819 4820 4821if test "$enable_xsmp" = "yes"; then 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4823$as_echo "no" >&6; } 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4825$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4826 # Check whether --enable-xsmp-interact was given. 4827if test "${enable_xsmp_interact+set}" = set; then : 4828 enableval=$enable_xsmp_interact; 4829else 4830 enable_xsmp_interact="yes" 4831fi 4832 4833 if test "$enable_xsmp_interact" = "yes"; then 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4835$as_echo "no" >&6; } 4836 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4837 4838 else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4840$as_echo "yes" >&6; } 4841 fi 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4844$as_echo "yes" >&6; } 4845fi 4846 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4848$as_echo_n "checking --enable-luainterp argument... " >&6; } 4849# Check whether --enable-luainterp was given. 4850if test "${enable_luainterp+set}" = set; then : 4851 enableval=$enable_luainterp; 4852else 4853 enable_luainterp="no" 4854fi 4855 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4857$as_echo "$enable_luainterp" >&6; } 4858 4859if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4860 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4861 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4862 fi 4863 4864 4865 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4867$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4868 4869# Check whether --with-lua_prefix was given. 4870if test "${with_lua_prefix+set}" = set; then : 4871 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4872$as_echo "$with_lua_prefix" >&6; } 4873else 4874 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876fi 4877 4878 4879 if test "X$with_lua_prefix" != "X"; then 4880 vi_cv_path_lua_pfx="$with_lua_prefix" 4881 else 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4883$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4884 if test "X$LUA_PREFIX" != "X"; then 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4886$as_echo "\"$LUA_PREFIX\"" >&6; } 4887 vi_cv_path_lua_pfx="$LUA_PREFIX" 4888 else 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4890$as_echo "not set, default to /usr" >&6; } 4891 vi_cv_path_lua_pfx="/usr" 4892 fi 4893 fi 4894 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4896$as_echo_n "checking --with-luajit... " >&6; } 4897 4898# Check whether --with-luajit was given. 4899if test "${with_luajit+set}" = set; then : 4900 withval=$with_luajit; vi_cv_with_luajit="$withval" 4901else 4902 vi_cv_with_luajit="no" 4903fi 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4906$as_echo "$vi_cv_with_luajit" >&6; } 4907 4908 LUA_INC= 4909 if test "X$vi_cv_path_lua_pfx" != "X"; then 4910 if test "x$vi_cv_with_luajit" != "xno"; then 4911 # Extract the first word of "luajit", so it can be a program name with args. 4912set dummy luajit; ac_word=$2 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4914$as_echo_n "checking for $ac_word... " >&6; } 4915if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 case $vi_cv_path_luajit in 4919 [\\/]* | ?:[\\/]*) 4920 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4921 ;; 4922 *) 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924for as_dir in $PATH 4925do 4926 IFS=$as_save_IFS 4927 test -z "$as_dir" && as_dir=. 4928 for ac_exec_ext in '' $ac_executable_extensions; do 4929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4930 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4932 break 2 4933 fi 4934done 4935 done 4936IFS=$as_save_IFS 4937 4938 ;; 4939esac 4940fi 4941vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4942if test -n "$vi_cv_path_luajit"; then 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4944$as_echo "$vi_cv_path_luajit" >&6; } 4945else 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4947$as_echo "no" >&6; } 4948fi 4949 4950 4951 if test "X$vi_cv_path_luajit" != "X"; then 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4953$as_echo_n "checking LuaJIT version... " >&6; } 4954if ${vi_cv_version_luajit+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4960$as_echo "$vi_cv_version_luajit" >&6; } 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4962$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4963if ${vi_cv_version_lua_luajit+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 4969$as_echo "$vi_cv_version_lua_luajit" >&6; } 4970 vi_cv_path_lua="$vi_cv_path_luajit" 4971 vi_cv_version_lua="$vi_cv_version_lua_luajit" 4972 fi 4973 else 4974 # Extract the first word of "lua", so it can be a program name with args. 4975set dummy lua; ac_word=$2 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4977$as_echo_n "checking for $ac_word... " >&6; } 4978if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 case $vi_cv_path_plain_lua in 4982 [\\/]* | ?:[\\/]*) 4983 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 4984 ;; 4985 *) 4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4987for as_dir in $PATH 4988do 4989 IFS=$as_save_IFS 4990 test -z "$as_dir" && as_dir=. 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4993 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4995 break 2 4996 fi 4997done 4998 done 4999IFS=$as_save_IFS 5000 5001 ;; 5002esac 5003fi 5004vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5005if test -n "$vi_cv_path_plain_lua"; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5007$as_echo "$vi_cv_path_plain_lua" >&6; } 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5010$as_echo "no" >&6; } 5011fi 5012 5013 5014 if test "X$vi_cv_path_plain_lua" != "X"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5016$as_echo_n "checking Lua version... " >&6; } 5017if ${vi_cv_version_plain_lua+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5021fi 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5023$as_echo "$vi_cv_version_plain_lua" >&6; } 5024 fi 5025 vi_cv_path_lua="$vi_cv_path_plain_lua" 5026 vi_cv_version_lua="$vi_cv_version_plain_lua" 5027 fi 5028 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5029 { $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 5030$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5031 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5033$as_echo "yes" >&6; } 5034 LUA_INC=/luajit-$vi_cv_version_luajit 5035 fi 5036 fi 5037 if test "X$LUA_INC" = "X"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5039$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5040 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5042$as_echo "yes" >&6; } 5043 else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045$as_echo "no" >&6; } 5046 { $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 5047$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5048 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5050$as_echo "yes" >&6; } 5051 LUA_INC=/lua$vi_cv_version_lua 5052 else 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054$as_echo "no" >&6; } 5055 vi_cv_path_lua_pfx= 5056 fi 5057 fi 5058 fi 5059 fi 5060 5061 if test "X$vi_cv_path_lua_pfx" != "X"; then 5062 if test "x$vi_cv_with_luajit" != "xno"; then 5063 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5064 if test "X$multiarch" != "X"; then 5065 lib_multiarch="lib/${multiarch}" 5066 else 5067 lib_multiarch="lib" 5068 fi 5069 if test "X$vi_cv_version_lua" = "X"; then 5070 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5071 else 5072 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5073 fi 5074 else 5075 if test "X$LUA_INC" != "X"; then 5076 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5077 else 5078 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5079 fi 5080 fi 5081 if test "$enable_luainterp" = "dynamic"; then 5082 lua_ok="yes" 5083 else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5085$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5086 libs_save=$LIBS 5087 LIBS="$LIBS $LUA_LIBS" 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089/* end confdefs.h. */ 5090 5091int 5092main () 5093{ 5094 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099if ac_fn_c_try_link "$LINENO"; then : 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5101$as_echo "yes" >&6; }; lua_ok="yes" 5102else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5105fi 5106rm -f core conftest.err conftest.$ac_objext \ 5107 conftest$ac_exeext conftest.$ac_ext 5108 LIBS=$libs_save 5109 fi 5110 if test "x$lua_ok" = "xyes"; then 5111 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5112 LUA_SRC="if_lua.c" 5113 LUA_OBJ="objects/if_lua.o" 5114 LUA_PRO="if_lua.pro" 5115 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5116 5117 fi 5118 if test "$enable_luainterp" = "dynamic"; then 5119 if test "x$vi_cv_with_luajit" != "xno"; then 5120 luajit="jit" 5121 fi 5122 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5123 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5124 else 5125 if test "x$MACOSX" = "xyes"; then 5126 ext="dylib" 5127 indexes="" 5128 else 5129 ext="so" 5130 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5131 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5132 if test "X$multiarch" != "X"; then 5133 lib_multiarch="lib/${multiarch}" 5134 fi 5135 fi 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5137$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5138 for subdir in "${lib_multiarch}" lib64 lib; do 5139 if test -z "$subdir"; then 5140 continue 5141 fi 5142 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5143 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5144 for i in $indexes ""; do 5145 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5146 sover2="$i" 5147 break 3 5148 fi 5149 done 5150 done 5151 sover="" 5152 done 5153 if test "X$sover" = "X"; then 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5155$as_echo "no" >&6; } 5156 lua_ok="no" 5157 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5158 else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5160$as_echo "yes" >&6; } 5161 lua_ok="yes" 5162 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5163 fi 5164 fi 5165 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5166 5167 LUA_LIBS="" 5168 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5169 fi 5170 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5171 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5172 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5173 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5174 fi 5175 fi 5176 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5177 as_fn_error $? "could not configure lua" "$LINENO" 5 5178 fi 5179 5180 5181 5182 5183 5184fi 5185 5186 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5188$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5189# Check whether --enable-mzschemeinterp was given. 5190if test "${enable_mzschemeinterp+set}" = set; then : 5191 enableval=$enable_mzschemeinterp; 5192else 5193 enable_mzschemeinterp="no" 5194fi 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5197$as_echo "$enable_mzschemeinterp" >&6; } 5198 5199if test "$enable_mzschemeinterp" = "yes"; then 5200 5201 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5203$as_echo_n "checking --with-plthome argument... " >&6; } 5204 5205# Check whether --with-plthome was given. 5206if test "${with_plthome+set}" = set; then : 5207 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5208$as_echo "$with_plthome" >&6; } 5209else 5210 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5211$as_echo "\"no\"" >&6; } 5212fi 5213 5214 5215 if test "X$with_plthome" != "X"; then 5216 vi_cv_path_mzscheme_pfx="$with_plthome" 5217 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5218 else 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5220$as_echo_n "checking PLTHOME environment var... " >&6; } 5221 if test "X$PLTHOME" != "X"; then 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5223$as_echo "\"$PLTHOME\"" >&6; } 5224 vi_cv_path_mzscheme_pfx="$PLTHOME" 5225 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5226 else 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5228$as_echo "not set" >&6; } 5229 # Extract the first word of "mzscheme", so it can be a program name with args. 5230set dummy mzscheme; ac_word=$2 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5232$as_echo_n "checking for $ac_word... " >&6; } 5233if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 case $vi_cv_path_mzscheme in 5237 [\\/]* | ?:[\\/]*) 5238 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5239 ;; 5240 *) 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242for as_dir in $PATH 5243do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_exec_ext in '' $ac_executable_extensions; do 5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5248 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5250 break 2 5251 fi 5252done 5253 done 5254IFS=$as_save_IFS 5255 5256 ;; 5257esac 5258fi 5259vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5260if test -n "$vi_cv_path_mzscheme"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5262$as_echo "$vi_cv_path_mzscheme" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266fi 5267 5268 5269 5270 if test "X$vi_cv_path_mzscheme" != "X"; then 5271 lsout=`ls -l $vi_cv_path_mzscheme` 5272 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5273 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5274 fi 5275 fi 5276 5277 if test "X$vi_cv_path_mzscheme" != "X"; then 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5279$as_echo_n "checking MzScheme install prefix... " >&6; } 5280if ${vi_cv_path_mzscheme_pfx+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 echo "(display (simplify-path \ 5284 (build-path (call-with-values \ 5285 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5286 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5287 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5288 sed -e 's+/$++'` 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5291$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5292 rm -f mzdirs.scm 5293 fi 5294 fi 5295 fi 5296 5297 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5299$as_echo_n "checking for racket include directory... " >&6; } 5300 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5301 if test "X$SCHEME_INC" != "X"; then 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5303$as_echo "${SCHEME_INC}" >&6; } 5304 else 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5306$as_echo "not found" >&6; } 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5308$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5309 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5310 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5312$as_echo "yes" >&6; } 5313 else 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315$as_echo "no" >&6; } 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5317$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5318 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5320$as_echo "yes" >&6; } 5321 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5322 else 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5324$as_echo "no" >&6; } 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5326$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5327 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5329$as_echo "yes" >&6; } 5330 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5331 else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333$as_echo "no" >&6; } 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5335$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5336 if test -f /usr/include/plt/scheme.h; then 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5338$as_echo "yes" >&6; } 5339 SCHEME_INC=/usr/include/plt 5340 else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342$as_echo "no" >&6; } 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5344$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5345 if test -f /usr/include/racket/scheme.h; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5347$as_echo "yes" >&6; } 5348 SCHEME_INC=/usr/include/racket 5349 else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352 vi_cv_path_mzscheme_pfx= 5353 fi 5354 fi 5355 fi 5356 fi 5357 fi 5358 fi 5359 fi 5360 5361 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5364$as_echo_n "checking for racket lib directory... " >&6; } 5365 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5366 if test "X$SCHEME_LIB" != "X"; then 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5368$as_echo "${SCHEME_LIB}" >&6; } 5369 else 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5371$as_echo "not found" >&6; } 5372 fi 5373 5374 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5375 if test "X$path" != "X"; then 5376 if test "x$MACOSX" = "xyes"; then 5377 MZSCHEME_LIBS="-framework Racket" 5378 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5379 elif test -f "${path}/libmzscheme3m.a"; then 5380 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5381 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5382 elif test -f "${path}/libracket3m.a"; then 5383 MZSCHEME_LIBS="${path}/libracket3m.a" 5384 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5385 elif test -f "${path}/libracket.a"; then 5386 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5387 elif test -f "${path}/libmzscheme.a"; then 5388 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5389 else 5390 if test -f "${path}/libmzscheme3m.so"; then 5391 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5392 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5393 elif test -f "${path}/libracket3m.so"; then 5394 MZSCHEME_LIBS="-L${path} -lracket3m" 5395 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5396 elif test -f "${path}/libracket.so"; then 5397 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5398 else 5399 if test "$path" != "$SCHEME_LIB"; then 5400 continue 5401 fi 5402 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5403 fi 5404 if test "$GCC" = yes; then 5405 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5406 elif test "`(uname) 2>/dev/null`" = SunOS && 5407 uname -r | grep '^5' >/dev/null; then 5408 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5409 fi 5410 fi 5411 fi 5412 if test "X$MZSCHEME_LIBS" != "X"; then 5413 break 5414 fi 5415 done 5416 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5418$as_echo_n "checking if racket requires -pthread... " >&6; } 5419 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5421$as_echo "yes" >&6; } 5422 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5423 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5424 else 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5426$as_echo "no" >&6; } 5427 fi 5428 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5430$as_echo_n "checking for racket config directory... " >&6; } 5431 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5432 if test "X$SCHEME_CONFIGDIR" != "X"; then 5433 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5435$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5436 else 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5438$as_echo "not found" >&6; } 5439 fi 5440 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5442$as_echo_n "checking for racket collects directory... " >&6; } 5443 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))))'` 5444 if test "X$SCHEME_COLLECTS" = "X"; then 5445 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5446 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5447 else 5448 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5449 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5450 else 5451 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5452 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5453 else 5454 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5455 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5456 fi 5457 fi 5458 fi 5459 fi 5460 fi 5461 if test "X$SCHEME_COLLECTS" != "X" ; then 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5463$as_echo "${SCHEME_COLLECTS}" >&6; } 5464 else 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5466$as_echo "not found" >&6; } 5467 fi 5468 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5470$as_echo_n "checking for mzscheme_base.c... " >&6; } 5471 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5472 MZSCHEME_EXTRA="mzscheme_base.c" 5473 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5474 MZSCHEME_MOD="++lib scheme/base" 5475 else 5476 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5477 MZSCHEME_EXTRA="mzscheme_base.c" 5478 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5479 MZSCHEME_MOD="++lib scheme/base" 5480 else 5481 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5482 MZSCHEME_EXTRA="mzscheme_base.c" 5483 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5484 MZSCHEME_MOD="" 5485 fi 5486 fi 5487 fi 5488 if test "X$MZSCHEME_EXTRA" != "X" ; then 5489 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5491$as_echo "needed" >&6; } 5492 else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5494$as_echo "not needed" >&6; } 5495 fi 5496 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5498$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5499if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 ac_check_lib_save_LIBS=$LIBS 5503LIBS="-lffi $LIBS" 5504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506 5507/* Override any GCC internal prototype to avoid an error. 5508 Use char because int might match the return type of a GCC 5509 builtin and then its argument prototype would still apply. */ 5510#ifdef __cplusplus 5511extern "C" 5512#endif 5513char ffi_type_void (); 5514int 5515main () 5516{ 5517return ffi_type_void (); 5518 ; 5519 return 0; 5520} 5521_ACEOF 5522if ac_fn_c_try_link "$LINENO"; then : 5523 ac_cv_lib_ffi_ffi_type_void=yes 5524else 5525 ac_cv_lib_ffi_ffi_type_void=no 5526fi 5527rm -f core conftest.err conftest.$ac_objext \ 5528 conftest$ac_exeext conftest.$ac_ext 5529LIBS=$ac_check_lib_save_LIBS 5530fi 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5532$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5533if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5534 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5535fi 5536 5537 5538 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5539 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5540 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5542$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5543 cflags_save=$CFLAGS 5544 libs_save=$LIBS 5545 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5546 LIBS="$LIBS $MZSCHEME_LIBS" 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549 5550int 5551main () 5552{ 5553 5554 ; 5555 return 0; 5556} 5557_ACEOF 5558if ac_fn_c_try_link "$LINENO"; then : 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5560$as_echo "yes" >&6; }; mzs_ok=yes 5561else 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5563$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext \ 5566 conftest$ac_exeext conftest.$ac_ext 5567 CFLAGS=$cflags_save 5568 LIBS=$libs_save 5569 if test $mzs_ok = yes; then 5570 MZSCHEME_SRC="if_mzsch.c" 5571 MZSCHEME_OBJ="objects/if_mzsch.o" 5572 MZSCHEME_PRO="if_mzsch.pro" 5573 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5574 5575 else 5576 MZSCHEME_CFLAGS= 5577 MZSCHEME_LIBS= 5578 MZSCHEME_EXTRA= 5579 MZSCHEME_MZC= 5580 fi 5581 fi 5582 5583 5584 5585 5586 5587 5588 5589fi 5590 5591 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5593$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5594# Check whether --enable-perlinterp was given. 5595if test "${enable_perlinterp+set}" = set; then : 5596 enableval=$enable_perlinterp; 5597else 5598 enable_perlinterp="no" 5599fi 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5602$as_echo "$enable_perlinterp" >&6; } 5603if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5604 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5605 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5606 fi 5607 5608 # Extract the first word of "perl", so it can be a program name with args. 5609set dummy perl; ac_word=$2 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5611$as_echo_n "checking for $ac_word... " >&6; } 5612if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 case $vi_cv_path_perl in 5616 [\\/]* | ?:[\\/]*) 5617 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5618 ;; 5619 *) 5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5621for as_dir in $PATH 5622do 5623 IFS=$as_save_IFS 5624 test -z "$as_dir" && as_dir=. 5625 for ac_exec_ext in '' $ac_executable_extensions; do 5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5627 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5629 break 2 5630 fi 5631done 5632 done 5633IFS=$as_save_IFS 5634 5635 ;; 5636esac 5637fi 5638vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5639if test -n "$vi_cv_path_perl"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5641$as_echo "$vi_cv_path_perl" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 5648 if test "X$vi_cv_path_perl" != "X"; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5650$as_echo_n "checking Perl version... " >&6; } 5651 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5652 eval `$vi_cv_path_perl -V:usethreads` 5653 eval `$vi_cv_path_perl -V:libperl` 5654 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5655 badthreads=no 5656 else 5657 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5658 eval `$vi_cv_path_perl -V:use5005threads` 5659 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5660 badthreads=no 5661 else 5662 badthreads=yes 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5664$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5665 fi 5666 else 5667 badthreads=yes 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5669$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5670 fi 5671 fi 5672 if test $badthreads = no; then 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5674$as_echo "OK" >&6; } 5675 eval `$vi_cv_path_perl -V:shrpenv` 5676 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5677 shrpenv="" 5678 fi 5679 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5680 5681 vi_cv_perl_extutils=unknown_perl_extutils_path 5682 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5683 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5684 if test -f "$xsubpp_path"; then 5685 vi_cv_perl_xsubpp="$xsubpp_path" 5686 fi 5687 done 5688 5689 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5690 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5691 -e 's/-fdebug-prefix-map[^ ]*//g'` 5692 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5693 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5694 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5695 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5696 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5697 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5699$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5700 cflags_save=$CFLAGS 5701 libs_save=$LIBS 5702 ldflags_save=$LDFLAGS 5703 CFLAGS="$CFLAGS $perlcppflags" 5704 LIBS="$LIBS $perllibs" 5705 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5706 LDFLAGS="$perlldflags $LDFLAGS" 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709 5710int 5711main () 5712{ 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718if ac_fn_c_try_link "$LINENO"; then : 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5720$as_echo "yes" >&6; }; perl_ok=yes 5721else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5723$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5724fi 5725rm -f core conftest.err conftest.$ac_objext \ 5726 conftest$ac_exeext conftest.$ac_ext 5727 CFLAGS=$cflags_save 5728 LIBS=$libs_save 5729 LDFLAGS=$ldflags_save 5730 if test $perl_ok = yes; then 5731 if test "X$perlcppflags" != "X"; then 5732 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5733 fi 5734 if test "X$perlldflags" != "X"; then 5735 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5736 LDFLAGS="$perlldflags $LDFLAGS" 5737 fi 5738 fi 5739 PERL_LIBS=$perllibs 5740 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5741 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5742 PERL_PRO="if_perl.pro if_perlsfio.pro" 5743 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5744 5745 fi 5746 fi 5747 else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5749$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5750 fi 5751 fi 5752 5753 if test "x$MACOSX" = "xyes"; then 5754 dir=/System/Library/Perl 5755 darwindir=$dir/darwin 5756 if test -d $darwindir; then 5757 PERL=/usr/bin/perl 5758 else 5759 dir=/System/Library/Perl/5.8.1 5760 darwindir=$dir/darwin-thread-multi-2level 5761 if test -d $darwindir; then 5762 PERL=/usr/bin/perl 5763 fi 5764 fi 5765 if test -n "$PERL"; then 5766 PERL_DIR="$dir" 5767 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5768 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5769 PERL_LIBS="-L$darwindir/CORE -lperl" 5770 fi 5771 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5772 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5773 fi 5774 if test "$enable_perlinterp" = "dynamic"; then 5775 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5776 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5777 5778 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5779 fi 5780 fi 5781 5782 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5783 as_fn_error $? "could not configure perl" "$LINENO" 5 5784 fi 5785fi 5786 5787 5788 5789 5790 5791 5792 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5794$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5795# Check whether --enable-pythoninterp was given. 5796if test "${enable_pythoninterp+set}" = set; then : 5797 enableval=$enable_pythoninterp; 5798else 5799 enable_pythoninterp="no" 5800fi 5801 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5803$as_echo "$enable_pythoninterp" >&6; } 5804if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5805 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5806 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5807 fi 5808 5809 for ac_prog in python2 python 5810do 5811 # Extract the first word of "$ac_prog", so it can be a program name with args. 5812set dummy $ac_prog; ac_word=$2 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5814$as_echo_n "checking for $ac_word... " >&6; } 5815if ${ac_cv_path_vi_cv_path_python+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817else 5818 case $vi_cv_path_python in 5819 [\\/]* | ?:[\\/]*) 5820 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5821 ;; 5822 *) 5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5830 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834done 5835 done 5836IFS=$as_save_IFS 5837 5838 ;; 5839esac 5840fi 5841vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5842if test -n "$vi_cv_path_python"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5844$as_echo "$vi_cv_path_python" >&6; } 5845else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847$as_echo "no" >&6; } 5848fi 5849 5850 5851 test -n "$vi_cv_path_python" && break 5852done 5853 5854 if test "X$vi_cv_path_python" != "X"; then 5855 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5857$as_echo_n "checking Python version... " >&6; } 5858if ${vi_cv_var_python_version+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 vi_cv_var_python_version=` 5862 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5863 5864fi 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5866$as_echo "$vi_cv_var_python_version" >&6; } 5867 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5869$as_echo_n "checking Python is 2.3 or better... " >&6; } 5870 if ${vi_cv_path_python} -c \ 5871 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5872 then 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5874$as_echo "yep" >&6; } 5875 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5877$as_echo_n "checking Python's install prefix... " >&6; } 5878if ${vi_cv_path_python_pfx+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 vi_cv_path_python_pfx=` 5882 ${vi_cv_path_python} -c \ 5883 "import sys; print sys.prefix"` 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5886$as_echo "$vi_cv_path_python_pfx" >&6; } 5887 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5889$as_echo_n "checking Python's execution prefix... " >&6; } 5890if ${vi_cv_path_python_epfx+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 vi_cv_path_python_epfx=` 5894 ${vi_cv_path_python} -c \ 5895 "import sys; print sys.exec_prefix"` 5896fi 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5898$as_echo "$vi_cv_path_python_epfx" >&6; } 5899 5900 5901 if ${vi_cv_path_pythonpath+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 vi_cv_path_pythonpath=` 5905 unset PYTHONPATH; 5906 ${vi_cv_path_python} -c \ 5907 "import sys, string; print string.join(sys.path,':')"` 5908fi 5909 5910 5911 5912 5913# Check whether --with-python-config-dir was given. 5914if test "${with_python_config_dir+set}" = set; then : 5915 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5916fi 5917 5918 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5920$as_echo_n "checking Python's configuration directory... " >&6; } 5921if ${vi_cv_path_python_conf+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 5925 vi_cv_path_python_conf= 5926 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5927 if test -d "$d" && test -f "$d/config.c"; then 5928 vi_cv_path_python_conf="$d" 5929 else 5930 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5931 for subdir in lib64 lib share; do 5932 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5933 if test -d "$d" && test -f "$d/config.c"; then 5934 vi_cv_path_python_conf="$d" 5935 fi 5936 done 5937 done 5938 fi 5939 5940fi 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5942$as_echo "$vi_cv_path_python_conf" >&6; } 5943 5944 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5945 5946 if test "X$PYTHON_CONFDIR" = "X"; then 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5948$as_echo "can't find it!" >&6; } 5949 else 5950 5951 if ${vi_cv_path_python_plibs+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 5955 pwd=`pwd` 5956 tmp_mkf="$pwd/config-PyMake$$" 5957 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5958__: 5959 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5960 @echo "python_LIBS='$(LIBS)'" 5961 @echo "python_SYSLIBS='$(SYSLIBS)'" 5962 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5963 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5964 @echo "python_INSTSONAME='$(INSTSONAME)'" 5965 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 5966 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 5967 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 5968eof 5969 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5970 rm -f -- "${tmp_mkf}" 5971 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5972 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5973 vi_cv_path_python_plibs="-framework Python" 5974 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5975 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 5976 fi 5977 else 5978 if test "${vi_cv_var_python_version}" = "1.4"; then 5979 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5980 else 5981 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5982 fi 5983 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5984 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 5985 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 5986 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5987 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 5988 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5989 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 5990 fi 5991 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 5992 fi 5993 fi 5994 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5995 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5996 fi 5997 5998fi 5999 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6001$as_echo_n "checking Python's dll name... " >&6; } 6002if ${vi_cv_dll_name_python+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 6006 if test "X$python_DLLLIBRARY" != "X"; then 6007 vi_cv_dll_name_python="$python_DLLLIBRARY" 6008 else 6009 vi_cv_dll_name_python="$python_INSTSONAME" 6010 fi 6011 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6014$as_echo "$vi_cv_dll_name_python" >&6; } 6015 6016 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6017 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6018 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6019 else 6020 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6021 fi 6022 PYTHON_SRC="if_python.c" 6023 PYTHON_OBJ="objects/if_python.o" 6024 if test "${vi_cv_var_python_version}" = "1.4"; then 6025 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6026 fi 6027 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6028 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6030$as_echo_n "checking if -pthread should be used... " >&6; } 6031 threadsafe_flag= 6032 thread_lib= 6033 if test "`(uname) 2>/dev/null`" != Darwin; then 6034 test "$GCC" = yes && threadsafe_flag="-pthread" 6035 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6036 threadsafe_flag="-D_THREAD_SAFE" 6037 thread_lib="-pthread" 6038 fi 6039 if test "`(uname) 2>/dev/null`" = SunOS; then 6040 threadsafe_flag="-pthreads" 6041 fi 6042 fi 6043 libs_save_old=$LIBS 6044 if test -n "$threadsafe_flag"; then 6045 cflags_save=$CFLAGS 6046 CFLAGS="$CFLAGS $threadsafe_flag" 6047 LIBS="$LIBS $thread_lib" 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_link "$LINENO"; then : 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6061$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6062else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6064$as_echo "no" >&6; }; LIBS=$libs_save_old 6065 6066fi 6067rm -f core conftest.err conftest.$ac_objext \ 6068 conftest$ac_exeext conftest.$ac_ext 6069 CFLAGS=$cflags_save 6070 else 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6072$as_echo "no" >&6; } 6073 fi 6074 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6076$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6077 cflags_save=$CFLAGS 6078 libs_save=$LIBS 6079 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6080 LIBS="$LIBS $PYTHON_LIBS" 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083 6084int 6085main () 6086{ 6087 6088 ; 6089 return 0; 6090} 6091_ACEOF 6092if ac_fn_c_try_link "$LINENO"; then : 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6094$as_echo "yes" >&6; }; python_ok=yes 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6097$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext \ 6100 conftest$ac_exeext conftest.$ac_ext 6101 CFLAGS=$cflags_save 6102 LIBS=$libs_save 6103 if test $python_ok = yes; then 6104 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6105 6106 else 6107 LIBS=$libs_save_old 6108 PYTHON_SRC= 6109 PYTHON_OBJ= 6110 PYTHON_LIBS= 6111 PYTHON_CFLAGS= 6112 fi 6113 fi 6114 else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6116$as_echo "too old" >&6; } 6117 fi 6118 fi 6119 6120 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6121 as_fn_error $? "could not configure python" "$LINENO" 5 6122 fi 6123fi 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6134$as_echo_n "checking --enable-python3interp argument... " >&6; } 6135# Check whether --enable-python3interp was given. 6136if test "${enable_python3interp+set}" = set; then : 6137 enableval=$enable_python3interp; 6138else 6139 enable_python3interp="no" 6140fi 6141 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6143$as_echo "$enable_python3interp" >&6; } 6144if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6145 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6146 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6147 fi 6148 6149 for ac_prog in python3 python 6150do 6151 # Extract the first word of "$ac_prog", so it can be a program name with args. 6152set dummy $ac_prog; ac_word=$2 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154$as_echo_n "checking for $ac_word... " >&6; } 6155if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 case $vi_cv_path_python3 in 6159 [\\/]* | ?:[\\/]*) 6160 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6161 ;; 6162 *) 6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6164for as_dir in $PATH 6165do 6166 IFS=$as_save_IFS 6167 test -z "$as_dir" && as_dir=. 6168 for ac_exec_ext in '' $ac_executable_extensions; do 6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6170 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6172 break 2 6173 fi 6174done 6175 done 6176IFS=$as_save_IFS 6177 6178 ;; 6179esac 6180fi 6181vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6182if test -n "$vi_cv_path_python3"; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6184$as_echo "$vi_cv_path_python3" >&6; } 6185else 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 6191 test -n "$vi_cv_path_python3" && break 6192done 6193 6194 if test "X$vi_cv_path_python3" != "X"; then 6195 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6197$as_echo_n "checking Python version... " >&6; } 6198if ${vi_cv_var_python3_version+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 vi_cv_var_python3_version=` 6202 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6203 6204fi 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6206$as_echo "$vi_cv_var_python3_version" >&6; } 6207 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6209$as_echo_n "checking Python is 3.0 or better... " >&6; } 6210 if ${vi_cv_path_python3} -c \ 6211 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6212 then 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6214$as_echo "yep" >&6; } 6215 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6217$as_echo_n "checking Python's abiflags... " >&6; } 6218if ${vi_cv_var_python3_abiflags+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 6222 vi_cv_var_python3_abiflags= 6223 if ${vi_cv_path_python3} -c \ 6224 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6225 then 6226 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6227 "import sys; print(sys.abiflags)"` 6228 fi 6229fi 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6231$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6232 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6234$as_echo_n "checking Python's install prefix... " >&6; } 6235if ${vi_cv_path_python3_pfx+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 vi_cv_path_python3_pfx=` 6239 ${vi_cv_path_python3} -c \ 6240 "import sys; print(sys.prefix)"` 6241fi 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6243$as_echo "$vi_cv_path_python3_pfx" >&6; } 6244 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6246$as_echo_n "checking Python's execution prefix... " >&6; } 6247if ${vi_cv_path_python3_epfx+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 vi_cv_path_python3_epfx=` 6251 ${vi_cv_path_python3} -c \ 6252 "import sys; print(sys.exec_prefix)"` 6253fi 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6255$as_echo "$vi_cv_path_python3_epfx" >&6; } 6256 6257 6258 if ${vi_cv_path_python3path+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 vi_cv_path_python3path=` 6262 unset PYTHONPATH; 6263 ${vi_cv_path_python3} -c \ 6264 "import sys, string; print(':'.join(sys.path))"` 6265fi 6266 6267 6268 6269 6270# Check whether --with-python3-config-dir was given. 6271if test "${with_python3_config_dir+set}" = set; then : 6272 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6273fi 6274 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6277$as_echo_n "checking Python's configuration directory... " >&6; } 6278if ${vi_cv_path_python3_conf+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 6282 vi_cv_path_python3_conf= 6283 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6284 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6285 if test -d "$d" && test -f "$d/config.c"; then 6286 vi_cv_path_python3_conf="$d" 6287 else 6288 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6289 for subdir in lib64 lib share; do 6290 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6291 if test -d "$d" && test -f "$d/config.c"; then 6292 vi_cv_path_python3_conf="$d" 6293 fi 6294 done 6295 done 6296 fi 6297 6298fi 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6300$as_echo "$vi_cv_path_python3_conf" >&6; } 6301 6302 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6303 6304 if test "X$PYTHON3_CONFDIR" = "X"; then 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6306$as_echo "can't find it!" >&6; } 6307 else 6308 6309 if ${vi_cv_path_python3_plibs+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 6313 pwd=`pwd` 6314 tmp_mkf="$pwd/config-PyMake$$" 6315 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6316__: 6317 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6318 @echo "python3_LIBS='$(LIBS)'" 6319 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6320 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6321 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6322eof 6323 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6324 rm -f -- "${tmp_mkf}" 6325 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6326 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6327 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6328 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6329 6330fi 6331 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6333$as_echo_n "checking Python3's dll name... " >&6; } 6334if ${vi_cv_dll_name_python3+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 6338 if test "X$python3_DLLLIBRARY" != "X"; then 6339 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6340 else 6341 vi_cv_dll_name_python3="$python3_INSTSONAME" 6342 fi 6343 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6346$as_echo "$vi_cv_dll_name_python3" >&6; } 6347 6348 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6349 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6350 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6351 else 6352 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6353 fi 6354 PYTHON3_SRC="if_python3.c" 6355 PYTHON3_OBJ="objects/if_python3.o" 6356 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6358$as_echo_n "checking if -pthread should be used... " >&6; } 6359 threadsafe_flag= 6360 thread_lib= 6361 if test "`(uname) 2>/dev/null`" != Darwin; then 6362 test "$GCC" = yes && threadsafe_flag="-pthread" 6363 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6364 threadsafe_flag="-D_THREAD_SAFE" 6365 thread_lib="-pthread" 6366 fi 6367 if test "`(uname) 2>/dev/null`" = SunOS; then 6368 threadsafe_flag="-pthreads" 6369 fi 6370 fi 6371 libs_save_old=$LIBS 6372 if test -n "$threadsafe_flag"; then 6373 cflags_save=$CFLAGS 6374 CFLAGS="$CFLAGS $threadsafe_flag" 6375 LIBS="$LIBS $thread_lib" 6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6377/* end confdefs.h. */ 6378 6379int 6380main () 6381{ 6382 6383 ; 6384 return 0; 6385} 6386_ACEOF 6387if ac_fn_c_try_link "$LINENO"; then : 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6389$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6390else 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6392$as_echo "no" >&6; }; LIBS=$libs_save_old 6393 6394fi 6395rm -f core conftest.err conftest.$ac_objext \ 6396 conftest$ac_exeext conftest.$ac_ext 6397 CFLAGS=$cflags_save 6398 else 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6400$as_echo "no" >&6; } 6401 fi 6402 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6404$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6405 cflags_save=$CFLAGS 6406 libs_save=$LIBS 6407 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6408 LIBS="$LIBS $PYTHON3_LIBS" 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411 6412int 6413main () 6414{ 6415 6416 ; 6417 return 0; 6418} 6419_ACEOF 6420if ac_fn_c_try_link "$LINENO"; then : 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6422$as_echo "yes" >&6; }; python3_ok=yes 6423else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6425$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext \ 6428 conftest$ac_exeext conftest.$ac_ext 6429 CFLAGS=$cflags_save 6430 LIBS=$libs_save 6431 if test "$python3_ok" = yes; then 6432 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6433 6434 else 6435 LIBS=$libs_save_old 6436 PYTHON3_SRC= 6437 PYTHON3_OBJ= 6438 PYTHON3_LIBS= 6439 PYTHON3_CFLAGS= 6440 fi 6441 fi 6442 else 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6444$as_echo "too old" >&6; } 6445 fi 6446 fi 6447 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6448 as_fn_error $? "could not configure python3" "$LINENO" 5 6449 fi 6450fi 6451 6452 6453 6454 6455 6456 6457 6458if test "$python_ok" = yes && test "$python3_ok" = yes; then 6459 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6460 6461 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6462 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6464$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6465 cflags_save=$CFLAGS 6466 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6467 libs_save=$LIBS 6468 LIBS="-ldl $LIBS" 6469 if test "$cross_compiling" = yes; then : 6470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6472as_fn_error $? "cannot run test program while cross compiling 6473See \`config.log' for more details" "$LINENO" 5; } 6474else 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477 6478 #include <dlfcn.h> 6479 /* If this program fails, then RTLD_GLOBAL is needed. 6480 * RTLD_GLOBAL will be used and then it is not possible to 6481 * have both python versions enabled in the same vim instance. 6482 * Only the first python version used will be switched on. 6483 */ 6484 6485 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6486 { 6487 int needed = 0; 6488 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6489 if (pylib != 0) 6490 { 6491 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6492 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6493 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6494 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6495 (*pfx)(prefix); 6496 (*init)(); 6497 needed = (*simple)("import termios") == -1; 6498 (*final)(); 6499 dlclose(pylib); 6500 } 6501 return !needed; 6502 } 6503 6504 int main(int argc, char** argv) 6505 { 6506 int not_needed = 0; 6507 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6508 not_needed = 1; 6509 return !not_needed; 6510 } 6511_ACEOF 6512if ac_fn_c_try_run "$LINENO"; then : 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6514$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6515 6516else 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6518$as_echo "no" >&6; } 6519fi 6520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6521 conftest.$ac_objext conftest.beam conftest.$ac_ext 6522fi 6523 6524 6525 CFLAGS=$cflags_save 6526 LIBS=$libs_save 6527 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6529$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6530 cflags_save=$CFLAGS 6531 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6532 libs_save=$LIBS 6533 LIBS="-ldl $LIBS" 6534 if test "$cross_compiling" = yes; then : 6535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6537as_fn_error $? "cannot run test program while cross compiling 6538See \`config.log' for more details" "$LINENO" 5; } 6539else 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542 6543 #include <dlfcn.h> 6544 #include <wchar.h> 6545 /* If this program fails, then RTLD_GLOBAL is needed. 6546 * RTLD_GLOBAL will be used and then it is not possible to 6547 * have both python versions enabled in the same vim instance. 6548 * Only the first python version used will be switched on. 6549 */ 6550 6551 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6552 { 6553 int needed = 0; 6554 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6555 if (pylib != 0) 6556 { 6557 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6558 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6559 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6560 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6561 (*pfx)(prefix); 6562 (*init)(); 6563 needed = (*simple)("import termios") == -1; 6564 (*final)(); 6565 dlclose(pylib); 6566 } 6567 return !needed; 6568 } 6569 6570 int main(int argc, char** argv) 6571 { 6572 int not_needed = 0; 6573 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6574 not_needed = 1; 6575 return !not_needed; 6576 } 6577_ACEOF 6578if ac_fn_c_try_run "$LINENO"; then : 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6580$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6581 6582else 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6584$as_echo "no" >&6; } 6585fi 6586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6587 conftest.$ac_objext conftest.beam conftest.$ac_ext 6588fi 6589 6590 6591 CFLAGS=$cflags_save 6592 LIBS=$libs_save 6593 6594 PYTHON_SRC="if_python.c" 6595 PYTHON_OBJ="objects/if_python.o" 6596 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6597 PYTHON_LIBS= 6598 PYTHON3_SRC="if_python3.c" 6599 PYTHON3_OBJ="objects/if_python3.o" 6600 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6601 PYTHON3_LIBS= 6602elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6603 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6604 6605 PYTHON_SRC="if_python.c" 6606 PYTHON_OBJ="objects/if_python.o" 6607 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6608 PYTHON_LIBS= 6609elif test "$python_ok" = yes; then 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6611$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6612 cflags_save=$CFLAGS 6613 libs_save=$LIBS 6614 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6615 LIBS="$LIBS $PYTHON_LIBS" 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618 6619int 6620main () 6621{ 6622 6623 ; 6624 return 0; 6625} 6626_ACEOF 6627if ac_fn_c_try_link "$LINENO"; then : 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6629$as_echo "yes" >&6; }; fpie_ok=yes 6630else 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6632$as_echo "no" >&6; }; fpie_ok=no 6633fi 6634rm -f core conftest.err conftest.$ac_objext \ 6635 conftest$ac_exeext conftest.$ac_ext 6636 CFLAGS=$cflags_save 6637 LIBS=$libs_save 6638 if test $fpie_ok = yes; then 6639 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6640 fi 6641elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6642 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6643 6644 PYTHON3_SRC="if_python3.c" 6645 PYTHON3_OBJ="objects/if_python3.o" 6646 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6647 PYTHON3_LIBS= 6648elif test "$python3_ok" = yes; then 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6650$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6651 cflags_save=$CFLAGS 6652 libs_save=$LIBS 6653 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6654 LIBS="$LIBS $PYTHON3_LIBS" 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656/* end confdefs.h. */ 6657 6658int 6659main () 6660{ 6661 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666if ac_fn_c_try_link "$LINENO"; then : 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6668$as_echo "yes" >&6; }; fpie_ok=yes 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; }; fpie_ok=no 6672fi 6673rm -f core conftest.err conftest.$ac_objext \ 6674 conftest$ac_exeext conftest.$ac_ext 6675 CFLAGS=$cflags_save 6676 LIBS=$libs_save 6677 if test $fpie_ok = yes; then 6678 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6679 fi 6680fi 6681 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6683$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6684# Check whether --enable-tclinterp was given. 6685if test "${enable_tclinterp+set}" = set; then : 6686 enableval=$enable_tclinterp; 6687else 6688 enable_tclinterp="no" 6689fi 6690 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6692$as_echo "$enable_tclinterp" >&6; } 6693 6694if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6695 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6697$as_echo_n "checking --with-tclsh argument... " >&6; } 6698 6699# Check whether --with-tclsh was given. 6700if test "${with_tclsh+set}" = set; then : 6701 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6702$as_echo "$tclsh_name" >&6; } 6703else 6704 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; } 6706fi 6707 6708 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6709set dummy $tclsh_name; ac_word=$2 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711$as_echo_n "checking for $ac_word... " >&6; } 6712if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 case $vi_cv_path_tcl in 6716 [\\/]* | ?:[\\/]*) 6717 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6718 ;; 6719 *) 6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6727 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732 done 6733IFS=$as_save_IFS 6734 6735 ;; 6736esac 6737fi 6738vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6739if test -n "$vi_cv_path_tcl"; then 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6741$as_echo "$vi_cv_path_tcl" >&6; } 6742else 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6744$as_echo "no" >&6; } 6745fi 6746 6747 6748 6749 6750 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6751 tclsh_name="tclsh8.4" 6752 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6753set dummy $tclsh_name; ac_word=$2 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6755$as_echo_n "checking for $ac_word... " >&6; } 6756if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 case $vi_cv_path_tcl in 6760 [\\/]* | ?:[\\/]*) 6761 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6762 ;; 6763 *) 6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6771 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776 done 6777IFS=$as_save_IFS 6778 6779 ;; 6780esac 6781fi 6782vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6783if test -n "$vi_cv_path_tcl"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6785$as_echo "$vi_cv_path_tcl" >&6; } 6786else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6788$as_echo "no" >&6; } 6789fi 6790 6791 6792 fi 6793 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6794 tclsh_name="tclsh8.2" 6795 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6796set dummy $tclsh_name; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 case $vi_cv_path_tcl in 6803 [\\/]* | ?:[\\/]*) 6804 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6805 ;; 6806 *) 6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6814 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822 ;; 6823esac 6824fi 6825vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6826if test -n "$vi_cv_path_tcl"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6828$as_echo "$vi_cv_path_tcl" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835 fi 6836 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6837 tclsh_name="tclsh8.0" 6838 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6839set dummy $tclsh_name; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 case $vi_cv_path_tcl in 6846 [\\/]* | ?:[\\/]*) 6847 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6848 ;; 6849 *) 6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865 ;; 6866esac 6867fi 6868vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6869if test -n "$vi_cv_path_tcl"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6871$as_echo "$vi_cv_path_tcl" >&6; } 6872else 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6874$as_echo "no" >&6; } 6875fi 6876 6877 6878 fi 6879 if test "X$vi_cv_path_tcl" = "X"; then 6880 tclsh_name="tclsh" 6881 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6882set dummy $tclsh_name; ac_word=$2 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884$as_echo_n "checking for $ac_word... " >&6; } 6885if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 case $vi_cv_path_tcl in 6889 [\\/]* | ?:[\\/]*) 6890 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6891 ;; 6892 *) 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6900 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908 ;; 6909esac 6910fi 6911vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6912if test -n "$vi_cv_path_tcl"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6914$as_echo "$vi_cv_path_tcl" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921 fi 6922 if test "X$vi_cv_path_tcl" != "X"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6924$as_echo_n "checking Tcl version... " >&6; } 6925 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6926 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6928$as_echo "$tclver - OK" >&6; }; 6929 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 -` 6930 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6931 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6933$as_echo_n "checking for location of Tcl include... " >&6; } 6934 if test "x$MACOSX" != "xyes"; then 6935 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6936 else 6937 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6938 fi 6939 TCL_INC= 6940 for try in $tclinc; do 6941 if test -f "$try/tcl.h"; then 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6943$as_echo "$try/tcl.h" >&6; } 6944 TCL_INC=$try 6945 break 6946 fi 6947 done 6948 if test -z "$TCL_INC"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6950$as_echo "<not found>" >&6; } 6951 SKIP_TCL=YES 6952 fi 6953 if test -z "$SKIP_TCL"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6955$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6956 if test "x$MACOSX" != "xyes"; then 6957 tclcnf=`echo $tclinc | sed s/include/lib/g` 6958 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6959 else 6960 tclcnf="/System/Library/Frameworks/Tcl.framework" 6961 fi 6962 for try in $tclcnf; do 6963 if test -f "$try/tclConfig.sh"; then 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6965$as_echo "$try/tclConfig.sh" >&6; } 6966 . "$try/tclConfig.sh" 6967 if test "$enable_tclinterp" = "dynamic"; then 6968 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 6969 else 6970 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6971 fi 6972 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'` 6973 break 6974 fi 6975 done 6976 if test -z "$TCL_LIBS"; then 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6978$as_echo "<not found>" >&6; } 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 6980$as_echo_n "checking for Tcl library by myself... " >&6; } 6981 tcllib=`echo $tclinc | sed s/include/lib/g` 6982 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 6983 for ext in .so .a ; do 6984 for ver in "" $tclver ; do 6985 for try in $tcllib ; do 6986 trylib=tcl$ver$ext 6987 if test -f "$try/lib$trylib" ; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 6989$as_echo "$try/lib$trylib" >&6; } 6990 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 6991 if test "`(uname) 2>/dev/null`" = SunOS && 6992 uname -r | grep '^5' >/dev/null; then 6993 TCL_LIBS="$TCL_LIBS -R $try" 6994 fi 6995 break 3 6996 fi 6997 done 6998 done 6999 done 7000 if test -z "$TCL_LIBS"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7002$as_echo "<not found>" >&6; } 7003 SKIP_TCL=YES 7004 fi 7005 fi 7006 if test -z "$SKIP_TCL"; then 7007 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7008 7009 TCL_SRC=if_tcl.c 7010 TCL_OBJ=objects/if_tcl.o 7011 TCL_PRO=if_tcl.pro 7012 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7013 fi 7014 fi 7015 else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7017$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7018 fi 7019 fi 7020 if test "$enable_tclinterp" = "dynamic"; then 7021 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7022 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7023 7024 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7025 fi 7026 fi 7027 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7028 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7029 fi 7030fi 7031 7032 7033 7034 7035 7036 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7038$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7039# Check whether --enable-rubyinterp was given. 7040if test "${enable_rubyinterp+set}" = set; then : 7041 enableval=$enable_rubyinterp; 7042else 7043 enable_rubyinterp="no" 7044fi 7045 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7047$as_echo "$enable_rubyinterp" >&6; } 7048if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7049 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7050 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7051 fi 7052 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7054$as_echo_n "checking --with-ruby-command argument... " >&6; } 7055 7056 7057# Check whether --with-ruby-command was given. 7058if test "${with_ruby_command+set}" = set; then : 7059 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7060$as_echo "$RUBY_CMD" >&6; } 7061else 7062 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7063$as_echo "defaulting to $RUBY_CMD" >&6; } 7064fi 7065 7066 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7067set dummy $RUBY_CMD; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 case $vi_cv_path_ruby in 7074 [\\/]* | ?:[\\/]*) 7075 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7076 ;; 7077 *) 7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7085 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090 done 7091IFS=$as_save_IFS 7092 7093 ;; 7094esac 7095fi 7096vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7097if test -n "$vi_cv_path_ruby"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7099$as_echo "$vi_cv_path_ruby" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 7106 if test "X$vi_cv_path_ruby" != "X"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7108$as_echo_n "checking Ruby version... " >&6; } 7109 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7111$as_echo "OK" >&6; } 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7113$as_echo_n "checking Ruby rbconfig... " >&6; } 7114 ruby_rbconfig="RbConfig" 7115 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7116 ruby_rbconfig="Config" 7117 fi 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7119$as_echo "$ruby_rbconfig" >&6; } 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7121$as_echo_n "checking Ruby header files... " >&6; } 7122 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7123 if test "X$rubyhdrdir" != "X"; then 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7125$as_echo "$rubyhdrdir" >&6; } 7126 RUBY_CFLAGS="-I$rubyhdrdir" 7127 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7128 if test -d "$rubyarchdir"; then 7129 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7130 fi 7131 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7132 if test "X$rubyversion" = "X"; then 7133 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7134 fi 7135 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7136 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7137 if test "X$rubylibs" != "X"; then 7138 RUBY_LIBS="$rubylibs" 7139 fi 7140 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7141 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7142 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7143 if test -f "$rubylibdir/$librubya"; then 7144 librubyarg="$librubyarg" 7145 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7146 elif test "$librubyarg" = "libruby.a"; then 7147 librubyarg="-lruby" 7148 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7149 fi 7150 7151 if test "X$librubyarg" != "X"; then 7152 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7153 fi 7154 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7155 if test "X$rubyldflags" != "X"; then 7156 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7157 if test "X$rubyldflags" != "X"; then 7158 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7159 LDFLAGS="$rubyldflags $LDFLAGS" 7160 fi 7161 fi 7162 fi 7163 RUBY_SRC="if_ruby.c" 7164 RUBY_OBJ="objects/if_ruby.o" 7165 RUBY_PRO="if_ruby.pro" 7166 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7167 7168 if test "$enable_rubyinterp" = "dynamic"; then 7169 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7170 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7171 7172 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7173 RUBY_LIBS= 7174 fi 7175 else 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7177$as_echo "not found; disabling Ruby" >&6; } 7178 fi 7179 else 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7181$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7182 fi 7183 fi 7184 7185 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7186 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7187 fi 7188fi 7189 7190 7191 7192 7193 7194 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7196$as_echo_n "checking --enable-cscope argument... " >&6; } 7197# Check whether --enable-cscope was given. 7198if test "${enable_cscope+set}" = set; then : 7199 enableval=$enable_cscope; 7200else 7201 enable_cscope="no" 7202fi 7203 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7205$as_echo "$enable_cscope" >&6; } 7206if test "$enable_cscope" = "yes"; then 7207 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7208 7209fi 7210 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7212$as_echo_n "checking --enable-workshop argument... " >&6; } 7213# Check whether --enable-workshop was given. 7214if test "${enable_workshop+set}" = set; then : 7215 enableval=$enable_workshop; 7216else 7217 enable_workshop="no" 7218fi 7219 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7221$as_echo "$enable_workshop" >&6; } 7222if test "$enable_workshop" = "yes"; then 7223 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7224 7225 WORKSHOP_SRC="workshop.c integration.c" 7226 7227 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7228 7229 if test "${enable_gui-xxx}" = xxx; then 7230 enable_gui=motif 7231 fi 7232fi 7233 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7235$as_echo_n "checking --disable-netbeans argument... " >&6; } 7236# Check whether --enable-netbeans was given. 7237if test "${enable_netbeans+set}" = set; then : 7238 enableval=$enable_netbeans; 7239else 7240 enable_netbeans="yes" 7241fi 7242 7243if test "$enable_netbeans" = "yes"; then 7244 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7246$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7247 enable_netbeans="no" 7248 else 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7250$as_echo "no" >&6; } 7251 fi 7252else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7254$as_echo "yes" >&6; } 7255fi 7256 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7258$as_echo_n "checking --disable-channel argument... " >&6; } 7259# Check whether --enable-channel was given. 7260if test "${enable_channel+set}" = set; then : 7261 enableval=$enable_channel; 7262else 7263 enable_channel="yes" 7264fi 7265 7266if test "$enable_channel" = "yes"; then 7267 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7269$as_echo "cannot use channels with tiny or small features" >&6; } 7270 enable_channel="no" 7271 else 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7273$as_echo "no" >&6; } 7274 fi 7275else 7276 if test "$enable_netbeans" = "yes"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7278$as_echo "yes, netbeans also disabled" >&6; } 7279 enable_netbeans="no" 7280 else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7282$as_echo "yes" >&6; } 7283 fi 7284fi 7285 7286if test "$enable_channel" = "yes"; then 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7288$as_echo_n "checking for socket in -lsocket... " >&6; } 7289if ${ac_cv_lib_socket_socket+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 ac_check_lib_save_LIBS=$LIBS 7293LIBS="-lsocket $LIBS" 7294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295/* end confdefs.h. */ 7296 7297/* Override any GCC internal prototype to avoid an error. 7298 Use char because int might match the return type of a GCC 7299 builtin and then its argument prototype would still apply. */ 7300#ifdef __cplusplus 7301extern "C" 7302#endif 7303char socket (); 7304int 7305main () 7306{ 7307return socket (); 7308 ; 7309 return 0; 7310} 7311_ACEOF 7312if ac_fn_c_try_link "$LINENO"; then : 7313 ac_cv_lib_socket_socket=yes 7314else 7315 ac_cv_lib_socket_socket=no 7316fi 7317rm -f core conftest.err conftest.$ac_objext \ 7318 conftest$ac_exeext conftest.$ac_ext 7319LIBS=$ac_check_lib_save_LIBS 7320fi 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7322$as_echo "$ac_cv_lib_socket_socket" >&6; } 7323if test "x$ac_cv_lib_socket_socket" = xyes; then : 7324 cat >>confdefs.h <<_ACEOF 7325#define HAVE_LIBSOCKET 1 7326_ACEOF 7327 7328 LIBS="-lsocket $LIBS" 7329 7330fi 7331 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7333$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7334if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 ac_check_lib_save_LIBS=$LIBS 7338LIBS="-lnsl $LIBS" 7339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340/* end confdefs.h. */ 7341 7342/* Override any GCC internal prototype to avoid an error. 7343 Use char because int might match the return type of a GCC 7344 builtin and then its argument prototype would still apply. */ 7345#ifdef __cplusplus 7346extern "C" 7347#endif 7348char gethostbyname (); 7349int 7350main () 7351{ 7352return gethostbyname (); 7353 ; 7354 return 0; 7355} 7356_ACEOF 7357if ac_fn_c_try_link "$LINENO"; then : 7358 ac_cv_lib_nsl_gethostbyname=yes 7359else 7360 ac_cv_lib_nsl_gethostbyname=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext \ 7363 conftest$ac_exeext conftest.$ac_ext 7364LIBS=$ac_check_lib_save_LIBS 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7367$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7368if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7369 cat >>confdefs.h <<_ACEOF 7370#define HAVE_LIBNSL 1 7371_ACEOF 7372 7373 LIBS="-lnsl $LIBS" 7374 7375fi 7376 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7378$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381 7382#include <stdio.h> 7383#include <stdlib.h> 7384#include <stdarg.h> 7385#include <fcntl.h> 7386#include <netdb.h> 7387#include <netinet/in.h> 7388#include <errno.h> 7389#include <sys/types.h> 7390#include <sys/socket.h> 7391 /* Check bitfields */ 7392 struct nbbuf { 7393 unsigned int initDone:1; 7394 ushort signmaplen; 7395 }; 7396 7397int 7398main () 7399{ 7400 7401 /* Check creating a socket. */ 7402 struct sockaddr_in server; 7403 (void)socket(AF_INET, SOCK_STREAM, 0); 7404 (void)htons(100); 7405 (void)gethostbyname("microsoft.com"); 7406 if (errno == ECONNREFUSED) 7407 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413if ac_fn_c_try_link "$LINENO"; then : 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7415$as_echo "yes" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7419fi 7420rm -f core conftest.err conftest.$ac_objext \ 7421 conftest$ac_exeext conftest.$ac_ext 7422fi 7423if test "$enable_netbeans" = "yes"; then 7424 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7425 7426 NETBEANS_SRC="netbeans.c" 7427 7428 NETBEANS_OBJ="objects/netbeans.o" 7429 7430fi 7431if test "$enable_channel" = "yes"; then 7432 $as_echo "#define FEAT_CHANNEL 1" >>confdefs.h 7433 7434 CHANNEL_SRC="channel.c" 7435 7436 CHANNEL_OBJ="objects/channel.o" 7437 7438fi 7439 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5 7441$as_echo_n "checking --enable-sniff argument... " >&6; } 7442# Check whether --enable-sniff was given. 7443if test "${enable_sniff+set}" = set; then : 7444 enableval=$enable_sniff; 7445else 7446 enable_sniff="no" 7447fi 7448 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5 7450$as_echo "$enable_sniff" >&6; } 7451if test "$enable_sniff" = "yes"; then 7452 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h 7453 7454 SNIFF_SRC="if_sniff.c" 7455 7456 SNIFF_OBJ="objects/if_sniff.o" 7457 7458fi 7459 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7461$as_echo_n "checking --enable-multibyte argument... " >&6; } 7462# Check whether --enable-multibyte was given. 7463if test "${enable_multibyte+set}" = set; then : 7464 enableval=$enable_multibyte; 7465else 7466 enable_multibyte="no" 7467fi 7468 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7470$as_echo "$enable_multibyte" >&6; } 7471if test "$enable_multibyte" = "yes"; then 7472 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7473 7474fi 7475 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7477$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7478# Check whether --enable-hangulinput was given. 7479if test "${enable_hangulinput+set}" = set; then : 7480 enableval=$enable_hangulinput; 7481else 7482 enable_hangulinput="no" 7483fi 7484 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7486$as_echo "$enable_hangulinput" >&6; } 7487 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7489$as_echo_n "checking --enable-xim argument... " >&6; } 7490# Check whether --enable-xim was given. 7491if test "${enable_xim+set}" = set; then : 7492 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7493$as_echo "$enable_xim" >&6; } 7494else 7495 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7496$as_echo "defaulting to auto" >&6; } 7497fi 7498 7499 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7501$as_echo_n "checking --enable-fontset argument... " >&6; } 7502# Check whether --enable-fontset was given. 7503if test "${enable_fontset+set}" = set; then : 7504 enableval=$enable_fontset; 7505else 7506 enable_fontset="no" 7507fi 7508 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7510$as_echo "$enable_fontset" >&6; } 7511 7512test -z "$with_x" && with_x=yes 7513test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7514if test "$with_x" = no; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7516$as_echo "defaulting to: don't HAVE_X11" >&6; } 7517else 7518 7519 # Extract the first word of "xmkmf", so it can be a program name with args. 7520set dummy xmkmf; ac_word=$2 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7522$as_echo_n "checking for $ac_word... " >&6; } 7523if ${ac_cv_path_xmkmfpath+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 case $xmkmfpath in 7527 [\\/]* | ?:[\\/]*) 7528 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7529 ;; 7530 *) 7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7538 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546 ;; 7547esac 7548fi 7549xmkmfpath=$ac_cv_path_xmkmfpath 7550if test -n "$xmkmfpath"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7552$as_echo "$xmkmfpath" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7555$as_echo "no" >&6; } 7556fi 7557 7558 7559 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7561$as_echo_n "checking for X... " >&6; } 7562 7563 7564# Check whether --with-x was given. 7565if test "${with_x+set}" = set; then : 7566 withval=$with_x; 7567fi 7568 7569# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7570if test "x$with_x" = xno; then 7571 # The user explicitly disabled X. 7572 have_x=disabled 7573else 7574 case $x_includes,$x_libraries in #( 7575 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7576 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 # One or both of the vars are not set, and there is no cached value. 7580ac_x_includes=no ac_x_libraries=no 7581rm -f -r conftest.dir 7582if mkdir conftest.dir; then 7583 cd conftest.dir 7584 cat >Imakefile <<'_ACEOF' 7585incroot: 7586 @echo incroot='${INCROOT}' 7587usrlibdir: 7588 @echo usrlibdir='${USRLIBDIR}' 7589libdir: 7590 @echo libdir='${LIBDIR}' 7591_ACEOF 7592 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7593 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7594 for ac_var in incroot usrlibdir libdir; do 7595 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7596 done 7597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7598 for ac_extension in a so sl dylib la dll; do 7599 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7600 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7601 ac_im_usrlibdir=$ac_im_libdir; break 7602 fi 7603 done 7604 # Screen out bogus values from the imake configuration. They are 7605 # bogus both because they are the default anyway, and because 7606 # using them would break gcc on systems where it needs fixed includes. 7607 case $ac_im_incroot in 7608 /usr/include) ac_x_includes= ;; 7609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7610 esac 7611 case $ac_im_usrlibdir in 7612 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7614 esac 7615 fi 7616 cd .. 7617 rm -f -r conftest.dir 7618fi 7619 7620# Standard set of common directories for X headers. 7621# Check X11 before X11Rn because it is often a symlink to the current release. 7622ac_x_header_dirs=' 7623/usr/X11/include 7624/usr/X11R7/include 7625/usr/X11R6/include 7626/usr/X11R5/include 7627/usr/X11R4/include 7628 7629/usr/include/X11 7630/usr/include/X11R7 7631/usr/include/X11R6 7632/usr/include/X11R5 7633/usr/include/X11R4 7634 7635/usr/local/X11/include 7636/usr/local/X11R7/include 7637/usr/local/X11R6/include 7638/usr/local/X11R5/include 7639/usr/local/X11R4/include 7640 7641/usr/local/include/X11 7642/usr/local/include/X11R7 7643/usr/local/include/X11R6 7644/usr/local/include/X11R5 7645/usr/local/include/X11R4 7646 7647/usr/X386/include 7648/usr/x386/include 7649/usr/XFree86/include/X11 7650 7651/usr/include 7652/usr/local/include 7653/usr/unsupported/include 7654/usr/athena/include 7655/usr/local/x11r5/include 7656/usr/lpp/Xamples/include 7657 7658/usr/openwin/include 7659/usr/openwin/share/include' 7660 7661if test "$ac_x_includes" = no; then 7662 # Guess where to find include files, by looking for Xlib.h. 7663 # First, try using that file with no special directory specified. 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665/* end confdefs.h. */ 7666#include <X11/Xlib.h> 7667_ACEOF 7668if ac_fn_c_try_cpp "$LINENO"; then : 7669 # We can compile using X headers with no special include directory. 7670ac_x_includes= 7671else 7672 for ac_dir in $ac_x_header_dirs; do 7673 if test -r "$ac_dir/X11/Xlib.h"; then 7674 ac_x_includes=$ac_dir 7675 break 7676 fi 7677done 7678fi 7679rm -f conftest.err conftest.i conftest.$ac_ext 7680fi # $ac_x_includes = no 7681 7682if test "$ac_x_libraries" = no; then 7683 # Check for the libraries. 7684 # See if we find them without any special options. 7685 # Don't add to $LIBS permanently. 7686 ac_save_LIBS=$LIBS 7687 LIBS="-lX11 $LIBS" 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690#include <X11/Xlib.h> 7691int 7692main () 7693{ 7694XrmInitialize () 7695 ; 7696 return 0; 7697} 7698_ACEOF 7699if ac_fn_c_try_link "$LINENO"; then : 7700 LIBS=$ac_save_LIBS 7701# We can link X programs with no special library path. 7702ac_x_libraries= 7703else 7704 LIBS=$ac_save_LIBS 7705for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7706do 7707 # Don't even attempt the hair of trying to link an X program! 7708 for ac_extension in a so sl dylib la dll; do 7709 if test -r "$ac_dir/libX11.$ac_extension"; then 7710 ac_x_libraries=$ac_dir 7711 break 2 7712 fi 7713 done 7714done 7715fi 7716rm -f core conftest.err conftest.$ac_objext \ 7717 conftest$ac_exeext conftest.$ac_ext 7718fi # $ac_x_libraries = no 7719 7720case $ac_x_includes,$ac_x_libraries in #( 7721 no,* | *,no | *\'*) 7722 # Didn't find X, or a directory has "'" in its name. 7723 ac_cv_have_x="have_x=no";; #( 7724 *) 7725 # Record where we found X for the cache. 7726 ac_cv_have_x="have_x=yes\ 7727 ac_x_includes='$ac_x_includes'\ 7728 ac_x_libraries='$ac_x_libraries'" 7729esac 7730fi 7731;; #( 7732 *) have_x=yes;; 7733 esac 7734 eval "$ac_cv_have_x" 7735fi # $with_x != no 7736 7737if test "$have_x" != yes; then 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7739$as_echo "$have_x" >&6; } 7740 no_x=yes 7741else 7742 # If each of the values was on the command line, it overrides each guess. 7743 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7744 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7745 # Update the cache value to reflect the command line values. 7746 ac_cv_have_x="have_x=yes\ 7747 ac_x_includes='$x_includes'\ 7748 ac_x_libraries='$x_libraries'" 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7750$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7751fi 7752 7753if test "$no_x" = yes; then 7754 # Not all programs may use this symbol, but it does not hurt to define it. 7755 7756$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7757 7758 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7759else 7760 if test -n "$x_includes"; then 7761 X_CFLAGS="$X_CFLAGS -I$x_includes" 7762 fi 7763 7764 # It would also be nice to do this for all -L options, not just this one. 7765 if test -n "$x_libraries"; then 7766 X_LIBS="$X_LIBS -L$x_libraries" 7767 # For Solaris; some versions of Sun CC require a space after -R and 7768 # others require no space. Words are not sufficient . . . . 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7770$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7771 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7772 ac_xsave_c_werror_flag=$ac_c_werror_flag 7773 ac_c_werror_flag=yes 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776 7777int 7778main () 7779{ 7780 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_link "$LINENO"; then : 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7787$as_echo "no" >&6; } 7788 X_LIBS="$X_LIBS -R$x_libraries" 7789else 7790 LIBS="$ac_xsave_LIBS -R $x_libraries" 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802if ac_fn_c_try_link "$LINENO"; then : 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7804$as_echo "yes" >&6; } 7805 X_LIBS="$X_LIBS -R $x_libraries" 7806else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7808$as_echo "neither works" >&6; } 7809fi 7810rm -f core conftest.err conftest.$ac_objext \ 7811 conftest$ac_exeext conftest.$ac_ext 7812fi 7813rm -f core conftest.err conftest.$ac_objext \ 7814 conftest$ac_exeext conftest.$ac_ext 7815 ac_c_werror_flag=$ac_xsave_c_werror_flag 7816 LIBS=$ac_xsave_LIBS 7817 fi 7818 7819 # Check for system-dependent libraries X programs must link with. 7820 # Do this before checking for the system-independent R6 libraries 7821 # (-lICE), since we may need -lsocket or whatever for X linking. 7822 7823 if test "$ISC" = yes; then 7824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7825 else 7826 # Martyn Johnson says this is needed for Ultrix, if the X 7827 # libraries were built with DECnet support. And Karl Berry says 7828 # the Alpha needs dnet_stub (dnet does not exist). 7829 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832 7833/* Override any GCC internal prototype to avoid an error. 7834 Use char because int might match the return type of a GCC 7835 builtin and then its argument prototype would still apply. */ 7836#ifdef __cplusplus 7837extern "C" 7838#endif 7839char XOpenDisplay (); 7840int 7841main () 7842{ 7843return XOpenDisplay (); 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848if ac_fn_c_try_link "$LINENO"; then : 7849 7850else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7852$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7853if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 ac_check_lib_save_LIBS=$LIBS 7857LIBS="-ldnet $LIBS" 7858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860 7861/* Override any GCC internal prototype to avoid an error. 7862 Use char because int might match the return type of a GCC 7863 builtin and then its argument prototype would still apply. */ 7864#ifdef __cplusplus 7865extern "C" 7866#endif 7867char dnet_ntoa (); 7868int 7869main () 7870{ 7871return dnet_ntoa (); 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876if ac_fn_c_try_link "$LINENO"; then : 7877 ac_cv_lib_dnet_dnet_ntoa=yes 7878else 7879 ac_cv_lib_dnet_dnet_ntoa=no 7880fi 7881rm -f core conftest.err conftest.$ac_objext \ 7882 conftest$ac_exeext conftest.$ac_ext 7883LIBS=$ac_check_lib_save_LIBS 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7886$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7887if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7888 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7889fi 7890 7891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7893$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7894if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 ac_check_lib_save_LIBS=$LIBS 7898LIBS="-ldnet_stub $LIBS" 7899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901 7902/* Override any GCC internal prototype to avoid an error. 7903 Use char because int might match the return type of a GCC 7904 builtin and then its argument prototype would still apply. */ 7905#ifdef __cplusplus 7906extern "C" 7907#endif 7908char dnet_ntoa (); 7909int 7910main () 7911{ 7912return dnet_ntoa (); 7913 ; 7914 return 0; 7915} 7916_ACEOF 7917if ac_fn_c_try_link "$LINENO"; then : 7918 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7919else 7920 ac_cv_lib_dnet_stub_dnet_ntoa=no 7921fi 7922rm -f core conftest.err conftest.$ac_objext \ 7923 conftest$ac_exeext conftest.$ac_ext 7924LIBS=$ac_check_lib_save_LIBS 7925fi 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7927$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7928if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7929 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7930fi 7931 7932 fi 7933fi 7934rm -f core conftest.err conftest.$ac_objext \ 7935 conftest$ac_exeext conftest.$ac_ext 7936 LIBS="$ac_xsave_LIBS" 7937 7938 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7939 # to get the SysV transport functions. 7940 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7941 # needs -lnsl. 7942 # The nsl library prevents programs from opening the X display 7943 # on Irix 5.2, according to T.E. Dickey. 7944 # The functions gethostbyname, getservbyname, and inet_addr are 7945 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7946 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7947if test "x$ac_cv_func_gethostbyname" = xyes; then : 7948 7949fi 7950 7951 if test $ac_cv_func_gethostbyname = no; then 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7953$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7954if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 ac_check_lib_save_LIBS=$LIBS 7958LIBS="-lnsl $LIBS" 7959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961 7962/* Override any GCC internal prototype to avoid an error. 7963 Use char because int might match the return type of a GCC 7964 builtin and then its argument prototype would still apply. */ 7965#ifdef __cplusplus 7966extern "C" 7967#endif 7968char gethostbyname (); 7969int 7970main () 7971{ 7972return gethostbyname (); 7973 ; 7974 return 0; 7975} 7976_ACEOF 7977if ac_fn_c_try_link "$LINENO"; then : 7978 ac_cv_lib_nsl_gethostbyname=yes 7979else 7980 ac_cv_lib_nsl_gethostbyname=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext \ 7983 conftest$ac_exeext conftest.$ac_ext 7984LIBS=$ac_check_lib_save_LIBS 7985fi 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7987$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7988if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7990fi 7991 7992 if test $ac_cv_lib_nsl_gethostbyname = no; then 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 7994$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 7995if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 ac_check_lib_save_LIBS=$LIBS 7999LIBS="-lbsd $LIBS" 8000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001/* end confdefs.h. */ 8002 8003/* Override any GCC internal prototype to avoid an error. 8004 Use char because int might match the return type of a GCC 8005 builtin and then its argument prototype would still apply. */ 8006#ifdef __cplusplus 8007extern "C" 8008#endif 8009char gethostbyname (); 8010int 8011main () 8012{ 8013return gethostbyname (); 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO"; then : 8019 ac_cv_lib_bsd_gethostbyname=yes 8020else 8021 ac_cv_lib_bsd_gethostbyname=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext \ 8024 conftest$ac_exeext conftest.$ac_ext 8025LIBS=$ac_check_lib_save_LIBS 8026fi 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8028$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8029if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8031fi 8032 8033 fi 8034 fi 8035 8036 # [email protected] says without -lsocket, 8037 # socket/setsockopt and other routines are undefined under SCO ODT 8038 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8039 # on later versions), says Simon Leinen: it contains gethostby* 8040 # variants that don't use the name server (or something). -lsocket 8041 # must be given before -lnsl if both are needed. We assume that 8042 # if connect needs -lnsl, so does gethostbyname. 8043 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8044if test "x$ac_cv_func_connect" = xyes; then : 8045 8046fi 8047 8048 if test $ac_cv_func_connect = no; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8050$as_echo_n "checking for connect in -lsocket... " >&6; } 8051if ${ac_cv_lib_socket_connect+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 ac_check_lib_save_LIBS=$LIBS 8055LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058 8059/* Override any GCC internal prototype to avoid an error. 8060 Use char because int might match the return type of a GCC 8061 builtin and then its argument prototype would still apply. */ 8062#ifdef __cplusplus 8063extern "C" 8064#endif 8065char connect (); 8066int 8067main () 8068{ 8069return connect (); 8070 ; 8071 return 0; 8072} 8073_ACEOF 8074if ac_fn_c_try_link "$LINENO"; then : 8075 ac_cv_lib_socket_connect=yes 8076else 8077 ac_cv_lib_socket_connect=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext \ 8080 conftest$ac_exeext conftest.$ac_ext 8081LIBS=$ac_check_lib_save_LIBS 8082fi 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8084$as_echo "$ac_cv_lib_socket_connect" >&6; } 8085if test "x$ac_cv_lib_socket_connect" = xyes; then : 8086 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8087fi 8088 8089 fi 8090 8091 # Guillermo Gomez says -lposix is necessary on A/UX. 8092 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8093if test "x$ac_cv_func_remove" = xyes; then : 8094 8095fi 8096 8097 if test $ac_cv_func_remove = no; then 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8099$as_echo_n "checking for remove in -lposix... " >&6; } 8100if ${ac_cv_lib_posix_remove+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 ac_check_lib_save_LIBS=$LIBS 8104LIBS="-lposix $LIBS" 8105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107 8108/* Override any GCC internal prototype to avoid an error. 8109 Use char because int might match the return type of a GCC 8110 builtin and then its argument prototype would still apply. */ 8111#ifdef __cplusplus 8112extern "C" 8113#endif 8114char remove (); 8115int 8116main () 8117{ 8118return remove (); 8119 ; 8120 return 0; 8121} 8122_ACEOF 8123if ac_fn_c_try_link "$LINENO"; then : 8124 ac_cv_lib_posix_remove=yes 8125else 8126 ac_cv_lib_posix_remove=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext \ 8129 conftest$ac_exeext conftest.$ac_ext 8130LIBS=$ac_check_lib_save_LIBS 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8133$as_echo "$ac_cv_lib_posix_remove" >&6; } 8134if test "x$ac_cv_lib_posix_remove" = xyes; then : 8135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8136fi 8137 8138 fi 8139 8140 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8141 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8142if test "x$ac_cv_func_shmat" = xyes; then : 8143 8144fi 8145 8146 if test $ac_cv_func_shmat = no; then 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8148$as_echo_n "checking for shmat in -lipc... " >&6; } 8149if ${ac_cv_lib_ipc_shmat+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 ac_check_lib_save_LIBS=$LIBS 8153LIBS="-lipc $LIBS" 8154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156 8157/* Override any GCC internal prototype to avoid an error. 8158 Use char because int might match the return type of a GCC 8159 builtin and then its argument prototype would still apply. */ 8160#ifdef __cplusplus 8161extern "C" 8162#endif 8163char shmat (); 8164int 8165main () 8166{ 8167return shmat (); 8168 ; 8169 return 0; 8170} 8171_ACEOF 8172if ac_fn_c_try_link "$LINENO"; then : 8173 ac_cv_lib_ipc_shmat=yes 8174else 8175 ac_cv_lib_ipc_shmat=no 8176fi 8177rm -f core conftest.err conftest.$ac_objext \ 8178 conftest$ac_exeext conftest.$ac_ext 8179LIBS=$ac_check_lib_save_LIBS 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8182$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8183if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8185fi 8186 8187 fi 8188 fi 8189 8190 # Check for libraries that X11R6 Xt/Xaw programs need. 8191 ac_save_LDFLAGS=$LDFLAGS 8192 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8193 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8194 # check for ICE first), but we must link in the order -lSM -lICE or 8195 # we get undefined symbols. So assume we have SM if we have ICE. 8196 # These have to be linked with before -lX11, unlike the other 8197 # libraries we check for below, so use a different variable. 8198 # John Interrante, Karl Berry 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8200$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8201if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8202 $as_echo_n "(cached) " >&6 8203else 8204 ac_check_lib_save_LIBS=$LIBS 8205LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208 8209/* Override any GCC internal prototype to avoid an error. 8210 Use char because int might match the return type of a GCC 8211 builtin and then its argument prototype would still apply. */ 8212#ifdef __cplusplus 8213extern "C" 8214#endif 8215char IceConnectionNumber (); 8216int 8217main () 8218{ 8219return IceConnectionNumber (); 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224if ac_fn_c_try_link "$LINENO"; then : 8225 ac_cv_lib_ICE_IceConnectionNumber=yes 8226else 8227 ac_cv_lib_ICE_IceConnectionNumber=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext \ 8230 conftest$ac_exeext conftest.$ac_ext 8231LIBS=$ac_check_lib_save_LIBS 8232fi 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8234$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8235if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8236 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8237fi 8238 8239 LDFLAGS=$ac_save_LDFLAGS 8240 8241fi 8242 8243 8244 if test "$zOSUnix" = "yes"; then 8245 CFLAGS="$CFLAGS -W c,dll" 8246 LDFLAGS="$LDFLAGS -W l,dll" 8247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8248 fi 8249 8250 8251 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8252 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8254$as_echo "Corrected X libraries to $x_libraries" >&6; } 8255 X_LIBS="$X_LIBS -L$x_libraries" 8256 if test "`(uname) 2>/dev/null`" = SunOS && 8257 uname -r | grep '^5' >/dev/null; then 8258 X_LIBS="$X_LIBS -R $x_libraries" 8259 fi 8260 fi 8261 8262 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8263 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8265$as_echo "Corrected X includes to $x_includes" >&6; } 8266 X_CFLAGS="$X_CFLAGS -I$x_includes" 8267 fi 8268 8269 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8270 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8271 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8272 8273 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8275$as_echo_n "checking if X11 header files can be found... " >&6; } 8276 cflags_save=$CFLAGS 8277 CFLAGS="$CFLAGS $X_CFLAGS" 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280#include <X11/Xlib.h> 8281#include <X11/Intrinsic.h> 8282int 8283main () 8284{ 8285 8286 ; 8287 return 0; 8288} 8289_ACEOF 8290if ac_fn_c_try_compile "$LINENO"; then : 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8292$as_echo "yes" >&6; } 8293else 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8295$as_echo "no" >&6; }; no_x=yes 8296fi 8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8298 CFLAGS=$cflags_save 8299 8300 if test "${no_x-no}" = yes; then 8301 with_x=no 8302 else 8303 $as_echo "#define HAVE_X11 1" >>confdefs.h 8304 8305 X_LIB="-lXt -lX11"; 8306 8307 8308 ac_save_LDFLAGS="$LDFLAGS" 8309 LDFLAGS="-L$x_libraries $LDFLAGS" 8310 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8312$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8313if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 ac_check_lib_save_LIBS=$LIBS 8317LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319/* end confdefs.h. */ 8320 8321/* Override any GCC internal prototype to avoid an error. 8322 Use char because int might match the return type of a GCC 8323 builtin and then its argument prototype would still apply. */ 8324#ifdef __cplusplus 8325extern "C" 8326#endif 8327char _XdmcpAuthDoIt (); 8328int 8329main () 8330{ 8331return _XdmcpAuthDoIt (); 8332 ; 8333 return 0; 8334} 8335_ACEOF 8336if ac_fn_c_try_link "$LINENO"; then : 8337 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8338else 8339 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext \ 8342 conftest$ac_exeext conftest.$ac_ext 8343LIBS=$ac_check_lib_save_LIBS 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8346$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8347if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8348 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8349fi 8350 8351 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8353$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8354if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 ac_check_lib_save_LIBS=$LIBS 8358LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8360/* end confdefs.h. */ 8361 8362/* Override any GCC internal prototype to avoid an error. 8363 Use char because int might match the return type of a GCC 8364 builtin and then its argument prototype would still apply. */ 8365#ifdef __cplusplus 8366extern "C" 8367#endif 8368char IceOpenConnection (); 8369int 8370main () 8371{ 8372return IceOpenConnection (); 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377if ac_fn_c_try_link "$LINENO"; then : 8378 ac_cv_lib_ICE_IceOpenConnection=yes 8379else 8380 ac_cv_lib_ICE_IceOpenConnection=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext \ 8383 conftest$ac_exeext conftest.$ac_ext 8384LIBS=$ac_check_lib_save_LIBS 8385fi 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8387$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8388if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8389 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8390fi 8391 8392 8393 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8395$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8396if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 ac_check_lib_save_LIBS=$LIBS 8400LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403 8404/* Override any GCC internal prototype to avoid an error. 8405 Use char because int might match the return type of a GCC 8406 builtin and then its argument prototype would still apply. */ 8407#ifdef __cplusplus 8408extern "C" 8409#endif 8410char XpmCreatePixmapFromData (); 8411int 8412main () 8413{ 8414return XpmCreatePixmapFromData (); 8415 ; 8416 return 0; 8417} 8418_ACEOF 8419if ac_fn_c_try_link "$LINENO"; then : 8420 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8421else 8422 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext \ 8425 conftest$ac_exeext conftest.$ac_ext 8426LIBS=$ac_check_lib_save_LIBS 8427fi 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8429$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8430if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8431 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8432fi 8433 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8436$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8437 cflags_save=$CFLAGS 8438 if test "$GCC" = yes; then 8439 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8440 else 8441 CFLAGS="$CFLAGS $X_CFLAGS" 8442 fi 8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444/* end confdefs.h. */ 8445#include <X11/Xlib.h> 8446int 8447main () 8448{ 8449 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454if ac_fn_c_try_compile "$LINENO"; then : 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8456$as_echo "no" >&6; } 8457else 8458 CFLAGS="$CFLAGS -Wno-implicit-int" 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461#include <X11/Xlib.h> 8462int 8463main () 8464{ 8465 8466 ; 8467 return 0; 8468} 8469_ACEOF 8470if ac_fn_c_try_compile "$LINENO"; then : 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8472$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8473else 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8475$as_echo "test failed" >&6; } 8476 8477fi 8478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8479 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482 CFLAGS=$cflags_save 8483 8484 LDFLAGS="$ac_save_LDFLAGS" 8485 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8487$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8488 if ${ac_cv_small_wchar_t+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 if test "$cross_compiling" = yes; then : 8492 as_fn_error $? "failed to compile test program" "$LINENO" 5 8493else 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496 8497#include <X11/Xlib.h> 8498#if STDC_HEADERS 8499# include <stdlib.h> 8500# include <stddef.h> 8501#endif 8502 main() 8503 { 8504 if (sizeof(wchar_t) <= 2) 8505 exit(1); 8506 exit(0); 8507 } 8508_ACEOF 8509if ac_fn_c_try_run "$LINENO"; then : 8510 ac_cv_small_wchar_t="no" 8511else 8512 ac_cv_small_wchar_t="yes" 8513fi 8514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8515 conftest.$ac_objext conftest.beam conftest.$ac_ext 8516fi 8517 8518fi 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8521$as_echo "$ac_cv_small_wchar_t" >&6; } 8522 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8523 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8524 8525 fi 8526 8527 fi 8528fi 8529 8530test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8531 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8533$as_echo_n "checking --enable-gui argument... " >&6; } 8534# Check whether --enable-gui was given. 8535if test "${enable_gui+set}" = set; then : 8536 enableval=$enable_gui; 8537else 8538 enable_gui="auto" 8539fi 8540 8541 8542enable_gui_canon=`echo "_$enable_gui" | \ 8543 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8544 8545SKIP_GTK2=YES 8546SKIP_GNOME=YES 8547SKIP_MOTIF=YES 8548SKIP_ATHENA=YES 8549SKIP_NEXTAW=YES 8550SKIP_PHOTON=YES 8551SKIP_CARBON=YES 8552GUITYPE=NONE 8553 8554if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8555 SKIP_PHOTON= 8556 case "$enable_gui_canon" in 8557 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8558$as_echo "no GUI support" >&6; } 8559 SKIP_PHOTON=YES ;; 8560 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8561$as_echo "yes - automatic GUI support" >&6; } ;; 8562 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8563$as_echo "auto - automatic GUI support" >&6; } ;; 8564 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8565$as_echo "Photon GUI support" >&6; } ;; 8566 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8567$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8568 SKIP_PHOTON=YES ;; 8569 esac 8570 8571elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8572 SKIP_CARBON= 8573 case "$enable_gui_canon" in 8574 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8575$as_echo "no GUI support" >&6; } 8576 SKIP_CARBON=YES ;; 8577 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8578$as_echo "yes - automatic GUI support" >&6; } ;; 8579 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8580$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8581 SKIP_CARBON=YES ;; 8582 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8583$as_echo "Carbon GUI support" >&6; } ;; 8584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8585$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8586 SKIP_CARBON=YES ;; 8587 esac 8588 8589else 8590 8591 case "$enable_gui_canon" in 8592 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8593$as_echo "no GUI support" >&6; } ;; 8594 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8595$as_echo "yes/auto - automatic GUI support" >&6; } 8596 SKIP_GTK2= 8597 SKIP_GNOME= 8598 SKIP_MOTIF= 8599 SKIP_ATHENA= 8600 SKIP_NEXTAW= 8601 SKIP_CARBON=;; 8602 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8603$as_echo "GTK+ 2.x GUI support" >&6; } 8604 SKIP_GTK2=;; 8605 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8606$as_echo "GNOME 2.x GUI support" >&6; } 8607 SKIP_GNOME= 8608 SKIP_GTK2=;; 8609 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8610$as_echo "Motif GUI support" >&6; } 8611 SKIP_MOTIF=;; 8612 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8613$as_echo "Athena GUI support" >&6; } 8614 SKIP_ATHENA=;; 8615 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8616$as_echo "neXtaw GUI support" >&6; } 8617 SKIP_NEXTAW=;; 8618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8619$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8620 esac 8621 8622fi 8623 8624if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8625 -a "$enable_gui_canon" != "gnome2"; then 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8627$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8628 # Check whether --enable-gtk2-check was given. 8629if test "${enable_gtk2_check+set}" = set; then : 8630 enableval=$enable_gtk2_check; 8631else 8632 enable_gtk2_check="yes" 8633fi 8634 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8636$as_echo "$enable_gtk2_check" >&6; } 8637 if test "x$enable_gtk2_check" = "xno"; then 8638 SKIP_GTK2=YES 8639 SKIP_GNOME=YES 8640 fi 8641fi 8642 8643if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8645$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8646 # Check whether --enable-gnome-check was given. 8647if test "${enable_gnome_check+set}" = set; then : 8648 enableval=$enable_gnome_check; 8649else 8650 enable_gnome_check="no" 8651fi 8652 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8654$as_echo "$enable_gnome_check" >&6; } 8655 if test "x$enable_gnome_check" = "xno"; then 8656 SKIP_GNOME=YES 8657 fi 8658fi 8659 8660if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8662$as_echo_n "checking whether or not to look for Motif... " >&6; } 8663 # Check whether --enable-motif-check was given. 8664if test "${enable_motif_check+set}" = set; then : 8665 enableval=$enable_motif_check; 8666else 8667 enable_motif_check="yes" 8668fi 8669 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8671$as_echo "$enable_motif_check" >&6; } 8672 if test "x$enable_motif_check" = "xno"; then 8673 SKIP_MOTIF=YES 8674 fi 8675fi 8676 8677if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8679$as_echo_n "checking whether or not to look for Athena... " >&6; } 8680 # Check whether --enable-athena-check was given. 8681if test "${enable_athena_check+set}" = set; then : 8682 enableval=$enable_athena_check; 8683else 8684 enable_athena_check="yes" 8685fi 8686 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8688$as_echo "$enable_athena_check" >&6; } 8689 if test "x$enable_athena_check" = "xno"; then 8690 SKIP_ATHENA=YES 8691 fi 8692fi 8693 8694if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8696$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8697 # Check whether --enable-nextaw-check was given. 8698if test "${enable_nextaw_check+set}" = set; then : 8699 enableval=$enable_nextaw_check; 8700else 8701 enable_nextaw_check="yes" 8702fi 8703 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8705$as_echo "$enable_nextaw_check" >&6; }; 8706 if test "x$enable_nextaw_check" = "xno"; then 8707 SKIP_NEXTAW=YES 8708 fi 8709fi 8710 8711if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8713$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8714 # Check whether --enable-carbon-check was given. 8715if test "${enable_carbon_check+set}" = set; then : 8716 enableval=$enable_carbon_check; 8717else 8718 enable_carbon_check="yes" 8719fi 8720 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8722$as_echo "$enable_carbon_check" >&6; }; 8723 if test "x$enable_carbon_check" = "xno"; then 8724 SKIP_CARBON=YES 8725 fi 8726fi 8727 8728 8729if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8731$as_echo_n "checking for Carbon GUI... " >&6; } 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8733$as_echo "yes" >&6; }; 8734 GUITYPE=CARBONGUI 8735 if test "$VIMNAME" = "vim"; then 8736 VIMNAME=Vim 8737 fi 8738 8739 if test "x$MACARCH" = "xboth"; then 8740 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8741 else 8742 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8743 fi 8744 8745 if test x$prefix = xNONE; then 8746 prefix=/Applications 8747 fi 8748 8749 datadir='${prefix}/Vim.app/Contents/Resources' 8750 8751 SKIP_GTK2=YES; 8752 SKIP_GNOME=YES; 8753 SKIP_MOTIF=YES; 8754 SKIP_ATHENA=YES; 8755 SKIP_NEXTAW=YES; 8756 SKIP_PHOTON=YES; 8757 SKIP_CARBON=YES 8758fi 8759 8760 8761 8762 8763 8764 8765 8766 8767if test -z "$SKIP_GTK2"; then 8768 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8770$as_echo_n "checking --disable-gtktest argument... " >&6; } 8771 # Check whether --enable-gtktest was given. 8772if test "${enable_gtktest+set}" = set; then : 8773 enableval=$enable_gtktest; 8774else 8775 enable_gtktest=yes 8776fi 8777 8778 if test "x$enable_gtktest" = "xyes" ; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8780$as_echo "gtk test enabled" >&6; } 8781 else 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8783$as_echo "gtk test disabled" >&6; } 8784 fi 8785 8786 if test "X$PKG_CONFIG" = "X"; then 8787 # Extract the first word of "pkg-config", so it can be a program name with args. 8788set dummy pkg-config; ac_word=$2 8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8790$as_echo_n "checking for $ac_word... " >&6; } 8791if ${ac_cv_path_PKG_CONFIG+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 case $PKG_CONFIG in 8795 [\\/]* | ?:[\\/]*) 8796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8797 ;; 8798 *) 8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8800for as_dir in $PATH 8801do 8802 IFS=$as_save_IFS 8803 test -z "$as_dir" && as_dir=. 8804 for ac_exec_ext in '' $ac_executable_extensions; do 8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8808 break 2 8809 fi 8810done 8811 done 8812IFS=$as_save_IFS 8813 8814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8815 ;; 8816esac 8817fi 8818PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8819if test -n "$PKG_CONFIG"; then 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8821$as_echo "$PKG_CONFIG" >&6; } 8822else 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8824$as_echo "no" >&6; } 8825fi 8826 8827 8828 fi 8829 8830 if test "x$PKG_CONFIG" != "xno"; then 8831 8832 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8833 { 8834 min_gtk_version=2.2.0 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8836$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8837 no_gtk="" 8838 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8839 && $PKG_CONFIG --exists gtk+-2.0; then 8840 { 8841 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8842 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8843 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8844 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8845 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8846 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8847 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8848 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8849 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8850 } 8851 else 8852 no_gtk=yes 8853 fi 8854 8855 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8856 { 8857 ac_save_CFLAGS="$CFLAGS" 8858 ac_save_LIBS="$LIBS" 8859 CFLAGS="$CFLAGS $GTK_CFLAGS" 8860 LIBS="$LIBS $GTK_LIBS" 8861 8862 rm -f conf.gtktest 8863 if test "$cross_compiling" = yes; then : 8864 echo $ac_n "cross compiling; assumed OK... $ac_c" 8865else 8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867/* end confdefs.h. */ 8868 8869#include <gtk/gtk.h> 8870#include <stdio.h> 8871#if STDC_HEADERS 8872# include <stdlib.h> 8873# include <stddef.h> 8874#endif 8875 8876int 8877main () 8878{ 8879int major, minor, micro; 8880char *tmp_version; 8881 8882system ("touch conf.gtktest"); 8883 8884/* HP/UX 9 (%@#!) writes to sscanf strings */ 8885tmp_version = g_strdup("$min_gtk_version"); 8886if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8887 printf("%s, bad version string\n", "$min_gtk_version"); 8888 exit(1); 8889 } 8890 8891if ((gtk_major_version > major) || 8892 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8893 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8894 (gtk_micro_version >= micro))) 8895{ 8896 return 0; 8897} 8898return 1; 8899} 8900 8901_ACEOF 8902if ac_fn_c_try_run "$LINENO"; then : 8903 8904else 8905 no_gtk=yes 8906fi 8907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8908 conftest.$ac_objext conftest.beam conftest.$ac_ext 8909fi 8910 8911 CFLAGS="$ac_save_CFLAGS" 8912 LIBS="$ac_save_LIBS" 8913 } 8914 fi 8915 if test "x$no_gtk" = x ; then 8916 if test "x$enable_gtktest" = "xyes"; then 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8918$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8919 else 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8921$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8922 fi 8923 GUI_LIB_LOC="$GTK_LIBDIR" 8924 GTK_LIBNAME="$GTK_LIBS" 8925 GUI_INC_LOC="$GTK_CFLAGS" 8926 else 8927 { 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8929$as_echo "no" >&6; } 8930 GTK_CFLAGS="" 8931 GTK_LIBS="" 8932 : 8933 } 8934 fi 8935 } 8936 else 8937 GTK_CFLAGS="" 8938 GTK_LIBS="" 8939 : 8940 fi 8941 8942 8943 rm -f conf.gtktest 8944 8945 if test "x$GTK_CFLAGS" != "x"; then 8946 SKIP_ATHENA=YES 8947 SKIP_NEXTAW=YES 8948 SKIP_MOTIF=YES 8949 GUITYPE=GTK 8950 8951 fi 8952 fi 8953 if test "x$GUITYPE" = "xGTK"; then 8954 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 8955 || test "0$gtk_minor_version" -ge 2; then 8956 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 8957 8958 fi 8959 if test -z "$SKIP_GNOME"; then 8960 { 8961 8962 8963 8964 8965 8966 8967# Check whether --with-gnome-includes was given. 8968if test "${with_gnome_includes+set}" = set; then : 8969 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 8970 8971fi 8972 8973 8974 8975# Check whether --with-gnome-libs was given. 8976if test "${with_gnome_libs+set}" = set; then : 8977 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 8978 8979fi 8980 8981 8982 8983# Check whether --with-gnome was given. 8984if test "${with_gnome+set}" = set; then : 8985 withval=$with_gnome; if test x$withval = xyes; then 8986 want_gnome=yes 8987 have_gnome=yes 8988 else 8989 if test "x$withval" = xno; then 8990 want_gnome=no 8991 else 8992 want_gnome=yes 8993 LDFLAGS="$LDFLAGS -L$withval/lib" 8994 CFLAGS="$CFLAGS -I$withval/include" 8995 gnome_prefix=$withval/lib 8996 fi 8997 fi 8998else 8999 want_gnome=yes 9000fi 9001 9002 9003 if test "x$want_gnome" = xyes; then 9004 { 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9006$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9007 if $PKG_CONFIG --exists libgnomeui-2.0; then 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9009$as_echo "yes" >&6; } 9010 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9011 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9012 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9013 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9015$as_echo_n "checking for FreeBSD... " >&6; } 9016 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9018$as_echo "yes" >&6; } 9019 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9020 GNOME_LIBS="$GNOME_LIBS -pthread" 9021 else 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9023$as_echo "no" >&6; } 9024 fi 9025 have_gnome=yes 9026 else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9028$as_echo "not found" >&6; } 9029 if test "x" = xfail; then 9030 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9031 fi 9032 fi 9033 } 9034 fi 9035 9036 if test "x$have_gnome" = xyes ; then 9037 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9038 9039 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9040 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9041 fi 9042 } 9043 fi 9044 fi 9045fi 9046 9047if test "x$GUITYPE" = "xGTK"; then 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9049$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9050 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9051 if test "x$gdk_pixbuf_version" != x ; then 9052 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9053 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9054 if test "x$gdk_pixbuf_version_minor" != x -a \ 9055 $gdk_pixbuf_version_minor -ge 31 ; then 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9057$as_echo "OK." >&6; } 9058 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9059set dummy glib-compile-resources; ac_word=$2 9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9061$as_echo_n "checking for $ac_word... " >&6; } 9062if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9063 $as_echo_n "(cached) " >&6 9064else 9065 case $GLIB_COMPILE_RESOURCES in 9066 [\\/]* | ?:[\\/]*) 9067 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9068 ;; 9069 *) 9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9071for as_dir in $PATH 9072do 9073 IFS=$as_save_IFS 9074 test -z "$as_dir" && as_dir=. 9075 for ac_exec_ext in '' $ac_executable_extensions; do 9076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9077 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9079 break 2 9080 fi 9081done 9082 done 9083IFS=$as_save_IFS 9084 9085 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9086 ;; 9087esac 9088fi 9089GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9090if test -n "$GLIB_COMPILE_RESOURCES"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9092$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9093else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9095$as_echo "no" >&6; } 9096fi 9097 9098 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9100$as_echo_n "checking glib-compile-resources... " >&6; } 9101 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9103$as_echo "cannot be found in PATH." >&6; } 9104 else 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9106$as_echo "usable." >&6; } 9107 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9108 9109 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9110 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9111 fi 9112 else 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9114$as_echo "not usable." >&6; } 9115 fi 9116 else 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9118$as_echo "cannot obtain from pkg_config." >&6; } 9119 fi 9120fi 9121 9122 9123 9124 9125 9126if test -z "$SKIP_MOTIF"; then 9127 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" 9128 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9129 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9131$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9132 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9133 GUI_INC_LOC= 9134 for try in $gui_includes; do 9135 if test -f "$try/Xm/Xm.h"; then 9136 GUI_INC_LOC=$try 9137 fi 9138 done 9139 if test -n "$GUI_INC_LOC"; then 9140 if test "$GUI_INC_LOC" = /usr/include; then 9141 GUI_INC_LOC= 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9143$as_echo "in default path" >&6; } 9144 else 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9146$as_echo "$GUI_INC_LOC" >&6; } 9147 fi 9148 else 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9150$as_echo "<not found>" >&6; } 9151 SKIP_MOTIF=YES 9152 fi 9153fi 9154 9155 9156if test -z "$SKIP_MOTIF"; then 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9158$as_echo_n "checking --with-motif-lib argument... " >&6; } 9159 9160# Check whether --with-motif-lib was given. 9161if test "${with_motif_lib+set}" = set; then : 9162 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9163fi 9164 9165 9166 if test -n "$MOTIF_LIBNAME"; then 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9168$as_echo "$MOTIF_LIBNAME" >&6; } 9169 GUI_LIB_LOC= 9170 else 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9172$as_echo "no" >&6; } 9173 9174 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9175 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9177$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9178 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" 9179 GUI_LIB_LOC= 9180 for try in $gui_libs; do 9181 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9182 if test -f "$libtry"; then 9183 GUI_LIB_LOC=$try 9184 fi 9185 done 9186 done 9187 if test -n "$GUI_LIB_LOC"; then 9188 if test "$GUI_LIB_LOC" = /usr/lib \ 9189 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9190 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9191 GUI_LIB_LOC= 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9193$as_echo "in default path" >&6; } 9194 else 9195 if test -n "$GUI_LIB_LOC"; then 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9197$as_echo "$GUI_LIB_LOC" >&6; } 9198 if test "`(uname) 2>/dev/null`" = SunOS && 9199 uname -r | grep '^5' >/dev/null; then 9200 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9201 fi 9202 fi 9203 fi 9204 MOTIF_LIBNAME=-lXm 9205 else 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9207$as_echo "<not found>" >&6; } 9208 SKIP_MOTIF=YES 9209 fi 9210 fi 9211fi 9212 9213if test -z "$SKIP_MOTIF"; then 9214 SKIP_ATHENA=YES 9215 SKIP_NEXTAW=YES 9216 GUITYPE=MOTIF 9217 9218fi 9219 9220 9221GUI_X_LIBS= 9222 9223if test -z "$SKIP_ATHENA"; then 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9225$as_echo_n "checking if Athena header files can be found... " >&6; } 9226 cflags_save=$CFLAGS 9227 CFLAGS="$CFLAGS $X_CFLAGS" 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229/* end confdefs.h. */ 9230 9231#include <X11/Intrinsic.h> 9232#include <X11/Xaw/Paned.h> 9233int 9234main () 9235{ 9236 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241if ac_fn_c_try_compile "$LINENO"; then : 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9243$as_echo "yes" >&6; } 9244else 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9246$as_echo "no" >&6; }; SKIP_ATHENA=YES 9247fi 9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9249 CFLAGS=$cflags_save 9250fi 9251 9252if test -z "$SKIP_ATHENA"; then 9253 GUITYPE=ATHENA 9254fi 9255 9256if test -z "$SKIP_NEXTAW"; then 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9258$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9259 cflags_save=$CFLAGS 9260 CFLAGS="$CFLAGS $X_CFLAGS" 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263 9264#include <X11/Intrinsic.h> 9265#include <X11/neXtaw/Paned.h> 9266int 9267main () 9268{ 9269 9270 ; 9271 return 0; 9272} 9273_ACEOF 9274if ac_fn_c_try_compile "$LINENO"; then : 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9276$as_echo "yes" >&6; } 9277else 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9279$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9280fi 9281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9282 CFLAGS=$cflags_save 9283fi 9284 9285if test -z "$SKIP_NEXTAW"; then 9286 GUITYPE=NEXTAW 9287fi 9288 9289if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9290 if test -n "$GUI_INC_LOC"; then 9291 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9292 fi 9293 if test -n "$GUI_LIB_LOC"; then 9294 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9295 fi 9296 9297 ldflags_save=$LDFLAGS 9298 LDFLAGS="$X_LIBS $LDFLAGS" 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9300$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9301if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 ac_check_lib_save_LIBS=$LIBS 9305LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307/* end confdefs.h. */ 9308 9309/* Override any GCC internal prototype to avoid an error. 9310 Use char because int might match the return type of a GCC 9311 builtin and then its argument prototype would still apply. */ 9312#ifdef __cplusplus 9313extern "C" 9314#endif 9315char XShapeQueryExtension (); 9316int 9317main () 9318{ 9319return XShapeQueryExtension (); 9320 ; 9321 return 0; 9322} 9323_ACEOF 9324if ac_fn_c_try_link "$LINENO"; then : 9325 ac_cv_lib_Xext_XShapeQueryExtension=yes 9326else 9327 ac_cv_lib_Xext_XShapeQueryExtension=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext \ 9330 conftest$ac_exeext conftest.$ac_ext 9331LIBS=$ac_check_lib_save_LIBS 9332fi 9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9334$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9335if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9336 GUI_X_LIBS="-lXext" 9337fi 9338 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9340$as_echo_n "checking for wslen in -lw... " >&6; } 9341if ${ac_cv_lib_w_wslen+:} false; then : 9342 $as_echo_n "(cached) " >&6 9343else 9344 ac_check_lib_save_LIBS=$LIBS 9345LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348 9349/* Override any GCC internal prototype to avoid an error. 9350 Use char because int might match the return type of a GCC 9351 builtin and then its argument prototype would still apply. */ 9352#ifdef __cplusplus 9353extern "C" 9354#endif 9355char wslen (); 9356int 9357main () 9358{ 9359return wslen (); 9360 ; 9361 return 0; 9362} 9363_ACEOF 9364if ac_fn_c_try_link "$LINENO"; then : 9365 ac_cv_lib_w_wslen=yes 9366else 9367 ac_cv_lib_w_wslen=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext \ 9370 conftest$ac_exeext conftest.$ac_ext 9371LIBS=$ac_check_lib_save_LIBS 9372fi 9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9374$as_echo "$ac_cv_lib_w_wslen" >&6; } 9375if test "x$ac_cv_lib_w_wslen" = xyes; then : 9376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9377fi 9378 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9380$as_echo_n "checking for dlsym in -ldl... " >&6; } 9381if ${ac_cv_lib_dl_dlsym+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 ac_check_lib_save_LIBS=$LIBS 9385LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387/* end confdefs.h. */ 9388 9389/* Override any GCC internal prototype to avoid an error. 9390 Use char because int might match the return type of a GCC 9391 builtin and then its argument prototype would still apply. */ 9392#ifdef __cplusplus 9393extern "C" 9394#endif 9395char dlsym (); 9396int 9397main () 9398{ 9399return dlsym (); 9400 ; 9401 return 0; 9402} 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO"; then : 9405 ac_cv_lib_dl_dlsym=yes 9406else 9407 ac_cv_lib_dl_dlsym=no 9408fi 9409rm -f core conftest.err conftest.$ac_objext \ 9410 conftest$ac_exeext conftest.$ac_ext 9411LIBS=$ac_check_lib_save_LIBS 9412fi 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9414$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9415if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9416 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9417fi 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9420$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9421if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 ac_check_lib_save_LIBS=$LIBS 9425LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428 9429/* Override any GCC internal prototype to avoid an error. 9430 Use char because int might match the return type of a GCC 9431 builtin and then its argument prototype would still apply. */ 9432#ifdef __cplusplus 9433extern "C" 9434#endif 9435char XmuCreateStippledPixmap (); 9436int 9437main () 9438{ 9439return XmuCreateStippledPixmap (); 9440 ; 9441 return 0; 9442} 9443_ACEOF 9444if ac_fn_c_try_link "$LINENO"; then : 9445 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9446else 9447 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9448fi 9449rm -f core conftest.err conftest.$ac_objext \ 9450 conftest$ac_exeext conftest.$ac_ext 9451LIBS=$ac_check_lib_save_LIBS 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9454$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9455if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9456 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9457fi 9458 9459 if test -z "$SKIP_MOTIF"; then 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9461$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9462if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 ac_check_lib_save_LIBS=$LIBS 9466LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9468/* end confdefs.h. */ 9469 9470/* Override any GCC internal prototype to avoid an error. 9471 Use char because int might match the return type of a GCC 9472 builtin and then its argument prototype would still apply. */ 9473#ifdef __cplusplus 9474extern "C" 9475#endif 9476char XpEndJob (); 9477int 9478main () 9479{ 9480return XpEndJob (); 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO"; then : 9486 ac_cv_lib_Xp_XpEndJob=yes 9487else 9488 ac_cv_lib_Xp_XpEndJob=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext \ 9491 conftest$ac_exeext conftest.$ac_ext 9492LIBS=$ac_check_lib_save_LIBS 9493fi 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9495$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9496if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9497 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9498fi 9499 9500 fi 9501 LDFLAGS=$ldflags_save 9502 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9504$as_echo_n "checking for extra X11 defines... " >&6; } 9505 NARROW_PROTO= 9506 rm -fr conftestdir 9507 if mkdir conftestdir; then 9508 cd conftestdir 9509 cat > Imakefile <<'EOF' 9510acfindx: 9511 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9512EOF 9513 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9514 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9515 fi 9516 cd .. 9517 rm -fr conftestdir 9518 fi 9519 if test -z "$NARROW_PROTO"; then 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9521$as_echo "no" >&6; } 9522 else 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9524$as_echo "$NARROW_PROTO" >&6; } 9525 fi 9526 9527fi 9528 9529if test "$enable_xsmp" = "yes"; then 9530 cppflags_save=$CPPFLAGS 9531 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9532 for ac_header in X11/SM/SMlib.h 9533do : 9534 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9535if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9536 cat >>confdefs.h <<_ACEOF 9537#define HAVE_X11_SM_SMLIB_H 1 9538_ACEOF 9539 9540fi 9541 9542done 9543 9544 CPPFLAGS=$cppflags_save 9545fi 9546 9547 9548if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then 9549 cppflags_save=$CPPFLAGS 9550 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9551 for ac_header in X11/xpm.h X11/Sunkeysym.h 9552do : 9553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9556 cat >>confdefs.h <<_ACEOF 9557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9558_ACEOF 9559 9560fi 9561 9562done 9563 9564 9565 if test ! "$enable_xim" = "no"; then 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9567$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569/* end confdefs.h. */ 9570#include <X11/Xlib.h> 9571_ACEOF 9572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9573 $EGREP "XIMText" >/dev/null 2>&1; then : 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9575$as_echo "yes" >&6; } 9576else 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 9578$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 9579fi 9580rm -f conftest* 9581 9582 fi 9583 CPPFLAGS=$cppflags_save 9584 9585 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9586 -a "x$GUITYPE" != "xNONE" ; then 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 9588$as_echo "X GUI selected; xim has been enabled" >&6; } 9589 enable_xim="yes" 9590 fi 9591fi 9592 9593if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9594 cppflags_save=$CPPFLAGS 9595 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 9597$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600 9601#include <X11/Intrinsic.h> 9602#include <X11/Xmu/Editres.h> 9603int 9604main () 9605{ 9606int i; i = 0; 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO"; then : 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9613$as_echo "yes" >&6; } 9614 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 9615 9616else 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9618$as_echo "no" >&6; } 9619fi 9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9621 CPPFLAGS=$cppflags_save 9622fi 9623 9624if test -z "$SKIP_MOTIF"; then 9625 cppflags_save=$CPPFLAGS 9626 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9627 if test "$zOSUnix" = "yes"; then 9628 xmheader="Xm/Xm.h" 9629 else 9630 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 9631 Xm/UnhighlightT.h Xm/Notebook.h" 9632 fi 9633 for ac_header in $xmheader 9634do : 9635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9638 cat >>confdefs.h <<_ACEOF 9639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9640_ACEOF 9641 9642fi 9643 9644done 9645 9646 9647 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 9649$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652#include <Xm/XpmP.h> 9653int 9654main () 9655{ 9656XpmAttributes_21 attr; 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661if ac_fn_c_try_compile "$LINENO"; then : 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9663$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 9664 9665else 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9667$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9668 9669 9670fi 9671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9672 else 9673 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9674 9675 fi 9676 CPPFLAGS=$cppflags_save 9677fi 9678 9679if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 9681$as_echo "no GUI selected; xim has been disabled" >&6; } 9682 enable_xim="no" 9683fi 9684if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 9686$as_echo "no GUI selected; fontset has been disabled" >&6; } 9687 enable_fontset="no" 9688fi 9689if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 9691$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 9692 enable_fontset="no" 9693fi 9694 9695if test -z "$SKIP_PHOTON"; then 9696 GUITYPE=PHOTONGUI 9697fi 9698 9699 9700 9701 9702 9703 9704if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 9705 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 9706fi 9707 9708if test "$enable_xim" = "yes"; then 9709 $as_echo "#define FEAT_XIM 1" >>confdefs.h 9710 9711fi 9712if test "$enable_fontset" = "yes"; then 9713 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 9714 9715fi 9716 9717 9718 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 9720$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 9721case `uname` in 9722 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9723$as_echo "yes" >&6; } 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 9725$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 9726 if test "x$with_x" = "xno" ; then 9727 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9729$as_echo "yes" >&6; } 9730 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 9731 9732 else 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 9734$as_echo "no - using X11" >&6; } 9735 fi ;; 9736 9737 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9738$as_echo "no" >&6; };; 9739esac 9740 9741if test "$enable_hangulinput" = "yes"; then 9742 if test "x$GUITYPE" = "xNONE"; then 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 9744$as_echo "no GUI selected; hangul input has been disabled" >&6; } 9745 enable_hangulinput=no 9746 else 9747 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 9748 9749 HANGULIN_SRC=hangulin.c 9750 9751 HANGULIN_OBJ=objects/hangulin.o 9752 9753 fi 9754fi 9755 9756 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 9758$as_echo_n "checking whether toupper is broken... " >&6; } 9759if ${vim_cv_toupper_broken+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 9763 if test "$cross_compiling" = yes; then : 9764 9765 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 9766 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770 9771#include "confdefs.h" 9772#include <ctype.h> 9773#if STDC_HEADERS 9774# include <stdlib.h> 9775# include <stddef.h> 9776#endif 9777main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 9778 9779_ACEOF 9780if ac_fn_c_try_run "$LINENO"; then : 9781 9782 vim_cv_toupper_broken=yes 9783 9784else 9785 9786 vim_cv_toupper_broken=no 9787 9788fi 9789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9790 conftest.$ac_objext conftest.beam conftest.$ac_ext 9791fi 9792 9793fi 9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 9795$as_echo "$vim_cv_toupper_broken" >&6; } 9796 9797if test "x$vim_cv_toupper_broken" = "xyes" ; then 9798 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 9799 9800fi 9801 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 9803$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 9804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805/* end confdefs.h. */ 9806#include <stdio.h> 9807int 9808main () 9809{ 9810printf("(" __DATE__ " " __TIME__ ")"); 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815if ac_fn_c_try_compile "$LINENO"; then : 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9817$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 9818 9819else 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9821$as_echo "no" >&6; } 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 9826$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 9827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9828/* end confdefs.h. */ 9829#include <stdio.h> 9830int 9831main () 9832{ 9833int x __attribute__((unused)); 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838if ac_fn_c_try_compile "$LINENO"; then : 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9840$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 9841 9842else 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9844$as_echo "no" >&6; } 9845fi 9846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9847 9848ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 9849if test "x$ac_cv_header_elf_h" = xyes; then : 9850 HAS_ELF=1 9851fi 9852 9853 9854if test "$HAS_ELF" = 1; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 9856$as_echo_n "checking for main in -lelf... " >&6; } 9857if ${ac_cv_lib_elf_main+:} false; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 ac_check_lib_save_LIBS=$LIBS 9861LIBS="-lelf $LIBS" 9862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863/* end confdefs.h. */ 9864 9865 9866int 9867main () 9868{ 9869return main (); 9870 ; 9871 return 0; 9872} 9873_ACEOF 9874if ac_fn_c_try_link "$LINENO"; then : 9875 ac_cv_lib_elf_main=yes 9876else 9877 ac_cv_lib_elf_main=no 9878fi 9879rm -f core conftest.err conftest.$ac_objext \ 9880 conftest$ac_exeext conftest.$ac_ext 9881LIBS=$ac_check_lib_save_LIBS 9882fi 9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 9884$as_echo "$ac_cv_lib_elf_main" >&6; } 9885if test "x$ac_cv_lib_elf_main" = xyes; then : 9886 cat >>confdefs.h <<_ACEOF 9887#define HAVE_LIBELF 1 9888_ACEOF 9889 9890 LIBS="-lelf $LIBS" 9891 9892fi 9893 9894fi 9895 9896ac_header_dirent=no 9897for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9898 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 9900$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 9901if eval \${$as_ac_Header+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903else 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906#include <sys/types.h> 9907#include <$ac_hdr> 9908 9909int 9910main () 9911{ 9912if ((DIR *) 0) 9913return 0; 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_compile "$LINENO"; then : 9919 eval "$as_ac_Header=yes" 9920else 9921 eval "$as_ac_Header=no" 9922fi 9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9924fi 9925eval ac_res=\$$as_ac_Header 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9927$as_echo "$ac_res" >&6; } 9928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9929 cat >>confdefs.h <<_ACEOF 9930#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9931_ACEOF 9932 9933ac_header_dirent=$ac_hdr; break 9934fi 9935 9936done 9937# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9938if test $ac_header_dirent = dirent.h; then 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9940$as_echo_n "checking for library containing opendir... " >&6; } 9941if ${ac_cv_search_opendir+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 ac_func_search_save_LIBS=$LIBS 9945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9946/* end confdefs.h. */ 9947 9948/* Override any GCC internal prototype to avoid an error. 9949 Use char because int might match the return type of a GCC 9950 builtin and then its argument prototype would still apply. */ 9951#ifdef __cplusplus 9952extern "C" 9953#endif 9954char opendir (); 9955int 9956main () 9957{ 9958return opendir (); 9959 ; 9960 return 0; 9961} 9962_ACEOF 9963for ac_lib in '' dir; do 9964 if test -z "$ac_lib"; then 9965 ac_res="none required" 9966 else 9967 ac_res=-l$ac_lib 9968 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9969 fi 9970 if ac_fn_c_try_link "$LINENO"; then : 9971 ac_cv_search_opendir=$ac_res 9972fi 9973rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext 9975 if ${ac_cv_search_opendir+:} false; then : 9976 break 9977fi 9978done 9979if ${ac_cv_search_opendir+:} false; then : 9980 9981else 9982 ac_cv_search_opendir=no 9983fi 9984rm conftest.$ac_ext 9985LIBS=$ac_func_search_save_LIBS 9986fi 9987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9988$as_echo "$ac_cv_search_opendir" >&6; } 9989ac_res=$ac_cv_search_opendir 9990if test "$ac_res" != no; then : 9991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9992 9993fi 9994 9995else 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9997$as_echo_n "checking for library containing opendir... " >&6; } 9998if ${ac_cv_search_opendir+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 ac_func_search_save_LIBS=$LIBS 10002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004 10005/* Override any GCC internal prototype to avoid an error. 10006 Use char because int might match the return type of a GCC 10007 builtin and then its argument prototype would still apply. */ 10008#ifdef __cplusplus 10009extern "C" 10010#endif 10011char opendir (); 10012int 10013main () 10014{ 10015return opendir (); 10016 ; 10017 return 0; 10018} 10019_ACEOF 10020for ac_lib in '' x; do 10021 if test -z "$ac_lib"; then 10022 ac_res="none required" 10023 else 10024 ac_res=-l$ac_lib 10025 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10026 fi 10027 if ac_fn_c_try_link "$LINENO"; then : 10028 ac_cv_search_opendir=$ac_res 10029fi 10030rm -f core conftest.err conftest.$ac_objext \ 10031 conftest$ac_exeext 10032 if ${ac_cv_search_opendir+:} false; then : 10033 break 10034fi 10035done 10036if ${ac_cv_search_opendir+:} false; then : 10037 10038else 10039 ac_cv_search_opendir=no 10040fi 10041rm conftest.$ac_ext 10042LIBS=$ac_func_search_save_LIBS 10043fi 10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10045$as_echo "$ac_cv_search_opendir" >&6; } 10046ac_res=$ac_cv_search_opendir 10047if test "$ac_res" != no; then : 10048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10049 10050fi 10051 10052fi 10053 10054 10055if test $ac_cv_header_sys_wait_h = no; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10057$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059/* end confdefs.h. */ 10060#include <sys/wait.h> 10061int 10062main () 10063{ 10064union wait xx, yy; xx = yy 10065 ; 10066 return 0; 10067} 10068_ACEOF 10069if ac_fn_c_try_compile "$LINENO"; then : 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10071$as_echo "yes" >&6; } 10072 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10073 10074 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10075 10076else 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078$as_echo "no" >&6; } 10079fi 10080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10081fi 10082 10083for ac_header in stdint.h stdlib.h string.h \ 10084 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10085 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10086 termio.h iconv.h inttypes.h langinfo.h math.h \ 10087 unistd.h stropts.h errno.h sys/resource.h \ 10088 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10089 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10090 utime.h sys/param.h libintl.h libgen.h \ 10091 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10092 sys/access.h sys/sysinfo.h wchar.h wctype.h 10093do : 10094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10095ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10097 cat >>confdefs.h <<_ACEOF 10098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10099_ACEOF 10100 10101fi 10102 10103done 10104 10105 10106for ac_header in sys/ptem.h 10107do : 10108 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10109# include <sys/stream.h> 10110#endif 10111" 10112if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10113 cat >>confdefs.h <<_ACEOF 10114#define HAVE_SYS_PTEM_H 1 10115_ACEOF 10116 10117fi 10118 10119done 10120 10121 10122for ac_header in sys/sysctl.h 10123do : 10124 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10125# include <sys/param.h> 10126#endif 10127" 10128if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10129 cat >>confdefs.h <<_ACEOF 10130#define HAVE_SYS_SYSCTL_H 1 10131_ACEOF 10132 10133fi 10134 10135done 10136 10137 10138 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10140$as_echo_n "checking for pthread_np.h... " >&6; } 10141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143 10144#include <pthread.h> 10145#include <pthread_np.h> 10146int 10147main () 10148{ 10149int i; i = 0; 10150 ; 10151 return 0; 10152} 10153_ACEOF 10154if ac_fn_c_try_compile "$LINENO"; then : 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10156$as_echo "yes" >&6; } 10157 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10158 10159else 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10161$as_echo "no" >&6; } 10162fi 10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10164 10165for ac_header in strings.h 10166do : 10167 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10168if test "x$ac_cv_header_strings_h" = xyes; then : 10169 cat >>confdefs.h <<_ACEOF 10170#define HAVE_STRINGS_H 1 10171_ACEOF 10172 10173fi 10174 10175done 10176 10177if test "x$MACOSX" = "xyes"; then 10178 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10179 10180else 10181 10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10183$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10184cppflags_save=$CPPFLAGS 10185CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188 10189#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10190# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10191 /* but don't do it on AIX 5.1 (Uribarri) */ 10192#endif 10193#ifdef HAVE_XM_XM_H 10194# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10195#endif 10196#ifdef HAVE_STRING_H 10197# include <string.h> 10198#endif 10199#if defined(HAVE_STRINGS_H) 10200# include <strings.h> 10201#endif 10202 10203int 10204main () 10205{ 10206int i; i = 0; 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 "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10216 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10218$as_echo "no" >&6; } 10219fi 10220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10221CPPFLAGS=$cppflags_save 10222fi 10223 10224if test $ac_cv_c_compiler_gnu = yes; then 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10226$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10227if ${ac_cv_prog_gcc_traditional+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 ac_pattern="Autoconf.*'x'" 10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233#include <sgtty.h> 10234Autoconf TIOCGETP 10235_ACEOF 10236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10237 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10238 ac_cv_prog_gcc_traditional=yes 10239else 10240 ac_cv_prog_gcc_traditional=no 10241fi 10242rm -f conftest* 10243 10244 10245 if test $ac_cv_prog_gcc_traditional = no; then 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247/* end confdefs.h. */ 10248#include <termio.h> 10249Autoconf TCGETA 10250_ACEOF 10251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10252 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10253 ac_cv_prog_gcc_traditional=yes 10254fi 10255rm -f conftest* 10256 10257 fi 10258fi 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10260$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10261 if test $ac_cv_prog_gcc_traditional = yes; then 10262 CC="$CC -traditional" 10263 fi 10264fi 10265 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10267$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10268if ${ac_cv_c_const+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274int 10275main () 10276{ 10277 10278#ifndef __cplusplus 10279 /* Ultrix mips cc rejects this sort of thing. */ 10280 typedef int charset[2]; 10281 const charset cs = { 0, 0 }; 10282 /* SunOS 4.1.1 cc rejects this. */ 10283 char const *const *pcpcc; 10284 char **ppc; 10285 /* NEC SVR4.0.2 mips cc rejects this. */ 10286 struct point {int x, y;}; 10287 static struct point const zero = {0,0}; 10288 /* AIX XL C 1.02.0.0 rejects this. 10289 It does not let you subtract one const X* pointer from another in 10290 an arm of an if-expression whose if-part is not a constant 10291 expression */ 10292 const char *g = "string"; 10293 pcpcc = &g + (g ? g-g : 0); 10294 /* HPUX 7.0 cc rejects these. */ 10295 ++pcpcc; 10296 ppc = (char**) pcpcc; 10297 pcpcc = (char const *const *) ppc; 10298 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10299 char tx; 10300 char *t = &tx; 10301 char const *s = 0 ? (char *) 0 : (char const *) 0; 10302 10303 *t++ = 0; 10304 if (s) return 0; 10305 } 10306 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10307 int x[] = {25, 17}; 10308 const int *foo = &x[0]; 10309 ++foo; 10310 } 10311 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10312 typedef const int *iptr; 10313 iptr p = 0; 10314 ++p; 10315 } 10316 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10318 struct s { int j; const int *ap[3]; } bx; 10319 struct s *b = &bx; b->j = 5; 10320 } 10321 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10322 const int foo = 10; 10323 if (!foo) return 0; 10324 } 10325 return !cs[0] && !zero.x; 10326#endif 10327 10328 ; 10329 return 0; 10330} 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO"; then : 10333 ac_cv_c_const=yes 10334else 10335 ac_cv_c_const=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338fi 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10340$as_echo "$ac_cv_c_const" >&6; } 10341if test $ac_cv_c_const = no; then 10342 10343$as_echo "#define const /**/" >>confdefs.h 10344 10345fi 10346 10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10348$as_echo_n "checking for working volatile... " >&6; } 10349if ${ac_cv_c_volatile+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351else 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354 10355int 10356main () 10357{ 10358 10359volatile int x; 10360int * volatile y = (int *) 0; 10361return !x && !y; 10362 ; 10363 return 0; 10364} 10365_ACEOF 10366if ac_fn_c_try_compile "$LINENO"; then : 10367 ac_cv_c_volatile=yes 10368else 10369 ac_cv_c_volatile=no 10370fi 10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10372fi 10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10374$as_echo "$ac_cv_c_volatile" >&6; } 10375if test $ac_cv_c_volatile = no; then 10376 10377$as_echo "#define volatile /**/" >>confdefs.h 10378 10379fi 10380 10381ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10382if test "x$ac_cv_type_mode_t" = xyes; then : 10383 10384else 10385 10386cat >>confdefs.h <<_ACEOF 10387#define mode_t int 10388_ACEOF 10389 10390fi 10391 10392ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10393if test "x$ac_cv_type_off_t" = xyes; then : 10394 10395else 10396 10397cat >>confdefs.h <<_ACEOF 10398#define off_t long int 10399_ACEOF 10400 10401fi 10402 10403ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10404if test "x$ac_cv_type_pid_t" = xyes; then : 10405 10406else 10407 10408cat >>confdefs.h <<_ACEOF 10409#define pid_t int 10410_ACEOF 10411 10412fi 10413 10414ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10415if test "x$ac_cv_type_size_t" = xyes; then : 10416 10417else 10418 10419cat >>confdefs.h <<_ACEOF 10420#define size_t unsigned int 10421_ACEOF 10422 10423fi 10424 10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10426$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10427if ${ac_cv_type_uid_t+:} false; then : 10428 $as_echo_n "(cached) " >&6 10429else 10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432#include <sys/types.h> 10433 10434_ACEOF 10435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10436 $EGREP "uid_t" >/dev/null 2>&1; then : 10437 ac_cv_type_uid_t=yes 10438else 10439 ac_cv_type_uid_t=no 10440fi 10441rm -f conftest* 10442 10443fi 10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10445$as_echo "$ac_cv_type_uid_t" >&6; } 10446if test $ac_cv_type_uid_t = no; then 10447 10448$as_echo "#define uid_t int" >>confdefs.h 10449 10450 10451$as_echo "#define gid_t int" >>confdefs.h 10452 10453fi 10454 10455ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10456case $ac_cv_c_uint32_t in #( 10457 no|yes) ;; #( 10458 *) 10459 10460$as_echo "#define _UINT32_T 1" >>confdefs.h 10461 10462 10463cat >>confdefs.h <<_ACEOF 10464#define uint32_t $ac_cv_c_uint32_t 10465_ACEOF 10466;; 10467 esac 10468 10469 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10471$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10472if ${ac_cv_header_time+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476/* end confdefs.h. */ 10477#include <sys/types.h> 10478#include <sys/time.h> 10479#include <time.h> 10480 10481int 10482main () 10483{ 10484if ((struct tm *) 0) 10485return 0; 10486 ; 10487 return 0; 10488} 10489_ACEOF 10490if ac_fn_c_try_compile "$LINENO"; then : 10491 ac_cv_header_time=yes 10492else 10493 ac_cv_header_time=no 10494fi 10495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10496fi 10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10498$as_echo "$ac_cv_header_time" >&6; } 10499if test $ac_cv_header_time = yes; then 10500 10501$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10502 10503fi 10504 10505ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10506if test "x$ac_cv_type_ino_t" = xyes; then : 10507 10508else 10509 10510cat >>confdefs.h <<_ACEOF 10511#define ino_t long 10512_ACEOF 10513 10514fi 10515 10516ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10517if test "x$ac_cv_type_dev_t" = xyes; then : 10518 10519else 10520 10521cat >>confdefs.h <<_ACEOF 10522#define dev_t unsigned 10523_ACEOF 10524 10525fi 10526 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10528$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10529if ${ac_cv_c_bigendian+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531else 10532 ac_cv_c_bigendian=unknown 10533 # See if we're dealing with a universal compiler. 10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10535/* end confdefs.h. */ 10536#ifndef __APPLE_CC__ 10537 not a universal capable compiler 10538 #endif 10539 typedef int dummy; 10540 10541_ACEOF 10542if ac_fn_c_try_compile "$LINENO"; then : 10543 10544 # Check for potential -arch flags. It is not universal unless 10545 # there are at least two -arch flags with different values. 10546 ac_arch= 10547 ac_prev= 10548 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10549 if test -n "$ac_prev"; then 10550 case $ac_word in 10551 i?86 | x86_64 | ppc | ppc64) 10552 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10553 ac_arch=$ac_word 10554 else 10555 ac_cv_c_bigendian=universal 10556 break 10557 fi 10558 ;; 10559 esac 10560 ac_prev= 10561 elif test "x$ac_word" = "x-arch"; then 10562 ac_prev=arch 10563 fi 10564 done 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10567 if test $ac_cv_c_bigendian = unknown; then 10568 # See if sys/param.h defines the BYTE_ORDER macro. 10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571#include <sys/types.h> 10572 #include <sys/param.h> 10573 10574int 10575main () 10576{ 10577#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10578 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10579 && LITTLE_ENDIAN) 10580 bogus endian macros 10581 #endif 10582 10583 ; 10584 return 0; 10585} 10586_ACEOF 10587if ac_fn_c_try_compile "$LINENO"; then : 10588 # It does; now see whether it defined to BIG_ENDIAN or not. 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591#include <sys/types.h> 10592 #include <sys/param.h> 10593 10594int 10595main () 10596{ 10597#if BYTE_ORDER != BIG_ENDIAN 10598 not big endian 10599 #endif 10600 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_compile "$LINENO"; then : 10606 ac_cv_c_bigendian=yes 10607else 10608 ac_cv_c_bigendian=no 10609fi 10610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10611fi 10612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10613 fi 10614 if test $ac_cv_c_bigendian = unknown; then 10615 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618#include <limits.h> 10619 10620int 10621main () 10622{ 10623#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10624 bogus endian macros 10625 #endif 10626 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631if ac_fn_c_try_compile "$LINENO"; then : 10632 # It does; now see whether it defined to _BIG_ENDIAN or not. 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635#include <limits.h> 10636 10637int 10638main () 10639{ 10640#ifndef _BIG_ENDIAN 10641 not big endian 10642 #endif 10643 10644 ; 10645 return 0; 10646} 10647_ACEOF 10648if ac_fn_c_try_compile "$LINENO"; then : 10649 ac_cv_c_bigendian=yes 10650else 10651 ac_cv_c_bigendian=no 10652fi 10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10654fi 10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10656 fi 10657 if test $ac_cv_c_bigendian = unknown; then 10658 # Compile a test program. 10659 if test "$cross_compiling" = yes; then : 10660 # Try to guess by grepping values from an object file. 10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10662/* end confdefs.h. */ 10663short int ascii_mm[] = 10664 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10665 short int ascii_ii[] = 10666 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10667 int use_ascii (int i) { 10668 return ascii_mm[i] + ascii_ii[i]; 10669 } 10670 short int ebcdic_ii[] = 10671 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10672 short int ebcdic_mm[] = 10673 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10674 int use_ebcdic (int i) { 10675 return ebcdic_mm[i] + ebcdic_ii[i]; 10676 } 10677 extern int foo; 10678 10679int 10680main () 10681{ 10682return use_ascii (foo) == use_ebcdic (foo); 10683 ; 10684 return 0; 10685} 10686_ACEOF 10687if ac_fn_c_try_compile "$LINENO"; then : 10688 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10689 ac_cv_c_bigendian=yes 10690 fi 10691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10692 if test "$ac_cv_c_bigendian" = unknown; then 10693 ac_cv_c_bigendian=no 10694 else 10695 # finding both strings is unlikely to happen, but who knows? 10696 ac_cv_c_bigendian=unknown 10697 fi 10698 fi 10699fi 10700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10701else 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704$ac_includes_default 10705int 10706main () 10707{ 10708 10709 /* Are we little or big endian? From Harbison&Steele. */ 10710 union 10711 { 10712 long int l; 10713 char c[sizeof (long int)]; 10714 } u; 10715 u.l = 1; 10716 return u.c[sizeof (long int) - 1] == 1; 10717 10718 ; 10719 return 0; 10720} 10721_ACEOF 10722if ac_fn_c_try_run "$LINENO"; then : 10723 ac_cv_c_bigendian=no 10724else 10725 ac_cv_c_bigendian=yes 10726fi 10727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10728 conftest.$ac_objext conftest.beam conftest.$ac_ext 10729fi 10730 10731 fi 10732fi 10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10734$as_echo "$ac_cv_c_bigendian" >&6; } 10735 case $ac_cv_c_bigendian in #( 10736 yes) 10737 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10738;; #( 10739 no) 10740 ;; #( 10741 universal) 10742 10743$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10744 10745 ;; #( 10746 *) 10747 as_fn_error $? "unknown endianness 10748 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10749 esac 10750 10751 10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 10753$as_echo_n "checking for rlim_t... " >&6; } 10754if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 10756$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 10757else 10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10759/* end confdefs.h. */ 10760 10761#include <sys/types.h> 10762#if STDC_HEADERS 10763# include <stdlib.h> 10764# include <stddef.h> 10765#endif 10766#ifdef HAVE_SYS_RESOURCE_H 10767# include <sys/resource.h> 10768#endif 10769 10770_ACEOF 10771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10772 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 10773 ac_cv_type_rlim_t=yes 10774else 10775 ac_cv_type_rlim_t=no 10776fi 10777rm -f conftest* 10778 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 10780$as_echo "$ac_cv_type_rlim_t" >&6; } 10781fi 10782if test $ac_cv_type_rlim_t = no; then 10783 cat >> confdefs.h <<\EOF 10784#define rlim_t unsigned long 10785EOF 10786fi 10787 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 10789$as_echo_n "checking for stack_t... " >&6; } 10790if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 10792$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 10793else 10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10795/* end confdefs.h. */ 10796 10797#include <sys/types.h> 10798#if STDC_HEADERS 10799# include <stdlib.h> 10800# include <stddef.h> 10801#endif 10802#include <signal.h> 10803 10804_ACEOF 10805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10806 $EGREP "stack_t" >/dev/null 2>&1; then : 10807 ac_cv_type_stack_t=yes 10808else 10809 ac_cv_type_stack_t=no 10810fi 10811rm -f conftest* 10812 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 10814$as_echo "$ac_cv_type_stack_t" >&6; } 10815fi 10816if test $ac_cv_type_stack_t = no; then 10817 cat >> confdefs.h <<\EOF 10818#define stack_t struct sigaltstack 10819EOF 10820fi 10821 10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 10823$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10825/* end confdefs.h. */ 10826 10827#include <sys/types.h> 10828#if STDC_HEADERS 10829# include <stdlib.h> 10830# include <stddef.h> 10831#endif 10832#include <signal.h> 10833#include "confdefs.h" 10834 10835int 10836main () 10837{ 10838stack_t sigstk; sigstk.ss_base = 0; 10839 ; 10840 return 0; 10841} 10842_ACEOF 10843if ac_fn_c_try_compile "$LINENO"; then : 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10845$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 10846 10847else 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10849$as_echo "no" >&6; } 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10852 10853olibs="$LIBS" 10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 10855$as_echo_n "checking --with-tlib argument... " >&6; } 10856 10857# Check whether --with-tlib was given. 10858if test "${with_tlib+set}" = set; then : 10859 withval=$with_tlib; 10860fi 10861 10862if test -n "$with_tlib"; then 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 10864$as_echo "$with_tlib" >&6; } 10865 LIBS="$LIBS -l$with_tlib" 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 10867$as_echo_n "checking for linking with $with_tlib library... " >&6; } 10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870 10871int 10872main () 10873{ 10874 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_link "$LINENO"; then : 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 10881$as_echo "OK" >&6; } 10882else 10883 as_fn_error $? "FAILED" "$LINENO" 5 10884fi 10885rm -f core conftest.err conftest.$ac_objext \ 10886 conftest$ac_exeext conftest.$ac_ext 10887 olibs="$LIBS" 10888else 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 10890$as_echo "empty: automatic terminal library selection" >&6; } 10891 case "`uname -s 2>/dev/null`" in 10892 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 10893 *) tlibs="tinfo ncurses termlib termcap curses";; 10894 esac 10895 for libname in $tlibs; do 10896 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 10898$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 10899if eval \${$as_ac_Lib+:} false; then : 10900 $as_echo_n "(cached) " >&6 10901else 10902 ac_check_lib_save_LIBS=$LIBS 10903LIBS="-l${libname} $LIBS" 10904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906 10907/* Override any GCC internal prototype to avoid an error. 10908 Use char because int might match the return type of a GCC 10909 builtin and then its argument prototype would still apply. */ 10910#ifdef __cplusplus 10911extern "C" 10912#endif 10913char tgetent (); 10914int 10915main () 10916{ 10917return tgetent (); 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922if ac_fn_c_try_link "$LINENO"; then : 10923 eval "$as_ac_Lib=yes" 10924else 10925 eval "$as_ac_Lib=no" 10926fi 10927rm -f core conftest.err conftest.$ac_objext \ 10928 conftest$ac_exeext conftest.$ac_ext 10929LIBS=$ac_check_lib_save_LIBS 10930fi 10931eval ac_res=\$$as_ac_Lib 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10933$as_echo "$ac_res" >&6; } 10934if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10935 cat >>confdefs.h <<_ACEOF 10936#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 10937_ACEOF 10938 10939 LIBS="-l${libname} $LIBS" 10940 10941fi 10942 10943 if test "x$olibs" != "x$LIBS"; then 10944 if test "$cross_compiling" = yes; then : 10945 res="FAIL" 10946else 10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10948/* end confdefs.h. */ 10949 10950#ifdef HAVE_TERMCAP_H 10951# include <termcap.h> 10952#endif 10953#if STDC_HEADERS 10954# include <stdlib.h> 10955# include <stddef.h> 10956#endif 10957main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 10958_ACEOF 10959if ac_fn_c_try_run "$LINENO"; then : 10960 res="OK" 10961else 10962 res="FAIL" 10963fi 10964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10965 conftest.$ac_objext conftest.beam conftest.$ac_ext 10966fi 10967 10968 if test "$res" = "OK"; then 10969 break 10970 fi 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 10972$as_echo "$libname library is not usable" >&6; } 10973 LIBS="$olibs" 10974 fi 10975 done 10976 if test "x$olibs" = "x$LIBS"; then 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 10978$as_echo "no terminal library found" >&6; } 10979 fi 10980fi 10981 10982if test "x$olibs" = "x$LIBS"; then 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 10984$as_echo_n "checking for tgetent()... " >&6; } 10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988int 10989main () 10990{ 10991char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 10992 ; 10993 return 0; 10994} 10995_ACEOF 10996if ac_fn_c_try_link "$LINENO"; then : 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10998$as_echo "yes" >&6; } 10999else 11000 as_fn_error $? "NOT FOUND! 11001 You need to install a terminal library; for example ncurses. 11002 Or specify the name of the library with --with-tlib." "$LINENO" 5 11003fi 11004rm -f core conftest.err conftest.$ac_objext \ 11005 conftest$ac_exeext conftest.$ac_ext 11006fi 11007 11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11009$as_echo_n "checking whether we talk terminfo... " >&6; } 11010if ${vim_cv_terminfo+:} false; then : 11011 $as_echo_n "(cached) " >&6 11012else 11013 11014 if test "$cross_compiling" = yes; then : 11015 11016 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11017 11018else 11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021 11022#include "confdefs.h" 11023#ifdef HAVE_TERMCAP_H 11024# include <termcap.h> 11025#endif 11026#ifdef HAVE_STRING_H 11027# include <string.h> 11028#endif 11029#if STDC_HEADERS 11030# include <stdlib.h> 11031# include <stddef.h> 11032#endif 11033main() 11034{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11035 11036_ACEOF 11037if ac_fn_c_try_run "$LINENO"; then : 11038 11039 vim_cv_terminfo=no 11040 11041else 11042 11043 vim_cv_terminfo=yes 11044 11045fi 11046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11047 conftest.$ac_objext conftest.beam conftest.$ac_ext 11048fi 11049 11050 11051fi 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11053$as_echo "$vim_cv_terminfo" >&6; } 11054 11055if test "x$vim_cv_terminfo" = "xyes" ; then 11056 $as_echo "#define TERMINFO 1" >>confdefs.h 11057 11058fi 11059 11060if test "x$olibs" != "x$LIBS"; then 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11062$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11063if ${vim_cv_tgent+:} false; then : 11064 $as_echo_n "(cached) " >&6 11065else 11066 11067 if test "$cross_compiling" = yes; then : 11068 11069 as_fn_error $? "failed to compile test program." "$LINENO" 5 11070 11071else 11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074 11075#include "confdefs.h" 11076#ifdef HAVE_TERMCAP_H 11077# include <termcap.h> 11078#endif 11079#if STDC_HEADERS 11080# include <stdlib.h> 11081# include <stddef.h> 11082#endif 11083main() 11084{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11085 11086_ACEOF 11087if ac_fn_c_try_run "$LINENO"; then : 11088 11089 vim_cv_tgent=zero 11090 11091else 11092 11093 vim_cv_tgent=non-zero 11094 11095fi 11096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11097 conftest.$ac_objext conftest.beam conftest.$ac_ext 11098fi 11099 11100 11101fi 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 11103$as_echo "$vim_cv_tgent" >&6; } 11104 11105 if test "x$vim_cv_tgent" = "xzero" ; then 11106 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11107 11108 fi 11109fi 11110 11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11112$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11114/* end confdefs.h. */ 11115 11116#ifdef HAVE_TERMCAP_H 11117# include <termcap.h> 11118#endif 11119 11120int 11121main () 11122{ 11123ospeed = 20000 11124 ; 11125 return 0; 11126} 11127_ACEOF 11128if ac_fn_c_try_link "$LINENO"; then : 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11130$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11131 11132else 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11134$as_echo "no" >&6; } 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11136$as_echo_n "checking whether ospeed can be extern... " >&6; } 11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139 11140#ifdef HAVE_TERMCAP_H 11141# include <termcap.h> 11142#endif 11143extern short ospeed; 11144 11145int 11146main () 11147{ 11148ospeed = 20000 11149 ; 11150 return 0; 11151} 11152_ACEOF 11153if ac_fn_c_try_link "$LINENO"; then : 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11155$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11156 11157else 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11159$as_echo "no" >&6; } 11160fi 11161rm -f core conftest.err conftest.$ac_objext \ 11162 conftest$ac_exeext conftest.$ac_ext 11163 11164fi 11165rm -f core conftest.err conftest.$ac_objext \ 11166 conftest$ac_exeext conftest.$ac_ext 11167 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11169$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172 11173#ifdef HAVE_TERMCAP_H 11174# include <termcap.h> 11175#endif 11176 11177int 11178main () 11179{ 11180if (UP == 0 && BC == 0) PC = 1 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185if ac_fn_c_try_link "$LINENO"; then : 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11187$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11188 11189else 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11191$as_echo "no" >&6; } 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11193$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11195/* end confdefs.h. */ 11196 11197#ifdef HAVE_TERMCAP_H 11198# include <termcap.h> 11199#endif 11200extern char *UP, *BC, PC; 11201 11202int 11203main () 11204{ 11205if (UP == 0 && BC == 0) PC = 1 11206 ; 11207 return 0; 11208} 11209_ACEOF 11210if ac_fn_c_try_link "$LINENO"; then : 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11212$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11213 11214else 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11216$as_echo "no" >&6; } 11217fi 11218rm -f core conftest.err conftest.$ac_objext \ 11219 conftest$ac_exeext conftest.$ac_ext 11220 11221fi 11222rm -f core conftest.err conftest.$ac_objext \ 11223 conftest$ac_exeext conftest.$ac_ext 11224 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11226$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229 11230#ifdef HAVE_TERMCAP_H 11231# include <termcap.h> 11232#endif 11233 11234int 11235main () 11236{ 11237extern int xx(); tputs("test", 1, (outfuntype)xx) 11238 ; 11239 return 0; 11240} 11241_ACEOF 11242if ac_fn_c_try_compile "$LINENO"; then : 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11244$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11245 11246else 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11248$as_echo "no" >&6; } 11249fi 11250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11251 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11253$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257#include <sys/types.h> 11258#include <sys/time.h> 11259#include <sys/select.h> 11260int 11261main () 11262{ 11263 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_compile "$LINENO"; then : 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11270$as_echo "yes" >&6; } 11271 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11272 11273else 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11275$as_echo "no" >&6; } 11276fi 11277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11278 11279 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11281$as_echo_n "checking for /dev/ptc... " >&6; } 11282if test -r /dev/ptc; then 11283 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11284 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11286$as_echo "yes" >&6; } 11287else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11289$as_echo "no" >&6; } 11290fi 11291 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11293$as_echo_n "checking for SVR4 ptys... " >&6; } 11294if test -c /dev/ptmx ; then 11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11296/* end confdefs.h. */ 11297 11298int 11299main () 11300{ 11301ptsname(0);grantpt(0);unlockpt(0); 11302 ; 11303 return 0; 11304} 11305_ACEOF 11306if ac_fn_c_try_link "$LINENO"; then : 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11308$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11309 11310else 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11312$as_echo "no" >&6; } 11313fi 11314rm -f core conftest.err conftest.$ac_objext \ 11315 conftest$ac_exeext conftest.$ac_ext 11316else 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11318$as_echo "no" >&6; } 11319fi 11320 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11322$as_echo_n "checking for ptyranges... " >&6; } 11323if test -d /dev/ptym ; then 11324 pdir='/dev/ptym' 11325else 11326 pdir='/dev' 11327fi 11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11329/* end confdefs.h. */ 11330#ifdef M_UNIX 11331 yes; 11332#endif 11333 11334_ACEOF 11335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11336 $EGREP "yes" >/dev/null 2>&1; then : 11337 ptys=`echo /dev/ptyp??` 11338else 11339 ptys=`echo $pdir/pty??` 11340fi 11341rm -f conftest* 11342 11343if test "$ptys" != "$pdir/pty??" ; then 11344 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11345 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11346 cat >>confdefs.h <<_ACEOF 11347#define PTYRANGE0 "$p0" 11348_ACEOF 11349 11350 cat >>confdefs.h <<_ACEOF 11351#define PTYRANGE1 "$p1" 11352_ACEOF 11353 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11355$as_echo "$p0 / $p1" >&6; } 11356else 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11358$as_echo "don't know" >&6; } 11359fi 11360 11361rm -f conftest_grp 11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11363$as_echo_n "checking default tty permissions/group... " >&6; } 11364if ${vim_cv_tty_group+:} false; then : 11365 $as_echo_n "(cached) " >&6 11366else 11367 11368 if test "$cross_compiling" = yes; then : 11369 11370 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11371 11372else 11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11374/* end confdefs.h. */ 11375 11376#include "confdefs.h" 11377#include <sys/types.h> 11378#if STDC_HEADERS 11379# include <stdlib.h> 11380# include <stddef.h> 11381#endif 11382#ifdef HAVE_UNISTD_H 11383#include <unistd.h> 11384#endif 11385#include <sys/stat.h> 11386#include <stdio.h> 11387main() 11388{ 11389 struct stat sb; 11390 char *x,*ttyname(); 11391 int om, m; 11392 FILE *fp; 11393 11394 if (!(x = ttyname(0))) exit(1); 11395 if (stat(x, &sb)) exit(1); 11396 om = sb.st_mode; 11397 if (om & 002) exit(0); 11398 m = system("mesg y"); 11399 if (m == -1 || m == 127) exit(1); 11400 if (stat(x, &sb)) exit(1); 11401 m = sb.st_mode; 11402 if (chmod(x, om)) exit(1); 11403 if (m & 002) exit(0); 11404 if (sb.st_gid == getgid()) exit(1); 11405 if (!(fp=fopen("conftest_grp", "w"))) 11406 exit(1); 11407 fprintf(fp, "%d\n", sb.st_gid); 11408 fclose(fp); 11409 exit(0); 11410} 11411 11412_ACEOF 11413if ac_fn_c_try_run "$LINENO"; then : 11414 11415 if test -f conftest_grp; then 11416 vim_cv_tty_group=`cat conftest_grp` 11417 if test "x$vim_cv_tty_mode" = "x" ; then 11418 vim_cv_tty_mode=0620 11419 fi 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11421$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11422 else 11423 vim_cv_tty_group=world 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11425$as_echo "ptys are world accessible" >&6; } 11426 fi 11427 11428else 11429 11430 vim_cv_tty_group=world 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11432$as_echo "can't determine - assume ptys are world accessible" >&6; } 11433 11434fi 11435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11436 conftest.$ac_objext conftest.beam conftest.$ac_ext 11437fi 11438 11439 11440fi 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11442$as_echo "$vim_cv_tty_group" >&6; } 11443rm -f conftest_grp 11444 11445if test "x$vim_cv_tty_group" != "xworld" ; then 11446 cat >>confdefs.h <<_ACEOF 11447#define PTYGROUP $vim_cv_tty_group 11448_ACEOF 11449 11450 if test "x$vim_cv_tty_mode" = "x" ; then 11451 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 11452 else 11453 $as_echo "#define PTYMODE 0620" >>confdefs.h 11454 11455 fi 11456fi 11457 11458 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11460$as_echo_n "checking return type of signal handlers... " >&6; } 11461if ${ac_cv_type_signal+:} false; then : 11462 $as_echo_n "(cached) " >&6 11463else 11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11465/* end confdefs.h. */ 11466#include <sys/types.h> 11467#include <signal.h> 11468 11469int 11470main () 11471{ 11472return *(signal (0, 0)) (0) == 1; 11473 ; 11474 return 0; 11475} 11476_ACEOF 11477if ac_fn_c_try_compile "$LINENO"; then : 11478 ac_cv_type_signal=int 11479else 11480 ac_cv_type_signal=void 11481fi 11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11483fi 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11485$as_echo "$ac_cv_type_signal" >&6; } 11486 11487cat >>confdefs.h <<_ACEOF 11488#define RETSIGTYPE $ac_cv_type_signal 11489_ACEOF 11490 11491 11492 11493if test $ac_cv_type_signal = void; then 11494 $as_echo "#define SIGRETURN return" >>confdefs.h 11495 11496else 11497 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11498 11499fi 11500 11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11502$as_echo_n "checking for struct sigcontext... " >&6; } 11503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11504/* end confdefs.h. */ 11505 11506#include <signal.h> 11507test_sig() 11508{ 11509 struct sigcontext *scont; 11510 scont = (struct sigcontext *)0; 11511 return 1; 11512} 11513int 11514main () 11515{ 11516 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521if ac_fn_c_try_compile "$LINENO"; then : 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11523$as_echo "yes" >&6; } 11524 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 11525 11526else 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11528$as_echo "no" >&6; } 11529fi 11530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11531 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 11533$as_echo_n "checking getcwd implementation is broken... " >&6; } 11534if ${vim_cv_getcwd_broken+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 11538 if test "$cross_compiling" = yes; then : 11539 11540 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 11541 11542else 11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11544/* end confdefs.h. */ 11545 11546#include "confdefs.h" 11547#ifdef HAVE_UNISTD_H 11548#include <unistd.h> 11549#endif 11550char *dagger[] = { "IFS=pwd", 0 }; 11551main() 11552{ 11553 char buffer[500]; 11554 extern char **environ; 11555 environ = dagger; 11556 return getcwd(buffer, 500) ? 0 : 1; 11557} 11558 11559_ACEOF 11560if ac_fn_c_try_run "$LINENO"; then : 11561 11562 vim_cv_getcwd_broken=no 11563 11564else 11565 11566 vim_cv_getcwd_broken=yes 11567 11568fi 11569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11570 conftest.$ac_objext conftest.beam conftest.$ac_ext 11571fi 11572 11573 11574fi 11575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 11576$as_echo "$vim_cv_getcwd_broken" >&6; } 11577 11578if test "x$vim_cv_getcwd_broken" = "xyes" ; then 11579 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 11580 11581fi 11582 11583for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 11584 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 11585 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 11586 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 11587 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 11588 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 11589 usleep utime utimes 11590do : 11591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11592ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11593if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11594 cat >>confdefs.h <<_ACEOF 11595#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11596_ACEOF 11597 11598fi 11599done 11600 11601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11602$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11603if ${ac_cv_sys_largefile_source+:} false; then : 11604 $as_echo_n "(cached) " >&6 11605else 11606 while :; do 11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11608/* end confdefs.h. */ 11609#include <sys/types.h> /* for off_t */ 11610 #include <stdio.h> 11611int 11612main () 11613{ 11614int (*fp) (FILE *, off_t, int) = fseeko; 11615 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_link "$LINENO"; then : 11621 ac_cv_sys_largefile_source=no; break 11622fi 11623rm -f core conftest.err conftest.$ac_objext \ 11624 conftest$ac_exeext conftest.$ac_ext 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626/* end confdefs.h. */ 11627#define _LARGEFILE_SOURCE 1 11628#include <sys/types.h> /* for off_t */ 11629 #include <stdio.h> 11630int 11631main () 11632{ 11633int (*fp) (FILE *, off_t, int) = fseeko; 11634 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11635 ; 11636 return 0; 11637} 11638_ACEOF 11639if ac_fn_c_try_link "$LINENO"; then : 11640 ac_cv_sys_largefile_source=1; break 11641fi 11642rm -f core conftest.err conftest.$ac_objext \ 11643 conftest$ac_exeext conftest.$ac_ext 11644 ac_cv_sys_largefile_source=unknown 11645 break 11646done 11647fi 11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 11649$as_echo "$ac_cv_sys_largefile_source" >&6; } 11650case $ac_cv_sys_largefile_source in #( 11651 no | unknown) ;; 11652 *) 11653cat >>confdefs.h <<_ACEOF 11654#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 11655_ACEOF 11656;; 11657esac 11658rm -rf conftest* 11659 11660# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11661# in glibc 2.1.3, but that breaks too many other things. 11662# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11663if test $ac_cv_sys_largefile_source != unknown; then 11664 11665$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 11666 11667fi 11668 11669 11670# Check whether --enable-largefile was given. 11671if test "${enable_largefile+set}" = set; then : 11672 enableval=$enable_largefile; 11673fi 11674 11675if test "$enable_largefile" != no; then 11676 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11678$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11679if ${ac_cv_sys_largefile_CC+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681else 11682 ac_cv_sys_largefile_CC=no 11683 if test "$GCC" != yes; then 11684 ac_save_CC=$CC 11685 while :; do 11686 # IRIX 6.2 and later do not support large files by default, 11687 # so use the C compiler's -n32 option if that helps. 11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11689/* end confdefs.h. */ 11690#include <sys/types.h> 11691 /* Check that off_t can represent 2**63 - 1 correctly. 11692 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11693 since some C++ compilers masquerading as C compilers 11694 incorrectly reject 9223372036854775807. */ 11695#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11697 && LARGE_OFF_T % 2147483647 == 1) 11698 ? 1 : -1]; 11699int 11700main () 11701{ 11702 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707 if ac_fn_c_try_compile "$LINENO"; then : 11708 break 11709fi 11710rm -f core conftest.err conftest.$ac_objext 11711 CC="$CC -n32" 11712 if ac_fn_c_try_compile "$LINENO"; then : 11713 ac_cv_sys_largefile_CC=' -n32'; break 11714fi 11715rm -f core conftest.err conftest.$ac_objext 11716 break 11717 done 11718 CC=$ac_save_CC 11719 rm -f conftest.$ac_ext 11720 fi 11721fi 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11723$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11724 if test "$ac_cv_sys_largefile_CC" != no; then 11725 CC=$CC$ac_cv_sys_largefile_CC 11726 fi 11727 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11729$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11730if ${ac_cv_sys_file_offset_bits+:} false; then : 11731 $as_echo_n "(cached) " >&6 11732else 11733 while :; do 11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11735/* end confdefs.h. */ 11736#include <sys/types.h> 11737 /* Check that off_t can represent 2**63 - 1 correctly. 11738 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11739 since some C++ compilers masquerading as C compilers 11740 incorrectly reject 9223372036854775807. */ 11741#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11743 && LARGE_OFF_T % 2147483647 == 1) 11744 ? 1 : -1]; 11745int 11746main () 11747{ 11748 11749 ; 11750 return 0; 11751} 11752_ACEOF 11753if ac_fn_c_try_compile "$LINENO"; then : 11754 ac_cv_sys_file_offset_bits=no; break 11755fi 11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759#define _FILE_OFFSET_BITS 64 11760#include <sys/types.h> 11761 /* Check that off_t can represent 2**63 - 1 correctly. 11762 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11763 since some C++ compilers masquerading as C compilers 11764 incorrectly reject 9223372036854775807. */ 11765#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11767 && LARGE_OFF_T % 2147483647 == 1) 11768 ? 1 : -1]; 11769int 11770main () 11771{ 11772 11773 ; 11774 return 0; 11775} 11776_ACEOF 11777if ac_fn_c_try_compile "$LINENO"; then : 11778 ac_cv_sys_file_offset_bits=64; break 11779fi 11780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11781 ac_cv_sys_file_offset_bits=unknown 11782 break 11783done 11784fi 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11786$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11787case $ac_cv_sys_file_offset_bits in #( 11788 no | unknown) ;; 11789 *) 11790cat >>confdefs.h <<_ACEOF 11791#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11792_ACEOF 11793;; 11794esac 11795rm -rf conftest* 11796 if test $ac_cv_sys_file_offset_bits = unknown; then 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11798$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11799if ${ac_cv_sys_large_files+:} false; then : 11800 $as_echo_n "(cached) " >&6 11801else 11802 while :; do 11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11804/* end confdefs.h. */ 11805#include <sys/types.h> 11806 /* Check that off_t can represent 2**63 - 1 correctly. 11807 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11808 since some C++ compilers masquerading as C compilers 11809 incorrectly reject 9223372036854775807. */ 11810#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11812 && LARGE_OFF_T % 2147483647 == 1) 11813 ? 1 : -1]; 11814int 11815main () 11816{ 11817 11818 ; 11819 return 0; 11820} 11821_ACEOF 11822if ac_fn_c_try_compile "$LINENO"; then : 11823 ac_cv_sys_large_files=no; break 11824fi 11825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11827/* end confdefs.h. */ 11828#define _LARGE_FILES 1 11829#include <sys/types.h> 11830 /* Check that off_t can represent 2**63 - 1 correctly. 11831 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11832 since some C++ compilers masquerading as C compilers 11833 incorrectly reject 9223372036854775807. */ 11834#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11836 && LARGE_OFF_T % 2147483647 == 1) 11837 ? 1 : -1]; 11838int 11839main () 11840{ 11841 11842 ; 11843 return 0; 11844} 11845_ACEOF 11846if ac_fn_c_try_compile "$LINENO"; then : 11847 ac_cv_sys_large_files=1; break 11848fi 11849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11850 ac_cv_sys_large_files=unknown 11851 break 11852done 11853fi 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11855$as_echo "$ac_cv_sys_large_files" >&6; } 11856case $ac_cv_sys_large_files in #( 11857 no | unknown) ;; 11858 *) 11859cat >>confdefs.h <<_ACEOF 11860#define _LARGE_FILES $ac_cv_sys_large_files 11861_ACEOF 11862;; 11863esac 11864rm -rf conftest* 11865 fi 11866 11867 11868fi 11869 11870 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 11872$as_echo_n "checking for st_blksize... " >&6; } 11873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875#include <sys/types.h> 11876#include <sys/stat.h> 11877int 11878main () 11879{ 11880 struct stat st; 11881 int n; 11882 11883 stat("/", &st); 11884 n = (int)st.st_blksize; 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889if ac_fn_c_try_compile "$LINENO"; then : 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11891$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 11892 11893else 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11895$as_echo "no" >&6; } 11896fi 11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11898 11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 11900$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 11901if ${vim_cv_stat_ignores_slash+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903else 11904 11905 if test "$cross_compiling" = yes; then : 11906 11907 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 11908 11909else 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912 11913#include "confdefs.h" 11914#if STDC_HEADERS 11915# include <stdlib.h> 11916# include <stddef.h> 11917#endif 11918#include <sys/types.h> 11919#include <sys/stat.h> 11920main() {struct stat st; exit(stat("configure/", &st) != 0); } 11921 11922_ACEOF 11923if ac_fn_c_try_run "$LINENO"; then : 11924 11925 vim_cv_stat_ignores_slash=yes 11926 11927else 11928 11929 vim_cv_stat_ignores_slash=no 11930 11931fi 11932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11933 conftest.$ac_objext conftest.beam conftest.$ac_ext 11934fi 11935 11936 11937fi 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 11939$as_echo "$vim_cv_stat_ignores_slash" >&6; } 11940 11941if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 11942 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 11943 11944fi 11945 11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 11947$as_echo_n "checking for iconv_open()... " >&6; } 11948save_LIBS="$LIBS" 11949LIBS="$LIBS -liconv" 11950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11951/* end confdefs.h. */ 11952 11953#ifdef HAVE_ICONV_H 11954# include <iconv.h> 11955#endif 11956 11957int 11958main () 11959{ 11960iconv_open("fr", "to"); 11961 ; 11962 return 0; 11963} 11964_ACEOF 11965if ac_fn_c_try_link "$LINENO"; then : 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 11967$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 11968 11969else 11970 LIBS="$save_LIBS" 11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11972/* end confdefs.h. */ 11973 11974#ifdef HAVE_ICONV_H 11975# include <iconv.h> 11976#endif 11977 11978int 11979main () 11980{ 11981iconv_open("fr", "to"); 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986if ac_fn_c_try_link "$LINENO"; then : 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11988$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 11989 11990else 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11992$as_echo "no" >&6; } 11993fi 11994rm -f core conftest.err conftest.$ac_objext \ 11995 conftest$ac_exeext conftest.$ac_ext 11996fi 11997rm -f core conftest.err conftest.$ac_objext \ 11998 conftest$ac_exeext conftest.$ac_ext 11999 12000 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12002$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006#ifdef HAVE_LANGINFO_H 12007# include <langinfo.h> 12008#endif 12009 12010int 12011main () 12012{ 12013char *cs = nl_langinfo(CODESET); 12014 ; 12015 return 0; 12016} 12017_ACEOF 12018if ac_fn_c_try_link "$LINENO"; then : 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12020$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12021 12022else 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12024$as_echo "no" >&6; } 12025fi 12026rm -f core conftest.err conftest.$ac_objext \ 12027 conftest$ac_exeext conftest.$ac_ext 12028 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12030$as_echo_n "checking for strtod in -lm... " >&6; } 12031if ${ac_cv_lib_m_strtod+:} false; then : 12032 $as_echo_n "(cached) " >&6 12033else 12034 ac_check_lib_save_LIBS=$LIBS 12035LIBS="-lm $LIBS" 12036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12037/* end confdefs.h. */ 12038 12039/* Override any GCC internal prototype to avoid an error. 12040 Use char because int might match the return type of a GCC 12041 builtin and then its argument prototype would still apply. */ 12042#ifdef __cplusplus 12043extern "C" 12044#endif 12045char strtod (); 12046int 12047main () 12048{ 12049return strtod (); 12050 ; 12051 return 0; 12052} 12053_ACEOF 12054if ac_fn_c_try_link "$LINENO"; then : 12055 ac_cv_lib_m_strtod=yes 12056else 12057 ac_cv_lib_m_strtod=no 12058fi 12059rm -f core conftest.err conftest.$ac_objext \ 12060 conftest$ac_exeext conftest.$ac_ext 12061LIBS=$ac_check_lib_save_LIBS 12062fi 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12064$as_echo "$ac_cv_lib_m_strtod" >&6; } 12065if test "x$ac_cv_lib_m_strtod" = xyes; then : 12066 cat >>confdefs.h <<_ACEOF 12067#define HAVE_LIBM 1 12068_ACEOF 12069 12070 LIBS="-lm $LIBS" 12071 12072fi 12073 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12075$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12077/* end confdefs.h. */ 12078 12079#ifdef HAVE_MATH_H 12080# include <math.h> 12081#endif 12082#if STDC_HEADERS 12083# include <stdlib.h> 12084# include <stddef.h> 12085#endif 12086 12087int 12088main () 12089{ 12090char *s; double d; 12091 d = strtod("1.1", &s); 12092 d = fabs(1.11); 12093 d = ceil(1.11); 12094 d = floor(1.11); 12095 d = log10(1.11); 12096 d = pow(1.11, 2.22); 12097 d = sqrt(1.11); 12098 d = sin(1.11); 12099 d = cos(1.11); 12100 d = atan(1.11); 12101 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106if ac_fn_c_try_link "$LINENO"; then : 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12108$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12109 12110else 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12112$as_echo "no" >&6; } 12113fi 12114rm -f core conftest.err conftest.$ac_objext \ 12115 conftest$ac_exeext conftest.$ac_ext 12116 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12118$as_echo_n "checking --disable-acl argument... " >&6; } 12119# Check whether --enable-acl was given. 12120if test "${enable_acl+set}" = set; then : 12121 enableval=$enable_acl; 12122else 12123 enable_acl="yes" 12124fi 12125 12126if test "$enable_acl" = "yes"; then 12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12128$as_echo "no" >&6; } 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12130$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12131if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 ac_check_lib_save_LIBS=$LIBS 12135LIBS="-lposix1e $LIBS" 12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12137/* end confdefs.h. */ 12138 12139/* Override any GCC internal prototype to avoid an error. 12140 Use char because int might match the return type of a GCC 12141 builtin and then its argument prototype would still apply. */ 12142#ifdef __cplusplus 12143extern "C" 12144#endif 12145char acl_get_file (); 12146int 12147main () 12148{ 12149return acl_get_file (); 12150 ; 12151 return 0; 12152} 12153_ACEOF 12154if ac_fn_c_try_link "$LINENO"; then : 12155 ac_cv_lib_posix1e_acl_get_file=yes 12156else 12157 ac_cv_lib_posix1e_acl_get_file=no 12158fi 12159rm -f core conftest.err conftest.$ac_objext \ 12160 conftest$ac_exeext conftest.$ac_ext 12161LIBS=$ac_check_lib_save_LIBS 12162fi 12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12164$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12165if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12166 LIBS="$LIBS -lposix1e" 12167else 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12169$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12170if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12171 $as_echo_n "(cached) " >&6 12172else 12173 ac_check_lib_save_LIBS=$LIBS 12174LIBS="-lacl $LIBS" 12175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12176/* end confdefs.h. */ 12177 12178/* Override any GCC internal prototype to avoid an error. 12179 Use char because int might match the return type of a GCC 12180 builtin and then its argument prototype would still apply. */ 12181#ifdef __cplusplus 12182extern "C" 12183#endif 12184char acl_get_file (); 12185int 12186main () 12187{ 12188return acl_get_file (); 12189 ; 12190 return 0; 12191} 12192_ACEOF 12193if ac_fn_c_try_link "$LINENO"; then : 12194 ac_cv_lib_acl_acl_get_file=yes 12195else 12196 ac_cv_lib_acl_acl_get_file=no 12197fi 12198rm -f core conftest.err conftest.$ac_objext \ 12199 conftest$ac_exeext conftest.$ac_ext 12200LIBS=$ac_check_lib_save_LIBS 12201fi 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12203$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12204if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12205 LIBS="$LIBS -lacl" 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12207$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12208if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12209 $as_echo_n "(cached) " >&6 12210else 12211 ac_check_lib_save_LIBS=$LIBS 12212LIBS="-lattr $LIBS" 12213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12214/* end confdefs.h. */ 12215 12216/* Override any GCC internal prototype to avoid an error. 12217 Use char because int might match the return type of a GCC 12218 builtin and then its argument prototype would still apply. */ 12219#ifdef __cplusplus 12220extern "C" 12221#endif 12222char fgetxattr (); 12223int 12224main () 12225{ 12226return fgetxattr (); 12227 ; 12228 return 0; 12229} 12230_ACEOF 12231if ac_fn_c_try_link "$LINENO"; then : 12232 ac_cv_lib_attr_fgetxattr=yes 12233else 12234 ac_cv_lib_attr_fgetxattr=no 12235fi 12236rm -f core conftest.err conftest.$ac_objext \ 12237 conftest$ac_exeext conftest.$ac_ext 12238LIBS=$ac_check_lib_save_LIBS 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12241$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12242if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12243 LIBS="$LIBS -lattr" 12244fi 12245 12246fi 12247 12248fi 12249 12250 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12252$as_echo_n "checking for POSIX ACL support... " >&6; } 12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254/* end confdefs.h. */ 12255 12256#include <sys/types.h> 12257#ifdef HAVE_SYS_ACL_H 12258# include <sys/acl.h> 12259#endif 12260acl_t acl; 12261int 12262main () 12263{ 12264acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12265 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12266 acl_free(acl); 12267 ; 12268 return 0; 12269} 12270_ACEOF 12271if ac_fn_c_try_link "$LINENO"; then : 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12273$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12274 12275else 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12277$as_echo "no" >&6; } 12278fi 12279rm -f core conftest.err conftest.$ac_objext \ 12280 conftest$ac_exeext conftest.$ac_ext 12281 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12283$as_echo_n "checking for acl_get in -lsec... " >&6; } 12284if ${ac_cv_lib_sec_acl_get+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 ac_check_lib_save_LIBS=$LIBS 12288LIBS="-lsec $LIBS" 12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12290/* end confdefs.h. */ 12291 12292/* Override any GCC internal prototype to avoid an error. 12293 Use char because int might match the return type of a GCC 12294 builtin and then its argument prototype would still apply. */ 12295#ifdef __cplusplus 12296extern "C" 12297#endif 12298char acl_get (); 12299int 12300main () 12301{ 12302return acl_get (); 12303 ; 12304 return 0; 12305} 12306_ACEOF 12307if ac_fn_c_try_link "$LINENO"; then : 12308 ac_cv_lib_sec_acl_get=yes 12309else 12310 ac_cv_lib_sec_acl_get=no 12311fi 12312rm -f core conftest.err conftest.$ac_objext \ 12313 conftest$ac_exeext conftest.$ac_ext 12314LIBS=$ac_check_lib_save_LIBS 12315fi 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12317$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12318if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12319 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12320 12321else 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12323$as_echo_n "checking for Solaris ACL support... " >&6; } 12324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326 12327#ifdef HAVE_SYS_ACL_H 12328# include <sys/acl.h> 12329#endif 12330int 12331main () 12332{ 12333acl("foo", GETACLCNT, 0, NULL); 12334 12335 ; 12336 return 0; 12337} 12338_ACEOF 12339if ac_fn_c_try_link "$LINENO"; then : 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12341$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12342 12343else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345$as_echo "no" >&6; } 12346fi 12347rm -f core conftest.err conftest.$ac_objext \ 12348 conftest$ac_exeext conftest.$ac_ext 12349fi 12350 12351 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12353$as_echo_n "checking for AIX ACL support... " >&6; } 12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356 12357#if STDC_HEADERS 12358# include <stdlib.h> 12359# include <stddef.h> 12360#endif 12361#ifdef HAVE_SYS_ACL_H 12362# include <sys/acl.h> 12363#endif 12364#ifdef HAVE_SYS_ACCESS_H 12365# include <sys/access.h> 12366#endif 12367#define _ALL_SOURCE 12368 12369#include <sys/stat.h> 12370 12371int aclsize; 12372struct acl *aclent; 12373int 12374main () 12375{ 12376aclsize = sizeof(struct acl); 12377 aclent = (void *)malloc(aclsize); 12378 statacl("foo", STX_NORMAL, aclent, aclsize); 12379 12380 ; 12381 return 0; 12382} 12383_ACEOF 12384if ac_fn_c_try_link "$LINENO"; then : 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12386$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12387 12388else 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12390$as_echo "no" >&6; } 12391fi 12392rm -f core conftest.err conftest.$ac_objext \ 12393 conftest$ac_exeext conftest.$ac_ext 12394else 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12396$as_echo "yes" >&6; } 12397fi 12398 12399if test "x$GTK_CFLAGS" != "x"; then 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12401$as_echo_n "checking for pango_shape_full... " >&6; } 12402 ac_save_CFLAGS="$CFLAGS" 12403 ac_save_LIBS="$LIBS" 12404 CFLAGS="$CFLAGS $GTK_CFLAGS" 12405 LIBS="$LIBS $GTK_LIBS" 12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12407/* end confdefs.h. */ 12408#include <gtk/gtk.h> 12409int 12410main () 12411{ 12412 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12413 ; 12414 return 0; 12415} 12416_ACEOF 12417if ac_fn_c_try_link "$LINENO"; then : 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12419$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12420 12421else 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12423$as_echo "no" >&6; } 12424fi 12425rm -f core conftest.err conftest.$ac_objext \ 12426 conftest$ac_exeext conftest.$ac_ext 12427 CFLAGS="$ac_save_CFLAGS" 12428 LIBS="$ac_save_LIBS" 12429fi 12430 12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12432$as_echo_n "checking --disable-gpm argument... " >&6; } 12433# Check whether --enable-gpm was given. 12434if test "${enable_gpm+set}" = set; then : 12435 enableval=$enable_gpm; 12436else 12437 enable_gpm="yes" 12438fi 12439 12440 12441if test "$enable_gpm" = "yes"; then 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12443$as_echo "no" >&6; } 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12445$as_echo_n "checking for gpm... " >&6; } 12446if ${vi_cv_have_gpm+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 olibs="$LIBS" ; LIBS="-lgpm" 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452#include <gpm.h> 12453 #include <linux/keyboard.h> 12454int 12455main () 12456{ 12457Gpm_GetLibVersion(NULL); 12458 ; 12459 return 0; 12460} 12461_ACEOF 12462if ac_fn_c_try_link "$LINENO"; then : 12463 vi_cv_have_gpm=yes 12464else 12465 vi_cv_have_gpm=no 12466fi 12467rm -f core conftest.err conftest.$ac_objext \ 12468 conftest$ac_exeext conftest.$ac_ext 12469 LIBS="$olibs" 12470 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 12473$as_echo "$vi_cv_have_gpm" >&6; } 12474 if test $vi_cv_have_gpm = yes; then 12475 LIBS="$LIBS -lgpm" 12476 $as_echo "#define HAVE_GPM 1" >>confdefs.h 12477 12478 fi 12479else 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12481$as_echo "yes" >&6; } 12482fi 12483 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 12485$as_echo_n "checking --disable-sysmouse argument... " >&6; } 12486# Check whether --enable-sysmouse was given. 12487if test "${enable_sysmouse+set}" = set; then : 12488 enableval=$enable_sysmouse; 12489else 12490 enable_sysmouse="yes" 12491fi 12492 12493 12494if test "$enable_sysmouse" = "yes"; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496$as_echo "no" >&6; } 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 12498$as_echo_n "checking for sysmouse... " >&6; } 12499if ${vi_cv_have_sysmouse+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504#include <sys/consio.h> 12505 #include <signal.h> 12506 #include <sys/fbio.h> 12507int 12508main () 12509{ 12510struct mouse_info mouse; 12511 mouse.operation = MOUSE_MODE; 12512 mouse.operation = MOUSE_SHOW; 12513 mouse.u.mode.mode = 0; 12514 mouse.u.mode.signal = SIGUSR2; 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_link "$LINENO"; then : 12520 vi_cv_have_sysmouse=yes 12521else 12522 vi_cv_have_sysmouse=no 12523fi 12524rm -f core conftest.err conftest.$ac_objext \ 12525 conftest$ac_exeext conftest.$ac_ext 12526 12527fi 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 12529$as_echo "$vi_cv_have_sysmouse" >&6; } 12530 if test $vi_cv_have_sysmouse = yes; then 12531 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 12532 12533 fi 12534else 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12536$as_echo "yes" >&6; } 12537fi 12538 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 12540$as_echo_n "checking for FD_CLOEXEC... " >&6; } 12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543#if HAVE_FCNTL_H 12544# include <fcntl.h> 12545#endif 12546int 12547main () 12548{ 12549 int flag = FD_CLOEXEC; 12550 ; 12551 return 0; 12552} 12553_ACEOF 12554if ac_fn_c_try_compile "$LINENO"; then : 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12556$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 12557 12558else 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12560$as_echo "not usable" >&6; } 12561fi 12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12563 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 12565$as_echo_n "checking for rename... " >&6; } 12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568#include <stdio.h> 12569int 12570main () 12571{ 12572rename("this", "that") 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_link "$LINENO"; then : 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12579$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 12580 12581else 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12583$as_echo "no" >&6; } 12584fi 12585rm -f core conftest.err conftest.$ac_objext \ 12586 conftest$ac_exeext conftest.$ac_ext 12587 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 12589$as_echo_n "checking for sysctl... " >&6; } 12590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592#include <sys/types.h> 12593#include <sys/sysctl.h> 12594int 12595main () 12596{ 12597 int mib[2], r; 12598 size_t len; 12599 12600 mib[0] = CTL_HW; 12601 mib[1] = HW_USERMEM; 12602 len = sizeof(r); 12603 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 12604 12605 ; 12606 return 0; 12607} 12608_ACEOF 12609if ac_fn_c_try_compile "$LINENO"; then : 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12611$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 12612 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12615$as_echo "not usable" >&6; } 12616fi 12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12618 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 12620$as_echo_n "checking for sysinfo... " >&6; } 12621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12622/* end confdefs.h. */ 12623#include <sys/types.h> 12624#include <sys/sysinfo.h> 12625int 12626main () 12627{ 12628 struct sysinfo sinfo; 12629 int t; 12630 12631 (void)sysinfo(&sinfo); 12632 t = sinfo.totalram; 12633 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_compile "$LINENO"; then : 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12640$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 12641 12642else 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12644$as_echo "not usable" >&6; } 12645fi 12646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12647 12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 12649$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 12650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12651/* end confdefs.h. */ 12652#include <sys/types.h> 12653#include <sys/sysinfo.h> 12654int 12655main () 12656{ 12657 struct sysinfo sinfo; 12658 sinfo.mem_unit = 1; 12659 12660 ; 12661 return 0; 12662} 12663_ACEOF 12664if ac_fn_c_try_compile "$LINENO"; then : 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12666$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 12667 12668else 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12670$as_echo "no" >&6; } 12671fi 12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12673 12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 12675$as_echo_n "checking for sysconf... " >&6; } 12676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12677/* end confdefs.h. */ 12678#include <unistd.h> 12679int 12680main () 12681{ 12682 (void)sysconf(_SC_PAGESIZE); 12683 (void)sysconf(_SC_PHYS_PAGES); 12684 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689if ac_fn_c_try_compile "$LINENO"; then : 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12691$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 12692 12693else 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12695$as_echo "not usable" >&6; } 12696fi 12697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12698 12699# The cast to long int works around a bug in the HP C Compiler 12700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12702# This bug is HP SR number 8606223364. 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12704$as_echo_n "checking size of int... " >&6; } 12705if ${ac_cv_sizeof_int+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707else 12708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12709 12710else 12711 if test "$ac_cv_type_int" = yes; then 12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12714as_fn_error 77 "cannot compute sizeof (int) 12715See \`config.log' for more details" "$LINENO" 5; } 12716 else 12717 ac_cv_sizeof_int=0 12718 fi 12719fi 12720 12721fi 12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12723$as_echo "$ac_cv_sizeof_int" >&6; } 12724 12725 12726 12727cat >>confdefs.h <<_ACEOF 12728#define SIZEOF_INT $ac_cv_sizeof_int 12729_ACEOF 12730 12731 12732# The cast to long int works around a bug in the HP C Compiler 12733# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12734# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12735# This bug is HP SR number 8606223364. 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12737$as_echo_n "checking size of long... " >&6; } 12738if ${ac_cv_sizeof_long+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12742 12743else 12744 if test "$ac_cv_type_long" = yes; then 12745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12747as_fn_error 77 "cannot compute sizeof (long) 12748See \`config.log' for more details" "$LINENO" 5; } 12749 else 12750 ac_cv_sizeof_long=0 12751 fi 12752fi 12753 12754fi 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12756$as_echo "$ac_cv_sizeof_long" >&6; } 12757 12758 12759 12760cat >>confdefs.h <<_ACEOF 12761#define SIZEOF_LONG $ac_cv_sizeof_long 12762_ACEOF 12763 12764 12765# The cast to long int works around a bug in the HP C Compiler 12766# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12767# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12768# This bug is HP SR number 8606223364. 12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12770$as_echo_n "checking size of time_t... " >&6; } 12771if ${ac_cv_sizeof_time_t+:} false; then : 12772 $as_echo_n "(cached) " >&6 12773else 12774 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 12775 12776else 12777 if test "$ac_cv_type_time_t" = yes; then 12778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12780as_fn_error 77 "cannot compute sizeof (time_t) 12781See \`config.log' for more details" "$LINENO" 5; } 12782 else 12783 ac_cv_sizeof_time_t=0 12784 fi 12785fi 12786 12787fi 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12789$as_echo "$ac_cv_sizeof_time_t" >&6; } 12790 12791 12792 12793cat >>confdefs.h <<_ACEOF 12794#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 12795_ACEOF 12796 12797 12798# The cast to long int works around a bug in the HP C Compiler 12799# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12800# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12801# This bug is HP SR number 8606223364. 12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 12803$as_echo_n "checking size of off_t... " >&6; } 12804if ${ac_cv_sizeof_off_t+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 12808 12809else 12810 if test "$ac_cv_type_off_t" = yes; then 12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12813as_fn_error 77 "cannot compute sizeof (off_t) 12814See \`config.log' for more details" "$LINENO" 5; } 12815 else 12816 ac_cv_sizeof_off_t=0 12817 fi 12818fi 12819 12820fi 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 12822$as_echo "$ac_cv_sizeof_off_t" >&6; } 12823 12824 12825 12826cat >>confdefs.h <<_ACEOF 12827#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 12828_ACEOF 12829 12830 12831 12832cat >>confdefs.h <<_ACEOF 12833#define VIM_SIZEOF_INT $ac_cv_sizeof_int 12834_ACEOF 12835 12836cat >>confdefs.h <<_ACEOF 12837#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 12838_ACEOF 12839 12840 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 12842$as_echo_n "checking uint32_t is 32 bits... " >&6; } 12843if test "$cross_compiling" = yes; then : 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 12845$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 12846else 12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12848/* end confdefs.h. */ 12849 12850#ifdef HAVE_STDINT_H 12851# include <stdint.h> 12852#endif 12853#ifdef HAVE_INTTYPES_H 12854# include <inttypes.h> 12855#endif 12856main() { 12857 uint32_t nr1 = (uint32_t)-1; 12858 uint32_t nr2 = (uint32_t)0xffffffffUL; 12859 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 12860 exit(0); 12861} 12862_ACEOF 12863if ac_fn_c_try_run "$LINENO"; then : 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12865$as_echo "ok" >&6; } 12866else 12867 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 12868fi 12869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12870 conftest.$ac_objext conftest.beam conftest.$ac_ext 12871fi 12872 12873 12874 12875bcopy_test_prog=' 12876#include "confdefs.h" 12877#ifdef HAVE_STRING_H 12878# include <string.h> 12879#endif 12880#if STDC_HEADERS 12881# include <stdlib.h> 12882# include <stddef.h> 12883#endif 12884main() { 12885 char buf[10]; 12886 strcpy(buf, "abcdefghi"); 12887 mch_memmove(buf, buf + 2, 3); 12888 if (strncmp(buf, "ababcf", 6)) 12889 exit(1); 12890 strcpy(buf, "abcdefghi"); 12891 mch_memmove(buf + 2, buf, 3); 12892 if (strncmp(buf, "cdedef", 6)) 12893 exit(1); 12894 exit(0); /* libc version works properly. */ 12895}' 12896 12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 12898$as_echo_n "checking whether memmove handles overlaps... " >&6; } 12899if ${vim_cv_memmove_handles_overlap+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 12903 if test "$cross_compiling" = yes; then : 12904 12905 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 12906 12907else 12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 12911_ACEOF 12912if ac_fn_c_try_run "$LINENO"; then : 12913 12914 vim_cv_memmove_handles_overlap=yes 12915 12916else 12917 12918 vim_cv_memmove_handles_overlap=no 12919 12920fi 12921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12922 conftest.$ac_objext conftest.beam conftest.$ac_ext 12923fi 12924 12925 12926fi 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 12928$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 12929 12930if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 12931 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 12932 12933else 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 12935$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 12936if ${vim_cv_bcopy_handles_overlap+:} false; then : 12937 $as_echo_n "(cached) " >&6 12938else 12939 12940 if test "$cross_compiling" = yes; then : 12941 12942 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 12943 12944else 12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946/* end confdefs.h. */ 12947#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 12948_ACEOF 12949if ac_fn_c_try_run "$LINENO"; then : 12950 12951 vim_cv_bcopy_handles_overlap=yes 12952 12953else 12954 12955 vim_cv_bcopy_handles_overlap=no 12956 12957fi 12958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12959 conftest.$ac_objext conftest.beam conftest.$ac_ext 12960fi 12961 12962 12963fi 12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 12965$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 12966 12967 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 12968 $as_echo "#define USEBCOPY 1" >>confdefs.h 12969 12970 else 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 12972$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 12973if ${vim_cv_memcpy_handles_overlap+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 12977 if test "$cross_compiling" = yes; then : 12978 12979 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 12980 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 12985_ACEOF 12986if ac_fn_c_try_run "$LINENO"; then : 12987 12988 vim_cv_memcpy_handles_overlap=yes 12989 12990else 12991 12992 vim_cv_memcpy_handles_overlap=no 12993 12994fi 12995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12996 conftest.$ac_objext conftest.beam conftest.$ac_ext 12997fi 12998 12999 13000fi 13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13002$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13003 13004 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13005 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13006 13007 fi 13008 fi 13009fi 13010 13011 13012if test "x$with_x" = "xyes"; then 13013 cflags_save=$CFLAGS 13014 libs_save=$LIBS 13015 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13016 CFLAGS="$CFLAGS $X_CFLAGS" 13017 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13019$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022#include <X11/Xlocale.h> 13023int 13024main () 13025{ 13026 13027 ; 13028 return 0; 13029} 13030_ACEOF 13031if ac_fn_c_try_compile "$LINENO"; then : 13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13033/* end confdefs.h. */ 13034 13035/* Override any GCC internal prototype to avoid an error. 13036 Use char because int might match the return type of a GCC 13037 builtin and then its argument prototype would still apply. */ 13038#ifdef __cplusplus 13039extern "C" 13040#endif 13041char _Xsetlocale (); 13042int 13043main () 13044{ 13045return _Xsetlocale (); 13046 ; 13047 return 0; 13048} 13049_ACEOF 13050if ac_fn_c_try_link "$LINENO"; then : 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13052$as_echo "yes" >&6; } 13053 $as_echo "#define X_LOCALE 1" >>confdefs.h 13054 13055else 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13057$as_echo "no" >&6; } 13058fi 13059rm -f core conftest.err conftest.$ac_objext \ 13060 conftest$ac_exeext conftest.$ac_ext 13061else 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13063$as_echo "no" >&6; } 13064fi 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13068$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13070/* end confdefs.h. */ 13071 13072/* Override any GCC internal prototype to avoid an error. 13073 Use char because int might match the return type of a GCC 13074 builtin and then its argument prototype would still apply. */ 13075#ifdef __cplusplus 13076extern "C" 13077#endif 13078char Xutf8SetWMProperties (); 13079int 13080main () 13081{ 13082return Xutf8SetWMProperties (); 13083 ; 13084 return 0; 13085} 13086_ACEOF 13087if ac_fn_c_try_link "$LINENO"; then : 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13089$as_echo "yes" >&6; } 13090 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13091 13092else 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13094$as_echo "no" >&6; } 13095fi 13096rm -f core conftest.err conftest.$ac_objext \ 13097 conftest$ac_exeext conftest.$ac_ext 13098 13099 CFLAGS=$cflags_save 13100 LIBS=$libs_save 13101fi 13102 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13104$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13105if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 ac_check_lib_save_LIBS=$LIBS 13109LIBS="-lxpg4 $LIBS" 13110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13111/* end confdefs.h. */ 13112 13113/* Override any GCC internal prototype to avoid an error. 13114 Use char because int might match the return type of a GCC 13115 builtin and then its argument prototype would still apply. */ 13116#ifdef __cplusplus 13117extern "C" 13118#endif 13119char _xpg4_setrunelocale (); 13120int 13121main () 13122{ 13123return _xpg4_setrunelocale (); 13124 ; 13125 return 0; 13126} 13127_ACEOF 13128if ac_fn_c_try_link "$LINENO"; then : 13129 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13130else 13131 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13132fi 13133rm -f core conftest.err conftest.$ac_objext \ 13134 conftest$ac_exeext conftest.$ac_ext 13135LIBS=$ac_check_lib_save_LIBS 13136fi 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13138$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13139if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13140 LIBS="$LIBS -lxpg4" 13141fi 13142 13143 13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13145$as_echo_n "checking how to create tags... " >&6; } 13146test -f tags && mv tags tags.save 13147if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13148 TAGPRG="ctags -I INIT+ --fields=+S" 13149elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13150 TAGPRG="exctags -I INIT+ --fields=+S" 13151elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13152 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13153else 13154 TAGPRG="ctags" 13155 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13156 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13157 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13158 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13159 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13160 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13161 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13162fi 13163test -f tags.save && mv tags.save tags 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13165$as_echo "$TAGPRG" >&6; } 13166 13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13168$as_echo_n "checking how to run man with a section nr... " >&6; } 13169MANDEF="man" 13170(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13172$as_echo "$MANDEF" >&6; } 13173if test "$MANDEF" = "man -s"; then 13174 $as_echo "#define USEMAN_S 1" >>confdefs.h 13175 13176fi 13177 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13179$as_echo_n "checking --disable-nls argument... " >&6; } 13180# Check whether --enable-nls was given. 13181if test "${enable_nls+set}" = set; then : 13182 enableval=$enable_nls; 13183else 13184 enable_nls="yes" 13185fi 13186 13187 13188if test "$enable_nls" = "yes"; then 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13190$as_echo "no" >&6; } 13191 13192 INSTALL_LANGS=install-languages 13193 13194 INSTALL_TOOL_LANGS=install-tool-languages 13195 13196 13197 # Extract the first word of "msgfmt", so it can be a program name with args. 13198set dummy msgfmt; ac_word=$2 13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13200$as_echo_n "checking for $ac_word... " >&6; } 13201if ${ac_cv_prog_MSGFMT+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 if test -n "$MSGFMT"; then 13205 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13206else 13207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13208for as_dir in $PATH 13209do 13210 IFS=$as_save_IFS 13211 test -z "$as_dir" && as_dir=. 13212 for ac_exec_ext in '' $ac_executable_extensions; do 13213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13214 ac_cv_prog_MSGFMT="msgfmt" 13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13216 break 2 13217 fi 13218done 13219 done 13220IFS=$as_save_IFS 13221 13222fi 13223fi 13224MSGFMT=$ac_cv_prog_MSGFMT 13225if test -n "$MSGFMT"; then 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13227$as_echo "$MSGFMT" >&6; } 13228else 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13230$as_echo "no" >&6; } 13231fi 13232 13233 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13235$as_echo_n "checking for NLS... " >&6; } 13236 if test -f po/Makefile; then 13237 have_gettext="no" 13238 if test -n "$MSGFMT"; then 13239 olibs=$LIBS 13240 LIBS="" 13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13242/* end confdefs.h. */ 13243#include <libintl.h> 13244int 13245main () 13246{ 13247gettext("Test"); 13248 ; 13249 return 0; 13250} 13251_ACEOF 13252if ac_fn_c_try_link "$LINENO"; then : 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13254$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13255else 13256 LIBS="-lintl" 13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258/* end confdefs.h. */ 13259#include <libintl.h> 13260int 13261main () 13262{ 13263gettext("Test"); 13264 ; 13265 return 0; 13266} 13267_ACEOF 13268if ac_fn_c_try_link "$LINENO"; then : 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13270$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13271 LIBS="$olibs -lintl" 13272else 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13274$as_echo "gettext() doesn't work" >&6; }; 13275 LIBS=$olibs 13276fi 13277rm -f core conftest.err conftest.$ac_objext \ 13278 conftest$ac_exeext conftest.$ac_ext 13279fi 13280rm -f core conftest.err conftest.$ac_objext \ 13281 conftest$ac_exeext conftest.$ac_ext 13282 else 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13284$as_echo "msgfmt not found - disabled" >&6; }; 13285 fi 13286 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13287 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13288 13289 MAKEMO=yes 13290 13291 for ac_func in bind_textdomain_codeset 13292do : 13293 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13294if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13295 cat >>confdefs.h <<_ACEOF 13296#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13297_ACEOF 13298 13299fi 13300done 13301 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13303$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306#include <libintl.h> 13307 extern int _nl_msg_cat_cntr; 13308int 13309main () 13310{ 13311++_nl_msg_cat_cntr; 13312 ; 13313 return 0; 13314} 13315_ACEOF 13316if ac_fn_c_try_link "$LINENO"; then : 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13318$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13319 13320else 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13322$as_echo "no" >&6; } 13323fi 13324rm -f core conftest.err conftest.$ac_objext \ 13325 conftest$ac_exeext conftest.$ac_ext 13326 fi 13327 else 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13329$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13330 fi 13331else 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13333$as_echo "yes" >&6; } 13334fi 13335 13336ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13337if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13338 DLL=dlfcn.h 13339else 13340 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13341if test "x$ac_cv_header_dl_h" = xyes; then : 13342 DLL=dl.h 13343fi 13344 13345 13346fi 13347 13348 13349if test x${DLL} = xdlfcn.h; then 13350 13351$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13352 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13354$as_echo_n "checking for dlopen()... " >&6; } 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357 13358int 13359main () 13360{ 13361 13362 extern void* dlopen(); 13363 dlopen(); 13364 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_c_try_link "$LINENO"; then : 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13371$as_echo "yes" >&6; }; 13372 13373$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13374 13375else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377$as_echo "no" >&6; }; 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13379$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13380 olibs=$LIBS 13381 LIBS="$LIBS -ldl" 13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13383/* end confdefs.h. */ 13384 13385int 13386main () 13387{ 13388 13389 extern void* dlopen(); 13390 dlopen(); 13391 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_link "$LINENO"; then : 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13398$as_echo "yes" >&6; }; 13399 13400$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13401 13402else 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13404$as_echo "no" >&6; }; 13405 LIBS=$olibs 13406fi 13407rm -f core conftest.err conftest.$ac_objext \ 13408 conftest$ac_exeext conftest.$ac_ext 13409fi 13410rm -f core conftest.err conftest.$ac_objext \ 13411 conftest$ac_exeext conftest.$ac_ext 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13413$as_echo_n "checking for dlsym()... " >&6; } 13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13415/* end confdefs.h. */ 13416 13417int 13418main () 13419{ 13420 13421 extern void* dlsym(); 13422 dlsym(); 13423 13424 ; 13425 return 0; 13426} 13427_ACEOF 13428if ac_fn_c_try_link "$LINENO"; then : 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13430$as_echo "yes" >&6; }; 13431 13432$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13433 13434else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13436$as_echo "no" >&6; }; 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13438$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13439 olibs=$LIBS 13440 LIBS="$LIBS -ldl" 13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13442/* end confdefs.h. */ 13443 13444int 13445main () 13446{ 13447 13448 extern void* dlsym(); 13449 dlsym(); 13450 13451 ; 13452 return 0; 13453} 13454_ACEOF 13455if ac_fn_c_try_link "$LINENO"; then : 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13457$as_echo "yes" >&6; }; 13458 13459$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13460 13461else 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13463$as_echo "no" >&6; }; 13464 LIBS=$olibs 13465fi 13466rm -f core conftest.err conftest.$ac_objext \ 13467 conftest$ac_exeext conftest.$ac_ext 13468fi 13469rm -f core conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471elif test x${DLL} = xdl.h; then 13472 13473$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 13476$as_echo_n "checking for shl_load()... " >&6; } 13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13478/* end confdefs.h. */ 13479 13480int 13481main () 13482{ 13483 13484 extern void* shl_load(); 13485 shl_load(); 13486 13487 ; 13488 return 0; 13489} 13490_ACEOF 13491if ac_fn_c_try_link "$LINENO"; then : 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13493$as_echo "yes" >&6; }; 13494 13495$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13496 13497else 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13499$as_echo "no" >&6; }; 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 13501$as_echo_n "checking for shl_load() in -ldld... " >&6; } 13502 olibs=$LIBS 13503 LIBS="$LIBS -ldld" 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506 13507int 13508main () 13509{ 13510 13511 extern void* shl_load(); 13512 shl_load(); 13513 13514 ; 13515 return 0; 13516} 13517_ACEOF 13518if ac_fn_c_try_link "$LINENO"; then : 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13520$as_echo "yes" >&6; }; 13521 13522$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13523 13524else 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13526$as_echo "no" >&6; }; 13527 LIBS=$olibs 13528fi 13529rm -f core conftest.err conftest.$ac_objext \ 13530 conftest$ac_exeext conftest.$ac_ext 13531fi 13532rm -f core conftest.err conftest.$ac_objext \ 13533 conftest$ac_exeext conftest.$ac_ext 13534fi 13535for ac_header in setjmp.h 13536do : 13537 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 13538if test "x$ac_cv_header_setjmp_h" = xyes; then : 13539 cat >>confdefs.h <<_ACEOF 13540#define HAVE_SETJMP_H 1 13541_ACEOF 13542 13543fi 13544 13545done 13546 13547 13548if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 13549 if echo $LIBS | grep -e '-ldl' >/dev/null; then 13550 LIBS=`echo $LIBS | sed s/-ldl//` 13551 PERL_LIBS="$PERL_LIBS -ldl" 13552 fi 13553fi 13554 13555if test "x$MACOSX" = "xyes"; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 13557$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 13558 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 13559 LIBS=$"$LIBS -framework Cocoa" 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13561$as_echo "yes" >&6; } 13562 else 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13564$as_echo "no" >&6; } 13565 fi 13566 if test "x$features" = "xtiny"; then 13567 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 13568 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 13569 fi 13570fi 13571if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 13572 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 13573fi 13574 13575DEPEND_CFLAGS_FILTER= 13576if test "$GCC" = yes; then 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 13578$as_echo_n "checking for GCC 3 or later... " >&6; } 13579 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 13580 if test "$gccmajor" -gt "2"; then 13581 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13583$as_echo "yes" >&6; } 13584 else 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13586$as_echo "no" >&6; } 13587 fi 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 13589$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 13590 if test "$gccmajor" -gt "3"; then 13591 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/'` 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13593$as_echo "yes" >&6; } 13594 else 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596$as_echo "no" >&6; } 13597 fi 13598fi 13599 13600 13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13602$as_echo_n "checking linker --as-needed support... " >&6; } 13603LINK_AS_NEEDED= 13604# Check if linker supports --as-needed and --no-as-needed options 13605if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 13606 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 13607 LINK_AS_NEEDED=yes 13608fi 13609if test "$LINK_AS_NEEDED" = yes; then 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13611$as_echo "yes" >&6; } 13612else 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13614$as_echo "no" >&6; } 13615fi 13616 13617 13618# IBM z/OS reset CFLAGS for config.mk 13619if test "$zOSUnix" = "yes"; then 13620 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 13621fi 13622 13623ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 13624 13625cat >confcache <<\_ACEOF 13626# This file is a shell script that caches the results of configure 13627# tests run on this system so they can be shared between configure 13628# scripts and configure runs, see configure's option --config-cache. 13629# It is not useful on other systems. If it contains results you don't 13630# want to keep, you may remove or edit it. 13631# 13632# config.status only pays attention to the cache file if you give it 13633# the --recheck option to rerun configure. 13634# 13635# `ac_cv_env_foo' variables (set or unset) will be overridden when 13636# loading this file, other *unset* `ac_cv_foo' will be assigned the 13637# following values. 13638 13639_ACEOF 13640 13641# The following way of writing the cache mishandles newlines in values, 13642# but we know of no workaround that is simple, portable, and efficient. 13643# So, we kill variables containing newlines. 13644# Ultrix sh set writes to stderr and can't be redirected directly, 13645# and sets the high bit in the cache file unless we assign to the vars. 13646( 13647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13648 eval ac_val=\$$ac_var 13649 case $ac_val in #( 13650 *${as_nl}*) 13651 case $ac_var in #( 13652 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13653$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13654 esac 13655 case $ac_var in #( 13656 _ | IFS | as_nl) ;; #( 13657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13658 *) { eval $ac_var=; unset $ac_var;} ;; 13659 esac ;; 13660 esac 13661 done 13662 13663 (set) 2>&1 | 13664 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13665 *${as_nl}ac_space=\ *) 13666 # `set' does not quote correctly, so add quotes: double-quote 13667 # substitution turns \\\\ into \\, and sed turns \\ into \. 13668 sed -n \ 13669 "s/'/'\\\\''/g; 13670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13671 ;; #( 13672 *) 13673 # `set' quotes correctly as required by POSIX, so do not add quotes. 13674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13675 ;; 13676 esac | 13677 sort 13678) | 13679 sed ' 13680 /^ac_cv_env_/b end 13681 t clear 13682 :clear 13683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13684 t end 13685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13686 :end' >>confcache 13687if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13688 if test -w "$cache_file"; then 13689 if test "x$cache_file" != "x/dev/null"; then 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13691$as_echo "$as_me: updating cache $cache_file" >&6;} 13692 if test ! -f "$cache_file" || test -h "$cache_file"; then 13693 cat confcache >"$cache_file" 13694 else 13695 case $cache_file in #( 13696 */* | ?:*) 13697 mv -f confcache "$cache_file"$$ && 13698 mv -f "$cache_file"$$ "$cache_file" ;; #( 13699 *) 13700 mv -f confcache "$cache_file" ;; 13701 esac 13702 fi 13703 fi 13704 else 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13707 fi 13708fi 13709rm -f confcache 13710 13711test "x$prefix" = xNONE && prefix=$ac_default_prefix 13712# Let make expand exec_prefix. 13713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13714 13715DEFS=-DHAVE_CONFIG_H 13716 13717ac_libobjs= 13718ac_ltlibobjs= 13719U= 13720for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13721 # 1. Remove the extension, and $U if already installed. 13722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13723 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13725 # will be set to the directory where LIBOBJS objects are built. 13726 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13727 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13728done 13729LIBOBJS=$ac_libobjs 13730 13731LTLIBOBJS=$ac_ltlibobjs 13732 13733 13734 13735 13736: "${CONFIG_STATUS=./config.status}" 13737ac_write_fail=0 13738ac_clean_files_save=$ac_clean_files 13739ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13740{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13741$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13742as_write_fail=0 13743cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13744#! $SHELL 13745# Generated by $as_me. 13746# Run this file to recreate the current configuration. 13747# Compiler output produced by configure, useful for debugging 13748# configure, is in config.log if it exists. 13749 13750debug=false 13751ac_cs_recheck=false 13752ac_cs_silent=false 13753 13754SHELL=\${CONFIG_SHELL-$SHELL} 13755export SHELL 13756_ASEOF 13757cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13758## -------------------- ## 13759## M4sh Initialization. ## 13760## -------------------- ## 13761 13762# Be more Bourne compatible 13763DUALCASE=1; export DUALCASE # for MKS sh 13764if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13765 emulate sh 13766 NULLCMD=: 13767 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13768 # is contrary to our usage. Disable this feature. 13769 alias -g '${1+"$@"}'='"$@"' 13770 setopt NO_GLOB_SUBST 13771else 13772 case `(set -o) 2>/dev/null` in #( 13773 *posix*) : 13774 set -o posix ;; #( 13775 *) : 13776 ;; 13777esac 13778fi 13779 13780 13781as_nl=' 13782' 13783export as_nl 13784# Printing a long string crashes Solaris 7 /usr/bin/printf. 13785as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13786as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13788# Prefer a ksh shell builtin over an external printf program on Solaris, 13789# but without wasting forks for bash or zsh. 13790if test -z "$BASH_VERSION$ZSH_VERSION" \ 13791 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13792 as_echo='print -r --' 13793 as_echo_n='print -rn --' 13794elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13795 as_echo='printf %s\n' 13796 as_echo_n='printf %s' 13797else 13798 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13799 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13800 as_echo_n='/usr/ucb/echo -n' 13801 else 13802 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13803 as_echo_n_body='eval 13804 arg=$1; 13805 case $arg in #( 13806 *"$as_nl"*) 13807 expr "X$arg" : "X\\(.*\\)$as_nl"; 13808 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13809 esac; 13810 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13811 ' 13812 export as_echo_n_body 13813 as_echo_n='sh -c $as_echo_n_body as_echo' 13814 fi 13815 export as_echo_body 13816 as_echo='sh -c $as_echo_body as_echo' 13817fi 13818 13819# The user is always right. 13820if test "${PATH_SEPARATOR+set}" != set; then 13821 PATH_SEPARATOR=: 13822 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13823 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13824 PATH_SEPARATOR=';' 13825 } 13826fi 13827 13828 13829# IFS 13830# We need space, tab and new line, in precisely that order. Quoting is 13831# there to prevent editors from complaining about space-tab. 13832# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13833# splitting by setting IFS to empty value.) 13834IFS=" "" $as_nl" 13835 13836# Find who we are. Look in the path if we contain no directory separator. 13837as_myself= 13838case $0 in #(( 13839 *[\\/]* ) as_myself=$0 ;; 13840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13841for as_dir in $PATH 13842do 13843 IFS=$as_save_IFS 13844 test -z "$as_dir" && as_dir=. 13845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13846 done 13847IFS=$as_save_IFS 13848 13849 ;; 13850esac 13851# We did not find ourselves, most probably we were run as `sh COMMAND' 13852# in which case we are not to be found in the path. 13853if test "x$as_myself" = x; then 13854 as_myself=$0 13855fi 13856if test ! -f "$as_myself"; then 13857 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13858 exit 1 13859fi 13860 13861# Unset variables that we do not need and which cause bugs (e.g. in 13862# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13863# suppresses any "Segmentation fault" message there. '((' could 13864# trigger a bug in pdksh 5.2.14. 13865for as_var in BASH_ENV ENV MAIL MAILPATH 13866do eval test x\${$as_var+set} = xset \ 13867 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13868done 13869PS1='$ ' 13870PS2='> ' 13871PS4='+ ' 13872 13873# NLS nuisances. 13874LC_ALL=C 13875export LC_ALL 13876LANGUAGE=C 13877export LANGUAGE 13878 13879# CDPATH. 13880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13881 13882 13883# as_fn_error STATUS ERROR [LINENO LOG_FD] 13884# ---------------------------------------- 13885# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13886# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13887# script with STATUS, using 1 if that was 0. 13888as_fn_error () 13889{ 13890 as_status=$1; test $as_status -eq 0 && as_status=1 13891 if test "$4"; then 13892 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13893 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13894 fi 13895 $as_echo "$as_me: error: $2" >&2 13896 as_fn_exit $as_status 13897} # as_fn_error 13898 13899 13900# as_fn_set_status STATUS 13901# ----------------------- 13902# Set $? to STATUS, without forking. 13903as_fn_set_status () 13904{ 13905 return $1 13906} # as_fn_set_status 13907 13908# as_fn_exit STATUS 13909# ----------------- 13910# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13911as_fn_exit () 13912{ 13913 set +e 13914 as_fn_set_status $1 13915 exit $1 13916} # as_fn_exit 13917 13918# as_fn_unset VAR 13919# --------------- 13920# Portably unset VAR. 13921as_fn_unset () 13922{ 13923 { eval $1=; unset $1;} 13924} 13925as_unset=as_fn_unset 13926# as_fn_append VAR VALUE 13927# ---------------------- 13928# Append the text in VALUE to the end of the definition contained in VAR. Take 13929# advantage of any shell optimizations that allow amortized linear growth over 13930# repeated appends, instead of the typical quadratic growth present in naive 13931# implementations. 13932if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13933 eval 'as_fn_append () 13934 { 13935 eval $1+=\$2 13936 }' 13937else 13938 as_fn_append () 13939 { 13940 eval $1=\$$1\$2 13941 } 13942fi # as_fn_append 13943 13944# as_fn_arith ARG... 13945# ------------------ 13946# Perform arithmetic evaluation on the ARGs, and store the result in the 13947# global $as_val. Take advantage of shells that can avoid forks. The arguments 13948# must be portable across $(()) and expr. 13949if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13950 eval 'as_fn_arith () 13951 { 13952 as_val=$(( $* )) 13953 }' 13954else 13955 as_fn_arith () 13956 { 13957 as_val=`expr "$@" || test $? -eq 1` 13958 } 13959fi # as_fn_arith 13960 13961 13962if expr a : '\(a\)' >/dev/null 2>&1 && 13963 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13964 as_expr=expr 13965else 13966 as_expr=false 13967fi 13968 13969if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13970 as_basename=basename 13971else 13972 as_basename=false 13973fi 13974 13975if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13976 as_dirname=dirname 13977else 13978 as_dirname=false 13979fi 13980 13981as_me=`$as_basename -- "$0" || 13982$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13983 X"$0" : 'X\(//\)$' \| \ 13984 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13985$as_echo X/"$0" | 13986 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13987 s//\1/ 13988 q 13989 } 13990 /^X\/\(\/\/\)$/{ 13991 s//\1/ 13992 q 13993 } 13994 /^X\/\(\/\).*/{ 13995 s//\1/ 13996 q 13997 } 13998 s/.*/./; q'` 13999 14000# Avoid depending upon Character Ranges. 14001as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14003as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14004as_cr_digits='0123456789' 14005as_cr_alnum=$as_cr_Letters$as_cr_digits 14006 14007ECHO_C= ECHO_N= ECHO_T= 14008case `echo -n x` in #((((( 14009-n*) 14010 case `echo 'xy\c'` in 14011 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14012 xy) ECHO_C='\c';; 14013 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14014 ECHO_T=' ';; 14015 esac;; 14016*) 14017 ECHO_N='-n';; 14018esac 14019 14020rm -f conf$$ conf$$.exe conf$$.file 14021if test -d conf$$.dir; then 14022 rm -f conf$$.dir/conf$$.file 14023else 14024 rm -f conf$$.dir 14025 mkdir conf$$.dir 2>/dev/null 14026fi 14027if (echo >conf$$.file) 2>/dev/null; then 14028 if ln -s conf$$.file conf$$ 2>/dev/null; then 14029 as_ln_s='ln -s' 14030 # ... but there are two gotchas: 14031 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14032 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14033 # In both cases, we have to default to `cp -pR'. 14034 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14035 as_ln_s='cp -pR' 14036 elif ln conf$$.file conf$$ 2>/dev/null; then 14037 as_ln_s=ln 14038 else 14039 as_ln_s='cp -pR' 14040 fi 14041else 14042 as_ln_s='cp -pR' 14043fi 14044rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14045rmdir conf$$.dir 2>/dev/null 14046 14047 14048# as_fn_mkdir_p 14049# ------------- 14050# Create "$as_dir" as a directory, including parents if necessary. 14051as_fn_mkdir_p () 14052{ 14053 14054 case $as_dir in #( 14055 -*) as_dir=./$as_dir;; 14056 esac 14057 test -d "$as_dir" || eval $as_mkdir_p || { 14058 as_dirs= 14059 while :; do 14060 case $as_dir in #( 14061 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14062 *) as_qdir=$as_dir;; 14063 esac 14064 as_dirs="'$as_qdir' $as_dirs" 14065 as_dir=`$as_dirname -- "$as_dir" || 14066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14067 X"$as_dir" : 'X\(//\)[^/]' \| \ 14068 X"$as_dir" : 'X\(//\)$' \| \ 14069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14070$as_echo X"$as_dir" | 14071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14072 s//\1/ 14073 q 14074 } 14075 /^X\(\/\/\)[^/].*/{ 14076 s//\1/ 14077 q 14078 } 14079 /^X\(\/\/\)$/{ 14080 s//\1/ 14081 q 14082 } 14083 /^X\(\/\).*/{ 14084 s//\1/ 14085 q 14086 } 14087 s/.*/./; q'` 14088 test -d "$as_dir" && break 14089 done 14090 test -z "$as_dirs" || eval "mkdir $as_dirs" 14091 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14092 14093 14094} # as_fn_mkdir_p 14095if mkdir -p . 2>/dev/null; then 14096 as_mkdir_p='mkdir -p "$as_dir"' 14097else 14098 test -d ./-p && rmdir ./-p 14099 as_mkdir_p=false 14100fi 14101 14102 14103# as_fn_executable_p FILE 14104# ----------------------- 14105# Test if FILE is an executable regular file. 14106as_fn_executable_p () 14107{ 14108 test -f "$1" && test -x "$1" 14109} # as_fn_executable_p 14110as_test_x='test -x' 14111as_executable_p=as_fn_executable_p 14112 14113# Sed expression to map a string onto a valid CPP name. 14114as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14115 14116# Sed expression to map a string onto a valid variable name. 14117as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14118 14119 14120exec 6>&1 14121## ----------------------------------- ## 14122## Main body of $CONFIG_STATUS script. ## 14123## ----------------------------------- ## 14124_ASEOF 14125test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14126 14127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14128# Save the log message, to keep $0 and so on meaningful, and to 14129# report actual input values of CONFIG_FILES etc. instead of their 14130# values after options handling. 14131ac_log=" 14132This file was extended by $as_me, which was 14133generated by GNU Autoconf 2.69. Invocation command line was 14134 14135 CONFIG_FILES = $CONFIG_FILES 14136 CONFIG_HEADERS = $CONFIG_HEADERS 14137 CONFIG_LINKS = $CONFIG_LINKS 14138 CONFIG_COMMANDS = $CONFIG_COMMANDS 14139 $ $0 $@ 14140 14141on `(hostname || uname -n) 2>/dev/null | sed 1q` 14142" 14143 14144_ACEOF 14145 14146case $ac_config_files in *" 14147"*) set x $ac_config_files; shift; ac_config_files=$*;; 14148esac 14149 14150case $ac_config_headers in *" 14151"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14152esac 14153 14154 14155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14156# Files that config.status was made for. 14157config_files="$ac_config_files" 14158config_headers="$ac_config_headers" 14159 14160_ACEOF 14161 14162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14163ac_cs_usage="\ 14164\`$as_me' instantiates files and other configuration actions 14165from templates according to the current configuration. Unless the files 14166and actions are specified as TAGs, all are instantiated by default. 14167 14168Usage: $0 [OPTION]... [TAG]... 14169 14170 -h, --help print this help, then exit 14171 -V, --version print version number and configuration settings, then exit 14172 --config print configuration, then exit 14173 -q, --quiet, --silent 14174 do not print progress messages 14175 -d, --debug don't remove temporary files 14176 --recheck update $as_me by reconfiguring in the same conditions 14177 --file=FILE[:TEMPLATE] 14178 instantiate the configuration file FILE 14179 --header=FILE[:TEMPLATE] 14180 instantiate the configuration header FILE 14181 14182Configuration files: 14183$config_files 14184 14185Configuration headers: 14186$config_headers 14187 14188Report bugs to the package provider." 14189 14190_ACEOF 14191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14192ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14193ac_cs_version="\\ 14194config.status 14195configured by $0, generated by GNU Autoconf 2.69, 14196 with options \\"\$ac_cs_config\\" 14197 14198Copyright (C) 2012 Free Software Foundation, Inc. 14199This config.status script is free software; the Free Software Foundation 14200gives unlimited permission to copy, distribute and modify it." 14201 14202ac_pwd='$ac_pwd' 14203srcdir='$srcdir' 14204AWK='$AWK' 14205test -n "\$AWK" || AWK=awk 14206_ACEOF 14207 14208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14209# The default lists apply if the user does not specify any file. 14210ac_need_defaults=: 14211while test $# != 0 14212do 14213 case $1 in 14214 --*=?*) 14215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14217 ac_shift=: 14218 ;; 14219 --*=) 14220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14221 ac_optarg= 14222 ac_shift=: 14223 ;; 14224 *) 14225 ac_option=$1 14226 ac_optarg=$2 14227 ac_shift=shift 14228 ;; 14229 esac 14230 14231 case $ac_option in 14232 # Handling of the options. 14233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14234 ac_cs_recheck=: ;; 14235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14236 $as_echo "$ac_cs_version"; exit ;; 14237 --config | --confi | --conf | --con | --co | --c ) 14238 $as_echo "$ac_cs_config"; exit ;; 14239 --debug | --debu | --deb | --de | --d | -d ) 14240 debug=: ;; 14241 --file | --fil | --fi | --f ) 14242 $ac_shift 14243 case $ac_optarg in 14244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14245 '') as_fn_error $? "missing file argument" ;; 14246 esac 14247 as_fn_append CONFIG_FILES " '$ac_optarg'" 14248 ac_need_defaults=false;; 14249 --header | --heade | --head | --hea ) 14250 $ac_shift 14251 case $ac_optarg in 14252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14253 esac 14254 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14255 ac_need_defaults=false;; 14256 --he | --h) 14257 # Conflict between --help and --header 14258 as_fn_error $? "ambiguous option: \`$1' 14259Try \`$0 --help' for more information.";; 14260 --help | --hel | -h ) 14261 $as_echo "$ac_cs_usage"; exit ;; 14262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14263 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14264 ac_cs_silent=: ;; 14265 14266 # This is an error. 14267 -*) as_fn_error $? "unrecognized option: \`$1' 14268Try \`$0 --help' for more information." ;; 14269 14270 *) as_fn_append ac_config_targets " $1" 14271 ac_need_defaults=false ;; 14272 14273 esac 14274 shift 14275done 14276 14277ac_configure_extra_args= 14278 14279if $ac_cs_silent; then 14280 exec 6>/dev/null 14281 ac_configure_extra_args="$ac_configure_extra_args --silent" 14282fi 14283 14284_ACEOF 14285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14286if \$ac_cs_recheck; then 14287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14288 shift 14289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14290 CONFIG_SHELL='$SHELL' 14291 export CONFIG_SHELL 14292 exec "\$@" 14293fi 14294 14295_ACEOF 14296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14297exec 5>>auto/config.log 14298{ 14299 echo 14300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14301## Running $as_me. ## 14302_ASBOX 14303 $as_echo "$ac_log" 14304} >&5 14305 14306_ACEOF 14307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14308_ACEOF 14309 14310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14311 14312# Handling of arguments. 14313for ac_config_target in $ac_config_targets 14314do 14315 case $ac_config_target in 14316 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14317 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14318 14319 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14320 esac 14321done 14322 14323 14324# If the user did not use the arguments to specify the items to instantiate, 14325# then the envvar interface is used. Set only those that are not. 14326# We use the long form for the default assignment because of an extremely 14327# bizarre bug on SunOS 4.1.3. 14328if $ac_need_defaults; then 14329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14331fi 14332 14333# Have a temporary directory for convenience. Make it in the build tree 14334# simply because there is no reason against having it here, and in addition, 14335# creating and moving files from /tmp can sometimes cause problems. 14336# Hook for its removal unless debugging. 14337# Note that there is a small window in which the directory will not be cleaned: 14338# after its creation but before its name has been assigned to `$tmp'. 14339$debug || 14340{ 14341 tmp= ac_tmp= 14342 trap 'exit_status=$? 14343 : "${ac_tmp:=$tmp}" 14344 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14345' 0 14346 trap 'as_fn_exit 1' 1 2 13 15 14347} 14348# Create a (secure) tmp directory for tmp files. 14349 14350{ 14351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14352 test -d "$tmp" 14353} || 14354{ 14355 tmp=./conf$$-$RANDOM 14356 (umask 077 && mkdir "$tmp") 14357} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14358ac_tmp=$tmp 14359 14360# Set up the scripts for CONFIG_FILES section. 14361# No need to generate them if there are no CONFIG_FILES. 14362# This happens for instance with `./config.status config.h'. 14363if test -n "$CONFIG_FILES"; then 14364 14365 14366ac_cr=`echo X | tr X '\015'` 14367# On cygwin, bash can eat \r inside `` if the user requested igncr. 14368# But we know of no other shell where ac_cr would be empty at this 14369# point, so we can use a bashism as a fallback. 14370if test "x$ac_cr" = x; then 14371 eval ac_cr=\$\'\\r\' 14372fi 14373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14375 ac_cs_awk_cr='\\r' 14376else 14377 ac_cs_awk_cr=$ac_cr 14378fi 14379 14380echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14381_ACEOF 14382 14383 14384{ 14385 echo "cat >conf$$subs.awk <<_ACEOF" && 14386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14387 echo "_ACEOF" 14388} >conf$$subs.sh || 14389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14390ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14391ac_delim='%!_!# ' 14392for ac_last_try in false false false false false :; do 14393 . ./conf$$subs.sh || 14394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14395 14396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14397 if test $ac_delim_n = $ac_delim_num; then 14398 break 14399 elif $ac_last_try; then 14400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14401 else 14402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14403 fi 14404done 14405rm -f conf$$subs.sh 14406 14407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14408cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14409_ACEOF 14410sed -n ' 14411h 14412s/^/S["/; s/!.*/"]=/ 14413p 14414g 14415s/^[^!]*!// 14416:repl 14417t repl 14418s/'"$ac_delim"'$// 14419t delim 14420:nl 14421h 14422s/\(.\{148\}\)..*/\1/ 14423t more1 14424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14425p 14426n 14427b repl 14428:more1 14429s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14430p 14431g 14432s/.\{148\}// 14433t nl 14434:delim 14435h 14436s/\(.\{148\}\)..*/\1/ 14437t more2 14438s/["\\]/\\&/g; s/^/"/; s/$/"/ 14439p 14440b 14441:more2 14442s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14443p 14444g 14445s/.\{148\}// 14446t delim 14447' <conf$$subs.awk | sed ' 14448/^[^""]/{ 14449 N 14450 s/\n// 14451} 14452' >>$CONFIG_STATUS || ac_write_fail=1 14453rm -f conf$$subs.awk 14454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14455_ACAWK 14456cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14457 for (key in S) S_is_set[key] = 1 14458 FS = "" 14459 14460} 14461{ 14462 line = $ 0 14463 nfields = split(line, field, "@") 14464 substed = 0 14465 len = length(field[1]) 14466 for (i = 2; i < nfields; i++) { 14467 key = field[i] 14468 keylen = length(key) 14469 if (S_is_set[key]) { 14470 value = S[key] 14471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14472 len += length(value) + length(field[++i]) 14473 substed = 1 14474 } else 14475 len += 1 + keylen 14476 } 14477 14478 print line 14479} 14480 14481_ACAWK 14482_ACEOF 14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14486else 14487 cat 14488fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14489 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14490_ACEOF 14491 14492# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14493# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14494# trailing colons and then remove the whole line if VPATH becomes empty 14495# (actually we leave an empty line to preserve line numbers). 14496if test "x$srcdir" = x.; then 14497 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14498h 14499s/// 14500s/^/:/ 14501s/[ ]*$/:/ 14502s/:\$(srcdir):/:/g 14503s/:\${srcdir}:/:/g 14504s/:@srcdir@:/:/g 14505s/^:*// 14506s/:*$// 14507x 14508s/\(=[ ]*\).*/\1/ 14509G 14510s/\n// 14511s/^[^=]*=[ ]*$// 14512}' 14513fi 14514 14515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14516fi # test -n "$CONFIG_FILES" 14517 14518# Set up the scripts for CONFIG_HEADERS section. 14519# No need to generate them if there are no CONFIG_HEADERS. 14520# This happens for instance with `./config.status Makefile'. 14521if test -n "$CONFIG_HEADERS"; then 14522cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14523BEGIN { 14524_ACEOF 14525 14526# Transform confdefs.h into an awk script `defines.awk', embedded as 14527# here-document in config.status, that substitutes the proper values into 14528# config.h.in to produce config.h. 14529 14530# Create a delimiter string that does not exist in confdefs.h, to ease 14531# handling of long lines. 14532ac_delim='%!_!# ' 14533for ac_last_try in false false :; do 14534 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14535 if test -z "$ac_tt"; then 14536 break 14537 elif $ac_last_try; then 14538 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14539 else 14540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14541 fi 14542done 14543 14544# For the awk script, D is an array of macro values keyed by name, 14545# likewise P contains macro parameters if any. Preserve backslash 14546# newline sequences. 14547 14548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14549sed -n ' 14550s/.\{148\}/&'"$ac_delim"'/g 14551t rset 14552:rset 14553s/^[ ]*#[ ]*define[ ][ ]*/ / 14554t def 14555d 14556:def 14557s/\\$// 14558t bsnl 14559s/["\\]/\\&/g 14560s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14561D["\1"]=" \3"/p 14562s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14563d 14564:bsnl 14565s/["\\]/\\&/g 14566s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14567D["\1"]=" \3\\\\\\n"\\/p 14568t cont 14569s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14570t cont 14571d 14572:cont 14573n 14574s/.\{148\}/&'"$ac_delim"'/g 14575t clear 14576:clear 14577s/\\$// 14578t bsnlc 14579s/["\\]/\\&/g; s/^/"/; s/$/"/p 14580d 14581:bsnlc 14582s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14583b cont 14584' <confdefs.h | sed ' 14585s/'"$ac_delim"'/"\\\ 14586"/g' >>$CONFIG_STATUS || ac_write_fail=1 14587 14588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14589 for (key in D) D_is_set[key] = 1 14590 FS = "" 14591} 14592/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14593 line = \$ 0 14594 split(line, arg, " ") 14595 if (arg[1] == "#") { 14596 defundef = arg[2] 14597 mac1 = arg[3] 14598 } else { 14599 defundef = substr(arg[1], 2) 14600 mac1 = arg[2] 14601 } 14602 split(mac1, mac2, "(") #) 14603 macro = mac2[1] 14604 prefix = substr(line, 1, index(line, defundef) - 1) 14605 if (D_is_set[macro]) { 14606 # Preserve the white space surrounding the "#". 14607 print prefix "define", macro P[macro] D[macro] 14608 next 14609 } else { 14610 # Replace #undef with comments. This is necessary, for example, 14611 # in the case of _POSIX_SOURCE, which is predefined and required 14612 # on some systems where configure will not decide to define it. 14613 if (defundef == "undef") { 14614 print "/*", prefix defundef, macro, "*/" 14615 next 14616 } 14617 } 14618} 14619{ print } 14620_ACAWK 14621_ACEOF 14622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14623 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14624fi # test -n "$CONFIG_HEADERS" 14625 14626 14627eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 14628shift 14629for ac_tag 14630do 14631 case $ac_tag in 14632 :[FHLC]) ac_mode=$ac_tag; continue;; 14633 esac 14634 case $ac_mode$ac_tag in 14635 :[FHL]*:*);; 14636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14637 :[FH]-) ac_tag=-:-;; 14638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14639 esac 14640 ac_save_IFS=$IFS 14641 IFS=: 14642 set x $ac_tag 14643 IFS=$ac_save_IFS 14644 shift 14645 ac_file=$1 14646 shift 14647 14648 case $ac_mode in 14649 :L) ac_source=$1;; 14650 :[FH]) 14651 ac_file_inputs= 14652 for ac_f 14653 do 14654 case $ac_f in 14655 -) ac_f="$ac_tmp/stdin";; 14656 *) # Look for the file first in the build tree, then in the source tree 14657 # (if the path is not absolute). The absolute path cannot be DOS-style, 14658 # because $ac_f cannot contain `:'. 14659 test -f "$ac_f" || 14660 case $ac_f in 14661 [\\/$]*) false;; 14662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14663 esac || 14664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14665 esac 14666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14667 as_fn_append ac_file_inputs " '$ac_f'" 14668 done 14669 14670 # Let's still pretend it is `configure' which instantiates (i.e., don't 14671 # use $as_me), people would be surprised to read: 14672 # /* config.h. Generated by config.status. */ 14673 configure_input='Generated from '` 14674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14675 `' by configure.' 14676 if test x"$ac_file" != x-; then 14677 configure_input="$ac_file. $configure_input" 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14679$as_echo "$as_me: creating $ac_file" >&6;} 14680 fi 14681 # Neutralize special characters interpreted by sed in replacement strings. 14682 case $configure_input in #( 14683 *\&* | *\|* | *\\* ) 14684 ac_sed_conf_input=`$as_echo "$configure_input" | 14685 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14686 *) ac_sed_conf_input=$configure_input;; 14687 esac 14688 14689 case $ac_tag in 14690 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14692 esac 14693 ;; 14694 esac 14695 14696 ac_dir=`$as_dirname -- "$ac_file" || 14697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14698 X"$ac_file" : 'X\(//\)[^/]' \| \ 14699 X"$ac_file" : 'X\(//\)$' \| \ 14700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14701$as_echo X"$ac_file" | 14702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14703 s//\1/ 14704 q 14705 } 14706 /^X\(\/\/\)[^/].*/{ 14707 s//\1/ 14708 q 14709 } 14710 /^X\(\/\/\)$/{ 14711 s//\1/ 14712 q 14713 } 14714 /^X\(\/\).*/{ 14715 s//\1/ 14716 q 14717 } 14718 s/.*/./; q'` 14719 as_dir="$ac_dir"; as_fn_mkdir_p 14720 ac_builddir=. 14721 14722case "$ac_dir" in 14723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14724*) 14725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14726 # A ".." for each directory in $ac_dir_suffix. 14727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14728 case $ac_top_builddir_sub in 14729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14731 esac ;; 14732esac 14733ac_abs_top_builddir=$ac_pwd 14734ac_abs_builddir=$ac_pwd$ac_dir_suffix 14735# for backward compatibility: 14736ac_top_builddir=$ac_top_build_prefix 14737 14738case $srcdir in 14739 .) # We are building in place. 14740 ac_srcdir=. 14741 ac_top_srcdir=$ac_top_builddir_sub 14742 ac_abs_top_srcdir=$ac_pwd ;; 14743 [\\/]* | ?:[\\/]* ) # Absolute name. 14744 ac_srcdir=$srcdir$ac_dir_suffix; 14745 ac_top_srcdir=$srcdir 14746 ac_abs_top_srcdir=$srcdir ;; 14747 *) # Relative name. 14748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14749 ac_top_srcdir=$ac_top_build_prefix$srcdir 14750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14751esac 14752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14753 14754 14755 case $ac_mode in 14756 :F) 14757 # 14758 # CONFIG_FILE 14759 # 14760 14761_ACEOF 14762 14763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14764# If the template does not know about datarootdir, expand it. 14765# FIXME: This hack should be removed a few years after 2.60. 14766ac_datarootdir_hack=; ac_datarootdir_seen= 14767ac_sed_dataroot=' 14768/datarootdir/ { 14769 p 14770 q 14771} 14772/@datadir@/p 14773/@docdir@/p 14774/@infodir@/p 14775/@localedir@/p 14776/@mandir@/p' 14777case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14778*datarootdir*) ac_datarootdir_seen=yes;; 14779*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14781$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14782_ACEOF 14783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14784 ac_datarootdir_hack=' 14785 s&@datadir@&$datadir&g 14786 s&@docdir@&$docdir&g 14787 s&@infodir@&$infodir&g 14788 s&@localedir@&$localedir&g 14789 s&@mandir@&$mandir&g 14790 s&\\\${datarootdir}&$datarootdir&g' ;; 14791esac 14792_ACEOF 14793 14794# Neutralize VPATH when `$srcdir' = `.'. 14795# Shell code in configure.ac might set extrasub. 14796# FIXME: do we really want to maintain this feature? 14797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14798ac_sed_extra="$ac_vpsub 14799$extrasub 14800_ACEOF 14801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14802:t 14803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14804s|@configure_input@|$ac_sed_conf_input|;t t 14805s&@top_builddir@&$ac_top_builddir_sub&;t t 14806s&@top_build_prefix@&$ac_top_build_prefix&;t t 14807s&@srcdir@&$ac_srcdir&;t t 14808s&@abs_srcdir@&$ac_abs_srcdir&;t t 14809s&@top_srcdir@&$ac_top_srcdir&;t t 14810s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14811s&@builddir@&$ac_builddir&;t t 14812s&@abs_builddir@&$ac_abs_builddir&;t t 14813s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14814$ac_datarootdir_hack 14815" 14816eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14817 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14818 14819test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14820 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14822 "$ac_tmp/out"`; test -z "$ac_out"; } && 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14824which seems to be undefined. Please make sure it is defined" >&5 14825$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14826which seems to be undefined. Please make sure it is defined" >&2;} 14827 14828 rm -f "$ac_tmp/stdin" 14829 case $ac_file in 14830 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14831 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14832 esac \ 14833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14834 ;; 14835 :H) 14836 # 14837 # CONFIG_HEADER 14838 # 14839 if test x"$ac_file" != x-; then 14840 { 14841 $as_echo "/* $configure_input */" \ 14842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14843 } >"$ac_tmp/config.h" \ 14844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14845 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14847$as_echo "$as_me: $ac_file is unchanged" >&6;} 14848 else 14849 rm -f "$ac_file" 14850 mv "$ac_tmp/config.h" "$ac_file" \ 14851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14852 fi 14853 else 14854 $as_echo "/* $configure_input */" \ 14855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14856 || as_fn_error $? "could not create -" "$LINENO" 5 14857 fi 14858 ;; 14859 14860 14861 esac 14862 14863done # for ac_tag 14864 14865 14866as_fn_exit 0 14867_ACEOF 14868ac_clean_files=$ac_clean_files_save 14869 14870test $ac_write_fail = 0 || 14871 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14872 14873 14874# configure is writing to config.log, and then calls config.status. 14875# config.status does its own redirection, appending to config.log. 14876# Unfortunately, on DOS this fails, as config.log is still kept open 14877# by configure, so config.status won't be able to write to it; its 14878# output is simply discarded. So we exec the FD to /dev/null, 14879# effectively closing config.log, so it can be properly (re)opened and 14880# appended to by config.status. When coming back to configure, we 14881# need to make the FD available again. 14882if test "$no_create" != yes; then 14883 ac_cs_success=: 14884 ac_config_status_args= 14885 test "$silent" = yes && 14886 ac_config_status_args="$ac_config_status_args --quiet" 14887 exec 5>/dev/null 14888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14889 exec 5>>auto/config.log 14890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14891 # would make configure fail if this is the last instruction. 14892 $ac_cs_success || as_fn_exit 1 14893fi 14894if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14896$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14897fi 14898 14899 14900