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 656CHANNEL_OBJ 657CHANNEL_SRC 658NETBEANS_OBJ 659NETBEANS_SRC 660WORKSHOP_OBJ 661WORKSHOP_SRC 662RUBY_LIBS 663RUBY_CFLAGS 664RUBY_PRO 665RUBY_OBJ 666RUBY_SRC 667vi_cv_path_ruby 668TCL_LIBS 669TCL_CFLAGS 670TCL_PRO 671TCL_OBJ 672TCL_SRC 673vi_cv_path_tcl 674PYTHON3_OBJ 675PYTHON3_SRC 676PYTHON3_CFLAGS 677PYTHON3_LIBS 678PYTHON3_CONFDIR 679vi_cv_path_python3 680PYTHON_OBJ 681PYTHON_SRC 682PYTHON_CFLAGS 683PYTHON_GETPATH_CFLAGS 684PYTHON_LIBS 685PYTHON_CONFDIR 686vi_cv_path_python 687PERL_LIBS 688PERL_CFLAGS 689PERL_PRO 690PERL_OBJ 691PERL_SRC 692shrpenv 693vi_cv_perl_xsubpp 694vi_cv_perllib 695vi_cv_path_perl 696MZSCHEME_MZC 697MZSCHEME_EXTRA 698MZSCHEME_CFLAGS 699MZSCHEME_LIBS 700MZSCHEME_PRO 701MZSCHEME_OBJ 702MZSCHEME_SRC 703vi_cv_path_mzscheme 704LUA_CFLAGS 705LUA_LIBS 706LUA_PRO 707LUA_OBJ 708LUA_SRC 709vi_cv_path_plain_lua 710vi_cv_path_luajit 711vi_cv_path_lua 712compiledby 713dogvimdiff 714dovimdiff 715QUOTESED 716line_break 717VIEWNAME 718EXNAME 719VIMNAME 720OS_EXTRA_OBJ 721OS_EXTRA_SRC 722XCODE_SELECT 723CPP_MM 724STRIP 725AWK 726FGREP 727EGREP 728GREP 729CPP 730OBJEXT 731EXEEXT 732ac_ct_CC 733CPPFLAGS 734LDFLAGS 735CFLAGS 736CC 737SET_MAKE 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_fail_if_missing 780enable_darwin 781with_mac_arch 782with_developer_dir 783with_local_dir 784with_vim_name 785with_ex_name 786with_view_name 787with_global_runtime 788with_modified_by 789enable_smack 790enable_selinux 791with_features 792with_compiledby 793enable_xsmp 794enable_xsmp_interact 795enable_luainterp 796with_lua_prefix 797with_luajit 798enable_mzschemeinterp 799with_plthome 800enable_perlinterp 801enable_pythoninterp 802with_python_config_dir 803enable_python3interp 804with_python3_config_dir 805enable_tclinterp 806with_tclsh 807enable_rubyinterp 808with_ruby_command 809enable_cscope 810enable_workshop 811enable_netbeans 812enable_channel 813enable_multibyte 814enable_hangulinput 815enable_xim 816enable_fontset 817with_x 818enable_gui 819enable_gtk2_check 820enable_gnome_check 821enable_gtk3_check 822enable_motif_check 823enable_athena_check 824enable_nextaw_check 825enable_carbon_check 826enable_gtktest 827with_gnome_includes 828with_gnome_libs 829with_gnome 830with_motif_lib 831with_tlib 832enable_largefile 833enable_acl 834enable_gpm 835enable_sysmouse 836enable_nls 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846CPP 847XMKMF' 848 849 850# Initialize some variables set by options. 851ac_init_help= 852ac_init_version=false 853ac_unrecognized_opts= 854ac_unrecognized_sep= 855# The variables have the same names as the options, with 856# dashes changed to underlines. 857cache_file=/dev/null 858exec_prefix=NONE 859no_create= 860no_recursion= 861prefix=NONE 862program_prefix=NONE 863program_suffix=NONE 864program_transform_name=s,x,x, 865silent= 866site= 867srcdir= 868verbose= 869x_includes=NONE 870x_libraries=NONE 871 872# Installation directory options. 873# These are left unexpanded so users can "make install exec_prefix=/foo" 874# and all the variables that are supposed to be based on exec_prefix 875# by default will actually change. 876# Use braces instead of parens because sh, perl, etc. also accept them. 877# (The list follows the same order as the GNU Coding Standards.) 878bindir='${exec_prefix}/bin' 879sbindir='${exec_prefix}/sbin' 880libexecdir='${exec_prefix}/libexec' 881datarootdir='${prefix}/share' 882datadir='${datarootdir}' 883sysconfdir='${prefix}/etc' 884sharedstatedir='${prefix}/com' 885localstatedir='${prefix}/var' 886includedir='${prefix}/include' 887oldincludedir='/usr/include' 888docdir='${datarootdir}/doc/${PACKAGE}' 889infodir='${datarootdir}/info' 890htmldir='${docdir}' 891dvidir='${docdir}' 892pdfdir='${docdir}' 893psdir='${docdir}' 894libdir='${exec_prefix}/lib' 895localedir='${datarootdir}/locale' 896mandir='${datarootdir}/man' 897 898ac_prev= 899ac_dashdash= 900for ac_option 901do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 # Accept the important Cygnus configure options, so we can diagnose typos. 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: $ac_useropt" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962"enable_$ac_useropt" 963"*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: $ac_useropt" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1139 ac_prev=sbindir ;; 1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1141 | --sbi=* | --sb=*) 1142 sbindir=$ac_optarg ;; 1143 1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1146 | --sharedst | --shareds | --shared | --share | --shar \ 1147 | --sha | --sh) 1148 ac_prev=sharedstatedir ;; 1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1152 | --sha=* | --sh=*) 1153 sharedstatedir=$ac_optarg ;; 1154 1155 -site | --site | --sit) 1156 ac_prev=site ;; 1157 -site=* | --site=* | --sit=*) 1158 site=$ac_optarg ;; 1159 1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1161 ac_prev=srcdir ;; 1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1163 srcdir=$ac_optarg ;; 1164 1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1166 | --syscon | --sysco | --sysc | --sys | --sy) 1167 ac_prev=sysconfdir ;; 1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1170 sysconfdir=$ac_optarg ;; 1171 1172 -target | --target | --targe | --targ | --tar | --ta | --t) 1173 ac_prev=target_alias ;; 1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1175 target_alias=$ac_optarg ;; 1176 1177 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1178 verbose=yes ;; 1179 1180 -version | --version | --versio | --versi | --vers | -V) 1181 ac_init_version=: ;; 1182 1183 -with-* | --with-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=\$ac_optarg ;; 1198 1199 -without-* | --without-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: $ac_useropt" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=no ;; 1214 1215 --x) 1216 # Obsolete; use --with-x. 1217 with_x=yes ;; 1218 1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1220 | --x-incl | --x-inc | --x-in | --x-i) 1221 ac_prev=x_includes ;; 1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1224 x_includes=$ac_optarg ;; 1225 1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1228 ac_prev=x_libraries ;; 1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1231 x_libraries=$ac_optarg ;; 1232 1233 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1234Try \`$0 --help' for more information" 1235 ;; 1236 1237 *=*) 1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1239 # Reject names that are not valid shell variable names. 1240 case $ac_envvar in #( 1241 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1243 esac 1244 eval $ac_envvar=\$ac_optarg 1245 export $ac_envvar ;; 1246 1247 *) 1248 # FIXME: should be removed in autoconf 3.0. 1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1253 ;; 1254 1255 esac 1256done 1257 1258if test -n "$ac_prev"; then 1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1260 as_fn_error $? "missing argument to $ac_option" 1261fi 1262 1263if test -n "$ac_unrecognized_opts"; then 1264 case $enable_option_checking in 1265 no) ;; 1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1268 esac 1269fi 1270 1271# Check all directory arguments for consistency. 1272for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1273 datadir sysconfdir sharedstatedir localstatedir includedir \ 1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1275 libdir localedir mandir 1276do 1277 eval ac_val=\$$ac_var 1278 # Remove trailing slashes. 1279 case $ac_val in 1280 */ ) 1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1282 eval $ac_var=\$ac_val;; 1283 esac 1284 # Be sure to have absolute directory names. 1285 case $ac_val in 1286 [\\/$]* | ?:[\\/]* ) continue;; 1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1288 esac 1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1290done 1291 1292# There might be people who depend on the old broken behavior: `$host' 1293# used to hold the argument of --host etc. 1294# FIXME: To remove some day. 1295build=$build_alias 1296host=$host_alias 1297target=$target_alias 1298 1299# FIXME: To remove some day. 1300if test "x$host_alias" != x; then 1301 if test "x$build_alias" = x; then 1302 cross_compiling=maybe 1303 elif test "x$build_alias" != "x$host_alias"; then 1304 cross_compiling=yes 1305 fi 1306fi 1307 1308ac_tool_prefix= 1309test -n "$host_alias" && ac_tool_prefix=$host_alias- 1310 1311test "$silent" = yes && exec 6>/dev/null 1312 1313 1314ac_pwd=`pwd` && test -n "$ac_pwd" && 1315ac_ls_di=`ls -di .` && 1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1317 as_fn_error $? "working directory cannot be determined" 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 as_fn_error $? "pwd does not report name of working directory" 1320 1321 1322# Find the source files, if location was not specified. 1323if test -z "$srcdir"; then 1324 ac_srcdir_defaulted=yes 1325 # Try the directory containing this script, then the parent directory. 1326 ac_confdir=`$as_dirname -- "$as_myself" || 1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1328 X"$as_myself" : 'X\(//\)[^/]' \| \ 1329 X"$as_myself" : 'X\(//\)$' \| \ 1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1331$as_echo X"$as_myself" | 1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)[^/].*/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\).*/{ 1345 s//\1/ 1346 q 1347 } 1348 s/.*/./; q'` 1349 srcdir=$ac_confdir 1350 if test ! -r "$srcdir/$ac_unique_file"; then 1351 srcdir=.. 1352 fi 1353else 1354 ac_srcdir_defaulted=no 1355fi 1356if test ! -r "$srcdir/$ac_unique_file"; then 1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1359fi 1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1361ac_abs_confdir=`( 1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1363 pwd)` 1364# When building in place, set srcdir=. 1365if test "$ac_abs_confdir" = "$ac_pwd"; then 1366 srcdir=. 1367fi 1368# Remove unnecessary trailing slashes from srcdir. 1369# Double slashes in file names in object file debugging info 1370# mess up M-x gdb in Emacs. 1371case $srcdir in 1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1373esac 1374for ac_var in $ac_precious_vars; do 1375 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1376 eval ac_env_${ac_var}_value=\$${ac_var} 1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1379done 1380 1381# 1382# Report the --help message. 1383# 1384if test "$ac_init_help" = "long"; then 1385 # Omit some internal or obsolete options to make the list less imposing. 1386 # This message is too long to be a string in the A/UX 3.1 sh. 1387 cat <<_ACEOF 1388\`configure' configures this package to adapt to many kinds of systems. 1389 1390Usage: $0 [OPTION]... [VAR=VALUE]... 1391 1392To assign environment variables (e.g., CC, CFLAGS...), specify them as 1393VAR=VALUE. See below for descriptions of some of the useful variables. 1394 1395Defaults for the options are specified in brackets. 1396 1397Configuration: 1398 -h, --help display this help and exit 1399 --help=short display options specific to this package 1400 --help=recursive display the short help of all the included packages 1401 -V, --version display version information and exit 1402 -q, --quiet, --silent do not print \`checking ...' messages 1403 --cache-file=FILE cache test results in FILE [disabled] 1404 -C, --config-cache alias for \`--cache-file=config.cache' 1405 -n, --no-create do not create output files 1406 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1407 1408Installation directories: 1409 --prefix=PREFIX install architecture-independent files in PREFIX 1410 [$ac_default_prefix] 1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1412 [PREFIX] 1413 1414By default, \`make install' will install all the files in 1415\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1416an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1417for instance \`--prefix=\$HOME'. 1418 1419For better control, use the options below. 1420 1421Fine tuning of the installation directories: 1422 --bindir=DIR user executables [EPREFIX/bin] 1423 --sbindir=DIR system admin executables [EPREFIX/sbin] 1424 --libexecdir=DIR program executables [EPREFIX/libexec] 1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441_ACEOF 1442 1443 cat <<\_ACEOF 1444 1445X features: 1446 --x-includes=DIR X include files are in DIR 1447 --x-libraries=DIR X library files are in DIR 1448_ACEOF 1449fi 1450 1451if test -n "$ac_init_help"; then 1452 1453 cat <<\_ACEOF 1454 1455Optional Features: 1456 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-fail-if-missing Fail if dependencies on additional features 1460 specified on the command line are missing. 1461 --disable-darwin Disable Darwin (Mac OS X) support. 1462 --disable-smack Do not check for Smack support. 1463 --disable-selinux Do not check for SELinux support. 1464 --disable-xsmp Disable XSMP session management 1465 --disable-xsmp-interact Disable XSMP interaction 1466 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1467 --enable-mzschemeinterp Include MzScheme interpreter. 1468 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1469 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1470 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1471 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1472 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1473 --enable-cscope Include cscope interface. 1474 --enable-workshop Include Sun Visual Workshop support. 1475 --disable-netbeans Disable NetBeans integration support. 1476 --disable-channel Disable process communication support. 1477 --enable-multibyte Include multibyte editing support. 1478 --enable-hangulinput Include Hangul input support. 1479 --enable-xim Include XIM input support. 1480 --enable-fontset Include X fontset output support. 1481 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1482 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1483 --enable-gnome-check If GTK GUI, check for GNOME default=no 1484 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1485 --enable-motif-check If auto-select GUI, check for Motif default=yes 1486 --enable-athena-check If auto-select GUI, check for Athena default=yes 1487 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1488 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1489 --disable-gtktest Do not try to compile and run a test GTK program 1490 --disable-largefile omit support for large files 1491 --disable-acl Don't check for ACL support. 1492 --disable-gpm Don't use gpm (Linux mouse daemon). 1493 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1494 --disable-nls Don't support NLS (gettext()). 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-mac-arch=ARCH current, intel, ppc or both 1500 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1501 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1502 --without-local-dir do not search /usr/local for local libraries. 1503 --with-vim-name=NAME what to call the Vim executable 1504 --with-ex-name=NAME what to call the Ex executable 1505 --with-view-name=NAME what to call the View executable 1506 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1507 --with-modified-by=NAME name of who modified a release version 1508 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1509 --with-compiledby=NAME name to show in :version message 1510 --with-lua-prefix=PFX Prefix where Lua is installed. 1511 --with-luajit Link with LuaJIT instead of Lua. 1512 --with-plthome=PLTHOME Use PLTHOME. 1513 --with-python-config-dir=PATH Python's config directory 1514 --with-python3-config-dir=PATH Python's config directory 1515 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1516 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1517 --with-x use the X Window System 1518 --with-gnome-includes=DIR Specify location of GNOME headers 1519 --with-gnome-libs=DIR Specify location of GNOME libs 1520 --with-gnome Specify prefix for GNOME files 1521 --with-motif-lib=STRING Library for Motif 1522 --with-tlib=library terminal library to be used 1523 1524Some influential environment variables: 1525 CC C compiler command 1526 CFLAGS C compiler flags 1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1528 nonstandard directory <lib dir> 1529 LIBS libraries to pass to the linker, e.g. -l<library> 1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1531 you have headers in a nonstandard directory <include dir> 1532 CPP C preprocessor 1533 XMKMF Path to xmkmf, Makefile generator for X Window System 1534 1535Use these variables to override the choices made by `configure' or to help 1536it to find libraries and programs with nonstandard names/locations. 1537 1538Report bugs to the package provider. 1539_ACEOF 1540ac_status=$? 1541fi 1542 1543if test "$ac_init_help" = "recursive"; then 1544 # If there are subdirs, report their specific --help. 1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1546 test -d "$ac_dir" || 1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1548 continue 1549 ac_builddir=. 1550 1551case "$ac_dir" in 1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1553*) 1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1555 # A ".." for each directory in $ac_dir_suffix. 1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1557 case $ac_top_builddir_sub in 1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1560 esac ;; 1561esac 1562ac_abs_top_builddir=$ac_pwd 1563ac_abs_builddir=$ac_pwd$ac_dir_suffix 1564# for backward compatibility: 1565ac_top_builddir=$ac_top_build_prefix 1566 1567case $srcdir in 1568 .) # We are building in place. 1569 ac_srcdir=. 1570 ac_top_srcdir=$ac_top_builddir_sub 1571 ac_abs_top_srcdir=$ac_pwd ;; 1572 [\\/]* | ?:[\\/]* ) # Absolute name. 1573 ac_srcdir=$srcdir$ac_dir_suffix; 1574 ac_top_srcdir=$srcdir 1575 ac_abs_top_srcdir=$srcdir ;; 1576 *) # Relative name. 1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1578 ac_top_srcdir=$ac_top_build_prefix$srcdir 1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1580esac 1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1582 1583 cd "$ac_dir" || { ac_status=$?; continue; } 1584 # Check for guested configure. 1585 if test -f "$ac_srcdir/configure.gnu"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1588 elif test -f "$ac_srcdir/configure"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure" --help=recursive 1591 else 1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1593 fi || ac_status=$? 1594 cd "$ac_pwd" || { ac_status=$?; break; } 1595 done 1596fi 1597 1598test -n "$ac_init_help" && exit $ac_status 1599if $ac_init_version; then 1600 cat <<\_ACEOF 1601configure 1602generated by GNU Autoconf 2.69 1603 1604Copyright (C) 2012 Free Software Foundation, Inc. 1605This configure script is free software; the Free Software Foundation 1606gives unlimited permission to copy, distribute and modify it. 1607_ACEOF 1608 exit 1609fi 1610 1611## ------------------------ ## 1612## Autoconf initialization. ## 1613## ------------------------ ## 1614 1615# ac_fn_c_try_compile LINENO 1616# -------------------------- 1617# Try to compile conftest.$ac_ext, and return whether this succeeded. 1618ac_fn_c_try_compile () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 rm -f conftest.$ac_objext 1622 if { { ac_try="$ac_compile" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_compile") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { 1638 test -z "$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 } && test -s conftest.$ac_objext; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_link LINENO 1691# ----------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. 1693ac_fn_c_try_link () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 rm -f conftest.$ac_objext conftest$ac_exeext 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>conftest.err 1705 ac_status=$? 1706 if test -s conftest.err; then 1707 grep -v '^ *+' conftest.err >conftest.er1 1708 cat conftest.er1 >&5 1709 mv -f conftest.er1 conftest.err 1710 fi 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } && { 1713 test -z "$ac_c_werror_flag" || 1714 test ! -s conftest.err 1715 } && test -s conftest$ac_exeext && { 1716 test "$cross_compiling" = yes || 1717 test -x conftest$ac_exeext 1718 }; then : 1719 ac_retval=0 1720else 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=1 1725fi 1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728 # interfere with the next link command; also delete a directory that is 1729 # left behind by Apple's compiler. We do this before executing the actions. 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_link 1735 1736# ac_fn_c_try_run LINENO 1737# ---------------------- 1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1739# that executables *can* be run. 1740ac_fn_c_try_run () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { { ac_try="$ac_link" 1744case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_link") 2>&5 1751 ac_status=$? 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1754 { { case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_try") 2>&5 1761 ac_status=$? 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; }; }; then : 1764 ac_retval=0 1765else 1766 $as_echo "$as_me: program exited with status $ac_status" >&5 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=$ac_status 1771fi 1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 as_fn_set_status $ac_retval 1775 1776} # ac_fn_c_try_run 1777 1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1779# ------------------------------------------------------- 1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1781# the include files in INCLUDES and setting the cache variable VAR 1782# accordingly. 1783ac_fn_c_check_header_mongrel () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 if eval \${$3+:} false; then : 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1788$as_echo_n "checking for $2... " >&6; } 1789if eval \${$3+:} false; then : 1790 $as_echo_n "(cached) " >&6 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795else 1796 # Is the header compilable? 1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1798$as_echo_n "checking $2 usability... " >&6; } 1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802#include <$2> 1803_ACEOF 1804if ac_fn_c_try_compile "$LINENO"; then : 1805 ac_header_compiler=yes 1806else 1807 ac_header_compiler=no 1808fi 1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1811$as_echo "$ac_header_compiler" >&6; } 1812 1813# Is the header present? 1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1815$as_echo_n "checking $2 presence... " >&6; } 1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818#include <$2> 1819_ACEOF 1820if ac_fn_c_try_cpp "$LINENO"; then : 1821 ac_header_preproc=yes 1822else 1823 ac_header_preproc=no 1824fi 1825rm -f conftest.err conftest.i conftest.$ac_ext 1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1827$as_echo "$ac_header_preproc" >&6; } 1828 1829# So? What about this header? 1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1831 yes:no: ) 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1836 ;; 1837 no:yes:* ) 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1841$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1845$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1848 ;; 1849esac 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1851$as_echo_n "checking for $2... " >&6; } 1852if eval \${$3+:} false; then : 1853 $as_echo_n "(cached) " >&6 1854else 1855 eval "$3=\$ac_header_compiler" 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860fi 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_header_mongrel 1864 1865# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1866# ------------------------------------------------------- 1867# Tests whether HEADER exists and can be compiled using the include files in 1868# INCLUDES, setting the cache variable VAR accordingly. 1869ac_fn_c_check_header_compile () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876else 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879$4 1880#include <$2> 1881_ACEOF 1882if ac_fn_c_try_compile "$LINENO"; then : 1883 eval "$3=yes" 1884else 1885 eval "$3=no" 1886fi 1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 1894} # ac_fn_c_check_header_compile 1895 1896# ac_fn_c_check_func LINENO FUNC VAR 1897# ---------------------------------- 1898# Tests whether FUNC exists, setting the cache variable VAR accordingly 1899ac_fn_c_check_func () 1900{ 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1903$as_echo_n "checking for $2... " >&6; } 1904if eval \${$3+:} false; then : 1905 $as_echo_n "(cached) " >&6 1906else 1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1908/* end confdefs.h. */ 1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1911#define $2 innocuous_$2 1912 1913/* System header to define __stub macros and hopefully few prototypes, 1914 which can conflict with char $2 (); below. 1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1916 <limits.h> exists even on freestanding compilers. */ 1917 1918#ifdef __STDC__ 1919# include <limits.h> 1920#else 1921# include <assert.h> 1922#endif 1923 1924#undef $2 1925 1926/* Override any GCC internal prototype to avoid an error. 1927 Use char because int might match the return type of a GCC 1928 builtin and then its argument prototype would still apply. */ 1929#ifdef __cplusplus 1930extern "C" 1931#endif 1932char $2 (); 1933/* The GNU C library defines this for functions which it implements 1934 to always fail with ENOSYS. Some functions are actually named 1935 something starting with __ and the normal name is an alias. */ 1936#if defined __stub_$2 || defined __stub___$2 1937choke me 1938#endif 1939 1940int 1941main () 1942{ 1943return $2 (); 1944 ; 1945 return 0; 1946} 1947_ACEOF 1948if ac_fn_c_try_link "$LINENO"; then : 1949 eval "$3=yes" 1950else 1951 eval "$3=no" 1952fi 1953rm -f core conftest.err conftest.$ac_objext \ 1954 conftest$ac_exeext conftest.$ac_ext 1955fi 1956eval ac_res=\$$3 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1958$as_echo "$ac_res" >&6; } 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1960 1961} # ac_fn_c_check_func 1962 1963# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1964# ------------------------------------------- 1965# Tests whether TYPE exists after having included INCLUDES, setting cache 1966# variable VAR accordingly. 1967ac_fn_c_check_type () 1968{ 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1971$as_echo_n "checking for $2... " >&6; } 1972if eval \${$3+:} false; then : 1973 $as_echo_n "(cached) " >&6 1974else 1975 eval "$3=no" 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978$4 1979int 1980main () 1981{ 1982if (sizeof ($2)) 1983 return 0; 1984 ; 1985 return 0; 1986} 1987_ACEOF 1988if ac_fn_c_try_compile "$LINENO"; then : 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992int 1993main () 1994{ 1995if (sizeof (($2))) 1996 return 0; 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_compile "$LINENO"; then : 2002 2003else 2004 eval "$3=yes" 2005fi 2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009fi 2010eval ac_res=\$$3 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2012$as_echo "$ac_res" >&6; } 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015} # ac_fn_c_check_type 2016 2017# ac_fn_c_find_uintX_t LINENO BITS VAR 2018# ------------------------------------ 2019# Finds an unsigned integer type with width BITS, setting cache variable VAR 2020# accordingly. 2021ac_fn_c_find_uintX_t () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2025$as_echo_n "checking for uint$2_t... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028else 2029 eval "$3=no" 2030 # Order is important - never check a type that is potentially smaller 2031 # than half of the expected target width. 2032 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2033 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2035/* end confdefs.h. */ 2036$ac_includes_default 2037int 2038main () 2039{ 2040static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2041test_array [0] = 0; 2042return test_array [0]; 2043 2044 ; 2045 return 0; 2046} 2047_ACEOF 2048if ac_fn_c_try_compile "$LINENO"; then : 2049 case $ac_type in #( 2050 uint$2_t) : 2051 eval "$3=yes" ;; #( 2052 *) : 2053 eval "$3=\$ac_type" ;; 2054esac 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057 if eval test \"x\$"$3"\" = x"no"; then : 2058 2059else 2060 break 2061fi 2062 done 2063fi 2064eval ac_res=\$$3 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2066$as_echo "$ac_res" >&6; } 2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 2069} # ac_fn_c_find_uintX_t 2070 2071# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2072# -------------------------------------------- 2073# Tries to find the compile-time value of EXPR in a program that includes 2074# INCLUDES, setting VAR accordingly. Returns whether the value could be 2075# computed 2076ac_fn_c_compute_int () 2077{ 2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2079 if test "$cross_compiling" = yes; then 2080 # Depending upon the size, compute the lo and hi bounds. 2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083$4 2084int 2085main () 2086{ 2087static int test_array [1 - 2 * !(($2) >= 0)]; 2088test_array [0] = 0; 2089return test_array [0]; 2090 2091 ; 2092 return 0; 2093} 2094_ACEOF 2095if ac_fn_c_try_compile "$LINENO"; then : 2096 ac_lo=0 ac_mid=0 2097 while :; do 2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2099/* end confdefs.h. */ 2100$4 2101int 2102main () 2103{ 2104static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2105test_array [0] = 0; 2106return test_array [0]; 2107 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112if ac_fn_c_try_compile "$LINENO"; then : 2113 ac_hi=$ac_mid; break 2114else 2115 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2116 if test $ac_lo -le $ac_mid; then 2117 ac_lo= ac_hi= 2118 break 2119 fi 2120 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2121fi 2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2123 done 2124else 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131static int test_array [1 - 2 * !(($2) < 0)]; 2132test_array [0] = 0; 2133return test_array [0]; 2134 2135 ; 2136 return 0; 2137} 2138_ACEOF 2139if ac_fn_c_try_compile "$LINENO"; then : 2140 ac_hi=-1 ac_mid=-1 2141 while :; do 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$4 2145int 2146main () 2147{ 2148static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2149test_array [0] = 0; 2150return test_array [0]; 2151 2152 ; 2153 return 0; 2154} 2155_ACEOF 2156if ac_fn_c_try_compile "$LINENO"; then : 2157 ac_lo=$ac_mid; break 2158else 2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2160 if test $ac_mid -le $ac_hi; then 2161 ac_lo= ac_hi= 2162 break 2163 fi 2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167 done 2168else 2169 ac_lo= ac_hi= 2170fi 2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2172fi 2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174# Binary search between lo and hi bounds. 2175while test "x$ac_lo" != "x$ac_hi"; do 2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$4 2180int 2181main () 2182{ 2183static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2184test_array [0] = 0; 2185return test_array [0]; 2186 2187 ; 2188 return 0; 2189} 2190_ACEOF 2191if ac_fn_c_try_compile "$LINENO"; then : 2192 ac_hi=$ac_mid 2193else 2194 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197done 2198case $ac_lo in #(( 2199?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2200'') ac_retval=1 ;; 2201esac 2202 else 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2204/* end confdefs.h. */ 2205$4 2206static long int longval () { return $2; } 2207static unsigned long int ulongval () { return $2; } 2208#include <stdio.h> 2209#include <stdlib.h> 2210int 2211main () 2212{ 2213 2214 FILE *f = fopen ("conftest.val", "w"); 2215 if (! f) 2216 return 1; 2217 if (($2) < 0) 2218 { 2219 long int i = longval (); 2220 if (i != ($2)) 2221 return 1; 2222 fprintf (f, "%ld", i); 2223 } 2224 else 2225 { 2226 unsigned long int i = ulongval (); 2227 if (i != ($2)) 2228 return 1; 2229 fprintf (f, "%lu", i); 2230 } 2231 /* Do not output a trailing newline, as this causes \r\n confusion 2232 on some platforms. */ 2233 return ferror (f) || fclose (f) != 0; 2234 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239if ac_fn_c_try_run "$LINENO"; then : 2240 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2241else 2242 ac_retval=1 2243fi 2244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2245 conftest.$ac_objext conftest.beam conftest.$ac_ext 2246rm -f conftest.val 2247 2248 fi 2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2250 as_fn_set_status $ac_retval 2251 2252} # ac_fn_c_compute_int 2253cat >auto/config.log <<_ACEOF 2254This file contains any messages produced by compilers while 2255running configure, to aid debugging if configure makes a mistake. 2256 2257It was created by $as_me, which was 2258generated by GNU Autoconf 2.69. Invocation command line was 2259 2260 $ $0 $@ 2261 2262_ACEOF 2263exec 5>>auto/config.log 2264{ 2265cat <<_ASUNAME 2266## --------- ## 2267## Platform. ## 2268## --------- ## 2269 2270hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2271uname -m = `(uname -m) 2>/dev/null || echo unknown` 2272uname -r = `(uname -r) 2>/dev/null || echo unknown` 2273uname -s = `(uname -s) 2>/dev/null || echo unknown` 2274uname -v = `(uname -v) 2>/dev/null || echo unknown` 2275 2276/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2277/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2278 2279/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2280/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2281/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2282/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2283/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2284/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2285/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2286 2287_ASUNAME 2288 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 $as_echo "PATH: $as_dir" 2295 done 2296IFS=$as_save_IFS 2297 2298} >&5 2299 2300cat >&5 <<_ACEOF 2301 2302 2303## ----------- ## 2304## Core tests. ## 2305## ----------- ## 2306 2307_ACEOF 2308 2309 2310# Keep a trace of the command line. 2311# Strip out --no-create and --no-recursion so they do not pile up. 2312# Strip out --silent because we don't want to record it for future runs. 2313# Also quote any args containing shell meta-characters. 2314# Make two passes to allow for proper duplicate-argument suppression. 2315ac_configure_args= 2316ac_configure_args0= 2317ac_configure_args1= 2318ac_must_keep_next=false 2319for ac_pass in 1 2 2320do 2321 for ac_arg 2322 do 2323 case $ac_arg in 2324 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2326 | -silent | --silent | --silen | --sile | --sil) 2327 continue ;; 2328 *\'*) 2329 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2330 esac 2331 case $ac_pass in 2332 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2333 2) 2334 as_fn_append ac_configure_args1 " '$ac_arg'" 2335 if test $ac_must_keep_next = true; then 2336 ac_must_keep_next=false # Got value, back to normal. 2337 else 2338 case $ac_arg in 2339 *=* | --config-cache | -C | -disable-* | --disable-* \ 2340 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2341 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2342 | -with-* | --with-* | -without-* | --without-* | --x) 2343 case "$ac_configure_args0 " in 2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2345 esac 2346 ;; 2347 -* ) ac_must_keep_next=true ;; 2348 esac 2349 fi 2350 as_fn_append ac_configure_args " '$ac_arg'" 2351 ;; 2352 esac 2353 done 2354done 2355{ ac_configure_args0=; unset ac_configure_args0;} 2356{ ac_configure_args1=; unset ac_configure_args1;} 2357 2358# When interrupted or exit'd, cleanup temporary files, and complete 2359# config.log. We remove comments because anyway the quotes in there 2360# would cause problems or look ugly. 2361# WARNING: Use '\'' to represent an apostrophe within the trap. 2362# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2363trap 'exit_status=$? 2364 # Save into config.log some information that might help in debugging. 2365 { 2366 echo 2367 2368 $as_echo "## ---------------- ## 2369## Cache variables. ## 2370## ---------------- ##" 2371 echo 2372 # The following way of writing the cache mishandles newlines in values, 2373( 2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in #( 2377 *${as_nl}*) 2378 case $ac_var in #( 2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2380$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2381 esac 2382 case $ac_var in #( 2383 _ | IFS | as_nl) ;; #( 2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2385 *) { eval $ac_var=; unset $ac_var;} ;; 2386 esac ;; 2387 esac 2388 done 2389 (set) 2>&1 | 2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2391 *${as_nl}ac_space=\ *) 2392 sed -n \ 2393 "s/'\''/'\''\\\\'\'''\''/g; 2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2395 ;; #( 2396 *) 2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2398 ;; 2399 esac | 2400 sort 2401) 2402 echo 2403 2404 $as_echo "## ----------------- ## 2405## Output variables. ## 2406## ----------------- ##" 2407 echo 2408 for ac_var in $ac_subst_vars 2409 do 2410 eval ac_val=\$$ac_var 2411 case $ac_val in 2412 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2413 esac 2414 $as_echo "$ac_var='\''$ac_val'\''" 2415 done | sort 2416 echo 2417 2418 if test -n "$ac_subst_files"; then 2419 $as_echo "## ------------------- ## 2420## File substitutions. ## 2421## ------------------- ##" 2422 echo 2423 for ac_var in $ac_subst_files 2424 do 2425 eval ac_val=\$$ac_var 2426 case $ac_val in 2427 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2428 esac 2429 $as_echo "$ac_var='\''$ac_val'\''" 2430 done | sort 2431 echo 2432 fi 2433 2434 if test -s confdefs.h; then 2435 $as_echo "## ----------- ## 2436## confdefs.h. ## 2437## ----------- ##" 2438 echo 2439 cat confdefs.h 2440 echo 2441 fi 2442 test "$ac_signal" != 0 && 2443 $as_echo "$as_me: caught signal $ac_signal" 2444 $as_echo "$as_me: exit $exit_status" 2445 } >&5 2446 rm -f core *.core core.conftest.* && 2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2448 exit $exit_status 2449' 0 2450for ac_signal in 1 2 13 15; do 2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2452done 2453ac_signal=0 2454 2455# confdefs.h avoids OS command line length limits that DEFS can exceed. 2456rm -f -r conftest* confdefs.h 2457 2458$as_echo "/* confdefs.h */" > confdefs.h 2459 2460# Predefined preprocessor variables. 2461 2462cat >>confdefs.h <<_ACEOF 2463#define PACKAGE_NAME "$PACKAGE_NAME" 2464_ACEOF 2465 2466cat >>confdefs.h <<_ACEOF 2467#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2468_ACEOF 2469 2470cat >>confdefs.h <<_ACEOF 2471#define PACKAGE_VERSION "$PACKAGE_VERSION" 2472_ACEOF 2473 2474cat >>confdefs.h <<_ACEOF 2475#define PACKAGE_STRING "$PACKAGE_STRING" 2476_ACEOF 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2480_ACEOF 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_URL "$PACKAGE_URL" 2484_ACEOF 2485 2486 2487# Let the site file select an alternate cache file if it wants to. 2488# Prefer an explicitly selected file to automatically selected ones. 2489ac_site_file1=NONE 2490ac_site_file2=NONE 2491if test -n "$CONFIG_SITE"; then 2492 # We do not want a PATH search for config.site. 2493 case $CONFIG_SITE in #(( 2494 -*) ac_site_file1=./$CONFIG_SITE;; 2495 */*) ac_site_file1=$CONFIG_SITE;; 2496 *) ac_site_file1=./$CONFIG_SITE;; 2497 esac 2498elif test "x$prefix" != xNONE; then 2499 ac_site_file1=$prefix/share/config.site 2500 ac_site_file2=$prefix/etc/config.site 2501else 2502 ac_site_file1=$ac_default_prefix/share/config.site 2503 ac_site_file2=$ac_default_prefix/etc/config.site 2504fi 2505for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2506do 2507 test "x$ac_site_file" = xNONE && continue 2508 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2510$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2511 sed 's/^/| /' "$ac_site_file" >&5 2512 . "$ac_site_file" \ 2513 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2515as_fn_error $? "failed to load site script $ac_site_file 2516See \`config.log' for more details" "$LINENO" 5; } 2517 fi 2518done 2519 2520if test -r "$cache_file"; then 2521 # Some versions of bash will fail to source /dev/null (special files 2522 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2523 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2525$as_echo "$as_me: loading cache $cache_file" >&6;} 2526 case $cache_file in 2527 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2528 *) . "./$cache_file";; 2529 esac 2530 fi 2531else 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2533$as_echo "$as_me: creating cache $cache_file" >&6;} 2534 >$cache_file 2535fi 2536 2537# Check that the precious variables saved in the cache have kept the same 2538# value. 2539ac_cache_corrupted=false 2540for ac_var in $ac_precious_vars; do 2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2542 eval ac_new_set=\$ac_env_${ac_var}_set 2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2544 eval ac_new_val=\$ac_env_${ac_var}_value 2545 case $ac_old_set,$ac_new_set in 2546 set,) 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2548$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2549 ac_cache_corrupted=: ;; 2550 ,set) 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2552$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2553 ac_cache_corrupted=: ;; 2554 ,);; 2555 *) 2556 if test "x$ac_old_val" != "x$ac_new_val"; then 2557 # differences in whitespace do not lead to failure. 2558 ac_old_val_w=`echo x $ac_old_val` 2559 ac_new_val_w=`echo x $ac_new_val` 2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2562$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2563 ac_cache_corrupted=: 2564 else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2566$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2567 eval $ac_var=\$ac_old_val 2568 fi 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2570$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2572$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2573 fi;; 2574 esac 2575 # Pass precious variables to config.status. 2576 if test "$ac_new_set" = set; then 2577 case $ac_new_val in 2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2579 *) ac_arg=$ac_var=$ac_new_val ;; 2580 esac 2581 case " $ac_configure_args " in 2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2584 esac 2585 fi 2586done 2587if $ac_cache_corrupted; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2591$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2592 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2593fi 2594## -------------------- ## 2595## Main body of script. ## 2596## -------------------- ## 2597 2598ac_ext=c 2599ac_cpp='$CPP $CPPFLAGS' 2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2602ac_compiler_gnu=$ac_cv_c_compiler_gnu 2603 2604 2605ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2606 2607 2608$as_echo "#define UNIX 1" >>confdefs.h 2609 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2611$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2612set x ${MAKE-make} 2613ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2614if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 cat >conftest.make <<\_ACEOF 2618SHELL = /bin/sh 2619all: 2620 @echo '@@@%%%=$(MAKE)=@@@%%%' 2621_ACEOF 2622# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2623case `${MAKE-make} -f conftest.make 2>/dev/null` in 2624 *@@@%%%=?*=@@@%%%*) 2625 eval ac_cv_prog_make_${ac_make}_set=yes;; 2626 *) 2627 eval ac_cv_prog_make_${ac_make}_set=no;; 2628esac 2629rm -f conftest.make 2630fi 2631if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2633$as_echo "yes" >&6; } 2634 SET_MAKE= 2635else 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2637$as_echo "no" >&6; } 2638 SET_MAKE="MAKE=${MAKE-make}" 2639fi 2640 2641 2642ac_ext=c 2643ac_cpp='$CPP $CPPFLAGS' 2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2646ac_compiler_gnu=$ac_cv_c_compiler_gnu 2647if test -n "$ac_tool_prefix"; then 2648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2649set dummy ${ac_tool_prefix}gcc; ac_word=$2 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651$as_echo_n "checking for $ac_word... " >&6; } 2652if ${ac_cv_prog_CC+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 if test -n "$CC"; then 2656 ac_cv_prog_CC="$CC" # Let the user override the test. 2657else 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2665 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669done 2670 done 2671IFS=$as_save_IFS 2672 2673fi 2674fi 2675CC=$ac_cv_prog_CC 2676if test -n "$CC"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2678$as_echo "$CC" >&6; } 2679else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681$as_echo "no" >&6; } 2682fi 2683 2684 2685fi 2686if test -z "$ac_cv_prog_CC"; then 2687 ac_ct_CC=$CC 2688 # Extract the first word of "gcc", so it can be a program name with args. 2689set dummy gcc; ac_word=$2 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2691$as_echo_n "checking for $ac_word... " >&6; } 2692if ${ac_cv_prog_ac_ct_CC+:} false; then : 2693 $as_echo_n "(cached) " >&6 2694else 2695 if test -n "$ac_ct_CC"; then 2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2697else 2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2699for as_dir in $PATH 2700do 2701 IFS=$as_save_IFS 2702 test -z "$as_dir" && as_dir=. 2703 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2705 ac_cv_prog_ac_ct_CC="gcc" 2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2707 break 2 2708 fi 2709done 2710 done 2711IFS=$as_save_IFS 2712 2713fi 2714fi 2715ac_ct_CC=$ac_cv_prog_ac_ct_CC 2716if test -n "$ac_ct_CC"; then 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2718$as_echo "$ac_ct_CC" >&6; } 2719else 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721$as_echo "no" >&6; } 2722fi 2723 2724 if test "x$ac_ct_CC" = x; then 2725 CC="" 2726 else 2727 case $cross_compiling:$ac_tool_warned in 2728yes:) 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2731ac_tool_warned=yes ;; 2732esac 2733 CC=$ac_ct_CC 2734 fi 2735else 2736 CC="$ac_cv_prog_CC" 2737fi 2738 2739if test -z "$CC"; then 2740 if test -n "$ac_tool_prefix"; then 2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2742set dummy ${ac_tool_prefix}cc; ac_word=$2 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2744$as_echo_n "checking for $ac_word... " >&6; } 2745if ${ac_cv_prog_CC+:} false; then : 2746 $as_echo_n "(cached) " >&6 2747else 2748 if test -n "$CC"; then 2749 ac_cv_prog_CC="$CC" # Let the user override the test. 2750else 2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752for as_dir in $PATH 2753do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 for ac_exec_ext in '' $ac_executable_extensions; do 2757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2758 ac_cv_prog_CC="${ac_tool_prefix}cc" 2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2760 break 2 2761 fi 2762done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767fi 2768CC=$ac_cv_prog_CC 2769if test -n "$CC"; then 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2771$as_echo "$CC" >&6; } 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775fi 2776 2777 2778 fi 2779fi 2780if test -z "$CC"; then 2781 # Extract the first word of "cc", so it can be a program name with args. 2782set dummy cc; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if ${ac_cv_prog_CC+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$CC"; then 2789 ac_cv_prog_CC="$CC" # Let the user override the test. 2790else 2791 ac_prog_rejected=no 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2800 ac_prog_rejected=yes 2801 continue 2802 fi 2803 ac_cv_prog_CC="cc" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811if test $ac_prog_rejected = yes; then 2812 # We found a bogon in the path, so make sure we never use it. 2813 set dummy $ac_cv_prog_CC 2814 shift 2815 if test $# != 0; then 2816 # We chose a different compiler from the bogus one. 2817 # However, it has the same basename, so the bogon will be chosen 2818 # first if we set CC to just the basename; use the full file name. 2819 shift 2820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2821 fi 2822fi 2823fi 2824fi 2825CC=$ac_cv_prog_CC 2826if test -n "$CC"; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2828$as_echo "$CC" >&6; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 2835fi 2836if test -z "$CC"; then 2837 if test -n "$ac_tool_prefix"; then 2838 for ac_prog in cl.exe 2839 do 2840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2841set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843$as_echo_n "checking for $ac_word... " >&6; } 2844if ${ac_cv_prog_CC+:} false; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 if test -n "$CC"; then 2848 ac_cv_prog_CC="$CC" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862 done 2863IFS=$as_save_IFS 2864 2865fi 2866fi 2867CC=$ac_cv_prog_CC 2868if test -n "$CC"; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2870$as_echo "$CC" >&6; } 2871else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874fi 2875 2876 2877 test -n "$CC" && break 2878 done 2879fi 2880if test -z "$CC"; then 2881 ac_ct_CC=$CC 2882 for ac_prog in cl.exe 2883do 2884 # Extract the first word of "$ac_prog", so it can be a program name with args. 2885set dummy $ac_prog; ac_word=$2 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887$as_echo_n "checking for $ac_word... " >&6; } 2888if ${ac_cv_prog_ac_ct_CC+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 if test -n "$ac_ct_CC"; then 2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2893else 2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2895for as_dir in $PATH 2896do 2897 IFS=$as_save_IFS 2898 test -z "$as_dir" && as_dir=. 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2901 ac_cv_prog_ac_ct_CC="$ac_prog" 2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910fi 2911ac_ct_CC=$ac_cv_prog_ac_ct_CC 2912if test -n "$ac_ct_CC"; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2914$as_echo "$ac_ct_CC" >&6; } 2915else 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917$as_echo "no" >&6; } 2918fi 2919 2920 2921 test -n "$ac_ct_CC" && break 2922done 2923 2924 if test "x$ac_ct_CC" = x; then 2925 CC="" 2926 else 2927 case $cross_compiling:$ac_tool_warned in 2928yes:) 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2931ac_tool_warned=yes ;; 2932esac 2933 CC=$ac_ct_CC 2934 fi 2935fi 2936 2937fi 2938 2939 2940test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2942as_fn_error $? "no acceptable C compiler found in \$PATH 2943See \`config.log' for more details" "$LINENO" 5; } 2944 2945# Provide some information about the compiler. 2946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2947set X $ac_compile 2948ac_compiler=$2 2949for ac_option in --version -v -V -qversion; do 2950 { { ac_try="$ac_compiler $ac_option >&5" 2951case "(($ac_try" in 2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2953 *) ac_try_echo=$ac_try;; 2954esac 2955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2956$as_echo "$ac_try_echo"; } >&5 2957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2958 ac_status=$? 2959 if test -s conftest.err; then 2960 sed '10a\ 2961... rest of stderr output deleted ... 2962 10q' conftest.err >conftest.er1 2963 cat conftest.er1 >&5 2964 fi 2965 rm -f conftest.er1 conftest.err 2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2967 test $ac_status = 0; } 2968done 2969 2970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2971/* end confdefs.h. */ 2972 2973int 2974main () 2975{ 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981ac_clean_files_save=$ac_clean_files 2982ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2983# Try to create an executable without -o first, disregard a.out. 2984# It will help us diagnose broken compilers, and finding out an intuition 2985# of exeext. 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2987$as_echo_n "checking whether the C compiler works... " >&6; } 2988ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2989 2990# The possible output files: 2991ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2992 2993ac_rmfiles= 2994for ac_file in $ac_files 2995do 2996 case $ac_file in 2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2998 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2999 esac 3000done 3001rm -f $ac_rmfiles 3002 3003if { { ac_try="$ac_link_default" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3009$as_echo "$ac_try_echo"; } >&5 3010 (eval "$ac_link_default") 2>&5 3011 ac_status=$? 3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3013 test $ac_status = 0; }; then : 3014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3015# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3016# in a Makefile. We should not override ac_cv_exeext if it was cached, 3017# so that the user can short-circuit this test for compilers unknown to 3018# Autoconf. 3019for ac_file in $ac_files '' 3020do 3021 test -f "$ac_file" || continue 3022 case $ac_file in 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3024 ;; 3025 [ab].out ) 3026 # We found the default executable, but exeext='' is most 3027 # certainly right. 3028 break;; 3029 *.* ) 3030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3031 then :; else 3032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3033 fi 3034 # We set ac_cv_exeext here because the later test for it is not 3035 # safe: cross compilers may not add the suffix if given an `-o' 3036 # argument, so we may need to know it at that point already. 3037 # Even if this section looks crufty: it has the advantage of 3038 # actually working. 3039 break;; 3040 * ) 3041 break;; 3042 esac 3043done 3044test "$ac_cv_exeext" = no && ac_cv_exeext= 3045 3046else 3047 ac_file='' 3048fi 3049if test -z "$ac_file"; then : 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052$as_echo "$as_me: failed program was:" >&5 3053sed 's/^/| /' conftest.$ac_ext >&5 3054 3055{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3057as_fn_error 77 "C compiler cannot create executables 3058See \`config.log' for more details" "$LINENO" 5; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3061$as_echo "yes" >&6; } 3062fi 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3064$as_echo_n "checking for C compiler default output file name... " >&6; } 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3066$as_echo "$ac_file" >&6; } 3067ac_exeext=$ac_cv_exeext 3068 3069rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3070ac_clean_files=$ac_clean_files_save 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3072$as_echo_n "checking for suffix of executables... " >&6; } 3073if { { ac_try="$ac_link" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3079$as_echo "$ac_try_echo"; } >&5 3080 (eval "$ac_link") 2>&5 3081 ac_status=$? 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3083 test $ac_status = 0; }; then : 3084 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3085# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3086# work properly (i.e., refer to `conftest.exe'), while it won't with 3087# `rm'. 3088for ac_file in conftest.exe conftest conftest.*; do 3089 test -f "$ac_file" || continue 3090 case $ac_file in 3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3093 break;; 3094 * ) break;; 3095 esac 3096done 3097else 3098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3100as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3101See \`config.log' for more details" "$LINENO" 5; } 3102fi 3103rm -f conftest conftest$ac_cv_exeext 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3105$as_echo "$ac_cv_exeext" >&6; } 3106 3107rm -f conftest.$ac_ext 3108EXEEXT=$ac_cv_exeext 3109ac_exeext=$EXEEXT 3110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3111/* end confdefs.h. */ 3112#include <stdio.h> 3113int 3114main () 3115{ 3116FILE *f = fopen ("conftest.out", "w"); 3117 return ferror (f) || fclose (f) != 0; 3118 3119 ; 3120 return 0; 3121} 3122_ACEOF 3123ac_clean_files="$ac_clean_files conftest.out" 3124# Check that the compiler produces executables we can run. If not, either 3125# the compiler is broken, or we cross compile. 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3127$as_echo_n "checking whether we are cross compiling... " >&6; } 3128if test "$cross_compiling" != yes; then 3129 { { ac_try="$ac_link" 3130case "(($ac_try" in 3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *) ac_try_echo=$ac_try;; 3133esac 3134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3135$as_echo "$ac_try_echo"; } >&5 3136 (eval "$ac_link") 2>&5 3137 ac_status=$? 3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3139 test $ac_status = 0; } 3140 if { ac_try='./conftest$ac_cv_exeext' 3141 { { case "(($ac_try" in 3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3143 *) ac_try_echo=$ac_try;; 3144esac 3145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3146$as_echo "$ac_try_echo"; } >&5 3147 (eval "$ac_try") 2>&5 3148 ac_status=$? 3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3150 test $ac_status = 0; }; }; then 3151 cross_compiling=no 3152 else 3153 if test "$cross_compiling" = maybe; then 3154 cross_compiling=yes 3155 else 3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3158as_fn_error $? "cannot run C compiled programs. 3159If you meant to cross compile, use \`--host'. 3160See \`config.log' for more details" "$LINENO" 5; } 3161 fi 3162 fi 3163fi 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3165$as_echo "$cross_compiling" >&6; } 3166 3167rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3168ac_clean_files=$ac_clean_files_save 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3170$as_echo_n "checking for suffix of object files... " >&6; } 3171if ${ac_cv_objext+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3175/* end confdefs.h. */ 3176 3177int 3178main () 3179{ 3180 3181 ; 3182 return 0; 3183} 3184_ACEOF 3185rm -f conftest.o conftest.obj 3186if { { ac_try="$ac_compile" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3192$as_echo "$ac_try_echo"; } >&5 3193 (eval "$ac_compile") 2>&5 3194 ac_status=$? 3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; }; then : 3197 for ac_file in conftest.o conftest.obj conftest.*; do 3198 test -f "$ac_file" || continue; 3199 case $ac_file in 3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3202 break;; 3203 esac 3204done 3205else 3206 $as_echo "$as_me: failed program was:" >&5 3207sed 's/^/| /' conftest.$ac_ext >&5 3208 3209{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3211as_fn_error $? "cannot compute suffix of object files: cannot compile 3212See \`config.log' for more details" "$LINENO" 5; } 3213fi 3214rm -f conftest.$ac_cv_objext conftest.$ac_ext 3215fi 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3217$as_echo "$ac_cv_objext" >&6; } 3218OBJEXT=$ac_cv_objext 3219ac_objext=$OBJEXT 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3221$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3222if ${ac_cv_c_compiler_gnu+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226/* end confdefs.h. */ 3227 3228int 3229main () 3230{ 3231#ifndef __GNUC__ 3232 choke me 3233#endif 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239if ac_fn_c_try_compile "$LINENO"; then : 3240 ac_compiler_gnu=yes 3241else 3242 ac_compiler_gnu=no 3243fi 3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3245ac_cv_c_compiler_gnu=$ac_compiler_gnu 3246 3247fi 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3249$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3250if test $ac_compiler_gnu = yes; then 3251 GCC=yes 3252else 3253 GCC= 3254fi 3255ac_test_CFLAGS=${CFLAGS+set} 3256ac_save_CFLAGS=$CFLAGS 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3258$as_echo_n "checking whether $CC accepts -g... " >&6; } 3259if ${ac_cv_prog_cc_g+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 ac_save_c_werror_flag=$ac_c_werror_flag 3263 ac_c_werror_flag=yes 3264 ac_cv_prog_cc_g=no 3265 CFLAGS="-g" 3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3267/* end confdefs.h. */ 3268 3269int 3270main () 3271{ 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277if ac_fn_c_try_compile "$LINENO"; then : 3278 ac_cv_prog_cc_g=yes 3279else 3280 CFLAGS="" 3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3282/* end confdefs.h. */ 3283 3284int 3285main () 3286{ 3287 3288 ; 3289 return 0; 3290} 3291_ACEOF 3292if ac_fn_c_try_compile "$LINENO"; then : 3293 3294else 3295 ac_c_werror_flag=$ac_save_c_werror_flag 3296 CFLAGS="-g" 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308if ac_fn_c_try_compile "$LINENO"; then : 3309 ac_cv_prog_cc_g=yes 3310fi 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312fi 3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3314fi 3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3316 ac_c_werror_flag=$ac_save_c_werror_flag 3317fi 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3319$as_echo "$ac_cv_prog_cc_g" >&6; } 3320if test "$ac_test_CFLAGS" = set; then 3321 CFLAGS=$ac_save_CFLAGS 3322elif test $ac_cv_prog_cc_g = yes; then 3323 if test "$GCC" = yes; then 3324 CFLAGS="-g -O2" 3325 else 3326 CFLAGS="-g" 3327 fi 3328else 3329 if test "$GCC" = yes; then 3330 CFLAGS="-O2" 3331 else 3332 CFLAGS= 3333 fi 3334fi 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3336$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3337if ${ac_cv_prog_cc_c89+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 ac_cv_prog_cc_c89=no 3341ac_save_CC=$CC 3342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344#include <stdarg.h> 3345#include <stdio.h> 3346struct stat; 3347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3348struct buf { int x; }; 3349FILE * (*rcsopen) (struct buf *, struct stat *, int); 3350static char *e (p, i) 3351 char **p; 3352 int i; 3353{ 3354 return p[i]; 3355} 3356static char *f (char * (*g) (char **, int), char **p, ...) 3357{ 3358 char *s; 3359 va_list v; 3360 va_start (v,p); 3361 s = g (p, va_arg (v,int)); 3362 va_end (v); 3363 return s; 3364} 3365 3366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3367 function prototypes and stuff, but not '\xHH' hex character constants. 3368 These don't provoke an error unfortunately, instead are silently treated 3369 as 'x'. The following induces an error, until -std is added to get 3370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3371 array size at least. It's necessary to write '\x00'==0 to get something 3372 that's true only with -std. */ 3373int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3374 3375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3376 inside strings and character constants. */ 3377#define FOO(x) 'x' 3378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3379 3380int test (int i, double x); 3381struct s1 {int (*f) (int a);}; 3382struct s2 {int (*f) (double a);}; 3383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3384int argc; 3385char **argv; 3386int 3387main () 3388{ 3389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3396do 3397 CC="$ac_save_CC $ac_arg" 3398 if ac_fn_c_try_compile "$LINENO"; then : 3399 ac_cv_prog_cc_c89=$ac_arg 3400fi 3401rm -f core conftest.err conftest.$ac_objext 3402 test "x$ac_cv_prog_cc_c89" != "xno" && break 3403done 3404rm -f conftest.$ac_ext 3405CC=$ac_save_CC 3406 3407fi 3408# AC_CACHE_VAL 3409case "x$ac_cv_prog_cc_c89" in 3410 x) 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3412$as_echo "none needed" >&6; } ;; 3413 xno) 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3415$as_echo "unsupported" >&6; } ;; 3416 *) 3417 CC="$CC $ac_cv_prog_cc_c89" 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3419$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3420esac 3421if test "x$ac_cv_prog_cc_c89" != xno; then : 3422 3423fi 3424 3425ac_ext=c 3426ac_cpp='$CPP $CPPFLAGS' 3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3429ac_compiler_gnu=$ac_cv_c_compiler_gnu 3430 ac_ext=c 3431ac_cpp='$CPP $CPPFLAGS' 3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3434ac_compiler_gnu=$ac_cv_c_compiler_gnu 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3436$as_echo_n "checking how to run the C preprocessor... " >&6; } 3437# On Suns, sometimes $CPP names a directory. 3438if test -n "$CPP" && test -d "$CPP"; then 3439 CPP= 3440fi 3441if test -z "$CPP"; then 3442 if ${ac_cv_prog_CPP+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 # Double quotes because CPP needs to be expanded 3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3447 do 3448 ac_preproc_ok=false 3449for ac_c_preproc_warn_flag in '' yes 3450do 3451 # Use a header file that comes with gcc, so configuring glibc 3452 # with a fresh cross-compiler works. 3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3454 # <limits.h> exists even on freestanding compilers. 3455 # On the NeXT, cc -E runs the code through the compiler's parser, 3456 # not just through cpp. "Syntax error" is here to catch this case. 3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459#ifdef __STDC__ 3460# include <limits.h> 3461#else 3462# include <assert.h> 3463#endif 3464 Syntax error 3465_ACEOF 3466if ac_fn_c_try_cpp "$LINENO"; then : 3467 3468else 3469 # Broken: fails on valid input. 3470continue 3471fi 3472rm -f conftest.err conftest.i conftest.$ac_ext 3473 3474 # OK, works on sane cases. Now check whether nonexistent headers 3475 # can be detected and how. 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#include <ac_nonexistent.h> 3479_ACEOF 3480if ac_fn_c_try_cpp "$LINENO"; then : 3481 # Broken: success on invalid input. 3482continue 3483else 3484 # Passes both tests. 3485ac_preproc_ok=: 3486break 3487fi 3488rm -f conftest.err conftest.i conftest.$ac_ext 3489 3490done 3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3492rm -f conftest.i conftest.err conftest.$ac_ext 3493if $ac_preproc_ok; then : 3494 break 3495fi 3496 3497 done 3498 ac_cv_prog_CPP=$CPP 3499 3500fi 3501 CPP=$ac_cv_prog_CPP 3502else 3503 ac_cv_prog_CPP=$CPP 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3506$as_echo "$CPP" >&6; } 3507ac_preproc_ok=false 3508for ac_c_preproc_warn_flag in '' yes 3509do 3510 # Use a header file that comes with gcc, so configuring glibc 3511 # with a fresh cross-compiler works. 3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3513 # <limits.h> exists even on freestanding compilers. 3514 # On the NeXT, cc -E runs the code through the compiler's parser, 3515 # not just through cpp. "Syntax error" is here to catch this case. 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518#ifdef __STDC__ 3519# include <limits.h> 3520#else 3521# include <assert.h> 3522#endif 3523 Syntax error 3524_ACEOF 3525if ac_fn_c_try_cpp "$LINENO"; then : 3526 3527else 3528 # Broken: fails on valid input. 3529continue 3530fi 3531rm -f conftest.err conftest.i conftest.$ac_ext 3532 3533 # OK, works on sane cases. Now check whether nonexistent headers 3534 # can be detected and how. 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537#include <ac_nonexistent.h> 3538_ACEOF 3539if ac_fn_c_try_cpp "$LINENO"; then : 3540 # Broken: success on invalid input. 3541continue 3542else 3543 # Passes both tests. 3544ac_preproc_ok=: 3545break 3546fi 3547rm -f conftest.err conftest.i conftest.$ac_ext 3548 3549done 3550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3551rm -f conftest.i conftest.err conftest.$ac_ext 3552if $ac_preproc_ok; then : 3553 3554else 3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3557as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3558See \`config.log' for more details" "$LINENO" 5; } 3559fi 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3569$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3570if ${ac_cv_path_GREP+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 if test -z "$GREP"; then 3574 ac_path_GREP_found=false 3575 # Loop through the user's path and test for each of PROGNAME-LIST 3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_prog in grep ggrep; do 3582 for ac_exec_ext in '' $ac_executable_extensions; do 3583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3584 as_fn_executable_p "$ac_path_GREP" || continue 3585# Check for GNU ac_path_GREP and select it if it is found. 3586 # Check for GNU $ac_path_GREP 3587case `"$ac_path_GREP" --version 2>&1` in 3588*GNU*) 3589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3590*) 3591 ac_count=0 3592 $as_echo_n 0123456789 >"conftest.in" 3593 while : 3594 do 3595 cat "conftest.in" "conftest.in" >"conftest.tmp" 3596 mv "conftest.tmp" "conftest.in" 3597 cp "conftest.in" "conftest.nl" 3598 $as_echo 'GREP' >> "conftest.nl" 3599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3601 as_fn_arith $ac_count + 1 && ac_count=$as_val 3602 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3603 # Best one so far, save it but keep looking for a better one 3604 ac_cv_path_GREP="$ac_path_GREP" 3605 ac_path_GREP_max=$ac_count 3606 fi 3607 # 10*(2^10) chars as input seems more than enough 3608 test $ac_count -gt 10 && break 3609 done 3610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3611esac 3612 3613 $ac_path_GREP_found && break 3 3614 done 3615 done 3616 done 3617IFS=$as_save_IFS 3618 if test -z "$ac_cv_path_GREP"; then 3619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3620 fi 3621else 3622 ac_cv_path_GREP=$GREP 3623fi 3624 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3627$as_echo "$ac_cv_path_GREP" >&6; } 3628 GREP="$ac_cv_path_GREP" 3629 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3632$as_echo_n "checking for egrep... " >&6; } 3633if ${ac_cv_path_EGREP+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3637 then ac_cv_path_EGREP="$GREP -E" 3638 else 3639 if test -z "$EGREP"; then 3640 ac_path_EGREP_found=false 3641 # Loop through the user's path and test for each of PROGNAME-LIST 3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3644do 3645 IFS=$as_save_IFS 3646 test -z "$as_dir" && as_dir=. 3647 for ac_prog in egrep; do 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3650 as_fn_executable_p "$ac_path_EGREP" || continue 3651# Check for GNU ac_path_EGREP and select it if it is found. 3652 # Check for GNU $ac_path_EGREP 3653case `"$ac_path_EGREP" --version 2>&1` in 3654*GNU*) 3655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3656*) 3657 ac_count=0 3658 $as_echo_n 0123456789 >"conftest.in" 3659 while : 3660 do 3661 cat "conftest.in" "conftest.in" >"conftest.tmp" 3662 mv "conftest.tmp" "conftest.in" 3663 cp "conftest.in" "conftest.nl" 3664 $as_echo 'EGREP' >> "conftest.nl" 3665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3667 as_fn_arith $ac_count + 1 && ac_count=$as_val 3668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3669 # Best one so far, save it but keep looking for a better one 3670 ac_cv_path_EGREP="$ac_path_EGREP" 3671 ac_path_EGREP_max=$ac_count 3672 fi 3673 # 10*(2^10) chars as input seems more than enough 3674 test $ac_count -gt 10 && break 3675 done 3676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3677esac 3678 3679 $ac_path_EGREP_found && break 3 3680 done 3681 done 3682 done 3683IFS=$as_save_IFS 3684 if test -z "$ac_cv_path_EGREP"; then 3685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3686 fi 3687else 3688 ac_cv_path_EGREP=$EGREP 3689fi 3690 3691 fi 3692fi 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3694$as_echo "$ac_cv_path_EGREP" >&6; } 3695 EGREP="$ac_cv_path_EGREP" 3696 3697 3698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701_ACEOF 3702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3703 $EGREP "" >/dev/null 2>&1; then : 3704 3705fi 3706rm -f conftest* 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3708$as_echo_n "checking for fgrep... " >&6; } 3709if ${ac_cv_path_FGREP+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3713 then ac_cv_path_FGREP="$GREP -F" 3714 else 3715 if test -z "$FGREP"; then 3716 ac_path_FGREP_found=false 3717 # Loop through the user's path and test for each of PROGNAME-LIST 3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3720do 3721 IFS=$as_save_IFS 3722 test -z "$as_dir" && as_dir=. 3723 for ac_prog in fgrep; do 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3726 as_fn_executable_p "$ac_path_FGREP" || continue 3727# Check for GNU ac_path_FGREP and select it if it is found. 3728 # Check for GNU $ac_path_FGREP 3729case `"$ac_path_FGREP" --version 2>&1` in 3730*GNU*) 3731 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3732*) 3733 ac_count=0 3734 $as_echo_n 0123456789 >"conftest.in" 3735 while : 3736 do 3737 cat "conftest.in" "conftest.in" >"conftest.tmp" 3738 mv "conftest.tmp" "conftest.in" 3739 cp "conftest.in" "conftest.nl" 3740 $as_echo 'FGREP' >> "conftest.nl" 3741 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3743 as_fn_arith $ac_count + 1 && ac_count=$as_val 3744 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3745 # Best one so far, save it but keep looking for a better one 3746 ac_cv_path_FGREP="$ac_path_FGREP" 3747 ac_path_FGREP_max=$ac_count 3748 fi 3749 # 10*(2^10) chars as input seems more than enough 3750 test $ac_count -gt 10 && break 3751 done 3752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3753esac 3754 3755 $ac_path_FGREP_found && break 3 3756 done 3757 done 3758 done 3759IFS=$as_save_IFS 3760 if test -z "$ac_cv_path_FGREP"; then 3761 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3762 fi 3763else 3764 ac_cv_path_FGREP=$FGREP 3765fi 3766 3767 fi 3768fi 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3770$as_echo "$ac_cv_path_FGREP" >&6; } 3771 FGREP="$ac_cv_path_FGREP" 3772 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3774$as_echo_n "checking for library containing strerror... " >&6; } 3775if ${ac_cv_search_strerror+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 ac_func_search_save_LIBS=$LIBS 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782/* Override any GCC internal prototype to avoid an error. 3783 Use char because int might match the return type of a GCC 3784 builtin and then its argument prototype would still apply. */ 3785#ifdef __cplusplus 3786extern "C" 3787#endif 3788char strerror (); 3789int 3790main () 3791{ 3792return strerror (); 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797for ac_lib in '' cposix; do 3798 if test -z "$ac_lib"; then 3799 ac_res="none required" 3800 else 3801 ac_res=-l$ac_lib 3802 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3803 fi 3804 if ac_fn_c_try_link "$LINENO"; then : 3805 ac_cv_search_strerror=$ac_res 3806fi 3807rm -f core conftest.err conftest.$ac_objext \ 3808 conftest$ac_exeext 3809 if ${ac_cv_search_strerror+:} false; then : 3810 break 3811fi 3812done 3813if ${ac_cv_search_strerror+:} false; then : 3814 3815else 3816 ac_cv_search_strerror=no 3817fi 3818rm conftest.$ac_ext 3819LIBS=$ac_func_search_save_LIBS 3820fi 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3822$as_echo "$ac_cv_search_strerror" >&6; } 3823ac_res=$ac_cv_search_strerror 3824if test "$ac_res" != no; then : 3825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3826 3827fi 3828 for ac_prog in gawk mawk nawk awk 3829do 3830 # Extract the first word of "$ac_prog", so it can be a program name with args. 3831set dummy $ac_prog; ac_word=$2 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3833$as_echo_n "checking for $ac_word... " >&6; } 3834if ${ac_cv_prog_AWK+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 if test -n "$AWK"; then 3838 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3839else 3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841for as_dir in $PATH 3842do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 for ac_exec_ext in '' $ac_executable_extensions; do 3846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3847 ac_cv_prog_AWK="$ac_prog" 3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3849 break 2 3850 fi 3851done 3852 done 3853IFS=$as_save_IFS 3854 3855fi 3856fi 3857AWK=$ac_cv_prog_AWK 3858if test -n "$AWK"; then 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3860$as_echo "$AWK" >&6; } 3861else 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3863$as_echo "no" >&6; } 3864fi 3865 3866 3867 test -n "$AWK" && break 3868done 3869 3870# Extract the first word of "strip", so it can be a program name with args. 3871set dummy strip; ac_word=$2 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3873$as_echo_n "checking for $ac_word... " >&6; } 3874if ${ac_cv_prog_STRIP+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 if test -n "$STRIP"; then 3878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3879else 3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3881for as_dir in $PATH 3882do 3883 IFS=$as_save_IFS 3884 test -z "$as_dir" && as_dir=. 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_STRIP="strip" 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891done 3892 done 3893IFS=$as_save_IFS 3894 3895 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3896fi 3897fi 3898STRIP=$ac_cv_prog_STRIP 3899if test -n "$STRIP"; then 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3901$as_echo "$STRIP" >&6; } 3902else 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3904$as_echo "no" >&6; } 3905fi 3906 3907 3908 3909 3910 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3912$as_echo_n "checking for ANSI C header files... " >&6; } 3913if ${ac_cv_header_stdc+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917/* end confdefs.h. */ 3918#include <stdlib.h> 3919#include <stdarg.h> 3920#include <string.h> 3921#include <float.h> 3922 3923int 3924main () 3925{ 3926 3927 ; 3928 return 0; 3929} 3930_ACEOF 3931if ac_fn_c_try_compile "$LINENO"; then : 3932 ac_cv_header_stdc=yes 3933else 3934 ac_cv_header_stdc=no 3935fi 3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3937 3938if test $ac_cv_header_stdc = yes; then 3939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941/* end confdefs.h. */ 3942#include <string.h> 3943 3944_ACEOF 3945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3946 $EGREP "memchr" >/dev/null 2>&1; then : 3947 3948else 3949 ac_cv_header_stdc=no 3950fi 3951rm -f conftest* 3952 3953fi 3954 3955if test $ac_cv_header_stdc = yes; then 3956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3958/* end confdefs.h. */ 3959#include <stdlib.h> 3960 3961_ACEOF 3962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3963 $EGREP "free" >/dev/null 2>&1; then : 3964 3965else 3966 ac_cv_header_stdc=no 3967fi 3968rm -f conftest* 3969 3970fi 3971 3972if test $ac_cv_header_stdc = yes; then 3973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3974 if test "$cross_compiling" = yes; then : 3975 : 3976else 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979#include <ctype.h> 3980#include <stdlib.h> 3981#if ((' ' & 0x0FF) == 0x020) 3982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3984#else 3985# define ISLOWER(c) \ 3986 (('a' <= (c) && (c) <= 'i') \ 3987 || ('j' <= (c) && (c) <= 'r') \ 3988 || ('s' <= (c) && (c) <= 'z')) 3989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3990#endif 3991 3992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3993int 3994main () 3995{ 3996 int i; 3997 for (i = 0; i < 256; i++) 3998 if (XOR (islower (i), ISLOWER (i)) 3999 || toupper (i) != TOUPPER (i)) 4000 return 2; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_run "$LINENO"; then : 4005 4006else 4007 ac_cv_header_stdc=no 4008fi 4009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4010 conftest.$ac_objext conftest.beam conftest.$ac_ext 4011fi 4012 4013fi 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4016$as_echo "$ac_cv_header_stdc" >&6; } 4017if test $ac_cv_header_stdc = yes; then 4018 4019$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4020 4021fi 4022 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4024$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4025if ${ac_cv_header_sys_wait_h+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030#include <sys/types.h> 4031#include <sys/wait.h> 4032#ifndef WEXITSTATUS 4033# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4034#endif 4035#ifndef WIFEXITED 4036# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4037#endif 4038 4039int 4040main () 4041{ 4042 int s; 4043 wait (&s); 4044 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049if ac_fn_c_try_compile "$LINENO"; then : 4050 ac_cv_header_sys_wait_h=yes 4051else 4052 ac_cv_header_sys_wait_h=no 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4055fi 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4057$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4058if test $ac_cv_header_sys_wait_h = yes; then 4059 4060$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4061 4062fi 4063 4064 4065 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4067$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4068# Check whether --enable-fail_if_missing was given. 4069if test "${enable_fail_if_missing+set}" = set; then : 4070 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4071else 4072 fail_if_missing="no" 4073fi 4074 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4076$as_echo "$fail_if_missing" >&6; } 4077 4078if test -z "$CFLAGS"; then 4079 CFLAGS="-O" 4080 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4081fi 4082if test "$GCC" = yes; then 4083 gccversion=`$CC -dumpversion` 4084 if test "x$gccversion" = "x"; then 4085 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4086 fi 4087 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4088 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4089 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4090 else 4091 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4092 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4093 CFLAGS="$CFLAGS -fno-strength-reduce" 4094 fi 4095 fi 4096fi 4097 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5 4099$as_echo_n "checking for recent clang version... " >&6; } 4100CLANG_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'` 4101if test x"$CLANG_VERSION_STRING" != x"" ; then 4102 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4103 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4104 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4105 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4107$as_echo "$CLANG_VERSION" >&6; } 4108 if test "$CLANG_VERSION" -ge 500002075 ; then 4109 CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'` 4110 fi 4111else 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4113$as_echo "no" >&6; } 4114fi 4115 4116if test "$cross_compiling" = yes; then 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4118$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4119fi 4120 4121test "$GCC" = yes && CPP_MM=M; 4122 4123if test -f ./toolcheck; then 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4125$as_echo "$as_me: checking for buggy tools..." >&6;} 4126 sh ./toolcheck 1>&6 4127fi 4128 4129OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4132$as_echo_n "checking for BeOS... " >&6; } 4133case `uname` in 4134 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4135 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4136$as_echo "yes" >&6; };; 4137 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4138$as_echo "no" >&6; };; 4139esac 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4142$as_echo_n "checking for QNX... " >&6; } 4143case `uname` in 4144 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4145 test -z "$with_x" && with_x=no 4146 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4147$as_echo "yes" >&6; };; 4148 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; };; 4150esac 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4153$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4154if test "`(uname) 2>/dev/null`" = Darwin; then 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4156$as_echo "yes" >&6; } 4157 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4159$as_echo_n "checking --disable-darwin argument... " >&6; } 4160 # Check whether --enable-darwin was given. 4161if test "${enable_darwin+set}" = set; then : 4162 enableval=$enable_darwin; 4163else 4164 enable_darwin="yes" 4165fi 4166 4167 if test "$enable_darwin" = "yes"; then 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169$as_echo "no" >&6; } 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4171$as_echo_n "checking if Darwin files are there... " >&6; } 4172 if test -f os_macosx.m; then 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4174$as_echo "yes" >&6; } 4175 else 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4177$as_echo "no, Darwin support disabled" >&6; } 4178 enable_darwin=no 4179 fi 4180 else 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4182$as_echo "yes, Darwin support excluded" >&6; } 4183 fi 4184 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4186$as_echo_n "checking --with-mac-arch argument... " >&6; } 4187 4188# Check whether --with-mac-arch was given. 4189if test "${with_mac_arch+set}" = set; then : 4190 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4191$as_echo "$MACARCH" >&6; } 4192else 4193 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4194$as_echo "defaulting to $MACARCH" >&6; } 4195fi 4196 4197 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4199$as_echo_n "checking --with-developer-dir argument... " >&6; } 4200 4201# Check whether --with-developer-dir was given. 4202if test "${with_developer_dir+set}" = set; then : 4203 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4204$as_echo "$DEVELOPER_DIR" >&6; } 4205else 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4207$as_echo "not present" >&6; } 4208fi 4209 4210 4211 if test "x$DEVELOPER_DIR" = "x"; then 4212 # Extract the first word of "xcode-select", so it can be a program name with args. 4213set dummy xcode-select; ac_word=$2 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4215$as_echo_n "checking for $ac_word... " >&6; } 4216if ${ac_cv_path_XCODE_SELECT+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 case $XCODE_SELECT in 4220 [\\/]* | ?:[\\/]*) 4221 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4222 ;; 4223 *) 4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4225for as_dir in $PATH 4226do 4227 IFS=$as_save_IFS 4228 test -z "$as_dir" && as_dir=. 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4231 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4233 break 2 4234 fi 4235done 4236 done 4237IFS=$as_save_IFS 4238 4239 ;; 4240esac 4241fi 4242XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4243if test -n "$XCODE_SELECT"; then 4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4245$as_echo "$XCODE_SELECT" >&6; } 4246else 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4248$as_echo "no" >&6; } 4249fi 4250 4251 4252 if test "x$XCODE_SELECT" != "x"; then 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4254$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4255 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4257$as_echo "$DEVELOPER_DIR" >&6; } 4258 else 4259 DEVELOPER_DIR=/Developer 4260 fi 4261 fi 4262 4263 if test "x$MACARCH" = "xboth"; then 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4265$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4266 save_cppflags="$CPPFLAGS" 4267 save_cflags="$CFLAGS" 4268 save_ldflags="$LDFLAGS" 4269 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272 4273int 4274main () 4275{ 4276 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281if ac_fn_c_try_link "$LINENO"; then : 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4283$as_echo "found" >&6; } 4284else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4286$as_echo "not found" >&6; } 4287 CFLAGS="$save_cflags" 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4289$as_echo_n "checking if Intel architecture is supported... " >&6; } 4290 CPPFLAGS="$CPPFLAGS -arch i386" 4291 LDFLAGS="$save_ldflags -arch i386" 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293/* end confdefs.h. */ 4294 4295int 4296main () 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_link "$LINENO"; then : 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4305$as_echo "yes" >&6; }; MACARCH="intel" 4306else 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4308$as_echo "no" >&6; } 4309 MACARCH="ppc" 4310 CPPFLAGS="$save_cppflags -arch ppc" 4311 LDFLAGS="$save_ldflags -arch ppc" 4312fi 4313rm -f core conftest.err conftest.$ac_objext \ 4314 conftest$ac_exeext conftest.$ac_ext 4315fi 4316rm -f core conftest.err conftest.$ac_objext \ 4317 conftest$ac_exeext conftest.$ac_ext 4318 elif test "x$MACARCH" = "xintel"; then 4319 CPPFLAGS="$CPPFLAGS -arch intel" 4320 LDFLAGS="$LDFLAGS -arch intel" 4321 elif test "x$MACARCH" = "xppc"; then 4322 CPPFLAGS="$CPPFLAGS -arch ppc" 4323 LDFLAGS="$LDFLAGS -arch ppc" 4324 fi 4325 4326 if test "$enable_darwin" = "yes"; then 4327 MACOSX=yes 4328 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4329 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4330 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4331 4332 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4333for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4334 inttypes.h stdint.h unistd.h 4335do : 4336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4337ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4338" 4339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4340 cat >>confdefs.h <<_ACEOF 4341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4342_ACEOF 4343 4344fi 4345 4346done 4347 4348 4349ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4350if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4351 CARBON=yes 4352fi 4353 4354 4355 if test "x$CARBON" = "xyes"; then 4356 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then 4357 with_x=no 4358 fi 4359 fi 4360 fi 4361 4362 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4363 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4364 fi 4365 4366else 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4368$as_echo "no" >&6; } 4369fi 4370 4371for ac_header in AvailabilityMacros.h 4372do : 4373 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4374if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4375 cat >>confdefs.h <<_ACEOF 4376#define HAVE_AVAILABILITYMACROS_H 1 4377_ACEOF 4378 4379fi 4380 4381done 4382 4383 4384 4385 4386 4387if test "$cross_compiling" = no; then 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4389$as_echo_n "checking --with-local-dir argument... " >&6; } 4390 have_local_include='' 4391 have_local_lib='' 4392 4393# Check whether --with-local-dir was given. 4394if test "${with_local_dir+set}" = set; then : 4395 withval=$with_local_dir; 4396 local_dir="$withval" 4397 case "$withval" in 4398 */*) ;; 4399 no) 4400 # avoid adding local dir to LDFLAGS and CPPFLAGS 4401 have_local_include=yes 4402 have_local_lib=yes 4403 ;; 4404 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4405 esac 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4407$as_echo "$local_dir" >&6; } 4408 4409else 4410 4411 local_dir=/usr/local 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4413$as_echo "Defaulting to $local_dir" >&6; } 4414 4415fi 4416 4417 if test "$GCC" = yes -a "$local_dir" != no; then 4418 echo 'void f(){}' > conftest.c 4419 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4420 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4421 rm -f conftest.c conftest.o 4422 fi 4423 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4424 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4425 if test "$tt" = "$LDFLAGS"; then 4426 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4427 fi 4428 fi 4429 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4430 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4431 if test "$tt" = "$CPPFLAGS"; then 4432 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4433 fi 4434 fi 4435fi 4436 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4438$as_echo_n "checking --with-vim-name argument... " >&6; } 4439 4440# Check whether --with-vim-name was given. 4441if test "${with_vim_name+set}" = set; then : 4442 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4443$as_echo "$VIMNAME" >&6; } 4444else 4445 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4446$as_echo "Defaulting to $VIMNAME" >&6; } 4447fi 4448 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4451$as_echo_n "checking --with-ex-name argument... " >&6; } 4452 4453# Check whether --with-ex-name was given. 4454if test "${with_ex_name+set}" = set; then : 4455 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4456$as_echo "$EXNAME" >&6; } 4457else 4458 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4459$as_echo "Defaulting to ex" >&6; } 4460fi 4461 4462 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4464$as_echo_n "checking --with-view-name argument... " >&6; } 4465 4466# Check whether --with-view-name was given. 4467if test "${with_view_name+set}" = set; then : 4468 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4469$as_echo "$VIEWNAME" >&6; } 4470else 4471 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4472$as_echo "Defaulting to view" >&6; } 4473fi 4474 4475 4476 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4478$as_echo_n "checking --with-global-runtime argument... " >&6; } 4479 4480# Check whether --with-global-runtime was given. 4481if test "${with_global_runtime+set}" = set; then : 4482 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4483$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4484#define RUNTIME_GLOBAL "$withval" 4485_ACEOF 4486 4487else 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4489$as_echo "no" >&6; } 4490fi 4491 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4494$as_echo_n "checking --with-modified-by argument... " >&6; } 4495 4496# Check whether --with-modified-by was given. 4497if test "${with_modified_by+set}" = set; then : 4498 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4499$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4500#define MODIFIED_BY "$withval" 4501_ACEOF 4502 4503else 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4505$as_echo "no" >&6; } 4506fi 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4510$as_echo_n "checking if character set is EBCDIC... " >&6; } 4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512/* end confdefs.h. */ 4513 4514int 4515main () 4516{ 4517 /* TryCompile function for CharSet. 4518 Treat any failure as ASCII for compatibility with existing art. 4519 Use compile-time rather than run-time tests for cross-compiler 4520 tolerance. */ 4521#if '0'!=240 4522make an error "Character set is not EBCDIC" 4523#endif 4524 ; 4525 return 0; 4526} 4527_ACEOF 4528if ac_fn_c_try_compile "$LINENO"; then : 4529 # TryCompile action if true 4530cf_cv_ebcdic=yes 4531else 4532 # TryCompile action if false 4533cf_cv_ebcdic=no 4534fi 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4536# end of TryCompile ]) 4537# end of CacheVal CvEbcdic 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4539$as_echo "$cf_cv_ebcdic" >&6; } 4540case "$cf_cv_ebcdic" in #(vi 4541 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4542 4543 line_break='"\\n"' 4544 ;; 4545 *) line_break='"\\012"';; 4546esac 4547 4548 4549if test "$cf_cv_ebcdic" = "yes"; then 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4551$as_echo_n "checking for z/OS Unix... " >&6; } 4552case `uname` in 4553 OS/390) zOSUnix="yes"; 4554 if test "$CC" = "cc"; then 4555 ccm="$_CC_CCMODE" 4556 ccn="CC" 4557 else 4558 if test "$CC" = "c89"; then 4559 ccm="$_CC_C89MODE" 4560 ccn="C89" 4561 else 4562 ccm=1 4563 fi 4564 fi 4565 if test "$ccm" != "1"; then 4566 echo "" 4567 echo "------------------------------------------" 4568 echo " On z/OS Unix, the environment variable" 4569 echo " _CC_${ccn}MODE must be set to \"1\"!" 4570 echo " Do:" 4571 echo " export _CC_${ccn}MODE=1" 4572 echo " and then call configure again." 4573 echo "------------------------------------------" 4574 exit 1 4575 fi 4576 # Set CFLAGS for configure process. 4577 # This will be reset later for config.mk. 4578 # Use haltonmsg to force error for missing H files. 4579 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4580 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4582$as_echo "yes" >&6; } 4583 ;; 4584 *) zOSUnix="no"; 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4586$as_echo "no" >&6; } 4587 ;; 4588esac 4589fi 4590 4591if test "$zOSUnix" = "yes"; then 4592 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4593else 4594 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4595fi 4596 4597 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4600$as_echo_n "checking --disable-smack argument... " >&6; } 4601# Check whether --enable-smack was given. 4602if test "${enable_smack+set}" = set; then : 4603 enableval=$enable_smack; 4604else 4605 enable_smack="yes" 4606fi 4607 4608if test "$enable_smack" = "yes"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4610$as_echo "no" >&6; } 4611 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4612if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4613 true 4614else 4615 enable_smack="no" 4616fi 4617 4618 4619else 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4621$as_echo "yes" >&6; } 4622fi 4623if test "$enable_smack" = "yes"; then 4624 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4625if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4626 true 4627else 4628 enable_smack="no" 4629fi 4630 4631 4632fi 4633if test "$enable_smack" = "yes"; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4635$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4637/* end confdefs.h. */ 4638#include <linux/xattr.h> 4639_ACEOF 4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4641 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4643$as_echo "yes" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; }; enable_smack="no" 4647fi 4648rm -f conftest* 4649 4650fi 4651if test "$enable_smack" = "yes"; then 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4653$as_echo_n "checking for setxattr in -lattr... " >&6; } 4654if ${ac_cv_lib_attr_setxattr+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 ac_check_lib_save_LIBS=$LIBS 4658LIBS="-lattr $LIBS" 4659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661 4662/* Override any GCC internal prototype to avoid an error. 4663 Use char because int might match the return type of a GCC 4664 builtin and then its argument prototype would still apply. */ 4665#ifdef __cplusplus 4666extern "C" 4667#endif 4668char setxattr (); 4669int 4670main () 4671{ 4672return setxattr (); 4673 ; 4674 return 0; 4675} 4676_ACEOF 4677if ac_fn_c_try_link "$LINENO"; then : 4678 ac_cv_lib_attr_setxattr=yes 4679else 4680 ac_cv_lib_attr_setxattr=no 4681fi 4682rm -f core conftest.err conftest.$ac_objext \ 4683 conftest$ac_exeext conftest.$ac_ext 4684LIBS=$ac_check_lib_save_LIBS 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4687$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4688if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4689 LIBS="$LIBS -lattr" 4690 found_smack="yes" 4691 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4692 4693fi 4694 4695fi 4696 4697if test "x$found_smack" = "x"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4699$as_echo_n "checking --disable-selinux argument... " >&6; } 4700 # Check whether --enable-selinux was given. 4701if test "${enable_selinux+set}" = set; then : 4702 enableval=$enable_selinux; 4703else 4704 enable_selinux="yes" 4705fi 4706 4707 if test "$enable_selinux" = "yes"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709$as_echo "no" >&6; } 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4711$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4712if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 ac_check_lib_save_LIBS=$LIBS 4716LIBS="-lselinux $LIBS" 4717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4718/* end confdefs.h. */ 4719 4720/* Override any GCC internal prototype to avoid an error. 4721 Use char because int might match the return type of a GCC 4722 builtin and then its argument prototype would still apply. */ 4723#ifdef __cplusplus 4724extern "C" 4725#endif 4726char is_selinux_enabled (); 4727int 4728main () 4729{ 4730return is_selinux_enabled (); 4731 ; 4732 return 0; 4733} 4734_ACEOF 4735if ac_fn_c_try_link "$LINENO"; then : 4736 ac_cv_lib_selinux_is_selinux_enabled=yes 4737else 4738 ac_cv_lib_selinux_is_selinux_enabled=no 4739fi 4740rm -f core conftest.err conftest.$ac_objext \ 4741 conftest$ac_exeext conftest.$ac_ext 4742LIBS=$ac_check_lib_save_LIBS 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4745$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4746if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4747 LIBS="$LIBS -lselinux" 4748 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4749 4750fi 4751 4752 else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4754$as_echo "yes" >&6; } 4755 fi 4756fi 4757 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4760$as_echo_n "checking --with-features argument... " >&6; } 4761 4762# Check whether --with-features was given. 4763if test "${with_features+set}" = set; then : 4764 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4765$as_echo "$features" >&6; } 4766else 4767 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4768$as_echo "Defaulting to huge" >&6; } 4769fi 4770 4771 4772dovimdiff="" 4773dogvimdiff="" 4774case "$features" in 4775 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4776 ;; 4777 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4778 ;; 4779 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4780 dovimdiff="installvimdiff"; 4781 dogvimdiff="installgvimdiff" ;; 4782 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4783 dovimdiff="installvimdiff"; 4784 dogvimdiff="installgvimdiff" ;; 4785 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4786 dovimdiff="installvimdiff"; 4787 dogvimdiff="installgvimdiff" ;; 4788 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4789$as_echo "Sorry, $features is not supported" >&6; } ;; 4790esac 4791 4792 4793 4794 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4796$as_echo_n "checking --with-compiledby argument... " >&6; } 4797 4798# Check whether --with-compiledby was given. 4799if test "${with_compiledby+set}" = set; then : 4800 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4801$as_echo "$withval" >&6; } 4802else 4803 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4804$as_echo "no" >&6; } 4805fi 4806 4807 4808 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4810$as_echo_n "checking --disable-xsmp argument... " >&6; } 4811# Check whether --enable-xsmp was given. 4812if test "${enable_xsmp+set}" = set; then : 4813 enableval=$enable_xsmp; 4814else 4815 enable_xsmp="yes" 4816fi 4817 4818 4819if test "$enable_xsmp" = "yes"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821$as_echo "no" >&6; } 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4823$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4824 # Check whether --enable-xsmp-interact was given. 4825if test "${enable_xsmp_interact+set}" = set; then : 4826 enableval=$enable_xsmp_interact; 4827else 4828 enable_xsmp_interact="yes" 4829fi 4830 4831 if test "$enable_xsmp_interact" = "yes"; then 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4835 4836 else 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4838$as_echo "yes" >&6; } 4839 fi 4840else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4842$as_echo "yes" >&6; } 4843fi 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4846$as_echo_n "checking --enable-luainterp argument... " >&6; } 4847# Check whether --enable-luainterp was given. 4848if test "${enable_luainterp+set}" = set; then : 4849 enableval=$enable_luainterp; 4850else 4851 enable_luainterp="no" 4852fi 4853 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4855$as_echo "$enable_luainterp" >&6; } 4856 4857if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4858 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4859 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4860 fi 4861 4862 4863 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4865$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4866 4867# Check whether --with-lua_prefix was given. 4868if test "${with_lua_prefix+set}" = set; then : 4869 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4870$as_echo "$with_lua_prefix" >&6; } 4871else 4872 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 4877 if test "X$with_lua_prefix" != "X"; then 4878 vi_cv_path_lua_pfx="$with_lua_prefix" 4879 else 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4881$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4882 if test "X$LUA_PREFIX" != "X"; then 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4884$as_echo "\"$LUA_PREFIX\"" >&6; } 4885 vi_cv_path_lua_pfx="$LUA_PREFIX" 4886 else 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4888$as_echo "not set, default to /usr" >&6; } 4889 vi_cv_path_lua_pfx="/usr" 4890 fi 4891 fi 4892 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4894$as_echo_n "checking --with-luajit... " >&6; } 4895 4896# Check whether --with-luajit was given. 4897if test "${with_luajit+set}" = set; then : 4898 withval=$with_luajit; vi_cv_with_luajit="$withval" 4899else 4900 vi_cv_with_luajit="no" 4901fi 4902 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4904$as_echo "$vi_cv_with_luajit" >&6; } 4905 4906 LUA_INC= 4907 if test "X$vi_cv_path_lua_pfx" != "X"; then 4908 if test "x$vi_cv_with_luajit" != "xno"; then 4909 # Extract the first word of "luajit", so it can be a program name with args. 4910set dummy luajit; ac_word=$2 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912$as_echo_n "checking for $ac_word... " >&6; } 4913if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 case $vi_cv_path_luajit in 4917 [\\/]* | ?:[\\/]*) 4918 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4919 ;; 4920 *) 4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4922for as_dir in $PATH 4923do 4924 IFS=$as_save_IFS 4925 test -z "$as_dir" && as_dir=. 4926 for ac_exec_ext in '' $ac_executable_extensions; do 4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4928 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4930 break 2 4931 fi 4932done 4933 done 4934IFS=$as_save_IFS 4935 4936 ;; 4937esac 4938fi 4939vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4940if test -n "$vi_cv_path_luajit"; then 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4942$as_echo "$vi_cv_path_luajit" >&6; } 4943else 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4945$as_echo "no" >&6; } 4946fi 4947 4948 4949 if test "X$vi_cv_path_luajit" != "X"; then 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4951$as_echo_n "checking LuaJIT version... " >&6; } 4952if ${vi_cv_version_luajit+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4958$as_echo "$vi_cv_version_luajit" >&6; } 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4960$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4961if ${vi_cv_version_lua_luajit+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4965fi 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 4967$as_echo "$vi_cv_version_lua_luajit" >&6; } 4968 vi_cv_path_lua="$vi_cv_path_luajit" 4969 vi_cv_version_lua="$vi_cv_version_lua_luajit" 4970 fi 4971 else 4972 # Extract the first word of "lua", so it can be a program name with args. 4973set dummy lua; ac_word=$2 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4975$as_echo_n "checking for $ac_word... " >&6; } 4976if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 case $vi_cv_path_plain_lua in 4980 [\\/]* | ?:[\\/]*) 4981 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 4982 ;; 4983 *) 4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH 4986do 4987 IFS=$as_save_IFS 4988 test -z "$as_dir" && as_dir=. 4989 for ac_exec_ext in '' $ac_executable_extensions; do 4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4991 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4993 break 2 4994 fi 4995done 4996 done 4997IFS=$as_save_IFS 4998 4999 ;; 5000esac 5001fi 5002vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5003if test -n "$vi_cv_path_plain_lua"; then 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5005$as_echo "$vi_cv_path_plain_lua" >&6; } 5006else 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5008$as_echo "no" >&6; } 5009fi 5010 5011 5012 if test "X$vi_cv_path_plain_lua" != "X"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5014$as_echo_n "checking Lua version... " >&6; } 5015if ${vi_cv_version_plain_lua+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5019fi 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5021$as_echo "$vi_cv_version_plain_lua" >&6; } 5022 fi 5023 vi_cv_path_lua="$vi_cv_path_plain_lua" 5024 vi_cv_version_lua="$vi_cv_version_plain_lua" 5025 fi 5026 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5027 { $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 5028$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5029 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5031$as_echo "yes" >&6; } 5032 LUA_INC=/luajit-$vi_cv_version_luajit 5033 fi 5034 fi 5035 if test "X$LUA_INC" = "X"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5037$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5038 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5040$as_echo "yes" >&6; } 5041 else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5043$as_echo "no" >&6; } 5044 { $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 5045$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5046 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5048$as_echo "yes" >&6; } 5049 LUA_INC=/lua$vi_cv_version_lua 5050 else 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5052$as_echo "no" >&6; } 5053 vi_cv_path_lua_pfx= 5054 fi 5055 fi 5056 fi 5057 fi 5058 5059 if test "X$vi_cv_path_lua_pfx" != "X"; then 5060 if test "x$vi_cv_with_luajit" != "xno"; then 5061 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5062 if test "X$multiarch" != "X"; then 5063 lib_multiarch="lib/${multiarch}" 5064 else 5065 lib_multiarch="lib" 5066 fi 5067 if test "X$vi_cv_version_lua" = "X"; then 5068 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5069 else 5070 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5071 fi 5072 else 5073 if test "X$LUA_INC" != "X"; then 5074 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5075 else 5076 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5077 fi 5078 fi 5079 if test "$enable_luainterp" = "dynamic"; then 5080 lua_ok="yes" 5081 else 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5083$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5084 libs_save=$LIBS 5085 LIBS="$LIBS $LUA_LIBS" 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088 5089int 5090main () 5091{ 5092 5093 ; 5094 return 0; 5095} 5096_ACEOF 5097if ac_fn_c_try_link "$LINENO"; then : 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5099$as_echo "yes" >&6; }; lua_ok="yes" 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5103fi 5104rm -f core conftest.err conftest.$ac_objext \ 5105 conftest$ac_exeext conftest.$ac_ext 5106 LIBS=$libs_save 5107 fi 5108 if test "x$lua_ok" = "xyes"; then 5109 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5110 LUA_SRC="if_lua.c" 5111 LUA_OBJ="objects/if_lua.o" 5112 LUA_PRO="if_lua.pro" 5113 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5114 5115 fi 5116 if test "$enable_luainterp" = "dynamic"; then 5117 if test "x$vi_cv_with_luajit" != "xno"; then 5118 luajit="jit" 5119 fi 5120 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5121 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5122 else 5123 if test "x$MACOSX" = "xyes"; then 5124 ext="dylib" 5125 indexes="" 5126 else 5127 ext="so" 5128 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5129 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5130 if test "X$multiarch" != "X"; then 5131 lib_multiarch="lib/${multiarch}" 5132 fi 5133 fi 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5135$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5136 for subdir in "${lib_multiarch}" lib64 lib; do 5137 if test -z "$subdir"; then 5138 continue 5139 fi 5140 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5141 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5142 for i in $indexes ""; do 5143 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5144 sover2="$i" 5145 break 3 5146 fi 5147 done 5148 done 5149 sover="" 5150 done 5151 if test "X$sover" = "X"; then 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5153$as_echo "no" >&6; } 5154 lua_ok="no" 5155 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5156 else 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5158$as_echo "yes" >&6; } 5159 lua_ok="yes" 5160 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5161 fi 5162 fi 5163 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5164 5165 LUA_LIBS="" 5166 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5167 fi 5168 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5169 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5170 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5171 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5172 fi 5173 fi 5174 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5175 as_fn_error $? "could not configure lua" "$LINENO" 5 5176 fi 5177 5178 5179 5180 5181 5182fi 5183 5184 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5186$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5187# Check whether --enable-mzschemeinterp was given. 5188if test "${enable_mzschemeinterp+set}" = set; then : 5189 enableval=$enable_mzschemeinterp; 5190else 5191 enable_mzschemeinterp="no" 5192fi 5193 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5195$as_echo "$enable_mzschemeinterp" >&6; } 5196 5197if test "$enable_mzschemeinterp" = "yes"; then 5198 5199 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5201$as_echo_n "checking --with-plthome argument... " >&6; } 5202 5203# Check whether --with-plthome was given. 5204if test "${with_plthome+set}" = set; then : 5205 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5206$as_echo "$with_plthome" >&6; } 5207else 5208 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5209$as_echo "\"no\"" >&6; } 5210fi 5211 5212 5213 if test "X$with_plthome" != "X"; then 5214 vi_cv_path_mzscheme_pfx="$with_plthome" 5215 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5216 else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5218$as_echo_n "checking PLTHOME environment var... " >&6; } 5219 if test "X$PLTHOME" != "X"; then 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5221$as_echo "\"$PLTHOME\"" >&6; } 5222 vi_cv_path_mzscheme_pfx="$PLTHOME" 5223 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5224 else 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5226$as_echo "not set" >&6; } 5227 # Extract the first word of "mzscheme", so it can be a program name with args. 5228set dummy mzscheme; ac_word=$2 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5230$as_echo_n "checking for $ac_word... " >&6; } 5231if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 case $vi_cv_path_mzscheme in 5235 [\\/]* | ?:[\\/]*) 5236 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5237 ;; 5238 *) 5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5240for as_dir in $PATH 5241do 5242 IFS=$as_save_IFS 5243 test -z "$as_dir" && as_dir=. 5244 for ac_exec_ext in '' $ac_executable_extensions; do 5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5246 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5248 break 2 5249 fi 5250done 5251 done 5252IFS=$as_save_IFS 5253 5254 ;; 5255esac 5256fi 5257vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5258if test -n "$vi_cv_path_mzscheme"; then 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5260$as_echo "$vi_cv_path_mzscheme" >&6; } 5261else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5263$as_echo "no" >&6; } 5264fi 5265 5266 5267 5268 if test "X$vi_cv_path_mzscheme" != "X"; then 5269 lsout=`ls -l $vi_cv_path_mzscheme` 5270 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5271 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5272 fi 5273 fi 5274 5275 if test "X$vi_cv_path_mzscheme" != "X"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5277$as_echo_n "checking MzScheme install prefix... " >&6; } 5278if ${vi_cv_path_mzscheme_pfx+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 echo "(display (simplify-path \ 5282 (build-path (call-with-values \ 5283 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5284 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5285 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5286 sed -e 's+/$++'` 5287fi 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5289$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5290 rm -f mzdirs.scm 5291 fi 5292 fi 5293 fi 5294 5295 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5297$as_echo_n "checking for racket include directory... " >&6; } 5298 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5299 if test "X$SCHEME_INC" != "X"; then 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5301$as_echo "${SCHEME_INC}" >&6; } 5302 else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5304$as_echo "not found" >&6; } 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5306$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5307 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5308 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5310$as_echo "yes" >&6; } 5311 else 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5313$as_echo "no" >&6; } 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5315$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5316 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5318$as_echo "yes" >&6; } 5319 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5320 else 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5322$as_echo "no" >&6; } 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5324$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5325 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5327$as_echo "yes" >&6; } 5328 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5329 else 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5331$as_echo "no" >&6; } 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5333$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5334 if test -f /usr/include/plt/scheme.h; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5336$as_echo "yes" >&6; } 5337 SCHEME_INC=/usr/include/plt 5338 else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5342$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5343 if test -f /usr/include/racket/scheme.h; then 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5345$as_echo "yes" >&6; } 5346 SCHEME_INC=/usr/include/racket 5347 else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350 vi_cv_path_mzscheme_pfx= 5351 fi 5352 fi 5353 fi 5354 fi 5355 fi 5356 fi 5357 fi 5358 5359 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5360 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5362$as_echo_n "checking for racket lib directory... " >&6; } 5363 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5364 if test "X$SCHEME_LIB" != "X"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5366$as_echo "${SCHEME_LIB}" >&6; } 5367 else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5369$as_echo "not found" >&6; } 5370 fi 5371 5372 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5373 if test "X$path" != "X"; then 5374 if test "x$MACOSX" = "xyes"; then 5375 MZSCHEME_LIBS="-framework Racket" 5376 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5377 elif test -f "${path}/libmzscheme3m.a"; then 5378 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5379 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5380 elif test -f "${path}/libracket3m.a"; then 5381 MZSCHEME_LIBS="${path}/libracket3m.a" 5382 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5383 elif test -f "${path}/libracket.a"; then 5384 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5385 elif test -f "${path}/libmzscheme.a"; then 5386 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5387 else 5388 if test -f "${path}/libmzscheme3m.so"; then 5389 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5390 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5391 elif test -f "${path}/libracket3m.so"; then 5392 MZSCHEME_LIBS="-L${path} -lracket3m" 5393 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5394 elif test -f "${path}/libracket.so"; then 5395 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5396 else 5397 if test "$path" != "$SCHEME_LIB"; then 5398 continue 5399 fi 5400 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5401 fi 5402 if test "$GCC" = yes; then 5403 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5404 elif test "`(uname) 2>/dev/null`" = SunOS && 5405 uname -r | grep '^5' >/dev/null; then 5406 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5407 fi 5408 fi 5409 fi 5410 if test "X$MZSCHEME_LIBS" != "X"; then 5411 break 5412 fi 5413 done 5414 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5416$as_echo_n "checking if racket requires -pthread... " >&6; } 5417 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5419$as_echo "yes" >&6; } 5420 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5421 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5422 else 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5424$as_echo "no" >&6; } 5425 fi 5426 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5428$as_echo_n "checking for racket config directory... " >&6; } 5429 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5430 if test "X$SCHEME_CONFIGDIR" != "X"; then 5431 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5433$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5434 else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5436$as_echo "not found" >&6; } 5437 fi 5438 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5440$as_echo_n "checking for racket collects directory... " >&6; } 5441 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))))'` 5442 if test "X$SCHEME_COLLECTS" = "X"; then 5443 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5444 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5445 else 5446 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5447 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5448 else 5449 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5450 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5451 else 5452 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5453 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5454 fi 5455 fi 5456 fi 5457 fi 5458 fi 5459 if test "X$SCHEME_COLLECTS" != "X" ; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5461$as_echo "${SCHEME_COLLECTS}" >&6; } 5462 else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5464$as_echo "not found" >&6; } 5465 fi 5466 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5468$as_echo_n "checking for mzscheme_base.c... " >&6; } 5469 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5470 MZSCHEME_EXTRA="mzscheme_base.c" 5471 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5472 MZSCHEME_MOD="++lib scheme/base" 5473 else 5474 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5475 MZSCHEME_EXTRA="mzscheme_base.c" 5476 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5477 MZSCHEME_MOD="++lib scheme/base" 5478 else 5479 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5480 MZSCHEME_EXTRA="mzscheme_base.c" 5481 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5482 MZSCHEME_MOD="" 5483 fi 5484 fi 5485 fi 5486 if test "X$MZSCHEME_EXTRA" != "X" ; then 5487 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5489$as_echo "needed" >&6; } 5490 else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5492$as_echo "not needed" >&6; } 5493 fi 5494 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5496$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5497if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 ac_check_lib_save_LIBS=$LIBS 5501LIBS="-lffi $LIBS" 5502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503/* end confdefs.h. */ 5504 5505/* Override any GCC internal prototype to avoid an error. 5506 Use char because int might match the return type of a GCC 5507 builtin and then its argument prototype would still apply. */ 5508#ifdef __cplusplus 5509extern "C" 5510#endif 5511char ffi_type_void (); 5512int 5513main () 5514{ 5515return ffi_type_void (); 5516 ; 5517 return 0; 5518} 5519_ACEOF 5520if ac_fn_c_try_link "$LINENO"; then : 5521 ac_cv_lib_ffi_ffi_type_void=yes 5522else 5523 ac_cv_lib_ffi_ffi_type_void=no 5524fi 5525rm -f core conftest.err conftest.$ac_objext \ 5526 conftest$ac_exeext conftest.$ac_ext 5527LIBS=$ac_check_lib_save_LIBS 5528fi 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5530$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5531if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5532 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5533fi 5534 5535 5536 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5537 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5538 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5540$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5541 cflags_save=$CFLAGS 5542 libs_save=$LIBS 5543 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5544 LIBS="$LIBS $MZSCHEME_LIBS" 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547 5548int 5549main () 5550{ 5551 5552 ; 5553 return 0; 5554} 5555_ACEOF 5556if ac_fn_c_try_link "$LINENO"; then : 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5558$as_echo "yes" >&6; }; mzs_ok=yes 5559else 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5561$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext \ 5564 conftest$ac_exeext conftest.$ac_ext 5565 CFLAGS=$cflags_save 5566 LIBS=$libs_save 5567 if test $mzs_ok = yes; then 5568 MZSCHEME_SRC="if_mzsch.c" 5569 MZSCHEME_OBJ="objects/if_mzsch.o" 5570 MZSCHEME_PRO="if_mzsch.pro" 5571 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5572 5573 else 5574 MZSCHEME_CFLAGS= 5575 MZSCHEME_LIBS= 5576 MZSCHEME_EXTRA= 5577 MZSCHEME_MZC= 5578 fi 5579 fi 5580 5581 5582 5583 5584 5585 5586 5587fi 5588 5589 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5591$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5592# Check whether --enable-perlinterp was given. 5593if test "${enable_perlinterp+set}" = set; then : 5594 enableval=$enable_perlinterp; 5595else 5596 enable_perlinterp="no" 5597fi 5598 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5600$as_echo "$enable_perlinterp" >&6; } 5601if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5602 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5603 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5604 fi 5605 5606 # Extract the first word of "perl", so it can be a program name with args. 5607set dummy perl; ac_word=$2 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5609$as_echo_n "checking for $ac_word... " >&6; } 5610if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612else 5613 case $vi_cv_path_perl in 5614 [\\/]* | ?:[\\/]*) 5615 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5616 ;; 5617 *) 5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5619for as_dir in $PATH 5620do 5621 IFS=$as_save_IFS 5622 test -z "$as_dir" && as_dir=. 5623 for ac_exec_ext in '' $ac_executable_extensions; do 5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5625 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5627 break 2 5628 fi 5629done 5630 done 5631IFS=$as_save_IFS 5632 5633 ;; 5634esac 5635fi 5636vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5637if test -n "$vi_cv_path_perl"; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5639$as_echo "$vi_cv_path_perl" >&6; } 5640else 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642$as_echo "no" >&6; } 5643fi 5644 5645 5646 if test "X$vi_cv_path_perl" != "X"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5648$as_echo_n "checking Perl version... " >&6; } 5649 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5650 eval `$vi_cv_path_perl -V:usethreads` 5651 eval `$vi_cv_path_perl -V:libperl` 5652 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5653 badthreads=no 5654 else 5655 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5656 eval `$vi_cv_path_perl -V:use5005threads` 5657 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5658 badthreads=no 5659 else 5660 badthreads=yes 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5662$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5663 fi 5664 else 5665 badthreads=yes 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5667$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5668 fi 5669 fi 5670 if test $badthreads = no; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5672$as_echo "OK" >&6; } 5673 eval `$vi_cv_path_perl -V:shrpenv` 5674 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5675 shrpenv="" 5676 fi 5677 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5678 5679 vi_cv_perl_extutils=unknown_perl_extutils_path 5680 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5681 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5682 if test -f "$xsubpp_path"; then 5683 vi_cv_perl_xsubpp="$xsubpp_path" 5684 fi 5685 done 5686 5687 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5688 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5689 -e 's/-fdebug-prefix-map[^ ]*//g'` 5690 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5691 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5692 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5693 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5694 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5695 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5697$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5698 cflags_save=$CFLAGS 5699 libs_save=$LIBS 5700 ldflags_save=$LDFLAGS 5701 CFLAGS="$CFLAGS $perlcppflags" 5702 LIBS="$LIBS $perllibs" 5703 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5704 LDFLAGS="$perlldflags $LDFLAGS" 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707 5708int 5709main () 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716if ac_fn_c_try_link "$LINENO"; then : 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5718$as_echo "yes" >&6; }; perl_ok=yes 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5721$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext \ 5724 conftest$ac_exeext conftest.$ac_ext 5725 CFLAGS=$cflags_save 5726 LIBS=$libs_save 5727 LDFLAGS=$ldflags_save 5728 if test $perl_ok = yes; then 5729 if test "X$perlcppflags" != "X"; then 5730 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5731 fi 5732 if test "X$perlldflags" != "X"; then 5733 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5734 LDFLAGS="$perlldflags $LDFLAGS" 5735 fi 5736 fi 5737 PERL_LIBS=$perllibs 5738 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5739 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5740 PERL_PRO="if_perl.pro if_perlsfio.pro" 5741 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5742 5743 fi 5744 fi 5745 else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5747$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5748 fi 5749 fi 5750 5751 if test "x$MACOSX" = "xyes"; then 5752 dir=/System/Library/Perl 5753 darwindir=$dir/darwin 5754 if test -d $darwindir; then 5755 PERL=/usr/bin/perl 5756 else 5757 dir=/System/Library/Perl/5.8.1 5758 darwindir=$dir/darwin-thread-multi-2level 5759 if test -d $darwindir; then 5760 PERL=/usr/bin/perl 5761 fi 5762 fi 5763 if test -n "$PERL"; then 5764 PERL_DIR="$dir" 5765 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5766 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5767 PERL_LIBS="-L$darwindir/CORE -lperl" 5768 fi 5769 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5770 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5771 fi 5772 if test "$enable_perlinterp" = "dynamic"; then 5773 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5774 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5775 5776 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5777 fi 5778 fi 5779 5780 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5781 as_fn_error $? "could not configure perl" "$LINENO" 5 5782 fi 5783fi 5784 5785 5786 5787 5788 5789 5790 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5792$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5793# Check whether --enable-pythoninterp was given. 5794if test "${enable_pythoninterp+set}" = set; then : 5795 enableval=$enable_pythoninterp; 5796else 5797 enable_pythoninterp="no" 5798fi 5799 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5801$as_echo "$enable_pythoninterp" >&6; } 5802if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5803 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5804 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5805 fi 5806 5807 for ac_prog in python2 python 5808do 5809 # Extract the first word of "$ac_prog", so it can be a program name with args. 5810set dummy $ac_prog; ac_word=$2 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5812$as_echo_n "checking for $ac_word... " >&6; } 5813if ${ac_cv_path_vi_cv_path_python+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 case $vi_cv_path_python in 5817 [\\/]* | ?:[\\/]*) 5818 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5819 ;; 5820 *) 5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5822for as_dir in $PATH 5823do 5824 IFS=$as_save_IFS 5825 test -z "$as_dir" && as_dir=. 5826 for ac_exec_ext in '' $ac_executable_extensions; do 5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5828 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5830 break 2 5831 fi 5832done 5833 done 5834IFS=$as_save_IFS 5835 5836 ;; 5837esac 5838fi 5839vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5840if test -n "$vi_cv_path_python"; then 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5842$as_echo "$vi_cv_path_python" >&6; } 5843else 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5845$as_echo "no" >&6; } 5846fi 5847 5848 5849 test -n "$vi_cv_path_python" && break 5850done 5851 5852 if test "X$vi_cv_path_python" != "X"; then 5853 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5855$as_echo_n "checking Python version... " >&6; } 5856if ${vi_cv_var_python_version+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 vi_cv_var_python_version=` 5860 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5861 5862fi 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5864$as_echo "$vi_cv_var_python_version" >&6; } 5865 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5867$as_echo_n "checking Python is 2.3 or better... " >&6; } 5868 if ${vi_cv_path_python} -c \ 5869 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5870 then 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5872$as_echo "yep" >&6; } 5873 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5875$as_echo_n "checking Python's install prefix... " >&6; } 5876if ${vi_cv_path_python_pfx+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 vi_cv_path_python_pfx=` 5880 ${vi_cv_path_python} -c \ 5881 "import sys; print sys.prefix"` 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5884$as_echo "$vi_cv_path_python_pfx" >&6; } 5885 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5887$as_echo_n "checking Python's execution prefix... " >&6; } 5888if ${vi_cv_path_python_epfx+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 vi_cv_path_python_epfx=` 5892 ${vi_cv_path_python} -c \ 5893 "import sys; print sys.exec_prefix"` 5894fi 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5896$as_echo "$vi_cv_path_python_epfx" >&6; } 5897 5898 5899 if ${vi_cv_path_pythonpath+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 vi_cv_path_pythonpath=` 5903 unset PYTHONPATH; 5904 ${vi_cv_path_python} -c \ 5905 "import sys, string; print string.join(sys.path,':')"` 5906fi 5907 5908 5909 5910 5911# Check whether --with-python-config-dir was given. 5912if test "${with_python_config_dir+set}" = set; then : 5913 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5914fi 5915 5916 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5918$as_echo_n "checking Python's configuration directory... " >&6; } 5919if ${vi_cv_path_python_conf+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 5923 vi_cv_path_python_conf= 5924 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5925 if test -d "$d" && test -f "$d/config.c"; then 5926 vi_cv_path_python_conf="$d" 5927 else 5928 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5929 for subdir in lib64 lib share; do 5930 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5931 if test -d "$d" && test -f "$d/config.c"; then 5932 vi_cv_path_python_conf="$d" 5933 fi 5934 done 5935 done 5936 fi 5937 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5940$as_echo "$vi_cv_path_python_conf" >&6; } 5941 5942 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5943 5944 if test "X$PYTHON_CONFDIR" = "X"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5946$as_echo "can't find it!" >&6; } 5947 else 5948 5949 if ${vi_cv_path_python_plibs+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 5953 pwd=`pwd` 5954 tmp_mkf="$pwd/config-PyMake$$" 5955 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5956__: 5957 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5958 @echo "python_LIBS='$(LIBS)'" 5959 @echo "python_SYSLIBS='$(SYSLIBS)'" 5960 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5961 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5962 @echo "python_INSTSONAME='$(INSTSONAME)'" 5963 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 5964 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 5965 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 5966eof 5967 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5968 rm -f -- "${tmp_mkf}" 5969 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5970 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5971 vi_cv_path_python_plibs="-framework Python" 5972 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5973 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 5974 fi 5975 else 5976 if test "${vi_cv_var_python_version}" = "1.4"; then 5977 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5978 else 5979 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5980 fi 5981 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5982 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 5983 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 5984 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5985 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 5986 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5987 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 5988 fi 5989 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 5990 fi 5991 fi 5992 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 5993 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 5994 fi 5995 5996fi 5997 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 5999$as_echo_n "checking Python's dll name... " >&6; } 6000if ${vi_cv_dll_name_python+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 6004 if test "X$python_DLLLIBRARY" != "X"; then 6005 vi_cv_dll_name_python="$python_DLLLIBRARY" 6006 else 6007 vi_cv_dll_name_python="$python_INSTSONAME" 6008 fi 6009 6010fi 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6012$as_echo "$vi_cv_dll_name_python" >&6; } 6013 6014 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6015 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6016 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6017 else 6018 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}\"'" 6019 fi 6020 PYTHON_SRC="if_python.c" 6021 PYTHON_OBJ="objects/if_python.o" 6022 if test "${vi_cv_var_python_version}" = "1.4"; then 6023 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6024 fi 6025 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6026 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6028$as_echo_n "checking if -pthread should be used... " >&6; } 6029 threadsafe_flag= 6030 thread_lib= 6031 if test "`(uname) 2>/dev/null`" != Darwin; then 6032 test "$GCC" = yes && threadsafe_flag="-pthread" 6033 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6034 threadsafe_flag="-D_THREAD_SAFE" 6035 thread_lib="-pthread" 6036 fi 6037 if test "`(uname) 2>/dev/null`" = SunOS; then 6038 threadsafe_flag="-pthreads" 6039 fi 6040 fi 6041 libs_save_old=$LIBS 6042 if test -n "$threadsafe_flag"; then 6043 cflags_save=$CFLAGS 6044 CFLAGS="$CFLAGS $threadsafe_flag" 6045 LIBS="$LIBS $thread_lib" 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047/* end confdefs.h. */ 6048 6049int 6050main () 6051{ 6052 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057if ac_fn_c_try_link "$LINENO"; then : 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6059$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6060else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062$as_echo "no" >&6; }; LIBS=$libs_save_old 6063 6064fi 6065rm -f core conftest.err conftest.$ac_objext \ 6066 conftest$ac_exeext conftest.$ac_ext 6067 CFLAGS=$cflags_save 6068 else 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6070$as_echo "no" >&6; } 6071 fi 6072 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6074$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6075 cflags_save=$CFLAGS 6076 libs_save=$LIBS 6077 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6078 LIBS="$LIBS $PYTHON_LIBS" 6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080/* end confdefs.h. */ 6081 6082int 6083main () 6084{ 6085 6086 ; 6087 return 0; 6088} 6089_ACEOF 6090if ac_fn_c_try_link "$LINENO"; then : 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6092$as_echo "yes" >&6; }; python_ok=yes 6093else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6095$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext \ 6098 conftest$ac_exeext conftest.$ac_ext 6099 CFLAGS=$cflags_save 6100 LIBS=$libs_save 6101 if test $python_ok = yes; then 6102 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6103 6104 else 6105 LIBS=$libs_save_old 6106 PYTHON_SRC= 6107 PYTHON_OBJ= 6108 PYTHON_LIBS= 6109 PYTHON_CFLAGS= 6110 fi 6111 fi 6112 else 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6114$as_echo "too old" >&6; } 6115 fi 6116 fi 6117 6118 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6119 as_fn_error $? "could not configure python" "$LINENO" 5 6120 fi 6121fi 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6132$as_echo_n "checking --enable-python3interp argument... " >&6; } 6133# Check whether --enable-python3interp was given. 6134if test "${enable_python3interp+set}" = set; then : 6135 enableval=$enable_python3interp; 6136else 6137 enable_python3interp="no" 6138fi 6139 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6141$as_echo "$enable_python3interp" >&6; } 6142if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6143 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6144 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6145 fi 6146 6147 for ac_prog in python3 python 6148do 6149 # Extract the first word of "$ac_prog", so it can be a program name with args. 6150set dummy $ac_prog; ac_word=$2 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6152$as_echo_n "checking for $ac_word... " >&6; } 6153if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6154 $as_echo_n "(cached) " >&6 6155else 6156 case $vi_cv_path_python3 in 6157 [\\/]* | ?:[\\/]*) 6158 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6159 ;; 6160 *) 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6168 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172done 6173 done 6174IFS=$as_save_IFS 6175 6176 ;; 6177esac 6178fi 6179vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6180if test -n "$vi_cv_path_python3"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6182$as_echo "$vi_cv_path_python3" >&6; } 6183else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 6189 test -n "$vi_cv_path_python3" && break 6190done 6191 6192 if test "X$vi_cv_path_python3" != "X"; then 6193 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6195$as_echo_n "checking Python version... " >&6; } 6196if ${vi_cv_var_python3_version+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 vi_cv_var_python3_version=` 6200 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6201 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6204$as_echo "$vi_cv_var_python3_version" >&6; } 6205 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6207$as_echo_n "checking Python is 3.0 or better... " >&6; } 6208 if ${vi_cv_path_python3} -c \ 6209 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6210 then 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6212$as_echo "yep" >&6; } 6213 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6215$as_echo_n "checking Python's abiflags... " >&6; } 6216if ${vi_cv_var_python3_abiflags+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 6220 vi_cv_var_python3_abiflags= 6221 if ${vi_cv_path_python3} -c \ 6222 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6223 then 6224 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6225 "import sys; print(sys.abiflags)"` 6226 fi 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6229$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6230 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6232$as_echo_n "checking Python's install prefix... " >&6; } 6233if ${vi_cv_path_python3_pfx+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 vi_cv_path_python3_pfx=` 6237 ${vi_cv_path_python3} -c \ 6238 "import sys; print(sys.prefix)"` 6239fi 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6241$as_echo "$vi_cv_path_python3_pfx" >&6; } 6242 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6244$as_echo_n "checking Python's execution prefix... " >&6; } 6245if ${vi_cv_path_python3_epfx+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 vi_cv_path_python3_epfx=` 6249 ${vi_cv_path_python3} -c \ 6250 "import sys; print(sys.exec_prefix)"` 6251fi 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6253$as_echo "$vi_cv_path_python3_epfx" >&6; } 6254 6255 6256 if ${vi_cv_path_python3path+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 vi_cv_path_python3path=` 6260 unset PYTHONPATH; 6261 ${vi_cv_path_python3} -c \ 6262 "import sys, string; print(':'.join(sys.path))"` 6263fi 6264 6265 6266 6267 6268# Check whether --with-python3-config-dir was given. 6269if test "${with_python3_config_dir+set}" = set; then : 6270 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6271fi 6272 6273 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6275$as_echo_n "checking Python's configuration directory... " >&6; } 6276if ${vi_cv_path_python3_conf+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 6280 vi_cv_path_python3_conf= 6281 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6282 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6283 if test -d "$d" && test -f "$d/config.c"; then 6284 vi_cv_path_python3_conf="$d" 6285 else 6286 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6287 for subdir in lib64 lib share; do 6288 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6289 if test -d "$d" && test -f "$d/config.c"; then 6290 vi_cv_path_python3_conf="$d" 6291 fi 6292 done 6293 done 6294 fi 6295 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6298$as_echo "$vi_cv_path_python3_conf" >&6; } 6299 6300 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6301 6302 if test "X$PYTHON3_CONFDIR" = "X"; then 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6304$as_echo "can't find it!" >&6; } 6305 else 6306 6307 if ${vi_cv_path_python3_plibs+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 6311 pwd=`pwd` 6312 tmp_mkf="$pwd/config-PyMake$$" 6313 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6314__: 6315 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6316 @echo "python3_LIBS='$(LIBS)'" 6317 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6318 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6319 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6320eof 6321 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6322 rm -f -- "${tmp_mkf}" 6323 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6324 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6325 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6326 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6327 6328fi 6329 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6331$as_echo_n "checking Python3's dll name... " >&6; } 6332if ${vi_cv_dll_name_python3+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 6336 if test "X$python3_DLLLIBRARY" != "X"; then 6337 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6338 else 6339 vi_cv_dll_name_python3="$python3_INSTSONAME" 6340 fi 6341 6342fi 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6344$as_echo "$vi_cv_dll_name_python3" >&6; } 6345 6346 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6347 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6348 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}\"'" 6349 else 6350 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}\"'" 6351 fi 6352 PYTHON3_SRC="if_python3.c" 6353 PYTHON3_OBJ="objects/if_python3.o" 6354 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6356$as_echo_n "checking if -pthread should be used... " >&6; } 6357 threadsafe_flag= 6358 thread_lib= 6359 if test "`(uname) 2>/dev/null`" != Darwin; then 6360 test "$GCC" = yes && threadsafe_flag="-pthread" 6361 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6362 threadsafe_flag="-D_THREAD_SAFE" 6363 thread_lib="-pthread" 6364 fi 6365 if test "`(uname) 2>/dev/null`" = SunOS; then 6366 threadsafe_flag="-pthreads" 6367 fi 6368 fi 6369 libs_save_old=$LIBS 6370 if test -n "$threadsafe_flag"; then 6371 cflags_save=$CFLAGS 6372 CFLAGS="$CFLAGS $threadsafe_flag" 6373 LIBS="$LIBS $thread_lib" 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375/* end confdefs.h. */ 6376 6377int 6378main () 6379{ 6380 6381 ; 6382 return 0; 6383} 6384_ACEOF 6385if ac_fn_c_try_link "$LINENO"; then : 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6387$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6388else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6390$as_echo "no" >&6; }; LIBS=$libs_save_old 6391 6392fi 6393rm -f core conftest.err conftest.$ac_objext \ 6394 conftest$ac_exeext conftest.$ac_ext 6395 CFLAGS=$cflags_save 6396 else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399 fi 6400 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6402$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6403 cflags_save=$CFLAGS 6404 libs_save=$LIBS 6405 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6406 LIBS="$LIBS $PYTHON3_LIBS" 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409 6410int 6411main () 6412{ 6413 6414 ; 6415 return 0; 6416} 6417_ACEOF 6418if ac_fn_c_try_link "$LINENO"; then : 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6420$as_echo "yes" >&6; }; python3_ok=yes 6421else 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6423$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6424fi 6425rm -f core conftest.err conftest.$ac_objext \ 6426 conftest$ac_exeext conftest.$ac_ext 6427 CFLAGS=$cflags_save 6428 LIBS=$libs_save 6429 if test "$python3_ok" = yes; then 6430 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6431 6432 else 6433 LIBS=$libs_save_old 6434 PYTHON3_SRC= 6435 PYTHON3_OBJ= 6436 PYTHON3_LIBS= 6437 PYTHON3_CFLAGS= 6438 fi 6439 fi 6440 else 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6442$as_echo "too old" >&6; } 6443 fi 6444 fi 6445 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6446 as_fn_error $? "could not configure python3" "$LINENO" 5 6447 fi 6448fi 6449 6450 6451 6452 6453 6454 6455 6456if test "$python_ok" = yes && test "$python3_ok" = yes; then 6457 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6458 6459 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6460 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6462$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6463 cflags_save=$CFLAGS 6464 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6465 libs_save=$LIBS 6466 LIBS="-ldl $LIBS" 6467 if test "$cross_compiling" = yes; then : 6468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6470as_fn_error $? "cannot run test program while cross compiling 6471See \`config.log' for more details" "$LINENO" 5; } 6472else 6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6474/* end confdefs.h. */ 6475 6476 #include <dlfcn.h> 6477 /* If this program fails, then RTLD_GLOBAL is needed. 6478 * RTLD_GLOBAL will be used and then it is not possible to 6479 * have both python versions enabled in the same vim instance. 6480 * Only the first python version used will be switched on. 6481 */ 6482 6483 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6484 { 6485 int needed = 0; 6486 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6487 if (pylib != 0) 6488 { 6489 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6490 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6491 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6492 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6493 (*pfx)(prefix); 6494 (*init)(); 6495 needed = (*simple)("import termios") == -1; 6496 (*final)(); 6497 dlclose(pylib); 6498 } 6499 return !needed; 6500 } 6501 6502 int main(int argc, char** argv) 6503 { 6504 int not_needed = 0; 6505 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6506 not_needed = 1; 6507 return !not_needed; 6508 } 6509_ACEOF 6510if ac_fn_c_try_run "$LINENO"; then : 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6512$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6513 6514else 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6516$as_echo "no" >&6; } 6517fi 6518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6519 conftest.$ac_objext conftest.beam conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS=$cflags_save 6524 LIBS=$libs_save 6525 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6527$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6528 cflags_save=$CFLAGS 6529 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6530 libs_save=$LIBS 6531 LIBS="-ldl $LIBS" 6532 if test "$cross_compiling" = yes; then : 6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6535as_fn_error $? "cannot run test program while cross compiling 6536See \`config.log' for more details" "$LINENO" 5; } 6537else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540 6541 #include <dlfcn.h> 6542 #include <wchar.h> 6543 /* If this program fails, then RTLD_GLOBAL is needed. 6544 * RTLD_GLOBAL will be used and then it is not possible to 6545 * have both python versions enabled in the same vim instance. 6546 * Only the first python version used will be switched on. 6547 */ 6548 6549 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6550 { 6551 int needed = 0; 6552 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6553 if (pylib != 0) 6554 { 6555 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6556 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6557 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6558 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6559 (*pfx)(prefix); 6560 (*init)(); 6561 needed = (*simple)("import termios") == -1; 6562 (*final)(); 6563 dlclose(pylib); 6564 } 6565 return !needed; 6566 } 6567 6568 int main(int argc, char** argv) 6569 { 6570 int not_needed = 0; 6571 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6572 not_needed = 1; 6573 return !not_needed; 6574 } 6575_ACEOF 6576if ac_fn_c_try_run "$LINENO"; then : 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6578$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6579 6580else 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6582$as_echo "no" >&6; } 6583fi 6584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6585 conftest.$ac_objext conftest.beam conftest.$ac_ext 6586fi 6587 6588 6589 CFLAGS=$cflags_save 6590 LIBS=$libs_save 6591 6592 PYTHON_SRC="if_python.c" 6593 PYTHON_OBJ="objects/if_python.o" 6594 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6595 PYTHON_LIBS= 6596 PYTHON3_SRC="if_python3.c" 6597 PYTHON3_OBJ="objects/if_python3.o" 6598 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6599 PYTHON3_LIBS= 6600elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6601 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6602 6603 PYTHON_SRC="if_python.c" 6604 PYTHON_OBJ="objects/if_python.o" 6605 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6606 PYTHON_LIBS= 6607elif test "$python_ok" = yes; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6609$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6610 cflags_save=$CFLAGS 6611 libs_save=$LIBS 6612 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6613 LIBS="$LIBS $PYTHON_LIBS" 6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616 6617int 6618main () 6619{ 6620 6621 ; 6622 return 0; 6623} 6624_ACEOF 6625if ac_fn_c_try_link "$LINENO"; then : 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6627$as_echo "yes" >&6; }; fpie_ok=yes 6628else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630$as_echo "no" >&6; }; fpie_ok=no 6631fi 6632rm -f core conftest.err conftest.$ac_objext \ 6633 conftest$ac_exeext conftest.$ac_ext 6634 CFLAGS=$cflags_save 6635 LIBS=$libs_save 6636 if test $fpie_ok = yes; then 6637 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6638 fi 6639elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6640 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6641 6642 PYTHON3_SRC="if_python3.c" 6643 PYTHON3_OBJ="objects/if_python3.o" 6644 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6645 PYTHON3_LIBS= 6646elif test "$python3_ok" = yes; then 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6648$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6649 cflags_save=$CFLAGS 6650 libs_save=$LIBS 6651 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6652 LIBS="$LIBS $PYTHON3_LIBS" 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655 6656int 6657main () 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_link "$LINENO"; then : 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6666$as_echo "yes" >&6; }; fpie_ok=yes 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; }; fpie_ok=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext \ 6672 conftest$ac_exeext conftest.$ac_ext 6673 CFLAGS=$cflags_save 6674 LIBS=$libs_save 6675 if test $fpie_ok = yes; then 6676 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6677 fi 6678fi 6679 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6681$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6682# Check whether --enable-tclinterp was given. 6683if test "${enable_tclinterp+set}" = set; then : 6684 enableval=$enable_tclinterp; 6685else 6686 enable_tclinterp="no" 6687fi 6688 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6690$as_echo "$enable_tclinterp" >&6; } 6691 6692if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6693 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6695$as_echo_n "checking --with-tclsh argument... " >&6; } 6696 6697# Check whether --with-tclsh was given. 6698if test "${with_tclsh+set}" = set; then : 6699 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6700$as_echo "$tclsh_name" >&6; } 6701else 6702 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6707set dummy $tclsh_name; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 case $vi_cv_path_tcl in 6714 [\\/]* | ?:[\\/]*) 6715 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6716 ;; 6717 *) 6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6725 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733 ;; 6734esac 6735fi 6736vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6737if test -n "$vi_cv_path_tcl"; then 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6739$as_echo "$vi_cv_path_tcl" >&6; } 6740else 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6742$as_echo "no" >&6; } 6743fi 6744 6745 6746 6747 6748 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6749 tclsh_name="tclsh8.4" 6750 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6751set dummy $tclsh_name; ac_word=$2 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6753$as_echo_n "checking for $ac_word... " >&6; } 6754if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 case $vi_cv_path_tcl in 6758 [\\/]* | ?:[\\/]*) 6759 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6760 ;; 6761 *) 6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763for as_dir in $PATH 6764do 6765 IFS=$as_save_IFS 6766 test -z "$as_dir" && as_dir=. 6767 for ac_exec_ext in '' $ac_executable_extensions; do 6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6769 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6771 break 2 6772 fi 6773done 6774 done 6775IFS=$as_save_IFS 6776 6777 ;; 6778esac 6779fi 6780vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6781if test -n "$vi_cv_path_tcl"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6783$as_echo "$vi_cv_path_tcl" >&6; } 6784else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 6790 fi 6791 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6792 tclsh_name="tclsh8.2" 6793 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6794set dummy $tclsh_name; ac_word=$2 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6796$as_echo_n "checking for $ac_word... " >&6; } 6797if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 case $vi_cv_path_tcl in 6801 [\\/]* | ?:[\\/]*) 6802 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6803 ;; 6804 *) 6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6812 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820 ;; 6821esac 6822fi 6823vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6824if test -n "$vi_cv_path_tcl"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6826$as_echo "$vi_cv_path_tcl" >&6; } 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829$as_echo "no" >&6; } 6830fi 6831 6832 6833 fi 6834 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6835 tclsh_name="tclsh8.0" 6836 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6837set dummy $tclsh_name; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 case $vi_cv_path_tcl in 6844 [\\/]* | ?:[\\/]*) 6845 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6846 ;; 6847 *) 6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6855 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863 ;; 6864esac 6865fi 6866vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6867if test -n "$vi_cv_path_tcl"; then 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6869$as_echo "$vi_cv_path_tcl" >&6; } 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873fi 6874 6875 6876 fi 6877 if test "X$vi_cv_path_tcl" = "X"; then 6878 tclsh_name="tclsh" 6879 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6880set dummy $tclsh_name; ac_word=$2 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6882$as_echo_n "checking for $ac_word... " >&6; } 6883if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 case $vi_cv_path_tcl in 6887 [\\/]* | ?:[\\/]*) 6888 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6889 ;; 6890 *) 6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6892for as_dir in $PATH 6893do 6894 IFS=$as_save_IFS 6895 test -z "$as_dir" && as_dir=. 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6898 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6900 break 2 6901 fi 6902done 6903 done 6904IFS=$as_save_IFS 6905 6906 ;; 6907esac 6908fi 6909vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6910if test -n "$vi_cv_path_tcl"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6912$as_echo "$vi_cv_path_tcl" >&6; } 6913else 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916fi 6917 6918 6919 fi 6920 if test "X$vi_cv_path_tcl" != "X"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6922$as_echo_n "checking Tcl version... " >&6; } 6923 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6924 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6926$as_echo "$tclver - OK" >&6; }; 6927 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 -` 6928 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6929 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6931$as_echo_n "checking for location of Tcl include... " >&6; } 6932 if test "x$MACOSX" != "xyes"; then 6933 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6934 else 6935 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6936 fi 6937 TCL_INC= 6938 for try in $tclinc; do 6939 if test -f "$try/tcl.h"; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6941$as_echo "$try/tcl.h" >&6; } 6942 TCL_INC=$try 6943 break 6944 fi 6945 done 6946 if test -z "$TCL_INC"; then 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6948$as_echo "<not found>" >&6; } 6949 SKIP_TCL=YES 6950 fi 6951 if test -z "$SKIP_TCL"; then 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6953$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6954 if test "x$MACOSX" != "xyes"; then 6955 tclcnf=`echo $tclinc | sed s/include/lib/g` 6956 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6957 else 6958 tclcnf="/System/Library/Frameworks/Tcl.framework" 6959 fi 6960 for try in $tclcnf; do 6961 if test -f "$try/tclConfig.sh"; then 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6963$as_echo "$try/tclConfig.sh" >&6; } 6964 . "$try/tclConfig.sh" 6965 if test "$enable_tclinterp" = "dynamic"; then 6966 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 6967 else 6968 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6969 fi 6970 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'` 6971 break 6972 fi 6973 done 6974 if test -z "$TCL_LIBS"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6976$as_echo "<not found>" >&6; } 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 6978$as_echo_n "checking for Tcl library by myself... " >&6; } 6979 tcllib=`echo $tclinc | sed s/include/lib/g` 6980 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 6981 for ext in .so .a ; do 6982 for ver in "" $tclver ; do 6983 for try in $tcllib ; do 6984 trylib=tcl$ver$ext 6985 if test -f "$try/lib$trylib" ; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 6987$as_echo "$try/lib$trylib" >&6; } 6988 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 6989 if test "`(uname) 2>/dev/null`" = SunOS && 6990 uname -r | grep '^5' >/dev/null; then 6991 TCL_LIBS="$TCL_LIBS -R $try" 6992 fi 6993 break 3 6994 fi 6995 done 6996 done 6997 done 6998 if test -z "$TCL_LIBS"; then 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7000$as_echo "<not found>" >&6; } 7001 SKIP_TCL=YES 7002 fi 7003 fi 7004 if test -z "$SKIP_TCL"; then 7005 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7006 7007 TCL_SRC=if_tcl.c 7008 TCL_OBJ=objects/if_tcl.o 7009 TCL_PRO=if_tcl.pro 7010 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7011 fi 7012 fi 7013 else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7015$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7016 fi 7017 fi 7018 if test "$enable_tclinterp" = "dynamic"; then 7019 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7020 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7021 7022 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7023 fi 7024 fi 7025 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7026 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7027 fi 7028fi 7029 7030 7031 7032 7033 7034 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7036$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7037# Check whether --enable-rubyinterp was given. 7038if test "${enable_rubyinterp+set}" = set; then : 7039 enableval=$enable_rubyinterp; 7040else 7041 enable_rubyinterp="no" 7042fi 7043 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7045$as_echo "$enable_rubyinterp" >&6; } 7046if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7047 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7048 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7049 fi 7050 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7052$as_echo_n "checking --with-ruby-command argument... " >&6; } 7053 7054 7055# Check whether --with-ruby-command was given. 7056if test "${with_ruby_command+set}" = set; then : 7057 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7058$as_echo "$RUBY_CMD" >&6; } 7059else 7060 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7061$as_echo "defaulting to $RUBY_CMD" >&6; } 7062fi 7063 7064 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7065set dummy $RUBY_CMD; ac_word=$2 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067$as_echo_n "checking for $ac_word... " >&6; } 7068if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 case $vi_cv_path_ruby in 7072 [\\/]* | ?:[\\/]*) 7073 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7074 ;; 7075 *) 7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7083 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091 ;; 7092esac 7093fi 7094vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7095if test -n "$vi_cv_path_ruby"; then 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7097$as_echo "$vi_cv_path_ruby" >&6; } 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102 7103 7104 if test "X$vi_cv_path_ruby" != "X"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7106$as_echo_n "checking Ruby version... " >&6; } 7107 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7109$as_echo "OK" >&6; } 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7111$as_echo_n "checking Ruby rbconfig... " >&6; } 7112 ruby_rbconfig="RbConfig" 7113 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7114 ruby_rbconfig="Config" 7115 fi 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7117$as_echo "$ruby_rbconfig" >&6; } 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7119$as_echo_n "checking Ruby header files... " >&6; } 7120 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7121 if test "X$rubyhdrdir" != "X"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7123$as_echo "$rubyhdrdir" >&6; } 7124 RUBY_CFLAGS="-I$rubyhdrdir" 7125 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7126 if test -d "$rubyarchdir"; then 7127 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7128 fi 7129 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7130 if test "X$rubyversion" = "X"; then 7131 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7132 fi 7133 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7134 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7135 if test "X$rubylibs" != "X"; then 7136 RUBY_LIBS="$rubylibs" 7137 fi 7138 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7139 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7140 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7141 if test -f "$rubylibdir/$librubya"; then 7142 librubyarg="$librubyarg" 7143 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7144 elif test "$librubyarg" = "libruby.a"; then 7145 librubyarg="-lruby" 7146 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7147 fi 7148 7149 if test "X$librubyarg" != "X"; then 7150 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7151 fi 7152 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7153 if test "X$rubyldflags" != "X"; then 7154 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7155 if test "X$rubyldflags" != "X"; then 7156 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7157 LDFLAGS="$rubyldflags $LDFLAGS" 7158 fi 7159 fi 7160 fi 7161 RUBY_SRC="if_ruby.c" 7162 RUBY_OBJ="objects/if_ruby.o" 7163 RUBY_PRO="if_ruby.pro" 7164 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7165 7166 if test "$enable_rubyinterp" = "dynamic"; then 7167 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7168 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7169 7170 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7171 RUBY_LIBS= 7172 fi 7173 else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7175$as_echo "not found; disabling Ruby" >&6; } 7176 fi 7177 else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7179$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7180 fi 7181 fi 7182 7183 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7184 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7185 fi 7186fi 7187 7188 7189 7190 7191 7192 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7194$as_echo_n "checking --enable-cscope argument... " >&6; } 7195# Check whether --enable-cscope was given. 7196if test "${enable_cscope+set}" = set; then : 7197 enableval=$enable_cscope; 7198else 7199 enable_cscope="no" 7200fi 7201 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7203$as_echo "$enable_cscope" >&6; } 7204if test "$enable_cscope" = "yes"; then 7205 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7206 7207fi 7208 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7210$as_echo_n "checking --enable-workshop argument... " >&6; } 7211# Check whether --enable-workshop was given. 7212if test "${enable_workshop+set}" = set; then : 7213 enableval=$enable_workshop; 7214else 7215 enable_workshop="no" 7216fi 7217 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7219$as_echo "$enable_workshop" >&6; } 7220if test "$enable_workshop" = "yes"; then 7221 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7222 7223 WORKSHOP_SRC="workshop.c integration.c" 7224 7225 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7226 7227 if test "${enable_gui-xxx}" = xxx; then 7228 enable_gui=motif 7229 fi 7230fi 7231 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7233$as_echo_n "checking --disable-netbeans argument... " >&6; } 7234# Check whether --enable-netbeans was given. 7235if test "${enable_netbeans+set}" = set; then : 7236 enableval=$enable_netbeans; 7237else 7238 enable_netbeans="yes" 7239fi 7240 7241if test "$enable_netbeans" = "yes"; then 7242 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7244$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7245 enable_netbeans="no" 7246 else 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7248$as_echo "no" >&6; } 7249 fi 7250else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7252$as_echo "yes" >&6; } 7253fi 7254 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7256$as_echo_n "checking --disable-channel argument... " >&6; } 7257# Check whether --enable-channel was given. 7258if test "${enable_channel+set}" = set; then : 7259 enableval=$enable_channel; 7260else 7261 enable_channel="yes" 7262fi 7263 7264if test "$enable_channel" = "yes"; then 7265 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7267$as_echo "cannot use channels with tiny or small features" >&6; } 7268 enable_channel="no" 7269 else 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271$as_echo "no" >&6; } 7272 fi 7273else 7274 if test "$enable_netbeans" = "yes"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7276$as_echo "yes, netbeans also disabled" >&6; } 7277 enable_netbeans="no" 7278 else 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7280$as_echo "yes" >&6; } 7281 fi 7282fi 7283 7284if test "$enable_channel" = "yes"; then 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7286$as_echo_n "checking for socket in -lsocket... " >&6; } 7287if ${ac_cv_lib_socket_socket+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 ac_check_lib_save_LIBS=$LIBS 7291LIBS="-lsocket $LIBS" 7292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294 7295/* Override any GCC internal prototype to avoid an error. 7296 Use char because int might match the return type of a GCC 7297 builtin and then its argument prototype would still apply. */ 7298#ifdef __cplusplus 7299extern "C" 7300#endif 7301char socket (); 7302int 7303main () 7304{ 7305return socket (); 7306 ; 7307 return 0; 7308} 7309_ACEOF 7310if ac_fn_c_try_link "$LINENO"; then : 7311 ac_cv_lib_socket_socket=yes 7312else 7313 ac_cv_lib_socket_socket=no 7314fi 7315rm -f core conftest.err conftest.$ac_objext \ 7316 conftest$ac_exeext conftest.$ac_ext 7317LIBS=$ac_check_lib_save_LIBS 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7320$as_echo "$ac_cv_lib_socket_socket" >&6; } 7321if test "x$ac_cv_lib_socket_socket" = xyes; then : 7322 cat >>confdefs.h <<_ACEOF 7323#define HAVE_LIBSOCKET 1 7324_ACEOF 7325 7326 LIBS="-lsocket $LIBS" 7327 7328fi 7329 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7331$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7332if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 ac_check_lib_save_LIBS=$LIBS 7336LIBS="-lnsl $LIBS" 7337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339 7340/* Override any GCC internal prototype to avoid an error. 7341 Use char because int might match the return type of a GCC 7342 builtin and then its argument prototype would still apply. */ 7343#ifdef __cplusplus 7344extern "C" 7345#endif 7346char gethostbyname (); 7347int 7348main () 7349{ 7350return gethostbyname (); 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_link "$LINENO"; then : 7356 ac_cv_lib_nsl_gethostbyname=yes 7357else 7358 ac_cv_lib_nsl_gethostbyname=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext \ 7361 conftest$ac_exeext conftest.$ac_ext 7362LIBS=$ac_check_lib_save_LIBS 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7365$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7366if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7367 cat >>confdefs.h <<_ACEOF 7368#define HAVE_LIBNSL 1 7369_ACEOF 7370 7371 LIBS="-lnsl $LIBS" 7372 7373fi 7374 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7376$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380#include <stdio.h> 7381#include <stdlib.h> 7382#include <stdarg.h> 7383#include <fcntl.h> 7384#include <netdb.h> 7385#include <netinet/in.h> 7386#include <errno.h> 7387#include <sys/types.h> 7388#include <sys/socket.h> 7389 /* Check bitfields */ 7390 struct nbbuf { 7391 unsigned int initDone:1; 7392 ushort signmaplen; 7393 }; 7394 7395int 7396main () 7397{ 7398 7399 /* Check creating a socket. */ 7400 struct sockaddr_in server; 7401 (void)socket(AF_INET, SOCK_STREAM, 0); 7402 (void)htons(100); 7403 (void)gethostbyname("microsoft.com"); 7404 if (errno == ECONNREFUSED) 7405 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7406 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_c_try_link "$LINENO"; then : 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7413$as_echo "yes" >&6; } 7414else 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7416$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7417fi 7418rm -f core conftest.err conftest.$ac_objext \ 7419 conftest$ac_exeext conftest.$ac_ext 7420fi 7421if test "$enable_netbeans" = "yes"; then 7422 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7423 7424 NETBEANS_SRC="netbeans.c" 7425 7426 NETBEANS_OBJ="objects/netbeans.o" 7427 7428fi 7429if test "$enable_channel" = "yes"; then 7430 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7431 7432 CHANNEL_SRC="channel.c" 7433 7434 CHANNEL_OBJ="objects/channel.o" 7435 7436fi 7437 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7439$as_echo_n "checking --enable-multibyte argument... " >&6; } 7440# Check whether --enable-multibyte was given. 7441if test "${enable_multibyte+set}" = set; then : 7442 enableval=$enable_multibyte; 7443else 7444 enable_multibyte="no" 7445fi 7446 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7448$as_echo "$enable_multibyte" >&6; } 7449if test "$enable_multibyte" = "yes"; then 7450 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7451 7452fi 7453 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7455$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7456# Check whether --enable-hangulinput was given. 7457if test "${enable_hangulinput+set}" = set; then : 7458 enableval=$enable_hangulinput; 7459else 7460 enable_hangulinput="no" 7461fi 7462 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7464$as_echo "$enable_hangulinput" >&6; } 7465 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7467$as_echo_n "checking --enable-xim argument... " >&6; } 7468# Check whether --enable-xim was given. 7469if test "${enable_xim+set}" = set; then : 7470 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7471$as_echo "$enable_xim" >&6; } 7472else 7473 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7474$as_echo "defaulting to auto" >&6; } 7475fi 7476 7477 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7479$as_echo_n "checking --enable-fontset argument... " >&6; } 7480# Check whether --enable-fontset was given. 7481if test "${enable_fontset+set}" = set; then : 7482 enableval=$enable_fontset; 7483else 7484 enable_fontset="no" 7485fi 7486 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7488$as_echo "$enable_fontset" >&6; } 7489 7490test -z "$with_x" && with_x=yes 7491test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7492if test "$with_x" = no; then 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7494$as_echo "defaulting to: don't HAVE_X11" >&6; } 7495else 7496 7497 # Extract the first word of "xmkmf", so it can be a program name with args. 7498set dummy xmkmf; ac_word=$2 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7500$as_echo_n "checking for $ac_word... " >&6; } 7501if ${ac_cv_path_xmkmfpath+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 case $xmkmfpath in 7505 [\\/]* | ?:[\\/]*) 7506 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7507 ;; 7508 *) 7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 test -z "$as_dir" && as_dir=. 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7516 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521 done 7522IFS=$as_save_IFS 7523 7524 ;; 7525esac 7526fi 7527xmkmfpath=$ac_cv_path_xmkmfpath 7528if test -n "$xmkmfpath"; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7530$as_echo "$xmkmfpath" >&6; } 7531else 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7533$as_echo "no" >&6; } 7534fi 7535 7536 7537 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7539$as_echo_n "checking for X... " >&6; } 7540 7541 7542# Check whether --with-x was given. 7543if test "${with_x+set}" = set; then : 7544 withval=$with_x; 7545fi 7546 7547# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7548if test "x$with_x" = xno; then 7549 # The user explicitly disabled X. 7550 have_x=disabled 7551else 7552 case $x_includes,$x_libraries in #( 7553 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7554 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 # One or both of the vars are not set, and there is no cached value. 7558ac_x_includes=no ac_x_libraries=no 7559rm -f -r conftest.dir 7560if mkdir conftest.dir; then 7561 cd conftest.dir 7562 cat >Imakefile <<'_ACEOF' 7563incroot: 7564 @echo incroot='${INCROOT}' 7565usrlibdir: 7566 @echo usrlibdir='${USRLIBDIR}' 7567libdir: 7568 @echo libdir='${LIBDIR}' 7569_ACEOF 7570 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7571 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7572 for ac_var in incroot usrlibdir libdir; do 7573 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7574 done 7575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7576 for ac_extension in a so sl dylib la dll; do 7577 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7578 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7579 ac_im_usrlibdir=$ac_im_libdir; break 7580 fi 7581 done 7582 # Screen out bogus values from the imake configuration. They are 7583 # bogus both because they are the default anyway, and because 7584 # using them would break gcc on systems where it needs fixed includes. 7585 case $ac_im_incroot in 7586 /usr/include) ac_x_includes= ;; 7587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7588 esac 7589 case $ac_im_usrlibdir in 7590 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7592 esac 7593 fi 7594 cd .. 7595 rm -f -r conftest.dir 7596fi 7597 7598# Standard set of common directories for X headers. 7599# Check X11 before X11Rn because it is often a symlink to the current release. 7600ac_x_header_dirs=' 7601/usr/X11/include 7602/usr/X11R7/include 7603/usr/X11R6/include 7604/usr/X11R5/include 7605/usr/X11R4/include 7606 7607/usr/include/X11 7608/usr/include/X11R7 7609/usr/include/X11R6 7610/usr/include/X11R5 7611/usr/include/X11R4 7612 7613/usr/local/X11/include 7614/usr/local/X11R7/include 7615/usr/local/X11R6/include 7616/usr/local/X11R5/include 7617/usr/local/X11R4/include 7618 7619/usr/local/include/X11 7620/usr/local/include/X11R7 7621/usr/local/include/X11R6 7622/usr/local/include/X11R5 7623/usr/local/include/X11R4 7624 7625/usr/X386/include 7626/usr/x386/include 7627/usr/XFree86/include/X11 7628 7629/usr/include 7630/usr/local/include 7631/usr/unsupported/include 7632/usr/athena/include 7633/usr/local/x11r5/include 7634/usr/lpp/Xamples/include 7635 7636/usr/openwin/include 7637/usr/openwin/share/include' 7638 7639if test "$ac_x_includes" = no; then 7640 # Guess where to find include files, by looking for Xlib.h. 7641 # First, try using that file with no special directory specified. 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644#include <X11/Xlib.h> 7645_ACEOF 7646if ac_fn_c_try_cpp "$LINENO"; then : 7647 # We can compile using X headers with no special include directory. 7648ac_x_includes= 7649else 7650 for ac_dir in $ac_x_header_dirs; do 7651 if test -r "$ac_dir/X11/Xlib.h"; then 7652 ac_x_includes=$ac_dir 7653 break 7654 fi 7655done 7656fi 7657rm -f conftest.err conftest.i conftest.$ac_ext 7658fi # $ac_x_includes = no 7659 7660if test "$ac_x_libraries" = no; then 7661 # Check for the libraries. 7662 # See if we find them without any special options. 7663 # Don't add to $LIBS permanently. 7664 ac_save_LIBS=$LIBS 7665 LIBS="-lX11 $LIBS" 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668#include <X11/Xlib.h> 7669int 7670main () 7671{ 7672XrmInitialize () 7673 ; 7674 return 0; 7675} 7676_ACEOF 7677if ac_fn_c_try_link "$LINENO"; then : 7678 LIBS=$ac_save_LIBS 7679# We can link X programs with no special library path. 7680ac_x_libraries= 7681else 7682 LIBS=$ac_save_LIBS 7683for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7684do 7685 # Don't even attempt the hair of trying to link an X program! 7686 for ac_extension in a so sl dylib la dll; do 7687 if test -r "$ac_dir/libX11.$ac_extension"; then 7688 ac_x_libraries=$ac_dir 7689 break 2 7690 fi 7691 done 7692done 7693fi 7694rm -f core conftest.err conftest.$ac_objext \ 7695 conftest$ac_exeext conftest.$ac_ext 7696fi # $ac_x_libraries = no 7697 7698case $ac_x_includes,$ac_x_libraries in #( 7699 no,* | *,no | *\'*) 7700 # Didn't find X, or a directory has "'" in its name. 7701 ac_cv_have_x="have_x=no";; #( 7702 *) 7703 # Record where we found X for the cache. 7704 ac_cv_have_x="have_x=yes\ 7705 ac_x_includes='$ac_x_includes'\ 7706 ac_x_libraries='$ac_x_libraries'" 7707esac 7708fi 7709;; #( 7710 *) have_x=yes;; 7711 esac 7712 eval "$ac_cv_have_x" 7713fi # $with_x != no 7714 7715if test "$have_x" != yes; then 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7717$as_echo "$have_x" >&6; } 7718 no_x=yes 7719else 7720 # If each of the values was on the command line, it overrides each guess. 7721 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7722 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7723 # Update the cache value to reflect the command line values. 7724 ac_cv_have_x="have_x=yes\ 7725 ac_x_includes='$x_includes'\ 7726 ac_x_libraries='$x_libraries'" 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7728$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7729fi 7730 7731if test "$no_x" = yes; then 7732 # Not all programs may use this symbol, but it does not hurt to define it. 7733 7734$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7735 7736 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7737else 7738 if test -n "$x_includes"; then 7739 X_CFLAGS="$X_CFLAGS -I$x_includes" 7740 fi 7741 7742 # It would also be nice to do this for all -L options, not just this one. 7743 if test -n "$x_libraries"; then 7744 X_LIBS="$X_LIBS -L$x_libraries" 7745 # For Solaris; some versions of Sun CC require a space after -R and 7746 # others require no space. Words are not sufficient . . . . 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7748$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7749 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7750 ac_xsave_c_werror_flag=$ac_c_werror_flag 7751 ac_c_werror_flag=yes 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754 7755int 7756main () 7757{ 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763if ac_fn_c_try_link "$LINENO"; then : 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765$as_echo "no" >&6; } 7766 X_LIBS="$X_LIBS -R$x_libraries" 7767else 7768 LIBS="$ac_xsave_LIBS -R $x_libraries" 7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771 7772int 7773main () 7774{ 7775 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780if ac_fn_c_try_link "$LINENO"; then : 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7782$as_echo "yes" >&6; } 7783 X_LIBS="$X_LIBS -R $x_libraries" 7784else 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7786$as_echo "neither works" >&6; } 7787fi 7788rm -f core conftest.err conftest.$ac_objext \ 7789 conftest$ac_exeext conftest.$ac_ext 7790fi 7791rm -f core conftest.err conftest.$ac_objext \ 7792 conftest$ac_exeext conftest.$ac_ext 7793 ac_c_werror_flag=$ac_xsave_c_werror_flag 7794 LIBS=$ac_xsave_LIBS 7795 fi 7796 7797 # Check for system-dependent libraries X programs must link with. 7798 # Do this before checking for the system-independent R6 libraries 7799 # (-lICE), since we may need -lsocket or whatever for X linking. 7800 7801 if test "$ISC" = yes; then 7802 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7803 else 7804 # Martyn Johnson says this is needed for Ultrix, if the X 7805 # libraries were built with DECnet support. And Karl Berry says 7806 # the Alpha needs dnet_stub (dnet does not exist). 7807 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810 7811/* Override any GCC internal prototype to avoid an error. 7812 Use char because int might match the return type of a GCC 7813 builtin and then its argument prototype would still apply. */ 7814#ifdef __cplusplus 7815extern "C" 7816#endif 7817char XOpenDisplay (); 7818int 7819main () 7820{ 7821return XOpenDisplay (); 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_link "$LINENO"; then : 7827 7828else 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7830$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7831if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 ac_check_lib_save_LIBS=$LIBS 7835LIBS="-ldnet $LIBS" 7836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838 7839/* Override any GCC internal prototype to avoid an error. 7840 Use char because int might match the return type of a GCC 7841 builtin and then its argument prototype would still apply. */ 7842#ifdef __cplusplus 7843extern "C" 7844#endif 7845char dnet_ntoa (); 7846int 7847main () 7848{ 7849return dnet_ntoa (); 7850 ; 7851 return 0; 7852} 7853_ACEOF 7854if ac_fn_c_try_link "$LINENO"; then : 7855 ac_cv_lib_dnet_dnet_ntoa=yes 7856else 7857 ac_cv_lib_dnet_dnet_ntoa=no 7858fi 7859rm -f core conftest.err conftest.$ac_objext \ 7860 conftest$ac_exeext conftest.$ac_ext 7861LIBS=$ac_check_lib_save_LIBS 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7864$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7865if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7866 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7867fi 7868 7869 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7871$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7872if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 ac_check_lib_save_LIBS=$LIBS 7876LIBS="-ldnet_stub $LIBS" 7877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879 7880/* Override any GCC internal prototype to avoid an error. 7881 Use char because int might match the return type of a GCC 7882 builtin and then its argument prototype would still apply. */ 7883#ifdef __cplusplus 7884extern "C" 7885#endif 7886char dnet_ntoa (); 7887int 7888main () 7889{ 7890return dnet_ntoa (); 7891 ; 7892 return 0; 7893} 7894_ACEOF 7895if ac_fn_c_try_link "$LINENO"; then : 7896 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7897else 7898 ac_cv_lib_dnet_stub_dnet_ntoa=no 7899fi 7900rm -f core conftest.err conftest.$ac_objext \ 7901 conftest$ac_exeext conftest.$ac_ext 7902LIBS=$ac_check_lib_save_LIBS 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7905$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7906if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7908fi 7909 7910 fi 7911fi 7912rm -f core conftest.err conftest.$ac_objext \ 7913 conftest$ac_exeext conftest.$ac_ext 7914 LIBS="$ac_xsave_LIBS" 7915 7916 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7917 # to get the SysV transport functions. 7918 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7919 # needs -lnsl. 7920 # The nsl library prevents programs from opening the X display 7921 # on Irix 5.2, according to T.E. Dickey. 7922 # The functions gethostbyname, getservbyname, and inet_addr are 7923 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7924 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7925if test "x$ac_cv_func_gethostbyname" = xyes; then : 7926 7927fi 7928 7929 if test $ac_cv_func_gethostbyname = no; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7931$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7932if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 ac_check_lib_save_LIBS=$LIBS 7936LIBS="-lnsl $LIBS" 7937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939 7940/* Override any GCC internal prototype to avoid an error. 7941 Use char because int might match the return type of a GCC 7942 builtin and then its argument prototype would still apply. */ 7943#ifdef __cplusplus 7944extern "C" 7945#endif 7946char gethostbyname (); 7947int 7948main () 7949{ 7950return gethostbyname (); 7951 ; 7952 return 0; 7953} 7954_ACEOF 7955if ac_fn_c_try_link "$LINENO"; then : 7956 ac_cv_lib_nsl_gethostbyname=yes 7957else 7958 ac_cv_lib_nsl_gethostbyname=no 7959fi 7960rm -f core conftest.err conftest.$ac_objext \ 7961 conftest$ac_exeext conftest.$ac_ext 7962LIBS=$ac_check_lib_save_LIBS 7963fi 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7965$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7966if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7968fi 7969 7970 if test $ac_cv_lib_nsl_gethostbyname = no; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 7972$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 7973if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 ac_check_lib_save_LIBS=$LIBS 7977LIBS="-lbsd $LIBS" 7978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980 7981/* Override any GCC internal prototype to avoid an error. 7982 Use char because int might match the return type of a GCC 7983 builtin and then its argument prototype would still apply. */ 7984#ifdef __cplusplus 7985extern "C" 7986#endif 7987char gethostbyname (); 7988int 7989main () 7990{ 7991return gethostbyname (); 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996if ac_fn_c_try_link "$LINENO"; then : 7997 ac_cv_lib_bsd_gethostbyname=yes 7998else 7999 ac_cv_lib_bsd_gethostbyname=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext \ 8002 conftest$ac_exeext conftest.$ac_ext 8003LIBS=$ac_check_lib_save_LIBS 8004fi 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8006$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8007if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8009fi 8010 8011 fi 8012 fi 8013 8014 # [email protected] says without -lsocket, 8015 # socket/setsockopt and other routines are undefined under SCO ODT 8016 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8017 # on later versions), says Simon Leinen: it contains gethostby* 8018 # variants that don't use the name server (or something). -lsocket 8019 # must be given before -lnsl if both are needed. We assume that 8020 # if connect needs -lnsl, so does gethostbyname. 8021 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8022if test "x$ac_cv_func_connect" = xyes; then : 8023 8024fi 8025 8026 if test $ac_cv_func_connect = no; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8028$as_echo_n "checking for connect in -lsocket... " >&6; } 8029if ${ac_cv_lib_socket_connect+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 ac_check_lib_save_LIBS=$LIBS 8033LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036 8037/* Override any GCC internal prototype to avoid an error. 8038 Use char because int might match the return type of a GCC 8039 builtin and then its argument prototype would still apply. */ 8040#ifdef __cplusplus 8041extern "C" 8042#endif 8043char connect (); 8044int 8045main () 8046{ 8047return connect (); 8048 ; 8049 return 0; 8050} 8051_ACEOF 8052if ac_fn_c_try_link "$LINENO"; then : 8053 ac_cv_lib_socket_connect=yes 8054else 8055 ac_cv_lib_socket_connect=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext \ 8058 conftest$ac_exeext conftest.$ac_ext 8059LIBS=$ac_check_lib_save_LIBS 8060fi 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8062$as_echo "$ac_cv_lib_socket_connect" >&6; } 8063if test "x$ac_cv_lib_socket_connect" = xyes; then : 8064 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8065fi 8066 8067 fi 8068 8069 # Guillermo Gomez says -lposix is necessary on A/UX. 8070 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8071if test "x$ac_cv_func_remove" = xyes; then : 8072 8073fi 8074 8075 if test $ac_cv_func_remove = no; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8077$as_echo_n "checking for remove in -lposix... " >&6; } 8078if ${ac_cv_lib_posix_remove+:} false; then : 8079 $as_echo_n "(cached) " >&6 8080else 8081 ac_check_lib_save_LIBS=$LIBS 8082LIBS="-lposix $LIBS" 8083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085 8086/* Override any GCC internal prototype to avoid an error. 8087 Use char because int might match the return type of a GCC 8088 builtin and then its argument prototype would still apply. */ 8089#ifdef __cplusplus 8090extern "C" 8091#endif 8092char remove (); 8093int 8094main () 8095{ 8096return remove (); 8097 ; 8098 return 0; 8099} 8100_ACEOF 8101if ac_fn_c_try_link "$LINENO"; then : 8102 ac_cv_lib_posix_remove=yes 8103else 8104 ac_cv_lib_posix_remove=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext \ 8107 conftest$ac_exeext conftest.$ac_ext 8108LIBS=$ac_check_lib_save_LIBS 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8111$as_echo "$ac_cv_lib_posix_remove" >&6; } 8112if test "x$ac_cv_lib_posix_remove" = xyes; then : 8113 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8114fi 8115 8116 fi 8117 8118 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8119 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8120if test "x$ac_cv_func_shmat" = xyes; then : 8121 8122fi 8123 8124 if test $ac_cv_func_shmat = no; then 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8126$as_echo_n "checking for shmat in -lipc... " >&6; } 8127if ${ac_cv_lib_ipc_shmat+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 ac_check_lib_save_LIBS=$LIBS 8131LIBS="-lipc $LIBS" 8132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133/* end confdefs.h. */ 8134 8135/* Override any GCC internal prototype to avoid an error. 8136 Use char because int might match the return type of a GCC 8137 builtin and then its argument prototype would still apply. */ 8138#ifdef __cplusplus 8139extern "C" 8140#endif 8141char shmat (); 8142int 8143main () 8144{ 8145return shmat (); 8146 ; 8147 return 0; 8148} 8149_ACEOF 8150if ac_fn_c_try_link "$LINENO"; then : 8151 ac_cv_lib_ipc_shmat=yes 8152else 8153 ac_cv_lib_ipc_shmat=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext \ 8156 conftest$ac_exeext conftest.$ac_ext 8157LIBS=$ac_check_lib_save_LIBS 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8160$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8161if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8163fi 8164 8165 fi 8166 fi 8167 8168 # Check for libraries that X11R6 Xt/Xaw programs need. 8169 ac_save_LDFLAGS=$LDFLAGS 8170 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8171 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8172 # check for ICE first), but we must link in the order -lSM -lICE or 8173 # we get undefined symbols. So assume we have SM if we have ICE. 8174 # These have to be linked with before -lX11, unlike the other 8175 # libraries we check for below, so use a different variable. 8176 # John Interrante, Karl Berry 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8178$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8179if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 ac_check_lib_save_LIBS=$LIBS 8183LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186 8187/* Override any GCC internal prototype to avoid an error. 8188 Use char because int might match the return type of a GCC 8189 builtin and then its argument prototype would still apply. */ 8190#ifdef __cplusplus 8191extern "C" 8192#endif 8193char IceConnectionNumber (); 8194int 8195main () 8196{ 8197return IceConnectionNumber (); 8198 ; 8199 return 0; 8200} 8201_ACEOF 8202if ac_fn_c_try_link "$LINENO"; then : 8203 ac_cv_lib_ICE_IceConnectionNumber=yes 8204else 8205 ac_cv_lib_ICE_IceConnectionNumber=no 8206fi 8207rm -f core conftest.err conftest.$ac_objext \ 8208 conftest$ac_exeext conftest.$ac_ext 8209LIBS=$ac_check_lib_save_LIBS 8210fi 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8212$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8213if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8214 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8215fi 8216 8217 LDFLAGS=$ac_save_LDFLAGS 8218 8219fi 8220 8221 8222 if test "$zOSUnix" = "yes"; then 8223 CFLAGS="$CFLAGS -W c,dll" 8224 LDFLAGS="$LDFLAGS -W l,dll" 8225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8226 fi 8227 8228 8229 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8230 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8232$as_echo "Corrected X libraries to $x_libraries" >&6; } 8233 X_LIBS="$X_LIBS -L$x_libraries" 8234 if test "`(uname) 2>/dev/null`" = SunOS && 8235 uname -r | grep '^5' >/dev/null; then 8236 X_LIBS="$X_LIBS -R $x_libraries" 8237 fi 8238 fi 8239 8240 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8241 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8243$as_echo "Corrected X includes to $x_includes" >&6; } 8244 X_CFLAGS="$X_CFLAGS -I$x_includes" 8245 fi 8246 8247 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8248 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8249 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8250 8251 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8253$as_echo_n "checking if X11 header files can be found... " >&6; } 8254 cflags_save=$CFLAGS 8255 CFLAGS="$CFLAGS $X_CFLAGS" 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258#include <X11/Xlib.h> 8259#include <X11/Intrinsic.h> 8260int 8261main () 8262{ 8263 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268if ac_fn_c_try_compile "$LINENO"; then : 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8270$as_echo "yes" >&6; } 8271else 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8273$as_echo "no" >&6; }; no_x=yes 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8276 CFLAGS=$cflags_save 8277 8278 if test "${no_x-no}" = yes; then 8279 with_x=no 8280 else 8281 $as_echo "#define HAVE_X11 1" >>confdefs.h 8282 8283 X_LIB="-lXt -lX11"; 8284 8285 8286 ac_save_LDFLAGS="$LDFLAGS" 8287 LDFLAGS="-L$x_libraries $LDFLAGS" 8288 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8290$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8291if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293else 8294 ac_check_lib_save_LIBS=$LIBS 8295LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8297/* end confdefs.h. */ 8298 8299/* Override any GCC internal prototype to avoid an error. 8300 Use char because int might match the return type of a GCC 8301 builtin and then its argument prototype would still apply. */ 8302#ifdef __cplusplus 8303extern "C" 8304#endif 8305char _XdmcpAuthDoIt (); 8306int 8307main () 8308{ 8309return _XdmcpAuthDoIt (); 8310 ; 8311 return 0; 8312} 8313_ACEOF 8314if ac_fn_c_try_link "$LINENO"; then : 8315 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8316else 8317 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8318fi 8319rm -f core conftest.err conftest.$ac_objext \ 8320 conftest$ac_exeext conftest.$ac_ext 8321LIBS=$ac_check_lib_save_LIBS 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8324$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8325if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8327fi 8328 8329 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8331$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8332if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8333 $as_echo_n "(cached) " >&6 8334else 8335 ac_check_lib_save_LIBS=$LIBS 8336LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338/* end confdefs.h. */ 8339 8340/* Override any GCC internal prototype to avoid an error. 8341 Use char because int might match the return type of a GCC 8342 builtin and then its argument prototype would still apply. */ 8343#ifdef __cplusplus 8344extern "C" 8345#endif 8346char IceOpenConnection (); 8347int 8348main () 8349{ 8350return IceOpenConnection (); 8351 ; 8352 return 0; 8353} 8354_ACEOF 8355if ac_fn_c_try_link "$LINENO"; then : 8356 ac_cv_lib_ICE_IceOpenConnection=yes 8357else 8358 ac_cv_lib_ICE_IceOpenConnection=no 8359fi 8360rm -f core conftest.err conftest.$ac_objext \ 8361 conftest$ac_exeext conftest.$ac_ext 8362LIBS=$ac_check_lib_save_LIBS 8363fi 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8365$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8366if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8368fi 8369 8370 8371 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8373$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8374if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 ac_check_lib_save_LIBS=$LIBS 8378LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381 8382/* Override any GCC internal prototype to avoid an error. 8383 Use char because int might match the return type of a GCC 8384 builtin and then its argument prototype would still apply. */ 8385#ifdef __cplusplus 8386extern "C" 8387#endif 8388char XpmCreatePixmapFromData (); 8389int 8390main () 8391{ 8392return XpmCreatePixmapFromData (); 8393 ; 8394 return 0; 8395} 8396_ACEOF 8397if ac_fn_c_try_link "$LINENO"; then : 8398 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8399else 8400 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8401fi 8402rm -f core conftest.err conftest.$ac_objext \ 8403 conftest$ac_exeext conftest.$ac_ext 8404LIBS=$ac_check_lib_save_LIBS 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8407$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8408if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8409 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8410fi 8411 8412 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8414$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8415 cflags_save=$CFLAGS 8416 if test "$GCC" = yes; then 8417 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8418 else 8419 CFLAGS="$CFLAGS $X_CFLAGS" 8420 fi 8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423#include <X11/Xlib.h> 8424int 8425main () 8426{ 8427 8428 ; 8429 return 0; 8430} 8431_ACEOF 8432if ac_fn_c_try_compile "$LINENO"; then : 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434$as_echo "no" >&6; } 8435else 8436 CFLAGS="$CFLAGS -Wno-implicit-int" 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439#include <X11/Xlib.h> 8440int 8441main () 8442{ 8443 8444 ; 8445 return 0; 8446} 8447_ACEOF 8448if ac_fn_c_try_compile "$LINENO"; then : 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8450$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8451else 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8453$as_echo "test failed" >&6; } 8454 8455fi 8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8457 8458fi 8459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8460 CFLAGS=$cflags_save 8461 8462 LDFLAGS="$ac_save_LDFLAGS" 8463 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8465$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8466 if ${ac_cv_small_wchar_t+:} false; then : 8467 $as_echo_n "(cached) " >&6 8468else 8469 if test "$cross_compiling" = yes; then : 8470 as_fn_error $? "failed to compile test program" "$LINENO" 5 8471else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474 8475#include <X11/Xlib.h> 8476#if STDC_HEADERS 8477# include <stdlib.h> 8478# include <stddef.h> 8479#endif 8480 main() 8481 { 8482 if (sizeof(wchar_t) <= 2) 8483 exit(1); 8484 exit(0); 8485 } 8486_ACEOF 8487if ac_fn_c_try_run "$LINENO"; then : 8488 ac_cv_small_wchar_t="no" 8489else 8490 ac_cv_small_wchar_t="yes" 8491fi 8492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8493 conftest.$ac_objext conftest.beam conftest.$ac_ext 8494fi 8495 8496fi 8497 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8499$as_echo "$ac_cv_small_wchar_t" >&6; } 8500 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8501 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8502 8503 fi 8504 8505 fi 8506fi 8507 8508test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8509 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8511$as_echo_n "checking --enable-gui argument... " >&6; } 8512# Check whether --enable-gui was given. 8513if test "${enable_gui+set}" = set; then : 8514 enableval=$enable_gui; 8515else 8516 enable_gui="auto" 8517fi 8518 8519 8520enable_gui_canon=`echo "_$enable_gui" | \ 8521 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8522 8523SKIP_GTK2=YES 8524SKIP_GTK3=YES 8525SKIP_GNOME=YES 8526SKIP_MOTIF=YES 8527SKIP_ATHENA=YES 8528SKIP_NEXTAW=YES 8529SKIP_PHOTON=YES 8530SKIP_CARBON=YES 8531GUITYPE=NONE 8532 8533if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8534 SKIP_PHOTON= 8535 case "$enable_gui_canon" in 8536 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8537$as_echo "no GUI support" >&6; } 8538 SKIP_PHOTON=YES ;; 8539 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8540$as_echo "yes - automatic GUI support" >&6; } ;; 8541 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8542$as_echo "auto - automatic GUI support" >&6; } ;; 8543 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8544$as_echo "Photon GUI support" >&6; } ;; 8545 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8546$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8547 SKIP_PHOTON=YES ;; 8548 esac 8549 8550elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8551 SKIP_CARBON= 8552 case "$enable_gui_canon" in 8553 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8554$as_echo "no GUI support" >&6; } 8555 SKIP_CARBON=YES ;; 8556 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8557$as_echo "yes - automatic GUI support" >&6; } ;; 8558 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8559$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8560 SKIP_CARBON=YES ;; 8561 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8562$as_echo "Carbon GUI support" >&6; } ;; 8563 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8564$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8565 SKIP_CARBON=YES ;; 8566 esac 8567 8568else 8569 8570 case "$enable_gui_canon" in 8571 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8572$as_echo "no GUI support" >&6; } ;; 8573 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8574$as_echo "yes/auto - automatic GUI support" >&6; } 8575 SKIP_GTK2= 8576 SKIP_GNOME= 8577 SKIP_MOTIF= 8578 SKIP_ATHENA= 8579 SKIP_NEXTAW= 8580 SKIP_CARBON=;; 8581 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8582$as_echo "GTK+ 2.x GUI support" >&6; } 8583 SKIP_GTK2=;; 8584 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8585$as_echo "GNOME 2.x GUI support" >&6; } 8586 SKIP_GNOME= 8587 SKIP_GTK2=;; 8588 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8589$as_echo "GTK+ 3.x GUI support" >&6; } 8590 SKIP_GTK3=;; 8591 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8592$as_echo "Motif GUI support" >&6; } 8593 SKIP_MOTIF=;; 8594 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8595$as_echo "Athena GUI support" >&6; } 8596 SKIP_ATHENA=;; 8597 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8598$as_echo "neXtaw GUI support" >&6; } 8599 SKIP_NEXTAW=;; 8600 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8601$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8602 esac 8603 8604fi 8605 8606if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8607 -a "$enable_gui_canon" != "gnome2"; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8609$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8610 # Check whether --enable-gtk2-check was given. 8611if test "${enable_gtk2_check+set}" = set; then : 8612 enableval=$enable_gtk2_check; 8613else 8614 enable_gtk2_check="yes" 8615fi 8616 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8618$as_echo "$enable_gtk2_check" >&6; } 8619 if test "x$enable_gtk2_check" = "xno"; then 8620 SKIP_GTK2=YES 8621 SKIP_GNOME=YES 8622 fi 8623fi 8624 8625if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8627$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8628 # Check whether --enable-gnome-check was given. 8629if test "${enable_gnome_check+set}" = set; then : 8630 enableval=$enable_gnome_check; 8631else 8632 enable_gnome_check="no" 8633fi 8634 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8636$as_echo "$enable_gnome_check" >&6; } 8637 if test "x$enable_gnome_check" = "xno"; then 8638 SKIP_GNOME=YES 8639 fi 8640fi 8641 8642if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8644$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8645 # Check whether --enable-gtk3-check was given. 8646if test "${enable_gtk3_check+set}" = set; then : 8647 enableval=$enable_gtk3_check; 8648else 8649 enable_gtk3_check="yes" 8650fi 8651 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8653$as_echo "$enable_gtk3_check" >&6; } 8654 if test "x$enable_gtk3_check" = "xno"; then 8655 SKIP_GTK3=YES 8656 fi 8657fi 8658 8659if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8661$as_echo_n "checking whether or not to look for Motif... " >&6; } 8662 # Check whether --enable-motif-check was given. 8663if test "${enable_motif_check+set}" = set; then : 8664 enableval=$enable_motif_check; 8665else 8666 enable_motif_check="yes" 8667fi 8668 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8670$as_echo "$enable_motif_check" >&6; } 8671 if test "x$enable_motif_check" = "xno"; then 8672 SKIP_MOTIF=YES 8673 fi 8674fi 8675 8676if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8678$as_echo_n "checking whether or not to look for Athena... " >&6; } 8679 # Check whether --enable-athena-check was given. 8680if test "${enable_athena_check+set}" = set; then : 8681 enableval=$enable_athena_check; 8682else 8683 enable_athena_check="yes" 8684fi 8685 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8687$as_echo "$enable_athena_check" >&6; } 8688 if test "x$enable_athena_check" = "xno"; then 8689 SKIP_ATHENA=YES 8690 fi 8691fi 8692 8693if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8695$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8696 # Check whether --enable-nextaw-check was given. 8697if test "${enable_nextaw_check+set}" = set; then : 8698 enableval=$enable_nextaw_check; 8699else 8700 enable_nextaw_check="yes" 8701fi 8702 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8704$as_echo "$enable_nextaw_check" >&6; }; 8705 if test "x$enable_nextaw_check" = "xno"; then 8706 SKIP_NEXTAW=YES 8707 fi 8708fi 8709 8710if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8712$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8713 # Check whether --enable-carbon-check was given. 8714if test "${enable_carbon_check+set}" = set; then : 8715 enableval=$enable_carbon_check; 8716else 8717 enable_carbon_check="yes" 8718fi 8719 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8721$as_echo "$enable_carbon_check" >&6; }; 8722 if test "x$enable_carbon_check" = "xno"; then 8723 SKIP_CARBON=YES 8724 fi 8725fi 8726 8727 8728if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8730$as_echo_n "checking for Carbon GUI... " >&6; } 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8732$as_echo "yes" >&6; }; 8733 GUITYPE=CARBONGUI 8734 if test "$VIMNAME" = "vim"; then 8735 VIMNAME=Vim 8736 fi 8737 8738 if test "x$MACARCH" = "xboth"; then 8739 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8740 else 8741 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8742 fi 8743 8744 if test x$prefix = xNONE; then 8745 prefix=/Applications 8746 fi 8747 8748 datadir='${prefix}/Vim.app/Contents/Resources' 8749 8750 SKIP_GTK2=YES; 8751 SKIP_GNOME=YES; 8752 SKIP_MOTIF=YES; 8753 SKIP_ATHENA=YES; 8754 SKIP_NEXTAW=YES; 8755 SKIP_PHOTON=YES; 8756 SKIP_CARBON=YES 8757fi 8758 8759 8760 8761 8762 8763 8764 8765 8766if test -z "$SKIP_GTK2"; then 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8769$as_echo_n "checking --disable-gtktest argument... " >&6; } 8770 # Check whether --enable-gtktest was given. 8771if test "${enable_gtktest+set}" = set; then : 8772 enableval=$enable_gtktest; 8773else 8774 enable_gtktest=yes 8775fi 8776 8777 if test "x$enable_gtktest" = "xyes" ; then 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8779$as_echo "gtk test enabled" >&6; } 8780 else 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8782$as_echo "gtk test disabled" >&6; } 8783 fi 8784 8785 if test "X$PKG_CONFIG" = "X"; then 8786 # Extract the first word of "pkg-config", so it can be a program name with args. 8787set dummy pkg-config; ac_word=$2 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8789$as_echo_n "checking for $ac_word... " >&6; } 8790if ${ac_cv_path_PKG_CONFIG+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 case $PKG_CONFIG in 8794 [\\/]* | ?:[\\/]*) 8795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8796 ;; 8797 *) 8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8799for as_dir in $PATH 8800do 8801 IFS=$as_save_IFS 8802 test -z "$as_dir" && as_dir=. 8803 for ac_exec_ext in '' $ac_executable_extensions; do 8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8807 break 2 8808 fi 8809done 8810 done 8811IFS=$as_save_IFS 8812 8813 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8814 ;; 8815esac 8816fi 8817PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8818if test -n "$PKG_CONFIG"; then 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8820$as_echo "$PKG_CONFIG" >&6; } 8821else 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8823$as_echo "no" >&6; } 8824fi 8825 8826 8827 fi 8828 8829 if test "x$PKG_CONFIG" != "xno"; then 8830 8831 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8832 { 8833 no_gtk="" 8834 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8835 && $PKG_CONFIG --exists gtk+-2.0; then 8836 { 8837 min_gtk_version=2.2.0 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8839$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8840 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8841 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8842 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8843 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8844 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8845 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8846 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8847 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8848 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8849 } 8850 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8851 && $PKG_CONFIG --exists gtk+-3.0; then 8852 { 8853 min_gtk_version=2.2.0 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8855$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8856 8857 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 8858 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 8859 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 8860 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8861 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8862 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8863 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8864 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8865 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8866 } 8867 else 8868 no_gtk=yes 8869 fi 8870 8871 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8872 { 8873 ac_save_CFLAGS="$CFLAGS" 8874 ac_save_LIBS="$LIBS" 8875 CFLAGS="$CFLAGS $GTK_CFLAGS" 8876 LIBS="$LIBS $GTK_LIBS" 8877 8878 rm -f conf.gtktest 8879 if test "$cross_compiling" = yes; then : 8880 echo $ac_n "cross compiling; assumed OK... $ac_c" 8881else 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884 8885#include <gtk/gtk.h> 8886#include <stdio.h> 8887#if STDC_HEADERS 8888# include <stdlib.h> 8889# include <stddef.h> 8890#endif 8891 8892int 8893main () 8894{ 8895int major, minor, micro; 8896char *tmp_version; 8897 8898system ("touch conf.gtktest"); 8899 8900/* HP/UX 9 (%@#!) writes to sscanf strings */ 8901tmp_version = g_strdup("$min_gtk_version"); 8902if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8903 printf("%s, bad version string\n", "$min_gtk_version"); 8904 exit(1); 8905 } 8906 8907if ((gtk_major_version > major) || 8908 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8909 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8910 (gtk_micro_version >= micro))) 8911{ 8912 return 0; 8913} 8914return 1; 8915} 8916 8917_ACEOF 8918if ac_fn_c_try_run "$LINENO"; then : 8919 8920else 8921 no_gtk=yes 8922fi 8923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8924 conftest.$ac_objext conftest.beam conftest.$ac_ext 8925fi 8926 8927 CFLAGS="$ac_save_CFLAGS" 8928 LIBS="$ac_save_LIBS" 8929 } 8930 fi 8931 if test "x$no_gtk" = x ; then 8932 if test "x$enable_gtktest" = "xyes"; then 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8934$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8935 else 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8937$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8938 fi 8939 GUI_LIB_LOC="$GTK_LIBDIR" 8940 GTK_LIBNAME="$GTK_LIBS" 8941 GUI_INC_LOC="$GTK_CFLAGS" 8942 else 8943 { 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8945$as_echo "no" >&6; } 8946 GTK_CFLAGS="" 8947 GTK_LIBS="" 8948 : 8949 } 8950 fi 8951 } 8952 else 8953 GTK_CFLAGS="" 8954 GTK_LIBS="" 8955 : 8956 fi 8957 8958 8959 rm -f conf.gtktest 8960 8961 if test "x$GTK_CFLAGS" != "x"; then 8962 SKIP_GTK3=YES 8963 SKIP_ATHENA=YES 8964 SKIP_NEXTAW=YES 8965 SKIP_MOTIF=YES 8966 GUITYPE=GTK 8967 8968 fi 8969 fi 8970 if test "x$GUITYPE" = "xGTK"; then 8971 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 8972 || test "0$gtk_minor_version" -ge 2; then 8973 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 8974 8975 fi 8976 if test -z "$SKIP_GNOME"; then 8977 { 8978 8979 8980 8981 8982 8983 8984# Check whether --with-gnome-includes was given. 8985if test "${with_gnome_includes+set}" = set; then : 8986 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 8987 8988fi 8989 8990 8991 8992# Check whether --with-gnome-libs was given. 8993if test "${with_gnome_libs+set}" = set; then : 8994 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 8995 8996fi 8997 8998 8999 9000# Check whether --with-gnome was given. 9001if test "${with_gnome+set}" = set; then : 9002 withval=$with_gnome; if test x$withval = xyes; then 9003 want_gnome=yes 9004 have_gnome=yes 9005 else 9006 if test "x$withval" = xno; then 9007 want_gnome=no 9008 else 9009 want_gnome=yes 9010 LDFLAGS="$LDFLAGS -L$withval/lib" 9011 CFLAGS="$CFLAGS -I$withval/include" 9012 gnome_prefix=$withval/lib 9013 fi 9014 fi 9015else 9016 want_gnome=yes 9017fi 9018 9019 9020 if test "x$want_gnome" = xyes; then 9021 { 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9023$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9024 if $PKG_CONFIG --exists libgnomeui-2.0; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9026$as_echo "yes" >&6; } 9027 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9028 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9029 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9030 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9032$as_echo_n "checking for FreeBSD... " >&6; } 9033 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9035$as_echo "yes" >&6; } 9036 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9037 GNOME_LIBS="$GNOME_LIBS -pthread" 9038 else 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9040$as_echo "no" >&6; } 9041 fi 9042 have_gnome=yes 9043 else 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9045$as_echo "not found" >&6; } 9046 if test "x" = xfail; then 9047 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9048 fi 9049 fi 9050 } 9051 fi 9052 9053 if test "x$have_gnome" = xyes ; then 9054 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9055 9056 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9057 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9058 fi 9059 } 9060 fi 9061 fi 9062fi 9063 9064 9065if test -z "$SKIP_GTK3"; then 9066 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9068$as_echo_n "checking --disable-gtktest argument... " >&6; } 9069 # Check whether --enable-gtktest was given. 9070if test "${enable_gtktest+set}" = set; then : 9071 enableval=$enable_gtktest; 9072else 9073 enable_gtktest=yes 9074fi 9075 9076 if test "x$enable_gtktest" = "xyes" ; then 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9078$as_echo "gtk test enabled" >&6; } 9079 else 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9081$as_echo "gtk test disabled" >&6; } 9082 fi 9083 9084 if test "X$PKG_CONFIG" = "X"; then 9085 # Extract the first word of "pkg-config", so it can be a program name with args. 9086set dummy pkg-config; ac_word=$2 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9088$as_echo_n "checking for $ac_word... " >&6; } 9089if ${ac_cv_path_PKG_CONFIG+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 case $PKG_CONFIG in 9093 [\\/]* | ?:[\\/]*) 9094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9095 ;; 9096 *) 9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9098for as_dir in $PATH 9099do 9100 IFS=$as_save_IFS 9101 test -z "$as_dir" && as_dir=. 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9113 ;; 9114esac 9115fi 9116PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9117if test -n "$PKG_CONFIG"; then 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9119$as_echo "$PKG_CONFIG" >&6; } 9120else 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9122$as_echo "no" >&6; } 9123fi 9124 9125 9126 fi 9127 9128 if test "x$PKG_CONFIG" != "xno"; then 9129 9130 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9131 { 9132 no_gtk="" 9133 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9134 && $PKG_CONFIG --exists gtk+-2.0; then 9135 { 9136 min_gtk_version=3.0.0 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9138$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9139 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9140 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9141 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9142 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9143 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9144 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9145 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9146 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9147 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9148 } 9149 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9150 && $PKG_CONFIG --exists gtk+-3.0; then 9151 { 9152 min_gtk_version=3.0.0 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9154$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9155 9156 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9157 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9158 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9159 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9160 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9161 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9162 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9163 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9164 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9165 } 9166 else 9167 no_gtk=yes 9168 fi 9169 9170 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9171 { 9172 ac_save_CFLAGS="$CFLAGS" 9173 ac_save_LIBS="$LIBS" 9174 CFLAGS="$CFLAGS $GTK_CFLAGS" 9175 LIBS="$LIBS $GTK_LIBS" 9176 9177 rm -f conf.gtktest 9178 if test "$cross_compiling" = yes; then : 9179 echo $ac_n "cross compiling; assumed OK... $ac_c" 9180else 9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182/* end confdefs.h. */ 9183 9184#include <gtk/gtk.h> 9185#include <stdio.h> 9186#if STDC_HEADERS 9187# include <stdlib.h> 9188# include <stddef.h> 9189#endif 9190 9191int 9192main () 9193{ 9194int major, minor, micro; 9195char *tmp_version; 9196 9197system ("touch conf.gtktest"); 9198 9199/* HP/UX 9 (%@#!) writes to sscanf strings */ 9200tmp_version = g_strdup("$min_gtk_version"); 9201if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9202 printf("%s, bad version string\n", "$min_gtk_version"); 9203 exit(1); 9204 } 9205 9206if ((gtk_major_version > major) || 9207 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9208 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9209 (gtk_micro_version >= micro))) 9210{ 9211 return 0; 9212} 9213return 1; 9214} 9215 9216_ACEOF 9217if ac_fn_c_try_run "$LINENO"; then : 9218 9219else 9220 no_gtk=yes 9221fi 9222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9223 conftest.$ac_objext conftest.beam conftest.$ac_ext 9224fi 9225 9226 CFLAGS="$ac_save_CFLAGS" 9227 LIBS="$ac_save_LIBS" 9228 } 9229 fi 9230 if test "x$no_gtk" = x ; then 9231 if test "x$enable_gtktest" = "xyes"; then 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9233$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9234 else 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9236$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9237 fi 9238 GUI_LIB_LOC="$GTK_LIBDIR" 9239 GTK_LIBNAME="$GTK_LIBS" 9240 GUI_INC_LOC="$GTK_CFLAGS" 9241 else 9242 { 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9244$as_echo "no" >&6; } 9245 GTK_CFLAGS="" 9246 GTK_LIBS="" 9247 : 9248 } 9249 fi 9250 } 9251 else 9252 GTK_CFLAGS="" 9253 GTK_LIBS="" 9254 : 9255 fi 9256 9257 9258 rm -f conf.gtktest 9259 9260 if test "x$GTK_CFLAGS" != "x"; then 9261 SKIP_GTK2=YES 9262 SKIP_GNOME=YES 9263 SKIP_ATHENA=YES 9264 SKIP_NEXTAW=YES 9265 SKIP_MOTIF=YES 9266 GUITYPE=GTK 9267 9268 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 9269 9270 $as_echo "#define USE_GTK3 1" >>confdefs.h 9271 9272 fi 9273 fi 9274fi 9275 9276if test "x$GUITYPE" = "xGTK"; then 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9278$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9279 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9280 if test "x$gdk_pixbuf_version" != x ; then 9281 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9282 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9283 if test "x$gdk_pixbuf_version_minor" != x -a \ 9284 $gdk_pixbuf_version_minor -ge 31 ; then 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9286$as_echo "OK." >&6; } 9287 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9288set dummy glib-compile-resources; ac_word=$2 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9290$as_echo_n "checking for $ac_word... " >&6; } 9291if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 case $GLIB_COMPILE_RESOURCES in 9295 [\\/]* | ?:[\\/]*) 9296 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9297 ;; 9298 *) 9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9300for as_dir in $PATH 9301do 9302 IFS=$as_save_IFS 9303 test -z "$as_dir" && as_dir=. 9304 for ac_exec_ext in '' $ac_executable_extensions; do 9305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9306 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9308 break 2 9309 fi 9310done 9311 done 9312IFS=$as_save_IFS 9313 9314 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9315 ;; 9316esac 9317fi 9318GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9319if test -n "$GLIB_COMPILE_RESOURCES"; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9321$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9322else 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9324$as_echo "no" >&6; } 9325fi 9326 9327 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9329$as_echo_n "checking glib-compile-resources... " >&6; } 9330 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9331 GLIB_COMPILE_RESOURCES="" 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9333$as_echo "cannot be found in PATH." >&6; } 9334 else 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9336$as_echo "usable." >&6; } 9337 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9338 9339 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9340 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9341 fi 9342 else 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9344$as_echo "not usable." >&6; } 9345 fi 9346 else 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9348$as_echo "cannot obtain from pkg_config." >&6; } 9349 fi 9350fi 9351 9352 9353 9354 9355 9356if test -z "$SKIP_MOTIF"; then 9357 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" 9358 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9359 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9361$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9362 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9363 GUI_INC_LOC= 9364 for try in $gui_includes; do 9365 if test -f "$try/Xm/Xm.h"; then 9366 GUI_INC_LOC=$try 9367 fi 9368 done 9369 if test -n "$GUI_INC_LOC"; then 9370 if test "$GUI_INC_LOC" = /usr/include; then 9371 GUI_INC_LOC= 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9373$as_echo "in default path" >&6; } 9374 else 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9376$as_echo "$GUI_INC_LOC" >&6; } 9377 fi 9378 else 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9380$as_echo "<not found>" >&6; } 9381 SKIP_MOTIF=YES 9382 fi 9383fi 9384 9385 9386if test -z "$SKIP_MOTIF"; then 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9388$as_echo_n "checking --with-motif-lib argument... " >&6; } 9389 9390# Check whether --with-motif-lib was given. 9391if test "${with_motif_lib+set}" = set; then : 9392 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9393fi 9394 9395 9396 if test -n "$MOTIF_LIBNAME"; then 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9398$as_echo "$MOTIF_LIBNAME" >&6; } 9399 GUI_LIB_LOC= 9400 else 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9402$as_echo "no" >&6; } 9403 9404 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9405 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9407$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9408 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" 9409 GUI_LIB_LOC= 9410 for try in $gui_libs; do 9411 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9412 if test -f "$libtry"; then 9413 GUI_LIB_LOC=$try 9414 fi 9415 done 9416 done 9417 if test -n "$GUI_LIB_LOC"; then 9418 if test "$GUI_LIB_LOC" = /usr/lib \ 9419 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9420 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9421 GUI_LIB_LOC= 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9423$as_echo "in default path" >&6; } 9424 else 9425 if test -n "$GUI_LIB_LOC"; then 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9427$as_echo "$GUI_LIB_LOC" >&6; } 9428 if test "`(uname) 2>/dev/null`" = SunOS && 9429 uname -r | grep '^5' >/dev/null; then 9430 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9431 fi 9432 fi 9433 fi 9434 MOTIF_LIBNAME=-lXm 9435 else 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9437$as_echo "<not found>" >&6; } 9438 SKIP_MOTIF=YES 9439 fi 9440 fi 9441fi 9442 9443if test -z "$SKIP_MOTIF"; then 9444 SKIP_ATHENA=YES 9445 SKIP_NEXTAW=YES 9446 GUITYPE=MOTIF 9447 9448fi 9449 9450 9451GUI_X_LIBS= 9452 9453if test -z "$SKIP_ATHENA"; then 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9455$as_echo_n "checking if Athena header files can be found... " >&6; } 9456 cflags_save=$CFLAGS 9457 CFLAGS="$CFLAGS $X_CFLAGS" 9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460 9461#include <X11/Intrinsic.h> 9462#include <X11/Xaw/Paned.h> 9463int 9464main () 9465{ 9466 9467 ; 9468 return 0; 9469} 9470_ACEOF 9471if ac_fn_c_try_compile "$LINENO"; then : 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9473$as_echo "yes" >&6; } 9474else 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9476$as_echo "no" >&6; }; SKIP_ATHENA=YES 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479 CFLAGS=$cflags_save 9480fi 9481 9482if test -z "$SKIP_ATHENA"; then 9483 GUITYPE=ATHENA 9484fi 9485 9486if test -z "$SKIP_NEXTAW"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9488$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9489 cflags_save=$CFLAGS 9490 CFLAGS="$CFLAGS $X_CFLAGS" 9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492/* end confdefs.h. */ 9493 9494#include <X11/Intrinsic.h> 9495#include <X11/neXtaw/Paned.h> 9496int 9497main () 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_compile "$LINENO"; then : 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9506$as_echo "yes" >&6; } 9507else 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9509$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9510fi 9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9512 CFLAGS=$cflags_save 9513fi 9514 9515if test -z "$SKIP_NEXTAW"; then 9516 GUITYPE=NEXTAW 9517fi 9518 9519if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9520 if test -n "$GUI_INC_LOC"; then 9521 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9522 fi 9523 if test -n "$GUI_LIB_LOC"; then 9524 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9525 fi 9526 9527 ldflags_save=$LDFLAGS 9528 LDFLAGS="$X_LIBS $LDFLAGS" 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9530$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9531if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 ac_check_lib_save_LIBS=$LIBS 9535LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538 9539/* Override any GCC internal prototype to avoid an error. 9540 Use char because int might match the return type of a GCC 9541 builtin and then its argument prototype would still apply. */ 9542#ifdef __cplusplus 9543extern "C" 9544#endif 9545char XShapeQueryExtension (); 9546int 9547main () 9548{ 9549return XShapeQueryExtension (); 9550 ; 9551 return 0; 9552} 9553_ACEOF 9554if ac_fn_c_try_link "$LINENO"; then : 9555 ac_cv_lib_Xext_XShapeQueryExtension=yes 9556else 9557 ac_cv_lib_Xext_XShapeQueryExtension=no 9558fi 9559rm -f core conftest.err conftest.$ac_objext \ 9560 conftest$ac_exeext conftest.$ac_ext 9561LIBS=$ac_check_lib_save_LIBS 9562fi 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9564$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9565if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9566 GUI_X_LIBS="-lXext" 9567fi 9568 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9570$as_echo_n "checking for wslen in -lw... " >&6; } 9571if ${ac_cv_lib_w_wslen+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 ac_check_lib_save_LIBS=$LIBS 9575LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578 9579/* Override any GCC internal prototype to avoid an error. 9580 Use char because int might match the return type of a GCC 9581 builtin and then its argument prototype would still apply. */ 9582#ifdef __cplusplus 9583extern "C" 9584#endif 9585char wslen (); 9586int 9587main () 9588{ 9589return wslen (); 9590 ; 9591 return 0; 9592} 9593_ACEOF 9594if ac_fn_c_try_link "$LINENO"; then : 9595 ac_cv_lib_w_wslen=yes 9596else 9597 ac_cv_lib_w_wslen=no 9598fi 9599rm -f core conftest.err conftest.$ac_objext \ 9600 conftest$ac_exeext conftest.$ac_ext 9601LIBS=$ac_check_lib_save_LIBS 9602fi 9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9604$as_echo "$ac_cv_lib_w_wslen" >&6; } 9605if test "x$ac_cv_lib_w_wslen" = xyes; then : 9606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9607fi 9608 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9610$as_echo_n "checking for dlsym in -ldl... " >&6; } 9611if ${ac_cv_lib_dl_dlsym+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 ac_check_lib_save_LIBS=$LIBS 9615LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617/* end confdefs.h. */ 9618 9619/* Override any GCC internal prototype to avoid an error. 9620 Use char because int might match the return type of a GCC 9621 builtin and then its argument prototype would still apply. */ 9622#ifdef __cplusplus 9623extern "C" 9624#endif 9625char dlsym (); 9626int 9627main () 9628{ 9629return dlsym (); 9630 ; 9631 return 0; 9632} 9633_ACEOF 9634if ac_fn_c_try_link "$LINENO"; then : 9635 ac_cv_lib_dl_dlsym=yes 9636else 9637 ac_cv_lib_dl_dlsym=no 9638fi 9639rm -f core conftest.err conftest.$ac_objext \ 9640 conftest$ac_exeext conftest.$ac_ext 9641LIBS=$ac_check_lib_save_LIBS 9642fi 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9644$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9645if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9647fi 9648 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9650$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9651if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9652 $as_echo_n "(cached) " >&6 9653else 9654 ac_check_lib_save_LIBS=$LIBS 9655LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658 9659/* Override any GCC internal prototype to avoid an error. 9660 Use char because int might match the return type of a GCC 9661 builtin and then its argument prototype would still apply. */ 9662#ifdef __cplusplus 9663extern "C" 9664#endif 9665char XmuCreateStippledPixmap (); 9666int 9667main () 9668{ 9669return XmuCreateStippledPixmap (); 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674if ac_fn_c_try_link "$LINENO"; then : 9675 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9676else 9677 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9678fi 9679rm -f core conftest.err conftest.$ac_objext \ 9680 conftest$ac_exeext conftest.$ac_ext 9681LIBS=$ac_check_lib_save_LIBS 9682fi 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9684$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9685if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9686 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9687fi 9688 9689 if test -z "$SKIP_MOTIF"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9691$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9692if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 ac_check_lib_save_LIBS=$LIBS 9696LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699 9700/* Override any GCC internal prototype to avoid an error. 9701 Use char because int might match the return type of a GCC 9702 builtin and then its argument prototype would still apply. */ 9703#ifdef __cplusplus 9704extern "C" 9705#endif 9706char XpEndJob (); 9707int 9708main () 9709{ 9710return XpEndJob (); 9711 ; 9712 return 0; 9713} 9714_ACEOF 9715if ac_fn_c_try_link "$LINENO"; then : 9716 ac_cv_lib_Xp_XpEndJob=yes 9717else 9718 ac_cv_lib_Xp_XpEndJob=no 9719fi 9720rm -f core conftest.err conftest.$ac_objext \ 9721 conftest$ac_exeext conftest.$ac_ext 9722LIBS=$ac_check_lib_save_LIBS 9723fi 9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9725$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9726if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9727 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9728fi 9729 9730 fi 9731 LDFLAGS=$ldflags_save 9732 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9734$as_echo_n "checking for extra X11 defines... " >&6; } 9735 NARROW_PROTO= 9736 rm -fr conftestdir 9737 if mkdir conftestdir; then 9738 cd conftestdir 9739 cat > Imakefile <<'EOF' 9740acfindx: 9741 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9742EOF 9743 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9744 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9745 fi 9746 cd .. 9747 rm -fr conftestdir 9748 fi 9749 if test -z "$NARROW_PROTO"; then 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9751$as_echo "no" >&6; } 9752 else 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9754$as_echo "$NARROW_PROTO" >&6; } 9755 fi 9756 9757fi 9758 9759if test "$enable_xsmp" = "yes"; then 9760 cppflags_save=$CPPFLAGS 9761 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9762 for ac_header in X11/SM/SMlib.h 9763do : 9764 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9765if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9766 cat >>confdefs.h <<_ACEOF 9767#define HAVE_X11_SM_SMLIB_H 1 9768_ACEOF 9769 9770fi 9771 9772done 9773 9774 CPPFLAGS=$cppflags_save 9775fi 9776 9777 9778if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 9779 cppflags_save=$CPPFLAGS 9780 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9781 for ac_header in X11/xpm.h X11/Sunkeysym.h 9782do : 9783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9784ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9786 cat >>confdefs.h <<_ACEOF 9787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9788_ACEOF 9789 9790fi 9791 9792done 9793 9794 9795 if test ! "$enable_xim" = "no"; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9797$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800#include <X11/Xlib.h> 9801_ACEOF 9802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9803 $EGREP "XIMText" >/dev/null 2>&1; then : 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9805$as_echo "yes" >&6; } 9806else 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 9808$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 9809fi 9810rm -f conftest* 9811 9812 fi 9813 CPPFLAGS=$cppflags_save 9814 9815 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9816 -a "x$GUITYPE" != "xNONE" ; then 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 9818$as_echo "X GUI selected; xim has been enabled" >&6; } 9819 enable_xim="yes" 9820 fi 9821fi 9822 9823if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9824 cppflags_save=$CPPFLAGS 9825 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 9827$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830 9831#include <X11/Intrinsic.h> 9832#include <X11/Xmu/Editres.h> 9833int 9834main () 9835{ 9836int i; i = 0; 9837 ; 9838 return 0; 9839} 9840_ACEOF 9841if ac_fn_c_try_compile "$LINENO"; then : 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9843$as_echo "yes" >&6; } 9844 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 9845 9846else 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9848$as_echo "no" >&6; } 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9851 CPPFLAGS=$cppflags_save 9852fi 9853 9854if test -z "$SKIP_MOTIF"; then 9855 cppflags_save=$CPPFLAGS 9856 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9857 if test "$zOSUnix" = "yes"; then 9858 xmheader="Xm/Xm.h" 9859 else 9860 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 9861 Xm/UnhighlightT.h Xm/Notebook.h" 9862 fi 9863 for ac_header in $xmheader 9864do : 9865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9866ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9867if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9868 cat >>confdefs.h <<_ACEOF 9869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9870_ACEOF 9871 9872fi 9873 9874done 9875 9876 9877 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 9879$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882#include <Xm/XpmP.h> 9883int 9884main () 9885{ 9886XpmAttributes_21 attr; 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891if ac_fn_c_try_compile "$LINENO"; then : 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9893$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 9894 9895else 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9897$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9898 9899 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9902 else 9903 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 9904 9905 fi 9906 CPPFLAGS=$cppflags_save 9907fi 9908 9909if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 9911$as_echo "no GUI selected; xim has been disabled" >&6; } 9912 enable_xim="no" 9913fi 9914if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 9916$as_echo "no GUI selected; fontset has been disabled" >&6; } 9917 enable_fontset="no" 9918fi 9919if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 9921$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 9922 enable_fontset="no" 9923fi 9924 9925if test -z "$SKIP_PHOTON"; then 9926 GUITYPE=PHOTONGUI 9927fi 9928 9929 9930 9931 9932 9933 9934if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 9935 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 9936fi 9937 9938if test "$enable_xim" = "yes"; then 9939 $as_echo "#define FEAT_XIM 1" >>confdefs.h 9940 9941fi 9942if test "$enable_fontset" = "yes"; then 9943 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 9944 9945fi 9946 9947 9948 9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 9950$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 9951case `uname` in 9952 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9953$as_echo "yes" >&6; } 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 9955$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 9956 if test "x$with_x" = "xno" ; then 9957 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9959$as_echo "yes" >&6; } 9960 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 9961 9962 else 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 9964$as_echo "no - using X11" >&6; } 9965 fi ;; 9966 9967 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9968$as_echo "no" >&6; };; 9969esac 9970 9971if test "$enable_hangulinput" = "yes"; then 9972 if test "x$GUITYPE" = "xNONE"; then 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 9974$as_echo "no GUI selected; hangul input has been disabled" >&6; } 9975 enable_hangulinput=no 9976 else 9977 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 9978 9979 HANGULIN_SRC=hangulin.c 9980 9981 HANGULIN_OBJ=objects/hangulin.o 9982 9983 fi 9984fi 9985 9986 9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 9988$as_echo_n "checking whether toupper is broken... " >&6; } 9989if ${vim_cv_toupper_broken+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 9993 if test "$cross_compiling" = yes; then : 9994 9995 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 9996 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000 10001#include "confdefs.h" 10002#include <ctype.h> 10003#if STDC_HEADERS 10004# include <stdlib.h> 10005# include <stddef.h> 10006#endif 10007main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10008 10009_ACEOF 10010if ac_fn_c_try_run "$LINENO"; then : 10011 10012 vim_cv_toupper_broken=yes 10013 10014else 10015 10016 vim_cv_toupper_broken=no 10017 10018fi 10019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10020 conftest.$ac_objext conftest.beam conftest.$ac_ext 10021fi 10022 10023fi 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10025$as_echo "$vim_cv_toupper_broken" >&6; } 10026 10027if test "x$vim_cv_toupper_broken" = "xyes" ; then 10028 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10029 10030fi 10031 10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10033$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036#include <stdio.h> 10037int 10038main () 10039{ 10040printf("(" __DATE__ " " __TIME__ ")"); 10041 ; 10042 return 0; 10043} 10044_ACEOF 10045if ac_fn_c_try_compile "$LINENO"; then : 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10047$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10048 10049else 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10051$as_echo "no" >&6; } 10052fi 10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10054 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10056$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059#include <stdio.h> 10060int 10061main () 10062{ 10063int x __attribute__((unused)); 10064 ; 10065 return 0; 10066} 10067_ACEOF 10068if ac_fn_c_try_compile "$LINENO"; then : 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10070$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10071 10072else 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10074$as_echo "no" >&6; } 10075fi 10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10077 10078ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10079if test "x$ac_cv_header_elf_h" = xyes; then : 10080 HAS_ELF=1 10081fi 10082 10083 10084if test "$HAS_ELF" = 1; then 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10086$as_echo_n "checking for main in -lelf... " >&6; } 10087if ${ac_cv_lib_elf_main+:} false; then : 10088 $as_echo_n "(cached) " >&6 10089else 10090 ac_check_lib_save_LIBS=$LIBS 10091LIBS="-lelf $LIBS" 10092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094 10095 10096int 10097main () 10098{ 10099return main (); 10100 ; 10101 return 0; 10102} 10103_ACEOF 10104if ac_fn_c_try_link "$LINENO"; then : 10105 ac_cv_lib_elf_main=yes 10106else 10107 ac_cv_lib_elf_main=no 10108fi 10109rm -f core conftest.err conftest.$ac_objext \ 10110 conftest$ac_exeext conftest.$ac_ext 10111LIBS=$ac_check_lib_save_LIBS 10112fi 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10114$as_echo "$ac_cv_lib_elf_main" >&6; } 10115if test "x$ac_cv_lib_elf_main" = xyes; then : 10116 cat >>confdefs.h <<_ACEOF 10117#define HAVE_LIBELF 1 10118_ACEOF 10119 10120 LIBS="-lelf $LIBS" 10121 10122fi 10123 10124fi 10125 10126ac_header_dirent=no 10127for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10128 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10130$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10131if eval \${$as_ac_Header+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136#include <sys/types.h> 10137#include <$ac_hdr> 10138 10139int 10140main () 10141{ 10142if ((DIR *) 0) 10143return 0; 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148if ac_fn_c_try_compile "$LINENO"; then : 10149 eval "$as_ac_Header=yes" 10150else 10151 eval "$as_ac_Header=no" 10152fi 10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10154fi 10155eval ac_res=\$$as_ac_Header 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10157$as_echo "$ac_res" >&6; } 10158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10159 cat >>confdefs.h <<_ACEOF 10160#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10161_ACEOF 10162 10163ac_header_dirent=$ac_hdr; break 10164fi 10165 10166done 10167# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10168if test $ac_header_dirent = dirent.h; then 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10170$as_echo_n "checking for library containing opendir... " >&6; } 10171if ${ac_cv_search_opendir+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 ac_func_search_save_LIBS=$LIBS 10175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177 10178/* Override any GCC internal prototype to avoid an error. 10179 Use char because int might match the return type of a GCC 10180 builtin and then its argument prototype would still apply. */ 10181#ifdef __cplusplus 10182extern "C" 10183#endif 10184char opendir (); 10185int 10186main () 10187{ 10188return opendir (); 10189 ; 10190 return 0; 10191} 10192_ACEOF 10193for ac_lib in '' dir; do 10194 if test -z "$ac_lib"; then 10195 ac_res="none required" 10196 else 10197 ac_res=-l$ac_lib 10198 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10199 fi 10200 if ac_fn_c_try_link "$LINENO"; then : 10201 ac_cv_search_opendir=$ac_res 10202fi 10203rm -f core conftest.err conftest.$ac_objext \ 10204 conftest$ac_exeext 10205 if ${ac_cv_search_opendir+:} false; then : 10206 break 10207fi 10208done 10209if ${ac_cv_search_opendir+:} false; then : 10210 10211else 10212 ac_cv_search_opendir=no 10213fi 10214rm conftest.$ac_ext 10215LIBS=$ac_func_search_save_LIBS 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10218$as_echo "$ac_cv_search_opendir" >&6; } 10219ac_res=$ac_cv_search_opendir 10220if test "$ac_res" != no; then : 10221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10222 10223fi 10224 10225else 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10227$as_echo_n "checking for library containing opendir... " >&6; } 10228if ${ac_cv_search_opendir+:} false; then : 10229 $as_echo_n "(cached) " >&6 10230else 10231 ac_func_search_save_LIBS=$LIBS 10232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234 10235/* Override any GCC internal prototype to avoid an error. 10236 Use char because int might match the return type of a GCC 10237 builtin and then its argument prototype would still apply. */ 10238#ifdef __cplusplus 10239extern "C" 10240#endif 10241char opendir (); 10242int 10243main () 10244{ 10245return opendir (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250for ac_lib in '' x; do 10251 if test -z "$ac_lib"; then 10252 ac_res="none required" 10253 else 10254 ac_res=-l$ac_lib 10255 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10256 fi 10257 if ac_fn_c_try_link "$LINENO"; then : 10258 ac_cv_search_opendir=$ac_res 10259fi 10260rm -f core conftest.err conftest.$ac_objext \ 10261 conftest$ac_exeext 10262 if ${ac_cv_search_opendir+:} false; then : 10263 break 10264fi 10265done 10266if ${ac_cv_search_opendir+:} false; then : 10267 10268else 10269 ac_cv_search_opendir=no 10270fi 10271rm conftest.$ac_ext 10272LIBS=$ac_func_search_save_LIBS 10273fi 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10275$as_echo "$ac_cv_search_opendir" >&6; } 10276ac_res=$ac_cv_search_opendir 10277if test "$ac_res" != no; then : 10278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10279 10280fi 10281 10282fi 10283 10284 10285if test $ac_cv_header_sys_wait_h = no; then 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10287$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290#include <sys/wait.h> 10291int 10292main () 10293{ 10294union wait xx, yy; xx = yy 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO"; then : 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10301$as_echo "yes" >&6; } 10302 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10303 10304 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10305 10306else 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10308$as_echo "no" >&6; } 10309fi 10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10311fi 10312 10313for ac_header in stdint.h stdlib.h string.h \ 10314 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10315 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10316 termio.h iconv.h inttypes.h langinfo.h math.h \ 10317 unistd.h stropts.h errno.h sys/resource.h \ 10318 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10319 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10320 utime.h sys/param.h libintl.h libgen.h \ 10321 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10322 sys/access.h sys/sysinfo.h wchar.h wctype.h 10323do : 10324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10327 cat >>confdefs.h <<_ACEOF 10328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10329_ACEOF 10330 10331fi 10332 10333done 10334 10335 10336for ac_header in sys/ptem.h 10337do : 10338 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10339# include <sys/stream.h> 10340#endif 10341" 10342if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10343 cat >>confdefs.h <<_ACEOF 10344#define HAVE_SYS_PTEM_H 1 10345_ACEOF 10346 10347fi 10348 10349done 10350 10351 10352for ac_header in sys/sysctl.h 10353do : 10354 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10355# include <sys/param.h> 10356#endif 10357" 10358if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10359 cat >>confdefs.h <<_ACEOF 10360#define HAVE_SYS_SYSCTL_H 1 10361_ACEOF 10362 10363fi 10364 10365done 10366 10367 10368 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10370$as_echo_n "checking for pthread_np.h... " >&6; } 10371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373 10374#include <pthread.h> 10375#include <pthread_np.h> 10376int 10377main () 10378{ 10379int i; i = 0; 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_compile "$LINENO"; then : 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10386$as_echo "yes" >&6; } 10387 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10388 10389else 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10391$as_echo "no" >&6; } 10392fi 10393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10394 10395for ac_header in strings.h 10396do : 10397 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10398if test "x$ac_cv_header_strings_h" = xyes; then : 10399 cat >>confdefs.h <<_ACEOF 10400#define HAVE_STRINGS_H 1 10401_ACEOF 10402 10403fi 10404 10405done 10406 10407if test "x$MACOSX" = "xyes"; then 10408 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10409 10410else 10411 10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10413$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10414cppflags_save=$CPPFLAGS 10415CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418 10419#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10420# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10421 /* but don't do it on AIX 5.1 (Uribarri) */ 10422#endif 10423#ifdef HAVE_XM_XM_H 10424# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10425#endif 10426#ifdef HAVE_STRING_H 10427# include <string.h> 10428#endif 10429#if defined(HAVE_STRINGS_H) 10430# include <strings.h> 10431#endif 10432 10433int 10434main () 10435{ 10436int i; i = 0; 10437 ; 10438 return 0; 10439} 10440_ACEOF 10441if ac_fn_c_try_compile "$LINENO"; then : 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10443$as_echo "yes" >&6; } 10444else 10445 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10446 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10448$as_echo "no" >&6; } 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10451CPPFLAGS=$cppflags_save 10452fi 10453 10454if test $ac_cv_c_compiler_gnu = yes; then 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10456$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10457if ${ac_cv_prog_gcc_traditional+:} false; then : 10458 $as_echo_n "(cached) " >&6 10459else 10460 ac_pattern="Autoconf.*'x'" 10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10462/* end confdefs.h. */ 10463#include <sgtty.h> 10464Autoconf TIOCGETP 10465_ACEOF 10466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10467 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10468 ac_cv_prog_gcc_traditional=yes 10469else 10470 ac_cv_prog_gcc_traditional=no 10471fi 10472rm -f conftest* 10473 10474 10475 if test $ac_cv_prog_gcc_traditional = no; then 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478#include <termio.h> 10479Autoconf TCGETA 10480_ACEOF 10481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10482 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10483 ac_cv_prog_gcc_traditional=yes 10484fi 10485rm -f conftest* 10486 10487 fi 10488fi 10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10490$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10491 if test $ac_cv_prog_gcc_traditional = yes; then 10492 CC="$CC -traditional" 10493 fi 10494fi 10495 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10497$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10498if ${ac_cv_c_const+:} false; then : 10499 $as_echo_n "(cached) " >&6 10500else 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503 10504int 10505main () 10506{ 10507 10508#ifndef __cplusplus 10509 /* Ultrix mips cc rejects this sort of thing. */ 10510 typedef int charset[2]; 10511 const charset cs = { 0, 0 }; 10512 /* SunOS 4.1.1 cc rejects this. */ 10513 char const *const *pcpcc; 10514 char **ppc; 10515 /* NEC SVR4.0.2 mips cc rejects this. */ 10516 struct point {int x, y;}; 10517 static struct point const zero = {0,0}; 10518 /* AIX XL C 1.02.0.0 rejects this. 10519 It does not let you subtract one const X* pointer from another in 10520 an arm of an if-expression whose if-part is not a constant 10521 expression */ 10522 const char *g = "string"; 10523 pcpcc = &g + (g ? g-g : 0); 10524 /* HPUX 7.0 cc rejects these. */ 10525 ++pcpcc; 10526 ppc = (char**) pcpcc; 10527 pcpcc = (char const *const *) ppc; 10528 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10529 char tx; 10530 char *t = &tx; 10531 char const *s = 0 ? (char *) 0 : (char const *) 0; 10532 10533 *t++ = 0; 10534 if (s) return 0; 10535 } 10536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10537 int x[] = {25, 17}; 10538 const int *foo = &x[0]; 10539 ++foo; 10540 } 10541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10542 typedef const int *iptr; 10543 iptr p = 0; 10544 ++p; 10545 } 10546 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10548 struct s { int j; const int *ap[3]; } bx; 10549 struct s *b = &bx; b->j = 5; 10550 } 10551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10552 const int foo = 10; 10553 if (!foo) return 0; 10554 } 10555 return !cs[0] && !zero.x; 10556#endif 10557 10558 ; 10559 return 0; 10560} 10561_ACEOF 10562if ac_fn_c_try_compile "$LINENO"; then : 10563 ac_cv_c_const=yes 10564else 10565 ac_cv_c_const=no 10566fi 10567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10568fi 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10570$as_echo "$ac_cv_c_const" >&6; } 10571if test $ac_cv_c_const = no; then 10572 10573$as_echo "#define const /**/" >>confdefs.h 10574 10575fi 10576 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10578$as_echo_n "checking for working volatile... " >&6; } 10579if ${ac_cv_c_volatile+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10583/* end confdefs.h. */ 10584 10585int 10586main () 10587{ 10588 10589volatile int x; 10590int * volatile y = (int *) 0; 10591return !x && !y; 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_compile "$LINENO"; then : 10597 ac_cv_c_volatile=yes 10598else 10599 ac_cv_c_volatile=no 10600fi 10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10602fi 10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10604$as_echo "$ac_cv_c_volatile" >&6; } 10605if test $ac_cv_c_volatile = no; then 10606 10607$as_echo "#define volatile /**/" >>confdefs.h 10608 10609fi 10610 10611ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10612if test "x$ac_cv_type_mode_t" = xyes; then : 10613 10614else 10615 10616cat >>confdefs.h <<_ACEOF 10617#define mode_t int 10618_ACEOF 10619 10620fi 10621 10622ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10623if test "x$ac_cv_type_off_t" = xyes; then : 10624 10625else 10626 10627cat >>confdefs.h <<_ACEOF 10628#define off_t long int 10629_ACEOF 10630 10631fi 10632 10633ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10634if test "x$ac_cv_type_pid_t" = xyes; then : 10635 10636else 10637 10638cat >>confdefs.h <<_ACEOF 10639#define pid_t int 10640_ACEOF 10641 10642fi 10643 10644ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10645if test "x$ac_cv_type_size_t" = xyes; then : 10646 10647else 10648 10649cat >>confdefs.h <<_ACEOF 10650#define size_t unsigned int 10651_ACEOF 10652 10653fi 10654 10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10656$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10657if ${ac_cv_type_uid_t+:} false; then : 10658 $as_echo_n "(cached) " >&6 10659else 10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662#include <sys/types.h> 10663 10664_ACEOF 10665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10666 $EGREP "uid_t" >/dev/null 2>&1; then : 10667 ac_cv_type_uid_t=yes 10668else 10669 ac_cv_type_uid_t=no 10670fi 10671rm -f conftest* 10672 10673fi 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10675$as_echo "$ac_cv_type_uid_t" >&6; } 10676if test $ac_cv_type_uid_t = no; then 10677 10678$as_echo "#define uid_t int" >>confdefs.h 10679 10680 10681$as_echo "#define gid_t int" >>confdefs.h 10682 10683fi 10684 10685ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10686case $ac_cv_c_uint32_t in #( 10687 no|yes) ;; #( 10688 *) 10689 10690$as_echo "#define _UINT32_T 1" >>confdefs.h 10691 10692 10693cat >>confdefs.h <<_ACEOF 10694#define uint32_t $ac_cv_c_uint32_t 10695_ACEOF 10696;; 10697 esac 10698 10699 10700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10701$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10702if ${ac_cv_header_time+:} false; then : 10703 $as_echo_n "(cached) " >&6 10704else 10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10706/* end confdefs.h. */ 10707#include <sys/types.h> 10708#include <sys/time.h> 10709#include <time.h> 10710 10711int 10712main () 10713{ 10714if ((struct tm *) 0) 10715return 0; 10716 ; 10717 return 0; 10718} 10719_ACEOF 10720if ac_fn_c_try_compile "$LINENO"; then : 10721 ac_cv_header_time=yes 10722else 10723 ac_cv_header_time=no 10724fi 10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10726fi 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10728$as_echo "$ac_cv_header_time" >&6; } 10729if test $ac_cv_header_time = yes; then 10730 10731$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10732 10733fi 10734 10735ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10736if test "x$ac_cv_type_ino_t" = xyes; then : 10737 10738else 10739 10740cat >>confdefs.h <<_ACEOF 10741#define ino_t long 10742_ACEOF 10743 10744fi 10745 10746ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10747if test "x$ac_cv_type_dev_t" = xyes; then : 10748 10749else 10750 10751cat >>confdefs.h <<_ACEOF 10752#define dev_t unsigned 10753_ACEOF 10754 10755fi 10756 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10758$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10759if ${ac_cv_c_bigendian+:} false; then : 10760 $as_echo_n "(cached) " >&6 10761else 10762 ac_cv_c_bigendian=unknown 10763 # See if we're dealing with a universal compiler. 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766#ifndef __APPLE_CC__ 10767 not a universal capable compiler 10768 #endif 10769 typedef int dummy; 10770 10771_ACEOF 10772if ac_fn_c_try_compile "$LINENO"; then : 10773 10774 # Check for potential -arch flags. It is not universal unless 10775 # there are at least two -arch flags with different values. 10776 ac_arch= 10777 ac_prev= 10778 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10779 if test -n "$ac_prev"; then 10780 case $ac_word in 10781 i?86 | x86_64 | ppc | ppc64) 10782 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10783 ac_arch=$ac_word 10784 else 10785 ac_cv_c_bigendian=universal 10786 break 10787 fi 10788 ;; 10789 esac 10790 ac_prev= 10791 elif test "x$ac_word" = "x-arch"; then 10792 ac_prev=arch 10793 fi 10794 done 10795fi 10796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10797 if test $ac_cv_c_bigendian = unknown; then 10798 # See if sys/param.h defines the BYTE_ORDER macro. 10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10800/* end confdefs.h. */ 10801#include <sys/types.h> 10802 #include <sys/param.h> 10803 10804int 10805main () 10806{ 10807#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10808 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10809 && LITTLE_ENDIAN) 10810 bogus endian macros 10811 #endif 10812 10813 ; 10814 return 0; 10815} 10816_ACEOF 10817if ac_fn_c_try_compile "$LINENO"; then : 10818 # It does; now see whether it defined to BIG_ENDIAN or not. 10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821#include <sys/types.h> 10822 #include <sys/param.h> 10823 10824int 10825main () 10826{ 10827#if BYTE_ORDER != BIG_ENDIAN 10828 not big endian 10829 #endif 10830 10831 ; 10832 return 0; 10833} 10834_ACEOF 10835if ac_fn_c_try_compile "$LINENO"; then : 10836 ac_cv_c_bigendian=yes 10837else 10838 ac_cv_c_bigendian=no 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10841fi 10842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10843 fi 10844 if test $ac_cv_c_bigendian = unknown; then 10845 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10847/* end confdefs.h. */ 10848#include <limits.h> 10849 10850int 10851main () 10852{ 10853#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10854 bogus endian macros 10855 #endif 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861if ac_fn_c_try_compile "$LINENO"; then : 10862 # It does; now see whether it defined to _BIG_ENDIAN or not. 10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10864/* end confdefs.h. */ 10865#include <limits.h> 10866 10867int 10868main () 10869{ 10870#ifndef _BIG_ENDIAN 10871 not big endian 10872 #endif 10873 10874 ; 10875 return 0; 10876} 10877_ACEOF 10878if ac_fn_c_try_compile "$LINENO"; then : 10879 ac_cv_c_bigendian=yes 10880else 10881 ac_cv_c_bigendian=no 10882fi 10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10884fi 10885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10886 fi 10887 if test $ac_cv_c_bigendian = unknown; then 10888 # Compile a test program. 10889 if test "$cross_compiling" = yes; then : 10890 # Try to guess by grepping values from an object file. 10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892/* end confdefs.h. */ 10893short int ascii_mm[] = 10894 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10895 short int ascii_ii[] = 10896 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10897 int use_ascii (int i) { 10898 return ascii_mm[i] + ascii_ii[i]; 10899 } 10900 short int ebcdic_ii[] = 10901 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10902 short int ebcdic_mm[] = 10903 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10904 int use_ebcdic (int i) { 10905 return ebcdic_mm[i] + ebcdic_ii[i]; 10906 } 10907 extern int foo; 10908 10909int 10910main () 10911{ 10912return use_ascii (foo) == use_ebcdic (foo); 10913 ; 10914 return 0; 10915} 10916_ACEOF 10917if ac_fn_c_try_compile "$LINENO"; then : 10918 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10919 ac_cv_c_bigendian=yes 10920 fi 10921 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10922 if test "$ac_cv_c_bigendian" = unknown; then 10923 ac_cv_c_bigendian=no 10924 else 10925 # finding both strings is unlikely to happen, but who knows? 10926 ac_cv_c_bigendian=unknown 10927 fi 10928 fi 10929fi 10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10931else 10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10933/* end confdefs.h. */ 10934$ac_includes_default 10935int 10936main () 10937{ 10938 10939 /* Are we little or big endian? From Harbison&Steele. */ 10940 union 10941 { 10942 long int l; 10943 char c[sizeof (long int)]; 10944 } u; 10945 u.l = 1; 10946 return u.c[sizeof (long int) - 1] == 1; 10947 10948 ; 10949 return 0; 10950} 10951_ACEOF 10952if ac_fn_c_try_run "$LINENO"; then : 10953 ac_cv_c_bigendian=no 10954else 10955 ac_cv_c_bigendian=yes 10956fi 10957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10958 conftest.$ac_objext conftest.beam conftest.$ac_ext 10959fi 10960 10961 fi 10962fi 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10964$as_echo "$ac_cv_c_bigendian" >&6; } 10965 case $ac_cv_c_bigendian in #( 10966 yes) 10967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10968;; #( 10969 no) 10970 ;; #( 10971 universal) 10972 10973$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10974 10975 ;; #( 10976 *) 10977 as_fn_error $? "unknown endianness 10978 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10979 esac 10980 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 10982$as_echo_n "checking for inline... " >&6; } 10983if ${ac_cv_c_inline+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985else 10986 ac_cv_c_inline=no 10987for ac_kw in inline __inline__ __inline; do 10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10989/* end confdefs.h. */ 10990#ifndef __cplusplus 10991typedef int foo_t; 10992static $ac_kw foo_t static_foo () {return 0; } 10993$ac_kw foo_t foo () {return 0; } 10994#endif 10995 10996_ACEOF 10997if ac_fn_c_try_compile "$LINENO"; then : 10998 ac_cv_c_inline=$ac_kw 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11001 test "$ac_cv_c_inline" != no && break 11002done 11003 11004fi 11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11006$as_echo "$ac_cv_c_inline" >&6; } 11007 11008case $ac_cv_c_inline in 11009 inline | yes) ;; 11010 *) 11011 case $ac_cv_c_inline in 11012 no) ac_val=;; 11013 *) ac_val=$ac_cv_c_inline;; 11014 esac 11015 cat >>confdefs.h <<_ACEOF 11016#ifndef __cplusplus 11017#define inline $ac_val 11018#endif 11019_ACEOF 11020 ;; 11021esac 11022 11023 11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11025$as_echo_n "checking for rlim_t... " >&6; } 11026if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11028$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11029else 11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11031/* end confdefs.h. */ 11032 11033#include <sys/types.h> 11034#if STDC_HEADERS 11035# include <stdlib.h> 11036# include <stddef.h> 11037#endif 11038#ifdef HAVE_SYS_RESOURCE_H 11039# include <sys/resource.h> 11040#endif 11041 11042_ACEOF 11043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11044 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11045 ac_cv_type_rlim_t=yes 11046else 11047 ac_cv_type_rlim_t=no 11048fi 11049rm -f conftest* 11050 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11052$as_echo "$ac_cv_type_rlim_t" >&6; } 11053fi 11054if test $ac_cv_type_rlim_t = no; then 11055 cat >> confdefs.h <<\EOF 11056#define rlim_t unsigned long 11057EOF 11058fi 11059 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11061$as_echo_n "checking for stack_t... " >&6; } 11062if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11064$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11065else 11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067/* end confdefs.h. */ 11068 11069#include <sys/types.h> 11070#if STDC_HEADERS 11071# include <stdlib.h> 11072# include <stddef.h> 11073#endif 11074#include <signal.h> 11075 11076_ACEOF 11077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11078 $EGREP "stack_t" >/dev/null 2>&1; then : 11079 ac_cv_type_stack_t=yes 11080else 11081 ac_cv_type_stack_t=no 11082fi 11083rm -f conftest* 11084 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11086$as_echo "$ac_cv_type_stack_t" >&6; } 11087fi 11088if test $ac_cv_type_stack_t = no; then 11089 cat >> confdefs.h <<\EOF 11090#define stack_t struct sigaltstack 11091EOF 11092fi 11093 11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11095$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099#include <sys/types.h> 11100#if STDC_HEADERS 11101# include <stdlib.h> 11102# include <stddef.h> 11103#endif 11104#include <signal.h> 11105#include "confdefs.h" 11106 11107int 11108main () 11109{ 11110stack_t sigstk; sigstk.ss_base = 0; 11111 ; 11112 return 0; 11113} 11114_ACEOF 11115if ac_fn_c_try_compile "$LINENO"; then : 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11117$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11118 11119else 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11121$as_echo "no" >&6; } 11122fi 11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11124 11125olibs="$LIBS" 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11127$as_echo_n "checking --with-tlib argument... " >&6; } 11128 11129# Check whether --with-tlib was given. 11130if test "${with_tlib+set}" = set; then : 11131 withval=$with_tlib; 11132fi 11133 11134if test -n "$with_tlib"; then 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11136$as_echo "$with_tlib" >&6; } 11137 LIBS="$LIBS -l$with_tlib" 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11139$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11141/* end confdefs.h. */ 11142 11143int 11144main () 11145{ 11146 11147 ; 11148 return 0; 11149} 11150_ACEOF 11151if ac_fn_c_try_link "$LINENO"; then : 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11153$as_echo "OK" >&6; } 11154else 11155 as_fn_error $? "FAILED" "$LINENO" 5 11156fi 11157rm -f core conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159 olibs="$LIBS" 11160else 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11162$as_echo "empty: automatic terminal library selection" >&6; } 11163 case "`uname -s 2>/dev/null`" in 11164 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11165 *) tlibs="tinfo ncurses termlib termcap curses";; 11166 esac 11167 for libname in $tlibs; do 11168 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11170$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11171if eval \${$as_ac_Lib+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173else 11174 ac_check_lib_save_LIBS=$LIBS 11175LIBS="-l${libname} $LIBS" 11176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11177/* end confdefs.h. */ 11178 11179/* Override any GCC internal prototype to avoid an error. 11180 Use char because int might match the return type of a GCC 11181 builtin and then its argument prototype would still apply. */ 11182#ifdef __cplusplus 11183extern "C" 11184#endif 11185char tgetent (); 11186int 11187main () 11188{ 11189return tgetent (); 11190 ; 11191 return 0; 11192} 11193_ACEOF 11194if ac_fn_c_try_link "$LINENO"; then : 11195 eval "$as_ac_Lib=yes" 11196else 11197 eval "$as_ac_Lib=no" 11198fi 11199rm -f core conftest.err conftest.$ac_objext \ 11200 conftest$ac_exeext conftest.$ac_ext 11201LIBS=$ac_check_lib_save_LIBS 11202fi 11203eval ac_res=\$$as_ac_Lib 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11205$as_echo "$ac_res" >&6; } 11206if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11207 cat >>confdefs.h <<_ACEOF 11208#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11209_ACEOF 11210 11211 LIBS="-l${libname} $LIBS" 11212 11213fi 11214 11215 if test "x$olibs" != "x$LIBS"; then 11216 if test "$cross_compiling" = yes; then : 11217 res="FAIL" 11218else 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220/* end confdefs.h. */ 11221 11222#ifdef HAVE_TERMCAP_H 11223# include <termcap.h> 11224#endif 11225#if STDC_HEADERS 11226# include <stdlib.h> 11227# include <stddef.h> 11228#endif 11229main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11230_ACEOF 11231if ac_fn_c_try_run "$LINENO"; then : 11232 res="OK" 11233else 11234 res="FAIL" 11235fi 11236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11237 conftest.$ac_objext conftest.beam conftest.$ac_ext 11238fi 11239 11240 if test "$res" = "OK"; then 11241 break 11242 fi 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11244$as_echo "$libname library is not usable" >&6; } 11245 LIBS="$olibs" 11246 fi 11247 done 11248 if test "x$olibs" = "x$LIBS"; then 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11250$as_echo "no terminal library found" >&6; } 11251 fi 11252fi 11253 11254if test "x$olibs" = "x$LIBS"; then 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11256$as_echo_n "checking for tgetent()... " >&6; } 11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11258/* end confdefs.h. */ 11259 11260int 11261main () 11262{ 11263char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_link "$LINENO"; then : 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11270$as_echo "yes" >&6; } 11271else 11272 as_fn_error $? "NOT FOUND! 11273 You need to install a terminal library; for example ncurses. 11274 Or specify the name of the library with --with-tlib." "$LINENO" 5 11275fi 11276rm -f core conftest.err conftest.$ac_objext \ 11277 conftest$ac_exeext conftest.$ac_ext 11278fi 11279 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11281$as_echo_n "checking whether we talk terminfo... " >&6; } 11282if ${vim_cv_terminfo+:} false; then : 11283 $as_echo_n "(cached) " >&6 11284else 11285 11286 if test "$cross_compiling" = yes; then : 11287 11288 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11289 11290else 11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292/* end confdefs.h. */ 11293 11294#include "confdefs.h" 11295#ifdef HAVE_TERMCAP_H 11296# include <termcap.h> 11297#endif 11298#ifdef HAVE_STRING_H 11299# include <string.h> 11300#endif 11301#if STDC_HEADERS 11302# include <stdlib.h> 11303# include <stddef.h> 11304#endif 11305main() 11306{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11307 11308_ACEOF 11309if ac_fn_c_try_run "$LINENO"; then : 11310 11311 vim_cv_terminfo=no 11312 11313else 11314 11315 vim_cv_terminfo=yes 11316 11317fi 11318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11319 conftest.$ac_objext conftest.beam conftest.$ac_ext 11320fi 11321 11322 11323fi 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11325$as_echo "$vim_cv_terminfo" >&6; } 11326 11327if test "x$vim_cv_terminfo" = "xyes" ; then 11328 $as_echo "#define TERMINFO 1" >>confdefs.h 11329 11330fi 11331 11332if test "x$olibs" != "x$LIBS"; then 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11334$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11335if ${vim_cv_tgent+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 11339 if test "$cross_compiling" = yes; then : 11340 11341 as_fn_error $? "failed to compile test program." "$LINENO" 5 11342 11343else 11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346 11347#include "confdefs.h" 11348#ifdef HAVE_TERMCAP_H 11349# include <termcap.h> 11350#endif 11351#if STDC_HEADERS 11352# include <stdlib.h> 11353# include <stddef.h> 11354#endif 11355main() 11356{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11357 11358_ACEOF 11359if ac_fn_c_try_run "$LINENO"; then : 11360 11361 vim_cv_tgent=zero 11362 11363else 11364 11365 vim_cv_tgent=non-zero 11366 11367fi 11368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11369 conftest.$ac_objext conftest.beam conftest.$ac_ext 11370fi 11371 11372 11373fi 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 11375$as_echo "$vim_cv_tgent" >&6; } 11376 11377 if test "x$vim_cv_tgent" = "xzero" ; then 11378 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11379 11380 fi 11381fi 11382 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11384$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11386/* end confdefs.h. */ 11387 11388#ifdef HAVE_TERMCAP_H 11389# include <termcap.h> 11390#endif 11391 11392int 11393main () 11394{ 11395ospeed = 20000 11396 ; 11397 return 0; 11398} 11399_ACEOF 11400if ac_fn_c_try_link "$LINENO"; then : 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11402$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11403 11404else 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11406$as_echo "no" >&6; } 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11408$as_echo_n "checking whether ospeed can be extern... " >&6; } 11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11410/* end confdefs.h. */ 11411 11412#ifdef HAVE_TERMCAP_H 11413# include <termcap.h> 11414#endif 11415extern short ospeed; 11416 11417int 11418main () 11419{ 11420ospeed = 20000 11421 ; 11422 return 0; 11423} 11424_ACEOF 11425if ac_fn_c_try_link "$LINENO"; then : 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11427$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11428 11429else 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11431$as_echo "no" >&6; } 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435 11436fi 11437rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11441$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11443/* end confdefs.h. */ 11444 11445#ifdef HAVE_TERMCAP_H 11446# include <termcap.h> 11447#endif 11448 11449int 11450main () 11451{ 11452if (UP == 0 && BC == 0) PC = 1 11453 ; 11454 return 0; 11455} 11456_ACEOF 11457if ac_fn_c_try_link "$LINENO"; then : 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11459$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11460 11461else 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11463$as_echo "no" >&6; } 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11465$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11467/* end confdefs.h. */ 11468 11469#ifdef HAVE_TERMCAP_H 11470# include <termcap.h> 11471#endif 11472extern char *UP, *BC, PC; 11473 11474int 11475main () 11476{ 11477if (UP == 0 && BC == 0) PC = 1 11478 ; 11479 return 0; 11480} 11481_ACEOF 11482if ac_fn_c_try_link "$LINENO"; then : 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11484$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11485 11486else 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11488$as_echo "no" >&6; } 11489fi 11490rm -f core conftest.err conftest.$ac_objext \ 11491 conftest$ac_exeext conftest.$ac_ext 11492 11493fi 11494rm -f core conftest.err conftest.$ac_objext \ 11495 conftest$ac_exeext conftest.$ac_ext 11496 11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11498$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11500/* end confdefs.h. */ 11501 11502#ifdef HAVE_TERMCAP_H 11503# include <termcap.h> 11504#endif 11505 11506int 11507main () 11508{ 11509extern int xx(); tputs("test", 1, (outfuntype)xx) 11510 ; 11511 return 0; 11512} 11513_ACEOF 11514if ac_fn_c_try_compile "$LINENO"; then : 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11516$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11517 11518else 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11520$as_echo "no" >&6; } 11521fi 11522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11523 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11525$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527/* end confdefs.h. */ 11528 11529#include <sys/types.h> 11530#include <sys/time.h> 11531#include <sys/select.h> 11532int 11533main () 11534{ 11535 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540if ac_fn_c_try_compile "$LINENO"; then : 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11542$as_echo "yes" >&6; } 11543 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11544 11545else 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11547$as_echo "no" >&6; } 11548fi 11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11550 11551 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11553$as_echo_n "checking for /dev/ptc... " >&6; } 11554if test -r /dev/ptc; then 11555 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11556 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11558$as_echo "yes" >&6; } 11559else 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561$as_echo "no" >&6; } 11562fi 11563 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11565$as_echo_n "checking for SVR4 ptys... " >&6; } 11566if test -c /dev/ptmx ; then 11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11568/* end confdefs.h. */ 11569 11570int 11571main () 11572{ 11573ptsname(0);grantpt(0);unlockpt(0); 11574 ; 11575 return 0; 11576} 11577_ACEOF 11578if ac_fn_c_try_link "$LINENO"; then : 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11580$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11581 11582else 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584$as_echo "no" >&6; } 11585fi 11586rm -f core conftest.err conftest.$ac_objext \ 11587 conftest$ac_exeext conftest.$ac_ext 11588else 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11590$as_echo "no" >&6; } 11591fi 11592 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11594$as_echo_n "checking for ptyranges... " >&6; } 11595if test -d /dev/ptym ; then 11596 pdir='/dev/ptym' 11597else 11598 pdir='/dev' 11599fi 11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11601/* end confdefs.h. */ 11602#ifdef M_UNIX 11603 yes; 11604#endif 11605 11606_ACEOF 11607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11608 $EGREP "yes" >/dev/null 2>&1; then : 11609 ptys=`echo /dev/ptyp??` 11610else 11611 ptys=`echo $pdir/pty??` 11612fi 11613rm -f conftest* 11614 11615if test "$ptys" != "$pdir/pty??" ; then 11616 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11617 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11618 cat >>confdefs.h <<_ACEOF 11619#define PTYRANGE0 "$p0" 11620_ACEOF 11621 11622 cat >>confdefs.h <<_ACEOF 11623#define PTYRANGE1 "$p1" 11624_ACEOF 11625 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11627$as_echo "$p0 / $p1" >&6; } 11628else 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11630$as_echo "don't know" >&6; } 11631fi 11632 11633rm -f conftest_grp 11634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11635$as_echo_n "checking default tty permissions/group... " >&6; } 11636if ${vim_cv_tty_group+:} false; then : 11637 $as_echo_n "(cached) " >&6 11638else 11639 11640 if test "$cross_compiling" = yes; then : 11641 11642 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11643 11644else 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647 11648#include "confdefs.h" 11649#include <sys/types.h> 11650#if STDC_HEADERS 11651# include <stdlib.h> 11652# include <stddef.h> 11653#endif 11654#ifdef HAVE_UNISTD_H 11655#include <unistd.h> 11656#endif 11657#include <sys/stat.h> 11658#include <stdio.h> 11659main() 11660{ 11661 struct stat sb; 11662 char *x,*ttyname(); 11663 int om, m; 11664 FILE *fp; 11665 11666 if (!(x = ttyname(0))) exit(1); 11667 if (stat(x, &sb)) exit(1); 11668 om = sb.st_mode; 11669 if (om & 002) exit(0); 11670 m = system("mesg y"); 11671 if (m == -1 || m == 127) exit(1); 11672 if (stat(x, &sb)) exit(1); 11673 m = sb.st_mode; 11674 if (chmod(x, om)) exit(1); 11675 if (m & 002) exit(0); 11676 if (sb.st_gid == getgid()) exit(1); 11677 if (!(fp=fopen("conftest_grp", "w"))) 11678 exit(1); 11679 fprintf(fp, "%d\n", sb.st_gid); 11680 fclose(fp); 11681 exit(0); 11682} 11683 11684_ACEOF 11685if ac_fn_c_try_run "$LINENO"; then : 11686 11687 if test -f conftest_grp; then 11688 vim_cv_tty_group=`cat conftest_grp` 11689 if test "x$vim_cv_tty_mode" = "x" ; then 11690 vim_cv_tty_mode=0620 11691 fi 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11693$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11694 else 11695 vim_cv_tty_group=world 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11697$as_echo "ptys are world accessible" >&6; } 11698 fi 11699 11700else 11701 11702 vim_cv_tty_group=world 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11704$as_echo "can't determine - assume ptys are world accessible" >&6; } 11705 11706fi 11707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11708 conftest.$ac_objext conftest.beam conftest.$ac_ext 11709fi 11710 11711 11712fi 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11714$as_echo "$vim_cv_tty_group" >&6; } 11715rm -f conftest_grp 11716 11717if test "x$vim_cv_tty_group" != "xworld" ; then 11718 cat >>confdefs.h <<_ACEOF 11719#define PTYGROUP $vim_cv_tty_group 11720_ACEOF 11721 11722 if test "x$vim_cv_tty_mode" = "x" ; then 11723 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 11724 else 11725 $as_echo "#define PTYMODE 0620" >>confdefs.h 11726 11727 fi 11728fi 11729 11730 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11732$as_echo_n "checking return type of signal handlers... " >&6; } 11733if ${ac_cv_type_signal+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738#include <sys/types.h> 11739#include <signal.h> 11740 11741int 11742main () 11743{ 11744return *(signal (0, 0)) (0) == 1; 11745 ; 11746 return 0; 11747} 11748_ACEOF 11749if ac_fn_c_try_compile "$LINENO"; then : 11750 ac_cv_type_signal=int 11751else 11752 ac_cv_type_signal=void 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755fi 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11757$as_echo "$ac_cv_type_signal" >&6; } 11758 11759cat >>confdefs.h <<_ACEOF 11760#define RETSIGTYPE $ac_cv_type_signal 11761_ACEOF 11762 11763 11764 11765if test $ac_cv_type_signal = void; then 11766 $as_echo "#define SIGRETURN return" >>confdefs.h 11767 11768else 11769 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11770 11771fi 11772 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11774$as_echo_n "checking for struct sigcontext... " >&6; } 11775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11776/* end confdefs.h. */ 11777 11778#include <signal.h> 11779test_sig() 11780{ 11781 struct sigcontext *scont; 11782 scont = (struct sigcontext *)0; 11783 return 1; 11784} 11785int 11786main () 11787{ 11788 11789 ; 11790 return 0; 11791} 11792_ACEOF 11793if ac_fn_c_try_compile "$LINENO"; then : 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11795$as_echo "yes" >&6; } 11796 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 11797 11798else 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11800$as_echo "no" >&6; } 11801fi 11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11803 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 11805$as_echo_n "checking getcwd implementation is broken... " >&6; } 11806if ${vim_cv_getcwd_broken+:} false; then : 11807 $as_echo_n "(cached) " >&6 11808else 11809 11810 if test "$cross_compiling" = yes; then : 11811 11812 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 11813 11814else 11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817 11818#include "confdefs.h" 11819#ifdef HAVE_UNISTD_H 11820#include <unistd.h> 11821#endif 11822char *dagger[] = { "IFS=pwd", 0 }; 11823main() 11824{ 11825 char buffer[500]; 11826 extern char **environ; 11827 environ = dagger; 11828 return getcwd(buffer, 500) ? 0 : 1; 11829} 11830 11831_ACEOF 11832if ac_fn_c_try_run "$LINENO"; then : 11833 11834 vim_cv_getcwd_broken=no 11835 11836else 11837 11838 vim_cv_getcwd_broken=yes 11839 11840fi 11841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11842 conftest.$ac_objext conftest.beam conftest.$ac_ext 11843fi 11844 11845 11846fi 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 11848$as_echo "$vim_cv_getcwd_broken" >&6; } 11849 11850if test "x$vim_cv_getcwd_broken" = "xyes" ; then 11851 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 11852 11853fi 11854 11855for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 11856 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 11857 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 11858 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 11859 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 11860 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 11861 usleep utime utimes 11862do : 11863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11864ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11865if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11866 cat >>confdefs.h <<_ACEOF 11867#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11868_ACEOF 11869 11870fi 11871done 11872 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11874$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11875if ${ac_cv_sys_largefile_source+:} false; then : 11876 $as_echo_n "(cached) " >&6 11877else 11878 while :; do 11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11880/* end confdefs.h. */ 11881#include <sys/types.h> /* for off_t */ 11882 #include <stdio.h> 11883int 11884main () 11885{ 11886int (*fp) (FILE *, off_t, int) = fseeko; 11887 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11888 ; 11889 return 0; 11890} 11891_ACEOF 11892if ac_fn_c_try_link "$LINENO"; then : 11893 ac_cv_sys_largefile_source=no; break 11894fi 11895rm -f core conftest.err conftest.$ac_objext \ 11896 conftest$ac_exeext conftest.$ac_ext 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899#define _LARGEFILE_SOURCE 1 11900#include <sys/types.h> /* for off_t */ 11901 #include <stdio.h> 11902int 11903main () 11904{ 11905int (*fp) (FILE *, off_t, int) = fseeko; 11906 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911if ac_fn_c_try_link "$LINENO"; then : 11912 ac_cv_sys_largefile_source=1; break 11913fi 11914rm -f core conftest.err conftest.$ac_objext \ 11915 conftest$ac_exeext conftest.$ac_ext 11916 ac_cv_sys_largefile_source=unknown 11917 break 11918done 11919fi 11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 11921$as_echo "$ac_cv_sys_largefile_source" >&6; } 11922case $ac_cv_sys_largefile_source in #( 11923 no | unknown) ;; 11924 *) 11925cat >>confdefs.h <<_ACEOF 11926#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 11927_ACEOF 11928;; 11929esac 11930rm -rf conftest* 11931 11932# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11933# in glibc 2.1.3, but that breaks too many other things. 11934# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11935if test $ac_cv_sys_largefile_source != unknown; then 11936 11937$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 11938 11939fi 11940 11941 11942# Check whether --enable-largefile was given. 11943if test "${enable_largefile+set}" = set; then : 11944 enableval=$enable_largefile; 11945fi 11946 11947if test "$enable_largefile" != no; then 11948 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11950$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11951if ${ac_cv_sys_largefile_CC+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 ac_cv_sys_largefile_CC=no 11955 if test "$GCC" != yes; then 11956 ac_save_CC=$CC 11957 while :; do 11958 # IRIX 6.2 and later do not support large files by default, 11959 # so use the C compiler's -n32 option if that helps. 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962#include <sys/types.h> 11963 /* Check that off_t can represent 2**63 - 1 correctly. 11964 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11965 since some C++ compilers masquerading as C compilers 11966 incorrectly reject 9223372036854775807. */ 11967#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 11968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11969 && LARGE_OFF_T % 2147483647 == 1) 11970 ? 1 : -1]; 11971int 11972main () 11973{ 11974 11975 ; 11976 return 0; 11977} 11978_ACEOF 11979 if ac_fn_c_try_compile "$LINENO"; then : 11980 break 11981fi 11982rm -f core conftest.err conftest.$ac_objext 11983 CC="$CC -n32" 11984 if ac_fn_c_try_compile "$LINENO"; then : 11985 ac_cv_sys_largefile_CC=' -n32'; break 11986fi 11987rm -f core conftest.err conftest.$ac_objext 11988 break 11989 done 11990 CC=$ac_save_CC 11991 rm -f conftest.$ac_ext 11992 fi 11993fi 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11995$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11996 if test "$ac_cv_sys_largefile_CC" != no; then 11997 CC=$CC$ac_cv_sys_largefile_CC 11998 fi 11999 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12001$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12002if ${ac_cv_sys_file_offset_bits+:} false; then : 12003 $as_echo_n "(cached) " >&6 12004else 12005 while :; do 12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12007/* end confdefs.h. */ 12008#include <sys/types.h> 12009 /* Check that off_t can represent 2**63 - 1 correctly. 12010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12011 since some C++ compilers masquerading as C compilers 12012 incorrectly reject 9223372036854775807. */ 12013#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12015 && LARGE_OFF_T % 2147483647 == 1) 12016 ? 1 : -1]; 12017int 12018main () 12019{ 12020 12021 ; 12022 return 0; 12023} 12024_ACEOF 12025if ac_fn_c_try_compile "$LINENO"; then : 12026 ac_cv_sys_file_offset_bits=no; break 12027fi 12028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12030/* end confdefs.h. */ 12031#define _FILE_OFFSET_BITS 64 12032#include <sys/types.h> 12033 /* Check that off_t can represent 2**63 - 1 correctly. 12034 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12035 since some C++ compilers masquerading as C compilers 12036 incorrectly reject 9223372036854775807. */ 12037#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12039 && LARGE_OFF_T % 2147483647 == 1) 12040 ? 1 : -1]; 12041int 12042main () 12043{ 12044 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049if ac_fn_c_try_compile "$LINENO"; then : 12050 ac_cv_sys_file_offset_bits=64; break 12051fi 12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12053 ac_cv_sys_file_offset_bits=unknown 12054 break 12055done 12056fi 12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12058$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12059case $ac_cv_sys_file_offset_bits in #( 12060 no | unknown) ;; 12061 *) 12062cat >>confdefs.h <<_ACEOF 12063#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12064_ACEOF 12065;; 12066esac 12067rm -rf conftest* 12068 if test $ac_cv_sys_file_offset_bits = unknown; then 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12070$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12071if ${ac_cv_sys_large_files+:} false; then : 12072 $as_echo_n "(cached) " >&6 12073else 12074 while :; do 12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12076/* end confdefs.h. */ 12077#include <sys/types.h> 12078 /* Check that off_t can represent 2**63 - 1 correctly. 12079 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12080 since some C++ compilers masquerading as C compilers 12081 incorrectly reject 9223372036854775807. */ 12082#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12084 && LARGE_OFF_T % 2147483647 == 1) 12085 ? 1 : -1]; 12086int 12087main () 12088{ 12089 12090 ; 12091 return 0; 12092} 12093_ACEOF 12094if ac_fn_c_try_compile "$LINENO"; then : 12095 ac_cv_sys_large_files=no; break 12096fi 12097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12099/* end confdefs.h. */ 12100#define _LARGE_FILES 1 12101#include <sys/types.h> 12102 /* Check that off_t can represent 2**63 - 1 correctly. 12103 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12104 since some C++ compilers masquerading as C compilers 12105 incorrectly reject 9223372036854775807. */ 12106#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12108 && LARGE_OFF_T % 2147483647 == 1) 12109 ? 1 : -1]; 12110int 12111main () 12112{ 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118if ac_fn_c_try_compile "$LINENO"; then : 12119 ac_cv_sys_large_files=1; break 12120fi 12121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12122 ac_cv_sys_large_files=unknown 12123 break 12124done 12125fi 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12127$as_echo "$ac_cv_sys_large_files" >&6; } 12128case $ac_cv_sys_large_files in #( 12129 no | unknown) ;; 12130 *) 12131cat >>confdefs.h <<_ACEOF 12132#define _LARGE_FILES $ac_cv_sys_large_files 12133_ACEOF 12134;; 12135esac 12136rm -rf conftest* 12137 fi 12138 12139 12140fi 12141 12142 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12144$as_echo_n "checking for st_blksize... " >&6; } 12145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146/* end confdefs.h. */ 12147#include <sys/types.h> 12148#include <sys/stat.h> 12149int 12150main () 12151{ 12152 struct stat st; 12153 int n; 12154 12155 stat("/", &st); 12156 n = (int)st.st_blksize; 12157 ; 12158 return 0; 12159} 12160_ACEOF 12161if ac_fn_c_try_compile "$LINENO"; then : 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12163$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12164 12165else 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12167$as_echo "no" >&6; } 12168fi 12169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12170 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12172$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12173if ${vim_cv_stat_ignores_slash+:} false; then : 12174 $as_echo_n "(cached) " >&6 12175else 12176 12177 if test "$cross_compiling" = yes; then : 12178 12179 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12180 12181else 12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184 12185#include "confdefs.h" 12186#if STDC_HEADERS 12187# include <stdlib.h> 12188# include <stddef.h> 12189#endif 12190#include <sys/types.h> 12191#include <sys/stat.h> 12192main() {struct stat st; exit(stat("configure/", &st) != 0); } 12193 12194_ACEOF 12195if ac_fn_c_try_run "$LINENO"; then : 12196 12197 vim_cv_stat_ignores_slash=yes 12198 12199else 12200 12201 vim_cv_stat_ignores_slash=no 12202 12203fi 12204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12205 conftest.$ac_objext conftest.beam conftest.$ac_ext 12206fi 12207 12208 12209fi 12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12211$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12212 12213if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12214 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12215 12216fi 12217 12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12219$as_echo_n "checking for iconv_open()... " >&6; } 12220save_LIBS="$LIBS" 12221LIBS="$LIBS -liconv" 12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12223/* end confdefs.h. */ 12224 12225#ifdef HAVE_ICONV_H 12226# include <iconv.h> 12227#endif 12228 12229int 12230main () 12231{ 12232iconv_open("fr", "to"); 12233 ; 12234 return 0; 12235} 12236_ACEOF 12237if ac_fn_c_try_link "$LINENO"; then : 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12239$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12240 12241else 12242 LIBS="$save_LIBS" 12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12244/* end confdefs.h. */ 12245 12246#ifdef HAVE_ICONV_H 12247# include <iconv.h> 12248#endif 12249 12250int 12251main () 12252{ 12253iconv_open("fr", "to"); 12254 ; 12255 return 0; 12256} 12257_ACEOF 12258if ac_fn_c_try_link "$LINENO"; then : 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12260$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12261 12262else 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12264$as_echo "no" >&6; } 12265fi 12266rm -f core conftest.err conftest.$ac_objext \ 12267 conftest$ac_exeext conftest.$ac_ext 12268fi 12269rm -f core conftest.err conftest.$ac_objext \ 12270 conftest$ac_exeext conftest.$ac_ext 12271 12272 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12274$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277 12278#ifdef HAVE_LANGINFO_H 12279# include <langinfo.h> 12280#endif 12281 12282int 12283main () 12284{ 12285char *cs = nl_langinfo(CODESET); 12286 ; 12287 return 0; 12288} 12289_ACEOF 12290if ac_fn_c_try_link "$LINENO"; then : 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12292$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12293 12294else 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12296$as_echo "no" >&6; } 12297fi 12298rm -f core conftest.err conftest.$ac_objext \ 12299 conftest$ac_exeext conftest.$ac_ext 12300 12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12302$as_echo_n "checking for strtod in -lm... " >&6; } 12303if ${ac_cv_lib_m_strtod+:} false; then : 12304 $as_echo_n "(cached) " >&6 12305else 12306 ac_check_lib_save_LIBS=$LIBS 12307LIBS="-lm $LIBS" 12308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12309/* end confdefs.h. */ 12310 12311/* Override any GCC internal prototype to avoid an error. 12312 Use char because int might match the return type of a GCC 12313 builtin and then its argument prototype would still apply. */ 12314#ifdef __cplusplus 12315extern "C" 12316#endif 12317char strtod (); 12318int 12319main () 12320{ 12321return strtod (); 12322 ; 12323 return 0; 12324} 12325_ACEOF 12326if ac_fn_c_try_link "$LINENO"; then : 12327 ac_cv_lib_m_strtod=yes 12328else 12329 ac_cv_lib_m_strtod=no 12330fi 12331rm -f core conftest.err conftest.$ac_objext \ 12332 conftest$ac_exeext conftest.$ac_ext 12333LIBS=$ac_check_lib_save_LIBS 12334fi 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12336$as_echo "$ac_cv_lib_m_strtod" >&6; } 12337if test "x$ac_cv_lib_m_strtod" = xyes; then : 12338 cat >>confdefs.h <<_ACEOF 12339#define HAVE_LIBM 1 12340_ACEOF 12341 12342 LIBS="-lm $LIBS" 12343 12344fi 12345 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12347$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350 12351#ifdef HAVE_MATH_H 12352# include <math.h> 12353#endif 12354#if STDC_HEADERS 12355# include <stdlib.h> 12356# include <stddef.h> 12357#endif 12358 12359int 12360main () 12361{ 12362char *s; double d; 12363 d = strtod("1.1", &s); 12364 d = fabs(1.11); 12365 d = ceil(1.11); 12366 d = floor(1.11); 12367 d = log10(1.11); 12368 d = pow(1.11, 2.22); 12369 d = sqrt(1.11); 12370 d = sin(1.11); 12371 d = cos(1.11); 12372 d = atan(1.11); 12373 12374 ; 12375 return 0; 12376} 12377_ACEOF 12378if ac_fn_c_try_link "$LINENO"; then : 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12380$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12381 12382else 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12384$as_echo "no" >&6; } 12385fi 12386rm -f core conftest.err conftest.$ac_objext \ 12387 conftest$ac_exeext conftest.$ac_ext 12388 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12390$as_echo_n "checking for isinf()... " >&6; } 12391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392/* end confdefs.h. */ 12393 12394#ifdef HAVE_MATH_H 12395# include <math.h> 12396#endif 12397#if STDC_HEADERS 12398# include <stdlib.h> 12399# include <stddef.h> 12400#endif 12401 12402int 12403main () 12404{ 12405int r = isinf(1.11); 12406 ; 12407 return 0; 12408} 12409_ACEOF 12410if ac_fn_c_try_link "$LINENO"; then : 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12412$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12413 12414else 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12416$as_echo "no" >&6; } 12417fi 12418rm -f core conftest.err conftest.$ac_objext \ 12419 conftest$ac_exeext conftest.$ac_ext 12420 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12422$as_echo_n "checking for isnan()... " >&6; } 12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12424/* end confdefs.h. */ 12425 12426#ifdef HAVE_MATH_H 12427# include <math.h> 12428#endif 12429#if STDC_HEADERS 12430# include <stdlib.h> 12431# include <stddef.h> 12432#endif 12433 12434int 12435main () 12436{ 12437int r = isnan(1.11); 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442if ac_fn_c_try_link "$LINENO"; then : 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12444$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12445 12446else 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12448$as_echo "no" >&6; } 12449fi 12450rm -f core conftest.err conftest.$ac_objext \ 12451 conftest$ac_exeext conftest.$ac_ext 12452 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12454$as_echo_n "checking --disable-acl argument... " >&6; } 12455# Check whether --enable-acl was given. 12456if test "${enable_acl+set}" = set; then : 12457 enableval=$enable_acl; 12458else 12459 enable_acl="yes" 12460fi 12461 12462if test "$enable_acl" = "yes"; then 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12464$as_echo "no" >&6; } 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12466$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12467if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 ac_check_lib_save_LIBS=$LIBS 12471LIBS="-lposix1e $LIBS" 12472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474 12475/* Override any GCC internal prototype to avoid an error. 12476 Use char because int might match the return type of a GCC 12477 builtin and then its argument prototype would still apply. */ 12478#ifdef __cplusplus 12479extern "C" 12480#endif 12481char acl_get_file (); 12482int 12483main () 12484{ 12485return acl_get_file (); 12486 ; 12487 return 0; 12488} 12489_ACEOF 12490if ac_fn_c_try_link "$LINENO"; then : 12491 ac_cv_lib_posix1e_acl_get_file=yes 12492else 12493 ac_cv_lib_posix1e_acl_get_file=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext \ 12496 conftest$ac_exeext conftest.$ac_ext 12497LIBS=$ac_check_lib_save_LIBS 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12500$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12501if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12502 LIBS="$LIBS -lposix1e" 12503else 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12505$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12506if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 ac_check_lib_save_LIBS=$LIBS 12510LIBS="-lacl $LIBS" 12511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513 12514/* Override any GCC internal prototype to avoid an error. 12515 Use char because int might match the return type of a GCC 12516 builtin and then its argument prototype would still apply. */ 12517#ifdef __cplusplus 12518extern "C" 12519#endif 12520char acl_get_file (); 12521int 12522main () 12523{ 12524return acl_get_file (); 12525 ; 12526 return 0; 12527} 12528_ACEOF 12529if ac_fn_c_try_link "$LINENO"; then : 12530 ac_cv_lib_acl_acl_get_file=yes 12531else 12532 ac_cv_lib_acl_acl_get_file=no 12533fi 12534rm -f core conftest.err conftest.$ac_objext \ 12535 conftest$ac_exeext conftest.$ac_ext 12536LIBS=$ac_check_lib_save_LIBS 12537fi 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12539$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12540if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12541 LIBS="$LIBS -lacl" 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12543$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12544if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546else 12547 ac_check_lib_save_LIBS=$LIBS 12548LIBS="-lattr $LIBS" 12549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12550/* end confdefs.h. */ 12551 12552/* Override any GCC internal prototype to avoid an error. 12553 Use char because int might match the return type of a GCC 12554 builtin and then its argument prototype would still apply. */ 12555#ifdef __cplusplus 12556extern "C" 12557#endif 12558char fgetxattr (); 12559int 12560main () 12561{ 12562return fgetxattr (); 12563 ; 12564 return 0; 12565} 12566_ACEOF 12567if ac_fn_c_try_link "$LINENO"; then : 12568 ac_cv_lib_attr_fgetxattr=yes 12569else 12570 ac_cv_lib_attr_fgetxattr=no 12571fi 12572rm -f core conftest.err conftest.$ac_objext \ 12573 conftest$ac_exeext conftest.$ac_ext 12574LIBS=$ac_check_lib_save_LIBS 12575fi 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12577$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12578if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12579 LIBS="$LIBS -lattr" 12580fi 12581 12582fi 12583 12584fi 12585 12586 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12588$as_echo_n "checking for POSIX ACL support... " >&6; } 12589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591 12592#include <sys/types.h> 12593#ifdef HAVE_SYS_ACL_H 12594# include <sys/acl.h> 12595#endif 12596acl_t acl; 12597int 12598main () 12599{ 12600acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12601 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12602 acl_free(acl); 12603 ; 12604 return 0; 12605} 12606_ACEOF 12607if ac_fn_c_try_link "$LINENO"; then : 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12609$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12610 12611else 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12613$as_echo "no" >&6; } 12614fi 12615rm -f core conftest.err conftest.$ac_objext \ 12616 conftest$ac_exeext conftest.$ac_ext 12617 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12619$as_echo_n "checking for acl_get in -lsec... " >&6; } 12620if ${ac_cv_lib_sec_acl_get+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622else 12623 ac_check_lib_save_LIBS=$LIBS 12624LIBS="-lsec $LIBS" 12625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12626/* end confdefs.h. */ 12627 12628/* Override any GCC internal prototype to avoid an error. 12629 Use char because int might match the return type of a GCC 12630 builtin and then its argument prototype would still apply. */ 12631#ifdef __cplusplus 12632extern "C" 12633#endif 12634char acl_get (); 12635int 12636main () 12637{ 12638return acl_get (); 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO"; then : 12644 ac_cv_lib_sec_acl_get=yes 12645else 12646 ac_cv_lib_sec_acl_get=no 12647fi 12648rm -f core conftest.err conftest.$ac_objext \ 12649 conftest$ac_exeext conftest.$ac_ext 12650LIBS=$ac_check_lib_save_LIBS 12651fi 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12653$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12654if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12655 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12656 12657else 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12659$as_echo_n "checking for Solaris ACL support... " >&6; } 12660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12661/* end confdefs.h. */ 12662 12663#ifdef HAVE_SYS_ACL_H 12664# include <sys/acl.h> 12665#endif 12666int 12667main () 12668{ 12669acl("foo", GETACLCNT, 0, NULL); 12670 12671 ; 12672 return 0; 12673} 12674_ACEOF 12675if ac_fn_c_try_link "$LINENO"; then : 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12677$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12678 12679else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681$as_echo "no" >&6; } 12682fi 12683rm -f core conftest.err conftest.$ac_objext \ 12684 conftest$ac_exeext conftest.$ac_ext 12685fi 12686 12687 12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12689$as_echo_n "checking for AIX ACL support... " >&6; } 12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692 12693#if STDC_HEADERS 12694# include <stdlib.h> 12695# include <stddef.h> 12696#endif 12697#ifdef HAVE_SYS_ACL_H 12698# include <sys/acl.h> 12699#endif 12700#ifdef HAVE_SYS_ACCESS_H 12701# include <sys/access.h> 12702#endif 12703#define _ALL_SOURCE 12704 12705#include <sys/stat.h> 12706 12707int aclsize; 12708struct acl *aclent; 12709int 12710main () 12711{ 12712aclsize = sizeof(struct acl); 12713 aclent = (void *)malloc(aclsize); 12714 statacl("foo", STX_NORMAL, aclent, aclsize); 12715 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720if ac_fn_c_try_link "$LINENO"; then : 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12722$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12723 12724else 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726$as_echo "no" >&6; } 12727fi 12728rm -f core conftest.err conftest.$ac_objext \ 12729 conftest$ac_exeext conftest.$ac_ext 12730else 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12732$as_echo "yes" >&6; } 12733fi 12734 12735if test "x$GTK_CFLAGS" != "x"; then 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12737$as_echo_n "checking for pango_shape_full... " >&6; } 12738 ac_save_CFLAGS="$CFLAGS" 12739 ac_save_LIBS="$LIBS" 12740 CFLAGS="$CFLAGS $GTK_CFLAGS" 12741 LIBS="$LIBS $GTK_LIBS" 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744#include <gtk/gtk.h> 12745int 12746main () 12747{ 12748 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12749 ; 12750 return 0; 12751} 12752_ACEOF 12753if ac_fn_c_try_link "$LINENO"; then : 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12755$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12756 12757else 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12759$as_echo "no" >&6; } 12760fi 12761rm -f core conftest.err conftest.$ac_objext \ 12762 conftest$ac_exeext conftest.$ac_ext 12763 CFLAGS="$ac_save_CFLAGS" 12764 LIBS="$ac_save_LIBS" 12765fi 12766 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12768$as_echo_n "checking --disable-gpm argument... " >&6; } 12769# Check whether --enable-gpm was given. 12770if test "${enable_gpm+set}" = set; then : 12771 enableval=$enable_gpm; 12772else 12773 enable_gpm="yes" 12774fi 12775 12776 12777if test "$enable_gpm" = "yes"; then 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12779$as_echo "no" >&6; } 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12781$as_echo_n "checking for gpm... " >&6; } 12782if ${vi_cv_have_gpm+:} false; then : 12783 $as_echo_n "(cached) " >&6 12784else 12785 olibs="$LIBS" ; LIBS="-lgpm" 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12787/* end confdefs.h. */ 12788#include <gpm.h> 12789 #include <linux/keyboard.h> 12790int 12791main () 12792{ 12793Gpm_GetLibVersion(NULL); 12794 ; 12795 return 0; 12796} 12797_ACEOF 12798if ac_fn_c_try_link "$LINENO"; then : 12799 vi_cv_have_gpm=yes 12800else 12801 vi_cv_have_gpm=no 12802fi 12803rm -f core conftest.err conftest.$ac_objext \ 12804 conftest$ac_exeext conftest.$ac_ext 12805 LIBS="$olibs" 12806 12807fi 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 12809$as_echo "$vi_cv_have_gpm" >&6; } 12810 if test $vi_cv_have_gpm = yes; then 12811 LIBS="$LIBS -lgpm" 12812 $as_echo "#define HAVE_GPM 1" >>confdefs.h 12813 12814 fi 12815else 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12817$as_echo "yes" >&6; } 12818fi 12819 12820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 12821$as_echo_n "checking --disable-sysmouse argument... " >&6; } 12822# Check whether --enable-sysmouse was given. 12823if test "${enable_sysmouse+set}" = set; then : 12824 enableval=$enable_sysmouse; 12825else 12826 enable_sysmouse="yes" 12827fi 12828 12829 12830if test "$enable_sysmouse" = "yes"; then 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12832$as_echo "no" >&6; } 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 12834$as_echo_n "checking for sysmouse... " >&6; } 12835if ${vi_cv_have_sysmouse+:} false; then : 12836 $as_echo_n "(cached) " >&6 12837else 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839/* end confdefs.h. */ 12840#include <sys/consio.h> 12841 #include <signal.h> 12842 #include <sys/fbio.h> 12843int 12844main () 12845{ 12846struct mouse_info mouse; 12847 mouse.operation = MOUSE_MODE; 12848 mouse.operation = MOUSE_SHOW; 12849 mouse.u.mode.mode = 0; 12850 mouse.u.mode.signal = SIGUSR2; 12851 ; 12852 return 0; 12853} 12854_ACEOF 12855if ac_fn_c_try_link "$LINENO"; then : 12856 vi_cv_have_sysmouse=yes 12857else 12858 vi_cv_have_sysmouse=no 12859fi 12860rm -f core conftest.err conftest.$ac_objext \ 12861 conftest$ac_exeext conftest.$ac_ext 12862 12863fi 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 12865$as_echo "$vi_cv_have_sysmouse" >&6; } 12866 if test $vi_cv_have_sysmouse = yes; then 12867 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 12868 12869 fi 12870else 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12872$as_echo "yes" >&6; } 12873fi 12874 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 12876$as_echo_n "checking for FD_CLOEXEC... " >&6; } 12877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879#if HAVE_FCNTL_H 12880# include <fcntl.h> 12881#endif 12882int 12883main () 12884{ 12885 int flag = FD_CLOEXEC; 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890if ac_fn_c_try_compile "$LINENO"; then : 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12892$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 12893 12894else 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12896$as_echo "not usable" >&6; } 12897fi 12898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12899 12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 12901$as_echo_n "checking for rename... " >&6; } 12902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904#include <stdio.h> 12905int 12906main () 12907{ 12908rename("this", "that") 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913if ac_fn_c_try_link "$LINENO"; then : 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12915$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 12916 12917else 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919$as_echo "no" >&6; } 12920fi 12921rm -f core conftest.err conftest.$ac_objext \ 12922 conftest$ac_exeext conftest.$ac_ext 12923 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 12925$as_echo_n "checking for sysctl... " >&6; } 12926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927/* end confdefs.h. */ 12928#include <sys/types.h> 12929#include <sys/sysctl.h> 12930int 12931main () 12932{ 12933 int mib[2], r; 12934 size_t len; 12935 12936 mib[0] = CTL_HW; 12937 mib[1] = HW_USERMEM; 12938 len = sizeof(r); 12939 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 12940 12941 ; 12942 return 0; 12943} 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12947$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 12948 12949else 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12951$as_echo "not usable" >&6; } 12952fi 12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12954 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 12956$as_echo_n "checking for sysinfo... " >&6; } 12957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12958/* end confdefs.h. */ 12959#include <sys/types.h> 12960#include <sys/sysinfo.h> 12961int 12962main () 12963{ 12964 struct sysinfo sinfo; 12965 int t; 12966 12967 (void)sysinfo(&sinfo); 12968 t = sinfo.totalram; 12969 12970 ; 12971 return 0; 12972} 12973_ACEOF 12974if ac_fn_c_try_compile "$LINENO"; then : 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12976$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 12977 12978else 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 12980$as_echo "not usable" >&6; } 12981fi 12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12983 12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 12985$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 12986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12987/* end confdefs.h. */ 12988#include <sys/types.h> 12989#include <sys/sysinfo.h> 12990int 12991main () 12992{ 12993 struct sysinfo sinfo; 12994 sinfo.mem_unit = 1; 12995 12996 ; 12997 return 0; 12998} 12999_ACEOF 13000if ac_fn_c_try_compile "$LINENO"; then : 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13002$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13003 13004else 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13006$as_echo "no" >&6; } 13007fi 13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13011$as_echo_n "checking for sysconf... " >&6; } 13012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13013/* end confdefs.h. */ 13014#include <unistd.h> 13015int 13016main () 13017{ 13018 (void)sysconf(_SC_PAGESIZE); 13019 (void)sysconf(_SC_PHYS_PAGES); 13020 13021 ; 13022 return 0; 13023} 13024_ACEOF 13025if ac_fn_c_try_compile "$LINENO"; then : 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13027$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13028 13029else 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13031$as_echo "not usable" >&6; } 13032fi 13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13034 13035# The cast to long int works around a bug in the HP C Compiler 13036# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13037# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13038# This bug is HP SR number 8606223364. 13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13040$as_echo_n "checking size of int... " >&6; } 13041if ${ac_cv_sizeof_int+:} false; then : 13042 $as_echo_n "(cached) " >&6 13043else 13044 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13045 13046else 13047 if test "$ac_cv_type_int" = yes; then 13048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13050as_fn_error 77 "cannot compute sizeof (int) 13051See \`config.log' for more details" "$LINENO" 5; } 13052 else 13053 ac_cv_sizeof_int=0 13054 fi 13055fi 13056 13057fi 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13059$as_echo "$ac_cv_sizeof_int" >&6; } 13060 13061 13062 13063cat >>confdefs.h <<_ACEOF 13064#define SIZEOF_INT $ac_cv_sizeof_int 13065_ACEOF 13066 13067 13068# The cast to long int works around a bug in the HP C Compiler 13069# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13070# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13071# This bug is HP SR number 8606223364. 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13073$as_echo_n "checking size of long... " >&6; } 13074if ${ac_cv_sizeof_long+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13078 13079else 13080 if test "$ac_cv_type_long" = yes; then 13081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13083as_fn_error 77 "cannot compute sizeof (long) 13084See \`config.log' for more details" "$LINENO" 5; } 13085 else 13086 ac_cv_sizeof_long=0 13087 fi 13088fi 13089 13090fi 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13092$as_echo "$ac_cv_sizeof_long" >&6; } 13093 13094 13095 13096cat >>confdefs.h <<_ACEOF 13097#define SIZEOF_LONG $ac_cv_sizeof_long 13098_ACEOF 13099 13100 13101# The cast to long int works around a bug in the HP C Compiler 13102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13104# This bug is HP SR number 8606223364. 13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13106$as_echo_n "checking size of time_t... " >&6; } 13107if ${ac_cv_sizeof_time_t+:} false; then : 13108 $as_echo_n "(cached) " >&6 13109else 13110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13111 13112else 13113 if test "$ac_cv_type_time_t" = yes; then 13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13116as_fn_error 77 "cannot compute sizeof (time_t) 13117See \`config.log' for more details" "$LINENO" 5; } 13118 else 13119 ac_cv_sizeof_time_t=0 13120 fi 13121fi 13122 13123fi 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13125$as_echo "$ac_cv_sizeof_time_t" >&6; } 13126 13127 13128 13129cat >>confdefs.h <<_ACEOF 13130#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13131_ACEOF 13132 13133 13134# The cast to long int works around a bug in the HP C Compiler 13135# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13136# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13137# This bug is HP SR number 8606223364. 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13139$as_echo_n "checking size of off_t... " >&6; } 13140if ${ac_cv_sizeof_off_t+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13144 13145else 13146 if test "$ac_cv_type_off_t" = yes; then 13147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13149as_fn_error 77 "cannot compute sizeof (off_t) 13150See \`config.log' for more details" "$LINENO" 5; } 13151 else 13152 ac_cv_sizeof_off_t=0 13153 fi 13154fi 13155 13156fi 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13158$as_echo "$ac_cv_sizeof_off_t" >&6; } 13159 13160 13161 13162cat >>confdefs.h <<_ACEOF 13163#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13164_ACEOF 13165 13166 13167 13168cat >>confdefs.h <<_ACEOF 13169#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13170_ACEOF 13171 13172cat >>confdefs.h <<_ACEOF 13173#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13174_ACEOF 13175 13176 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13178$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13179if test "$cross_compiling" = yes; then : 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13181$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13182else 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186#ifdef HAVE_STDINT_H 13187# include <stdint.h> 13188#endif 13189#ifdef HAVE_INTTYPES_H 13190# include <inttypes.h> 13191#endif 13192main() { 13193 uint32_t nr1 = (uint32_t)-1; 13194 uint32_t nr2 = (uint32_t)0xffffffffUL; 13195 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13196 exit(0); 13197} 13198_ACEOF 13199if ac_fn_c_try_run "$LINENO"; then : 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13201$as_echo "ok" >&6; } 13202else 13203 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13204fi 13205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13206 conftest.$ac_objext conftest.beam conftest.$ac_ext 13207fi 13208 13209 13210 13211bcopy_test_prog=' 13212#include "confdefs.h" 13213#ifdef HAVE_STRING_H 13214# include <string.h> 13215#endif 13216#if STDC_HEADERS 13217# include <stdlib.h> 13218# include <stddef.h> 13219#endif 13220main() { 13221 char buf[10]; 13222 strcpy(buf, "abcdefghi"); 13223 mch_memmove(buf, buf + 2, 3); 13224 if (strncmp(buf, "ababcf", 6)) 13225 exit(1); 13226 strcpy(buf, "abcdefghi"); 13227 mch_memmove(buf + 2, buf, 3); 13228 if (strncmp(buf, "cdedef", 6)) 13229 exit(1); 13230 exit(0); /* libc version works properly. */ 13231}' 13232 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13234$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13235if ${vim_cv_memmove_handles_overlap+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 13239 if test "$cross_compiling" = yes; then : 13240 13241 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13242 13243else 13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13245/* end confdefs.h. */ 13246#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13247_ACEOF 13248if ac_fn_c_try_run "$LINENO"; then : 13249 13250 vim_cv_memmove_handles_overlap=yes 13251 13252else 13253 13254 vim_cv_memmove_handles_overlap=no 13255 13256fi 13257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13258 conftest.$ac_objext conftest.beam conftest.$ac_ext 13259fi 13260 13261 13262fi 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13264$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13265 13266if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13267 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13268 13269else 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13271$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13272if ${vim_cv_bcopy_handles_overlap+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 13276 if test "$cross_compiling" = yes; then : 13277 13278 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13279 13280else 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13284_ACEOF 13285if ac_fn_c_try_run "$LINENO"; then : 13286 13287 vim_cv_bcopy_handles_overlap=yes 13288 13289else 13290 13291 vim_cv_bcopy_handles_overlap=no 13292 13293fi 13294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13295 conftest.$ac_objext conftest.beam conftest.$ac_ext 13296fi 13297 13298 13299fi 13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13301$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13302 13303 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13304 $as_echo "#define USEBCOPY 1" >>confdefs.h 13305 13306 else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13308$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13309if ${vim_cv_memcpy_handles_overlap+:} false; then : 13310 $as_echo_n "(cached) " >&6 13311else 13312 13313 if test "$cross_compiling" = yes; then : 13314 13315 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13316 13317else 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13321_ACEOF 13322if ac_fn_c_try_run "$LINENO"; then : 13323 13324 vim_cv_memcpy_handles_overlap=yes 13325 13326else 13327 13328 vim_cv_memcpy_handles_overlap=no 13329 13330fi 13331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13332 conftest.$ac_objext conftest.beam conftest.$ac_ext 13333fi 13334 13335 13336fi 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13338$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13339 13340 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13341 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13342 13343 fi 13344 fi 13345fi 13346 13347 13348if test "x$with_x" = "xyes"; then 13349 cflags_save=$CFLAGS 13350 libs_save=$LIBS 13351 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13352 CFLAGS="$CFLAGS $X_CFLAGS" 13353 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13355$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13357/* end confdefs.h. */ 13358#include <X11/Xlocale.h> 13359int 13360main () 13361{ 13362 13363 ; 13364 return 0; 13365} 13366_ACEOF 13367if ac_fn_c_try_compile "$LINENO"; then : 13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13369/* end confdefs.h. */ 13370 13371/* Override any GCC internal prototype to avoid an error. 13372 Use char because int might match the return type of a GCC 13373 builtin and then its argument prototype would still apply. */ 13374#ifdef __cplusplus 13375extern "C" 13376#endif 13377char _Xsetlocale (); 13378int 13379main () 13380{ 13381return _Xsetlocale (); 13382 ; 13383 return 0; 13384} 13385_ACEOF 13386if ac_fn_c_try_link "$LINENO"; then : 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13388$as_echo "yes" >&6; } 13389 $as_echo "#define X_LOCALE 1" >>confdefs.h 13390 13391else 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13393$as_echo "no" >&6; } 13394fi 13395rm -f core conftest.err conftest.$ac_objext \ 13396 conftest$ac_exeext conftest.$ac_ext 13397else 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13399$as_echo "no" >&6; } 13400fi 13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13402 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13404$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13406/* end confdefs.h. */ 13407 13408/* Override any GCC internal prototype to avoid an error. 13409 Use char because int might match the return type of a GCC 13410 builtin and then its argument prototype would still apply. */ 13411#ifdef __cplusplus 13412extern "C" 13413#endif 13414char Xutf8SetWMProperties (); 13415int 13416main () 13417{ 13418return Xutf8SetWMProperties (); 13419 ; 13420 return 0; 13421} 13422_ACEOF 13423if ac_fn_c_try_link "$LINENO"; then : 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13425$as_echo "yes" >&6; } 13426 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13427 13428else 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13430$as_echo "no" >&6; } 13431fi 13432rm -f core conftest.err conftest.$ac_objext \ 13433 conftest$ac_exeext conftest.$ac_ext 13434 13435 CFLAGS=$cflags_save 13436 LIBS=$libs_save 13437fi 13438 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13440$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13441if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13442 $as_echo_n "(cached) " >&6 13443else 13444 ac_check_lib_save_LIBS=$LIBS 13445LIBS="-lxpg4 $LIBS" 13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448 13449/* Override any GCC internal prototype to avoid an error. 13450 Use char because int might match the return type of a GCC 13451 builtin and then its argument prototype would still apply. */ 13452#ifdef __cplusplus 13453extern "C" 13454#endif 13455char _xpg4_setrunelocale (); 13456int 13457main () 13458{ 13459return _xpg4_setrunelocale (); 13460 ; 13461 return 0; 13462} 13463_ACEOF 13464if ac_fn_c_try_link "$LINENO"; then : 13465 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13466else 13467 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13468fi 13469rm -f core conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471LIBS=$ac_check_lib_save_LIBS 13472fi 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13474$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13475if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13476 LIBS="$LIBS -lxpg4" 13477fi 13478 13479 13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13481$as_echo_n "checking how to create tags... " >&6; } 13482test -f tags && mv tags tags.save 13483if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13484 TAGPRG="ctags -I INIT+ --fields=+S" 13485elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13486 TAGPRG="exctags -I INIT+ --fields=+S" 13487elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13488 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13489else 13490 TAGPRG="ctags" 13491 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13492 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13493 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13494 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13495 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13496 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13497 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13498fi 13499test -f tags.save && mv tags.save tags 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13501$as_echo "$TAGPRG" >&6; } 13502 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13504$as_echo_n "checking how to run man with a section nr... " >&6; } 13505MANDEF="man" 13506(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13508$as_echo "$MANDEF" >&6; } 13509if test "$MANDEF" = "man -s"; then 13510 $as_echo "#define USEMAN_S 1" >>confdefs.h 13511 13512fi 13513 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13515$as_echo_n "checking --disable-nls argument... " >&6; } 13516# Check whether --enable-nls was given. 13517if test "${enable_nls+set}" = set; then : 13518 enableval=$enable_nls; 13519else 13520 enable_nls="yes" 13521fi 13522 13523 13524if test "$enable_nls" = "yes"; then 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13526$as_echo "no" >&6; } 13527 13528 INSTALL_LANGS=install-languages 13529 13530 INSTALL_TOOL_LANGS=install-tool-languages 13531 13532 13533 # Extract the first word of "msgfmt", so it can be a program name with args. 13534set dummy msgfmt; ac_word=$2 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13536$as_echo_n "checking for $ac_word... " >&6; } 13537if ${ac_cv_prog_MSGFMT+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539else 13540 if test -n "$MSGFMT"; then 13541 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13542else 13543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13544for as_dir in $PATH 13545do 13546 IFS=$as_save_IFS 13547 test -z "$as_dir" && as_dir=. 13548 for ac_exec_ext in '' $ac_executable_extensions; do 13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13550 ac_cv_prog_MSGFMT="msgfmt" 13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13552 break 2 13553 fi 13554done 13555 done 13556IFS=$as_save_IFS 13557 13558fi 13559fi 13560MSGFMT=$ac_cv_prog_MSGFMT 13561if test -n "$MSGFMT"; then 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13563$as_echo "$MSGFMT" >&6; } 13564else 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13566$as_echo "no" >&6; } 13567fi 13568 13569 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13571$as_echo_n "checking for NLS... " >&6; } 13572 if test -f po/Makefile; then 13573 have_gettext="no" 13574 if test -n "$MSGFMT"; then 13575 olibs=$LIBS 13576 LIBS="" 13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13578/* end confdefs.h. */ 13579#include <libintl.h> 13580int 13581main () 13582{ 13583gettext("Test"); 13584 ; 13585 return 0; 13586} 13587_ACEOF 13588if ac_fn_c_try_link "$LINENO"; then : 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13590$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13591else 13592 LIBS="-lintl" 13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13594/* end confdefs.h. */ 13595#include <libintl.h> 13596int 13597main () 13598{ 13599gettext("Test"); 13600 ; 13601 return 0; 13602} 13603_ACEOF 13604if ac_fn_c_try_link "$LINENO"; then : 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13606$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13607 LIBS="$olibs -lintl" 13608else 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13610$as_echo "gettext() doesn't work" >&6; }; 13611 LIBS=$olibs 13612fi 13613rm -f core conftest.err conftest.$ac_objext \ 13614 conftest$ac_exeext conftest.$ac_ext 13615fi 13616rm -f core conftest.err conftest.$ac_objext \ 13617 conftest$ac_exeext conftest.$ac_ext 13618 else 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13620$as_echo "msgfmt not found - disabled" >&6; }; 13621 fi 13622 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13623 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13624 13625 MAKEMO=yes 13626 13627 for ac_func in bind_textdomain_codeset 13628do : 13629 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13630if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13631 cat >>confdefs.h <<_ACEOF 13632#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13633_ACEOF 13634 13635fi 13636done 13637 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13639$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13641/* end confdefs.h. */ 13642#include <libintl.h> 13643 extern int _nl_msg_cat_cntr; 13644int 13645main () 13646{ 13647++_nl_msg_cat_cntr; 13648 ; 13649 return 0; 13650} 13651_ACEOF 13652if ac_fn_c_try_link "$LINENO"; then : 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13654$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13655 13656else 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13658$as_echo "no" >&6; } 13659fi 13660rm -f core conftest.err conftest.$ac_objext \ 13661 conftest$ac_exeext conftest.$ac_ext 13662 fi 13663 else 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13665$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13666 fi 13667else 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13669$as_echo "yes" >&6; } 13670fi 13671 13672ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13673if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13674 DLL=dlfcn.h 13675else 13676 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13677if test "x$ac_cv_header_dl_h" = xyes; then : 13678 DLL=dl.h 13679fi 13680 13681 13682fi 13683 13684 13685if test x${DLL} = xdlfcn.h; then 13686 13687$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13690$as_echo_n "checking for dlopen()... " >&6; } 13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13692/* end confdefs.h. */ 13693 13694int 13695main () 13696{ 13697 13698 extern void* dlopen(); 13699 dlopen(); 13700 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705if ac_fn_c_try_link "$LINENO"; then : 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707$as_echo "yes" >&6; }; 13708 13709$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13710 13711else 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13713$as_echo "no" >&6; }; 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13715$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13716 olibs=$LIBS 13717 LIBS="$LIBS -ldl" 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720 13721int 13722main () 13723{ 13724 13725 extern void* dlopen(); 13726 dlopen(); 13727 13728 ; 13729 return 0; 13730} 13731_ACEOF 13732if ac_fn_c_try_link "$LINENO"; then : 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13734$as_echo "yes" >&6; }; 13735 13736$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13737 13738else 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13740$as_echo "no" >&6; }; 13741 LIBS=$olibs 13742fi 13743rm -f core conftest.err conftest.$ac_objext \ 13744 conftest$ac_exeext conftest.$ac_ext 13745fi 13746rm -f core conftest.err conftest.$ac_objext \ 13747 conftest$ac_exeext conftest.$ac_ext 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13749$as_echo_n "checking for dlsym()... " >&6; } 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751/* end confdefs.h. */ 13752 13753int 13754main () 13755{ 13756 13757 extern void* dlsym(); 13758 dlsym(); 13759 13760 ; 13761 return 0; 13762} 13763_ACEOF 13764if ac_fn_c_try_link "$LINENO"; then : 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13766$as_echo "yes" >&6; }; 13767 13768$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13769 13770else 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13772$as_echo "no" >&6; }; 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13774$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13775 olibs=$LIBS 13776 LIBS="$LIBS -ldl" 13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13778/* end confdefs.h. */ 13779 13780int 13781main () 13782{ 13783 13784 extern void* dlsym(); 13785 dlsym(); 13786 13787 ; 13788 return 0; 13789} 13790_ACEOF 13791if ac_fn_c_try_link "$LINENO"; then : 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13793$as_echo "yes" >&6; }; 13794 13795$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13796 13797else 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13799$as_echo "no" >&6; }; 13800 LIBS=$olibs 13801fi 13802rm -f core conftest.err conftest.$ac_objext \ 13803 conftest$ac_exeext conftest.$ac_ext 13804fi 13805rm -f core conftest.err conftest.$ac_objext \ 13806 conftest$ac_exeext conftest.$ac_ext 13807elif test x${DLL} = xdl.h; then 13808 13809$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13810 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 13812$as_echo_n "checking for shl_load()... " >&6; } 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815 13816int 13817main () 13818{ 13819 13820 extern void* shl_load(); 13821 shl_load(); 13822 13823 ; 13824 return 0; 13825} 13826_ACEOF 13827if ac_fn_c_try_link "$LINENO"; then : 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13829$as_echo "yes" >&6; }; 13830 13831$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13832 13833else 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835$as_echo "no" >&6; }; 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 13837$as_echo_n "checking for shl_load() in -ldld... " >&6; } 13838 olibs=$LIBS 13839 LIBS="$LIBS -ldld" 13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13841/* end confdefs.h. */ 13842 13843int 13844main () 13845{ 13846 13847 extern void* shl_load(); 13848 shl_load(); 13849 13850 ; 13851 return 0; 13852} 13853_ACEOF 13854if ac_fn_c_try_link "$LINENO"; then : 13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13856$as_echo "yes" >&6; }; 13857 13858$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13859 13860else 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13862$as_echo "no" >&6; }; 13863 LIBS=$olibs 13864fi 13865rm -f core conftest.err conftest.$ac_objext \ 13866 conftest$ac_exeext conftest.$ac_ext 13867fi 13868rm -f core conftest.err conftest.$ac_objext \ 13869 conftest$ac_exeext conftest.$ac_ext 13870fi 13871for ac_header in setjmp.h 13872do : 13873 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 13874if test "x$ac_cv_header_setjmp_h" = xyes; then : 13875 cat >>confdefs.h <<_ACEOF 13876#define HAVE_SETJMP_H 1 13877_ACEOF 13878 13879fi 13880 13881done 13882 13883 13884if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 13885 if echo $LIBS | grep -e '-ldl' >/dev/null; then 13886 LIBS=`echo $LIBS | sed s/-ldl//` 13887 PERL_LIBS="$PERL_LIBS -ldl" 13888 fi 13889fi 13890 13891if test "x$MACOSX" = "xyes"; then 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 13893$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 13894 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 13895 LIBS=$"$LIBS -framework Cocoa" 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13897$as_echo "yes" >&6; } 13898 else 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13900$as_echo "no" >&6; } 13901 fi 13902 if test "x$features" = "xtiny"; then 13903 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 13904 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 13905 fi 13906fi 13907if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 13908 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 13909fi 13910 13911DEPEND_CFLAGS_FILTER= 13912if test "$GCC" = yes; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 13914$as_echo_n "checking for GCC 3 or later... " >&6; } 13915 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 13916 if test "$gccmajor" -gt "2"; then 13917 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13919$as_echo "yes" >&6; } 13920 else 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13922$as_echo "no" >&6; } 13923 fi 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 13925$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 13926 if test "$gccmajor" -gt "3"; then 13927 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/'` 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13929$as_echo "yes" >&6; } 13930 else 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13932$as_echo "no" >&6; } 13933 fi 13934fi 13935 13936 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13938$as_echo_n "checking linker --as-needed support... " >&6; } 13939LINK_AS_NEEDED= 13940# Check if linker supports --as-needed and --no-as-needed options 13941if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 13942 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 13943 LINK_AS_NEEDED=yes 13944fi 13945if test "$LINK_AS_NEEDED" = yes; then 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13947$as_echo "yes" >&6; } 13948else 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13950$as_echo "no" >&6; } 13951fi 13952 13953 13954# IBM z/OS reset CFLAGS for config.mk 13955if test "$zOSUnix" = "yes"; then 13956 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 13957fi 13958 13959ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 13960 13961cat >confcache <<\_ACEOF 13962# This file is a shell script that caches the results of configure 13963# tests run on this system so they can be shared between configure 13964# scripts and configure runs, see configure's option --config-cache. 13965# It is not useful on other systems. If it contains results you don't 13966# want to keep, you may remove or edit it. 13967# 13968# config.status only pays attention to the cache file if you give it 13969# the --recheck option to rerun configure. 13970# 13971# `ac_cv_env_foo' variables (set or unset) will be overridden when 13972# loading this file, other *unset* `ac_cv_foo' will be assigned the 13973# following values. 13974 13975_ACEOF 13976 13977# The following way of writing the cache mishandles newlines in values, 13978# but we know of no workaround that is simple, portable, and efficient. 13979# So, we kill variables containing newlines. 13980# Ultrix sh set writes to stderr and can't be redirected directly, 13981# and sets the high bit in the cache file unless we assign to the vars. 13982( 13983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13984 eval ac_val=\$$ac_var 13985 case $ac_val in #( 13986 *${as_nl}*) 13987 case $ac_var in #( 13988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13989$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13990 esac 13991 case $ac_var in #( 13992 _ | IFS | as_nl) ;; #( 13993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13994 *) { eval $ac_var=; unset $ac_var;} ;; 13995 esac ;; 13996 esac 13997 done 13998 13999 (set) 2>&1 | 14000 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14001 *${as_nl}ac_space=\ *) 14002 # `set' does not quote correctly, so add quotes: double-quote 14003 # substitution turns \\\\ into \\, and sed turns \\ into \. 14004 sed -n \ 14005 "s/'/'\\\\''/g; 14006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14007 ;; #( 14008 *) 14009 # `set' quotes correctly as required by POSIX, so do not add quotes. 14010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14011 ;; 14012 esac | 14013 sort 14014) | 14015 sed ' 14016 /^ac_cv_env_/b end 14017 t clear 14018 :clear 14019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14020 t end 14021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14022 :end' >>confcache 14023if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14024 if test -w "$cache_file"; then 14025 if test "x$cache_file" != "x/dev/null"; then 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14027$as_echo "$as_me: updating cache $cache_file" >&6;} 14028 if test ! -f "$cache_file" || test -h "$cache_file"; then 14029 cat confcache >"$cache_file" 14030 else 14031 case $cache_file in #( 14032 */* | ?:*) 14033 mv -f confcache "$cache_file"$$ && 14034 mv -f "$cache_file"$$ "$cache_file" ;; #( 14035 *) 14036 mv -f confcache "$cache_file" ;; 14037 esac 14038 fi 14039 fi 14040 else 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14042$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14043 fi 14044fi 14045rm -f confcache 14046 14047test "x$prefix" = xNONE && prefix=$ac_default_prefix 14048# Let make expand exec_prefix. 14049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14050 14051DEFS=-DHAVE_CONFIG_H 14052 14053ac_libobjs= 14054ac_ltlibobjs= 14055U= 14056for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14057 # 1. Remove the extension, and $U if already installed. 14058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14061 # will be set to the directory where LIBOBJS objects are built. 14062 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14063 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14064done 14065LIBOBJS=$ac_libobjs 14066 14067LTLIBOBJS=$ac_ltlibobjs 14068 14069 14070 14071 14072: "${CONFIG_STATUS=./config.status}" 14073ac_write_fail=0 14074ac_clean_files_save=$ac_clean_files 14075ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14076{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14077$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14078as_write_fail=0 14079cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14080#! $SHELL 14081# Generated by $as_me. 14082# Run this file to recreate the current configuration. 14083# Compiler output produced by configure, useful for debugging 14084# configure, is in config.log if it exists. 14085 14086debug=false 14087ac_cs_recheck=false 14088ac_cs_silent=false 14089 14090SHELL=\${CONFIG_SHELL-$SHELL} 14091export SHELL 14092_ASEOF 14093cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14094## -------------------- ## 14095## M4sh Initialization. ## 14096## -------------------- ## 14097 14098# Be more Bourne compatible 14099DUALCASE=1; export DUALCASE # for MKS sh 14100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14101 emulate sh 14102 NULLCMD=: 14103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14104 # is contrary to our usage. Disable this feature. 14105 alias -g '${1+"$@"}'='"$@"' 14106 setopt NO_GLOB_SUBST 14107else 14108 case `(set -o) 2>/dev/null` in #( 14109 *posix*) : 14110 set -o posix ;; #( 14111 *) : 14112 ;; 14113esac 14114fi 14115 14116 14117as_nl=' 14118' 14119export as_nl 14120# Printing a long string crashes Solaris 7 /usr/bin/printf. 14121as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14122as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14123as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14124# Prefer a ksh shell builtin over an external printf program on Solaris, 14125# but without wasting forks for bash or zsh. 14126if test -z "$BASH_VERSION$ZSH_VERSION" \ 14127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14128 as_echo='print -r --' 14129 as_echo_n='print -rn --' 14130elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14131 as_echo='printf %s\n' 14132 as_echo_n='printf %s' 14133else 14134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14136 as_echo_n='/usr/ucb/echo -n' 14137 else 14138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14139 as_echo_n_body='eval 14140 arg=$1; 14141 case $arg in #( 14142 *"$as_nl"*) 14143 expr "X$arg" : "X\\(.*\\)$as_nl"; 14144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14145 esac; 14146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14147 ' 14148 export as_echo_n_body 14149 as_echo_n='sh -c $as_echo_n_body as_echo' 14150 fi 14151 export as_echo_body 14152 as_echo='sh -c $as_echo_body as_echo' 14153fi 14154 14155# The user is always right. 14156if test "${PATH_SEPARATOR+set}" != set; then 14157 PATH_SEPARATOR=: 14158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14160 PATH_SEPARATOR=';' 14161 } 14162fi 14163 14164 14165# IFS 14166# We need space, tab and new line, in precisely that order. Quoting is 14167# there to prevent editors from complaining about space-tab. 14168# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14169# splitting by setting IFS to empty value.) 14170IFS=" "" $as_nl" 14171 14172# Find who we are. Look in the path if we contain no directory separator. 14173as_myself= 14174case $0 in #(( 14175 *[\\/]* ) as_myself=$0 ;; 14176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14177for as_dir in $PATH 14178do 14179 IFS=$as_save_IFS 14180 test -z "$as_dir" && as_dir=. 14181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14182 done 14183IFS=$as_save_IFS 14184 14185 ;; 14186esac 14187# We did not find ourselves, most probably we were run as `sh COMMAND' 14188# in which case we are not to be found in the path. 14189if test "x$as_myself" = x; then 14190 as_myself=$0 14191fi 14192if test ! -f "$as_myself"; then 14193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14194 exit 1 14195fi 14196 14197# Unset variables that we do not need and which cause bugs (e.g. in 14198# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14199# suppresses any "Segmentation fault" message there. '((' could 14200# trigger a bug in pdksh 5.2.14. 14201for as_var in BASH_ENV ENV MAIL MAILPATH 14202do eval test x\${$as_var+set} = xset \ 14203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14204done 14205PS1='$ ' 14206PS2='> ' 14207PS4='+ ' 14208 14209# NLS nuisances. 14210LC_ALL=C 14211export LC_ALL 14212LANGUAGE=C 14213export LANGUAGE 14214 14215# CDPATH. 14216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14217 14218 14219# as_fn_error STATUS ERROR [LINENO LOG_FD] 14220# ---------------------------------------- 14221# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14222# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14223# script with STATUS, using 1 if that was 0. 14224as_fn_error () 14225{ 14226 as_status=$1; test $as_status -eq 0 && as_status=1 14227 if test "$4"; then 14228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14230 fi 14231 $as_echo "$as_me: error: $2" >&2 14232 as_fn_exit $as_status 14233} # as_fn_error 14234 14235 14236# as_fn_set_status STATUS 14237# ----------------------- 14238# Set $? to STATUS, without forking. 14239as_fn_set_status () 14240{ 14241 return $1 14242} # as_fn_set_status 14243 14244# as_fn_exit STATUS 14245# ----------------- 14246# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14247as_fn_exit () 14248{ 14249 set +e 14250 as_fn_set_status $1 14251 exit $1 14252} # as_fn_exit 14253 14254# as_fn_unset VAR 14255# --------------- 14256# Portably unset VAR. 14257as_fn_unset () 14258{ 14259 { eval $1=; unset $1;} 14260} 14261as_unset=as_fn_unset 14262# as_fn_append VAR VALUE 14263# ---------------------- 14264# Append the text in VALUE to the end of the definition contained in VAR. Take 14265# advantage of any shell optimizations that allow amortized linear growth over 14266# repeated appends, instead of the typical quadratic growth present in naive 14267# implementations. 14268if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14269 eval 'as_fn_append () 14270 { 14271 eval $1+=\$2 14272 }' 14273else 14274 as_fn_append () 14275 { 14276 eval $1=\$$1\$2 14277 } 14278fi # as_fn_append 14279 14280# as_fn_arith ARG... 14281# ------------------ 14282# Perform arithmetic evaluation on the ARGs, and store the result in the 14283# global $as_val. Take advantage of shells that can avoid forks. The arguments 14284# must be portable across $(()) and expr. 14285if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14286 eval 'as_fn_arith () 14287 { 14288 as_val=$(( $* )) 14289 }' 14290else 14291 as_fn_arith () 14292 { 14293 as_val=`expr "$@" || test $? -eq 1` 14294 } 14295fi # as_fn_arith 14296 14297 14298if expr a : '\(a\)' >/dev/null 2>&1 && 14299 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14300 as_expr=expr 14301else 14302 as_expr=false 14303fi 14304 14305if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14306 as_basename=basename 14307else 14308 as_basename=false 14309fi 14310 14311if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14312 as_dirname=dirname 14313else 14314 as_dirname=false 14315fi 14316 14317as_me=`$as_basename -- "$0" || 14318$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14319 X"$0" : 'X\(//\)$' \| \ 14320 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14321$as_echo X/"$0" | 14322 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14323 s//\1/ 14324 q 14325 } 14326 /^X\/\(\/\/\)$/{ 14327 s//\1/ 14328 q 14329 } 14330 /^X\/\(\/\).*/{ 14331 s//\1/ 14332 q 14333 } 14334 s/.*/./; q'` 14335 14336# Avoid depending upon Character Ranges. 14337as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14338as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14339as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14340as_cr_digits='0123456789' 14341as_cr_alnum=$as_cr_Letters$as_cr_digits 14342 14343ECHO_C= ECHO_N= ECHO_T= 14344case `echo -n x` in #((((( 14345-n*) 14346 case `echo 'xy\c'` in 14347 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14348 xy) ECHO_C='\c';; 14349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14350 ECHO_T=' ';; 14351 esac;; 14352*) 14353 ECHO_N='-n';; 14354esac 14355 14356rm -f conf$$ conf$$.exe conf$$.file 14357if test -d conf$$.dir; then 14358 rm -f conf$$.dir/conf$$.file 14359else 14360 rm -f conf$$.dir 14361 mkdir conf$$.dir 2>/dev/null 14362fi 14363if (echo >conf$$.file) 2>/dev/null; then 14364 if ln -s conf$$.file conf$$ 2>/dev/null; then 14365 as_ln_s='ln -s' 14366 # ... but there are two gotchas: 14367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14369 # In both cases, we have to default to `cp -pR'. 14370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14371 as_ln_s='cp -pR' 14372 elif ln conf$$.file conf$$ 2>/dev/null; then 14373 as_ln_s=ln 14374 else 14375 as_ln_s='cp -pR' 14376 fi 14377else 14378 as_ln_s='cp -pR' 14379fi 14380rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14381rmdir conf$$.dir 2>/dev/null 14382 14383 14384# as_fn_mkdir_p 14385# ------------- 14386# Create "$as_dir" as a directory, including parents if necessary. 14387as_fn_mkdir_p () 14388{ 14389 14390 case $as_dir in #( 14391 -*) as_dir=./$as_dir;; 14392 esac 14393 test -d "$as_dir" || eval $as_mkdir_p || { 14394 as_dirs= 14395 while :; do 14396 case $as_dir in #( 14397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14398 *) as_qdir=$as_dir;; 14399 esac 14400 as_dirs="'$as_qdir' $as_dirs" 14401 as_dir=`$as_dirname -- "$as_dir" || 14402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14403 X"$as_dir" : 'X\(//\)[^/]' \| \ 14404 X"$as_dir" : 'X\(//\)$' \| \ 14405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14406$as_echo X"$as_dir" | 14407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14408 s//\1/ 14409 q 14410 } 14411 /^X\(\/\/\)[^/].*/{ 14412 s//\1/ 14413 q 14414 } 14415 /^X\(\/\/\)$/{ 14416 s//\1/ 14417 q 14418 } 14419 /^X\(\/\).*/{ 14420 s//\1/ 14421 q 14422 } 14423 s/.*/./; q'` 14424 test -d "$as_dir" && break 14425 done 14426 test -z "$as_dirs" || eval "mkdir $as_dirs" 14427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14428 14429 14430} # as_fn_mkdir_p 14431if mkdir -p . 2>/dev/null; then 14432 as_mkdir_p='mkdir -p "$as_dir"' 14433else 14434 test -d ./-p && rmdir ./-p 14435 as_mkdir_p=false 14436fi 14437 14438 14439# as_fn_executable_p FILE 14440# ----------------------- 14441# Test if FILE is an executable regular file. 14442as_fn_executable_p () 14443{ 14444 test -f "$1" && test -x "$1" 14445} # as_fn_executable_p 14446as_test_x='test -x' 14447as_executable_p=as_fn_executable_p 14448 14449# Sed expression to map a string onto a valid CPP name. 14450as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14451 14452# Sed expression to map a string onto a valid variable name. 14453as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14454 14455 14456exec 6>&1 14457## ----------------------------------- ## 14458## Main body of $CONFIG_STATUS script. ## 14459## ----------------------------------- ## 14460_ASEOF 14461test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14462 14463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14464# Save the log message, to keep $0 and so on meaningful, and to 14465# report actual input values of CONFIG_FILES etc. instead of their 14466# values after options handling. 14467ac_log=" 14468This file was extended by $as_me, which was 14469generated by GNU Autoconf 2.69. Invocation command line was 14470 14471 CONFIG_FILES = $CONFIG_FILES 14472 CONFIG_HEADERS = $CONFIG_HEADERS 14473 CONFIG_LINKS = $CONFIG_LINKS 14474 CONFIG_COMMANDS = $CONFIG_COMMANDS 14475 $ $0 $@ 14476 14477on `(hostname || uname -n) 2>/dev/null | sed 1q` 14478" 14479 14480_ACEOF 14481 14482case $ac_config_files in *" 14483"*) set x $ac_config_files; shift; ac_config_files=$*;; 14484esac 14485 14486case $ac_config_headers in *" 14487"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14488esac 14489 14490 14491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14492# Files that config.status was made for. 14493config_files="$ac_config_files" 14494config_headers="$ac_config_headers" 14495 14496_ACEOF 14497 14498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14499ac_cs_usage="\ 14500\`$as_me' instantiates files and other configuration actions 14501from templates according to the current configuration. Unless the files 14502and actions are specified as TAGs, all are instantiated by default. 14503 14504Usage: $0 [OPTION]... [TAG]... 14505 14506 -h, --help print this help, then exit 14507 -V, --version print version number and configuration settings, then exit 14508 --config print configuration, then exit 14509 -q, --quiet, --silent 14510 do not print progress messages 14511 -d, --debug don't remove temporary files 14512 --recheck update $as_me by reconfiguring in the same conditions 14513 --file=FILE[:TEMPLATE] 14514 instantiate the configuration file FILE 14515 --header=FILE[:TEMPLATE] 14516 instantiate the configuration header FILE 14517 14518Configuration files: 14519$config_files 14520 14521Configuration headers: 14522$config_headers 14523 14524Report bugs to the package provider." 14525 14526_ACEOF 14527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14528ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14529ac_cs_version="\\ 14530config.status 14531configured by $0, generated by GNU Autoconf 2.69, 14532 with options \\"\$ac_cs_config\\" 14533 14534Copyright (C) 2012 Free Software Foundation, Inc. 14535This config.status script is free software; the Free Software Foundation 14536gives unlimited permission to copy, distribute and modify it." 14537 14538ac_pwd='$ac_pwd' 14539srcdir='$srcdir' 14540AWK='$AWK' 14541test -n "\$AWK" || AWK=awk 14542_ACEOF 14543 14544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14545# The default lists apply if the user does not specify any file. 14546ac_need_defaults=: 14547while test $# != 0 14548do 14549 case $1 in 14550 --*=?*) 14551 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14553 ac_shift=: 14554 ;; 14555 --*=) 14556 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14557 ac_optarg= 14558 ac_shift=: 14559 ;; 14560 *) 14561 ac_option=$1 14562 ac_optarg=$2 14563 ac_shift=shift 14564 ;; 14565 esac 14566 14567 case $ac_option in 14568 # Handling of the options. 14569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14570 ac_cs_recheck=: ;; 14571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14572 $as_echo "$ac_cs_version"; exit ;; 14573 --config | --confi | --conf | --con | --co | --c ) 14574 $as_echo "$ac_cs_config"; exit ;; 14575 --debug | --debu | --deb | --de | --d | -d ) 14576 debug=: ;; 14577 --file | --fil | --fi | --f ) 14578 $ac_shift 14579 case $ac_optarg in 14580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14581 '') as_fn_error $? "missing file argument" ;; 14582 esac 14583 as_fn_append CONFIG_FILES " '$ac_optarg'" 14584 ac_need_defaults=false;; 14585 --header | --heade | --head | --hea ) 14586 $ac_shift 14587 case $ac_optarg in 14588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14589 esac 14590 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14591 ac_need_defaults=false;; 14592 --he | --h) 14593 # Conflict between --help and --header 14594 as_fn_error $? "ambiguous option: \`$1' 14595Try \`$0 --help' for more information.";; 14596 --help | --hel | -h ) 14597 $as_echo "$ac_cs_usage"; exit ;; 14598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14599 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14600 ac_cs_silent=: ;; 14601 14602 # This is an error. 14603 -*) as_fn_error $? "unrecognized option: \`$1' 14604Try \`$0 --help' for more information." ;; 14605 14606 *) as_fn_append ac_config_targets " $1" 14607 ac_need_defaults=false ;; 14608 14609 esac 14610 shift 14611done 14612 14613ac_configure_extra_args= 14614 14615if $ac_cs_silent; then 14616 exec 6>/dev/null 14617 ac_configure_extra_args="$ac_configure_extra_args --silent" 14618fi 14619 14620_ACEOF 14621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14622if \$ac_cs_recheck; then 14623 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14624 shift 14625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14626 CONFIG_SHELL='$SHELL' 14627 export CONFIG_SHELL 14628 exec "\$@" 14629fi 14630 14631_ACEOF 14632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14633exec 5>>auto/config.log 14634{ 14635 echo 14636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14637## Running $as_me. ## 14638_ASBOX 14639 $as_echo "$ac_log" 14640} >&5 14641 14642_ACEOF 14643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14644_ACEOF 14645 14646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14647 14648# Handling of arguments. 14649for ac_config_target in $ac_config_targets 14650do 14651 case $ac_config_target in 14652 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14653 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14654 14655 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14656 esac 14657done 14658 14659 14660# If the user did not use the arguments to specify the items to instantiate, 14661# then the envvar interface is used. Set only those that are not. 14662# We use the long form for the default assignment because of an extremely 14663# bizarre bug on SunOS 4.1.3. 14664if $ac_need_defaults; then 14665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14667fi 14668 14669# Have a temporary directory for convenience. Make it in the build tree 14670# simply because there is no reason against having it here, and in addition, 14671# creating and moving files from /tmp can sometimes cause problems. 14672# Hook for its removal unless debugging. 14673# Note that there is a small window in which the directory will not be cleaned: 14674# after its creation but before its name has been assigned to `$tmp'. 14675$debug || 14676{ 14677 tmp= ac_tmp= 14678 trap 'exit_status=$? 14679 : "${ac_tmp:=$tmp}" 14680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14681' 0 14682 trap 'as_fn_exit 1' 1 2 13 15 14683} 14684# Create a (secure) tmp directory for tmp files. 14685 14686{ 14687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14688 test -d "$tmp" 14689} || 14690{ 14691 tmp=./conf$$-$RANDOM 14692 (umask 077 && mkdir "$tmp") 14693} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14694ac_tmp=$tmp 14695 14696# Set up the scripts for CONFIG_FILES section. 14697# No need to generate them if there are no CONFIG_FILES. 14698# This happens for instance with `./config.status config.h'. 14699if test -n "$CONFIG_FILES"; then 14700 14701 14702ac_cr=`echo X | tr X '\015'` 14703# On cygwin, bash can eat \r inside `` if the user requested igncr. 14704# But we know of no other shell where ac_cr would be empty at this 14705# point, so we can use a bashism as a fallback. 14706if test "x$ac_cr" = x; then 14707 eval ac_cr=\$\'\\r\' 14708fi 14709ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14710if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14711 ac_cs_awk_cr='\\r' 14712else 14713 ac_cs_awk_cr=$ac_cr 14714fi 14715 14716echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14717_ACEOF 14718 14719 14720{ 14721 echo "cat >conf$$subs.awk <<_ACEOF" && 14722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14723 echo "_ACEOF" 14724} >conf$$subs.sh || 14725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14726ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14727ac_delim='%!_!# ' 14728for ac_last_try in false false false false false :; do 14729 . ./conf$$subs.sh || 14730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14731 14732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14733 if test $ac_delim_n = $ac_delim_num; then 14734 break 14735 elif $ac_last_try; then 14736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14737 else 14738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14739 fi 14740done 14741rm -f conf$$subs.sh 14742 14743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14744cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14745_ACEOF 14746sed -n ' 14747h 14748s/^/S["/; s/!.*/"]=/ 14749p 14750g 14751s/^[^!]*!// 14752:repl 14753t repl 14754s/'"$ac_delim"'$// 14755t delim 14756:nl 14757h 14758s/\(.\{148\}\)..*/\1/ 14759t more1 14760s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14761p 14762n 14763b repl 14764:more1 14765s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14766p 14767g 14768s/.\{148\}// 14769t nl 14770:delim 14771h 14772s/\(.\{148\}\)..*/\1/ 14773t more2 14774s/["\\]/\\&/g; s/^/"/; s/$/"/ 14775p 14776b 14777:more2 14778s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14779p 14780g 14781s/.\{148\}// 14782t delim 14783' <conf$$subs.awk | sed ' 14784/^[^""]/{ 14785 N 14786 s/\n// 14787} 14788' >>$CONFIG_STATUS || ac_write_fail=1 14789rm -f conf$$subs.awk 14790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14791_ACAWK 14792cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14793 for (key in S) S_is_set[key] = 1 14794 FS = "" 14795 14796} 14797{ 14798 line = $ 0 14799 nfields = split(line, field, "@") 14800 substed = 0 14801 len = length(field[1]) 14802 for (i = 2; i < nfields; i++) { 14803 key = field[i] 14804 keylen = length(key) 14805 if (S_is_set[key]) { 14806 value = S[key] 14807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14808 len += length(value) + length(field[++i]) 14809 substed = 1 14810 } else 14811 len += 1 + keylen 14812 } 14813 14814 print line 14815} 14816 14817_ACAWK 14818_ACEOF 14819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14820if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14822else 14823 cat 14824fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14826_ACEOF 14827 14828# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14829# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14830# trailing colons and then remove the whole line if VPATH becomes empty 14831# (actually we leave an empty line to preserve line numbers). 14832if test "x$srcdir" = x.; then 14833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14834h 14835s/// 14836s/^/:/ 14837s/[ ]*$/:/ 14838s/:\$(srcdir):/:/g 14839s/:\${srcdir}:/:/g 14840s/:@srcdir@:/:/g 14841s/^:*// 14842s/:*$// 14843x 14844s/\(=[ ]*\).*/\1/ 14845G 14846s/\n// 14847s/^[^=]*=[ ]*$// 14848}' 14849fi 14850 14851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14852fi # test -n "$CONFIG_FILES" 14853 14854# Set up the scripts for CONFIG_HEADERS section. 14855# No need to generate them if there are no CONFIG_HEADERS. 14856# This happens for instance with `./config.status Makefile'. 14857if test -n "$CONFIG_HEADERS"; then 14858cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14859BEGIN { 14860_ACEOF 14861 14862# Transform confdefs.h into an awk script `defines.awk', embedded as 14863# here-document in config.status, that substitutes the proper values into 14864# config.h.in to produce config.h. 14865 14866# Create a delimiter string that does not exist in confdefs.h, to ease 14867# handling of long lines. 14868ac_delim='%!_!# ' 14869for ac_last_try in false false :; do 14870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14871 if test -z "$ac_tt"; then 14872 break 14873 elif $ac_last_try; then 14874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14875 else 14876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14877 fi 14878done 14879 14880# For the awk script, D is an array of macro values keyed by name, 14881# likewise P contains macro parameters if any. Preserve backslash 14882# newline sequences. 14883 14884ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14885sed -n ' 14886s/.\{148\}/&'"$ac_delim"'/g 14887t rset 14888:rset 14889s/^[ ]*#[ ]*define[ ][ ]*/ / 14890t def 14891d 14892:def 14893s/\\$// 14894t bsnl 14895s/["\\]/\\&/g 14896s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14897D["\1"]=" \3"/p 14898s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14899d 14900:bsnl 14901s/["\\]/\\&/g 14902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14903D["\1"]=" \3\\\\\\n"\\/p 14904t cont 14905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14906t cont 14907d 14908:cont 14909n 14910s/.\{148\}/&'"$ac_delim"'/g 14911t clear 14912:clear 14913s/\\$// 14914t bsnlc 14915s/["\\]/\\&/g; s/^/"/; s/$/"/p 14916d 14917:bsnlc 14918s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14919b cont 14920' <confdefs.h | sed ' 14921s/'"$ac_delim"'/"\\\ 14922"/g' >>$CONFIG_STATUS || ac_write_fail=1 14923 14924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14925 for (key in D) D_is_set[key] = 1 14926 FS = "" 14927} 14928/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14929 line = \$ 0 14930 split(line, arg, " ") 14931 if (arg[1] == "#") { 14932 defundef = arg[2] 14933 mac1 = arg[3] 14934 } else { 14935 defundef = substr(arg[1], 2) 14936 mac1 = arg[2] 14937 } 14938 split(mac1, mac2, "(") #) 14939 macro = mac2[1] 14940 prefix = substr(line, 1, index(line, defundef) - 1) 14941 if (D_is_set[macro]) { 14942 # Preserve the white space surrounding the "#". 14943 print prefix "define", macro P[macro] D[macro] 14944 next 14945 } else { 14946 # Replace #undef with comments. This is necessary, for example, 14947 # in the case of _POSIX_SOURCE, which is predefined and required 14948 # on some systems where configure will not decide to define it. 14949 if (defundef == "undef") { 14950 print "/*", prefix defundef, macro, "*/" 14951 next 14952 } 14953 } 14954} 14955{ print } 14956_ACAWK 14957_ACEOF 14958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14960fi # test -n "$CONFIG_HEADERS" 14961 14962 14963eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 14964shift 14965for ac_tag 14966do 14967 case $ac_tag in 14968 :[FHLC]) ac_mode=$ac_tag; continue;; 14969 esac 14970 case $ac_mode$ac_tag in 14971 :[FHL]*:*);; 14972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14973 :[FH]-) ac_tag=-:-;; 14974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14975 esac 14976 ac_save_IFS=$IFS 14977 IFS=: 14978 set x $ac_tag 14979 IFS=$ac_save_IFS 14980 shift 14981 ac_file=$1 14982 shift 14983 14984 case $ac_mode in 14985 :L) ac_source=$1;; 14986 :[FH]) 14987 ac_file_inputs= 14988 for ac_f 14989 do 14990 case $ac_f in 14991 -) ac_f="$ac_tmp/stdin";; 14992 *) # Look for the file first in the build tree, then in the source tree 14993 # (if the path is not absolute). The absolute path cannot be DOS-style, 14994 # because $ac_f cannot contain `:'. 14995 test -f "$ac_f" || 14996 case $ac_f in 14997 [\\/$]*) false;; 14998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14999 esac || 15000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15001 esac 15002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15003 as_fn_append ac_file_inputs " '$ac_f'" 15004 done 15005 15006 # Let's still pretend it is `configure' which instantiates (i.e., don't 15007 # use $as_me), people would be surprised to read: 15008 # /* config.h. Generated by config.status. */ 15009 configure_input='Generated from '` 15010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15011 `' by configure.' 15012 if test x"$ac_file" != x-; then 15013 configure_input="$ac_file. $configure_input" 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15015$as_echo "$as_me: creating $ac_file" >&6;} 15016 fi 15017 # Neutralize special characters interpreted by sed in replacement strings. 15018 case $configure_input in #( 15019 *\&* | *\|* | *\\* ) 15020 ac_sed_conf_input=`$as_echo "$configure_input" | 15021 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15022 *) ac_sed_conf_input=$configure_input;; 15023 esac 15024 15025 case $ac_tag in 15026 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15028 esac 15029 ;; 15030 esac 15031 15032 ac_dir=`$as_dirname -- "$ac_file" || 15033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15034 X"$ac_file" : 'X\(//\)[^/]' \| \ 15035 X"$ac_file" : 'X\(//\)$' \| \ 15036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15037$as_echo X"$ac_file" | 15038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15039 s//\1/ 15040 q 15041 } 15042 /^X\(\/\/\)[^/].*/{ 15043 s//\1/ 15044 q 15045 } 15046 /^X\(\/\/\)$/{ 15047 s//\1/ 15048 q 15049 } 15050 /^X\(\/\).*/{ 15051 s//\1/ 15052 q 15053 } 15054 s/.*/./; q'` 15055 as_dir="$ac_dir"; as_fn_mkdir_p 15056 ac_builddir=. 15057 15058case "$ac_dir" in 15059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15060*) 15061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15062 # A ".." for each directory in $ac_dir_suffix. 15063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15064 case $ac_top_builddir_sub in 15065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15067 esac ;; 15068esac 15069ac_abs_top_builddir=$ac_pwd 15070ac_abs_builddir=$ac_pwd$ac_dir_suffix 15071# for backward compatibility: 15072ac_top_builddir=$ac_top_build_prefix 15073 15074case $srcdir in 15075 .) # We are building in place. 15076 ac_srcdir=. 15077 ac_top_srcdir=$ac_top_builddir_sub 15078 ac_abs_top_srcdir=$ac_pwd ;; 15079 [\\/]* | ?:[\\/]* ) # Absolute name. 15080 ac_srcdir=$srcdir$ac_dir_suffix; 15081 ac_top_srcdir=$srcdir 15082 ac_abs_top_srcdir=$srcdir ;; 15083 *) # Relative name. 15084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15085 ac_top_srcdir=$ac_top_build_prefix$srcdir 15086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15087esac 15088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15089 15090 15091 case $ac_mode in 15092 :F) 15093 # 15094 # CONFIG_FILE 15095 # 15096 15097_ACEOF 15098 15099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15100# If the template does not know about datarootdir, expand it. 15101# FIXME: This hack should be removed a few years after 2.60. 15102ac_datarootdir_hack=; ac_datarootdir_seen= 15103ac_sed_dataroot=' 15104/datarootdir/ { 15105 p 15106 q 15107} 15108/@datadir@/p 15109/@docdir@/p 15110/@infodir@/p 15111/@localedir@/p 15112/@mandir@/p' 15113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15114*datarootdir*) ac_datarootdir_seen=yes;; 15115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15118_ACEOF 15119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15120 ac_datarootdir_hack=' 15121 s&@datadir@&$datadir&g 15122 s&@docdir@&$docdir&g 15123 s&@infodir@&$infodir&g 15124 s&@localedir@&$localedir&g 15125 s&@mandir@&$mandir&g 15126 s&\\\${datarootdir}&$datarootdir&g' ;; 15127esac 15128_ACEOF 15129 15130# Neutralize VPATH when `$srcdir' = `.'. 15131# Shell code in configure.ac might set extrasub. 15132# FIXME: do we really want to maintain this feature? 15133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15134ac_sed_extra="$ac_vpsub 15135$extrasub 15136_ACEOF 15137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15138:t 15139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15140s|@configure_input@|$ac_sed_conf_input|;t t 15141s&@top_builddir@&$ac_top_builddir_sub&;t t 15142s&@top_build_prefix@&$ac_top_build_prefix&;t t 15143s&@srcdir@&$ac_srcdir&;t t 15144s&@abs_srcdir@&$ac_abs_srcdir&;t t 15145s&@top_srcdir@&$ac_top_srcdir&;t t 15146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15147s&@builddir@&$ac_builddir&;t t 15148s&@abs_builddir@&$ac_abs_builddir&;t t 15149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15150$ac_datarootdir_hack 15151" 15152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15153 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15154 15155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15158 "$ac_tmp/out"`; test -z "$ac_out"; } && 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15160which seems to be undefined. Please make sure it is defined" >&5 15161$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15162which seems to be undefined. Please make sure it is defined" >&2;} 15163 15164 rm -f "$ac_tmp/stdin" 15165 case $ac_file in 15166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15168 esac \ 15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15170 ;; 15171 :H) 15172 # 15173 # CONFIG_HEADER 15174 # 15175 if test x"$ac_file" != x-; then 15176 { 15177 $as_echo "/* $configure_input */" \ 15178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15179 } >"$ac_tmp/config.h" \ 15180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15183$as_echo "$as_me: $ac_file is unchanged" >&6;} 15184 else 15185 rm -f "$ac_file" 15186 mv "$ac_tmp/config.h" "$ac_file" \ 15187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15188 fi 15189 else 15190 $as_echo "/* $configure_input */" \ 15191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15192 || as_fn_error $? "could not create -" "$LINENO" 5 15193 fi 15194 ;; 15195 15196 15197 esac 15198 15199done # for ac_tag 15200 15201 15202as_fn_exit 0 15203_ACEOF 15204ac_clean_files=$ac_clean_files_save 15205 15206test $ac_write_fail = 0 || 15207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15208 15209 15210# configure is writing to config.log, and then calls config.status. 15211# config.status does its own redirection, appending to config.log. 15212# Unfortunately, on DOS this fails, as config.log is still kept open 15213# by configure, so config.status won't be able to write to it; its 15214# output is simply discarded. So we exec the FD to /dev/null, 15215# effectively closing config.log, so it can be properly (re)opened and 15216# appended to by config.status. When coming back to configure, we 15217# need to make the FD available again. 15218if test "$no_create" != yes; then 15219 ac_cs_success=: 15220 ac_config_status_args= 15221 test "$silent" = yes && 15222 ac_config_status_args="$ac_config_status_args --quiet" 15223 exec 5>/dev/null 15224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15225 exec 5>>auto/config.log 15226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15227 # would make configure fail if this is the last instruction. 15228 $ac_cs_success || as_fn_exit 1 15229fi 15230if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15232$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15233fi 15234 15235 15236