1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680vi_cv_path_python3 681PYTHON_OBJ 682PYTHON_SRC 683PYTHON_CFLAGS 684PYTHON_LIBS 685vi_cv_path_python 686PERL_LIBS 687PERL_CFLAGS 688PERL_PRO 689PERL_OBJ 690PERL_SRC 691shrpenv 692vi_cv_perl_xsubpp 693vi_cv_perllib 694vi_cv_path_perl 695MZSCHEME_MZC 696MZSCHEME_EXTRA 697MZSCHEME_CFLAGS 698MZSCHEME_LIBS 699MZSCHEME_PRO 700MZSCHEME_OBJ 701MZSCHEME_SRC 702vi_cv_path_mzscheme 703LUA_CFLAGS 704LUA_LIBS 705LUA_PRO 706LUA_OBJ 707LUA_SRC 708vi_cv_path_plain_lua 709vi_cv_path_luajit 710vi_cv_path_lua 711compiledby 712dogvimdiff 713dovimdiff 714QUOTESED 715line_break 716VIEWNAME 717EXNAME 718VIMNAME 719OS_EXTRA_OBJ 720OS_EXTRA_SRC 721XCODE_SELECT 722CPP_MM 723CROSS_COMPILING 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 757runstatedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_fail_if_missing 781enable_darwin 782with_mac_arch 783with_developer_dir 784with_local_dir 785with_vim_name 786with_ex_name 787with_view_name 788with_global_runtime 789with_modified_by 790enable_smack 791enable_selinux 792with_features 793with_compiledby 794enable_xsmp 795enable_xsmp_interact 796enable_luainterp 797with_lua_prefix 798with_luajit 799enable_mzschemeinterp 800with_plthome 801enable_perlinterp 802enable_pythoninterp 803with_python_command 804with_python_config_dir 805enable_python3interp 806with_python3_command 807with_python3_config_dir 808enable_tclinterp 809with_tclsh 810enable_rubyinterp 811with_ruby_command 812enable_cscope 813enable_netbeans 814enable_channel 815enable_terminal 816enable_autoservername 817enable_multibyte 818enable_rightleft 819enable_arabic 820enable_farsi 821enable_hangulinput 822enable_xim 823enable_fontset 824with_x 825enable_gui 826enable_gtk2_check 827enable_gnome_check 828enable_gtk3_check 829enable_motif_check 830enable_athena_check 831enable_nextaw_check 832enable_carbon_check 833enable_gtktest 834with_gnome_includes 835with_gnome_libs 836with_gnome 837enable_icon_cache_update 838enable_desktop_database_update 839with_motif_lib 840with_tlib 841enable_largefile 842enable_acl 843enable_gpm 844enable_sysmouse 845enable_nls 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856XMKMF' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 # Accept the important Cygnus configure options, so we can diagnose typos. 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures this package to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465X features: 1466 --x-includes=DIR X include files are in DIR 1467 --x-libraries=DIR X library files are in DIR 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-fail-if-missing Fail if dependencies on additional features 1480 specified on the command line are missing. 1481 --disable-darwin Disable Darwin (Mac OS X) support. 1482 --disable-smack Do not check for Smack support. 1483 --disable-selinux Do not check for SELinux support. 1484 --disable-xsmp Disable XSMP session management 1485 --disable-xsmp-interact Disable XSMP interaction 1486 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1487 --enable-mzschemeinterp Include MzScheme interpreter. 1488 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1489 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-cscope Include cscope interface. 1494 --disable-netbeans Disable NetBeans integration support. 1495 --disable-channel Disable process communication support. 1496 --enable-terminal Enable terminal emulation support. 1497 --enable-autoservername Automatically define servername at vim startup. 1498 --enable-multibyte Include multibyte editing support. 1499 --disable-rightleft Do not include Right-to-Left language support. 1500 --disable-arabic Do not include Arabic language support. 1501 --disable-farsi Do not include Farsi language support. 1502 --enable-hangulinput Include Hangul input support. 1503 --enable-xim Include XIM input support. 1504 --enable-fontset Include X fontset output support. 1505 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1506 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1507 --enable-gnome-check If GTK GUI, check for GNOME default=no 1508 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1509 --enable-motif-check If auto-select GUI, check for Motif default=yes 1510 --enable-athena-check If auto-select GUI, check for Athena default=yes 1511 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1512 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1513 --disable-gtktest Do not try to compile and run a test GTK program 1514 --disable-icon-cache-update update disabled 1515 --disable-desktop-database-update update disabled 1516 --disable-largefile omit support for large files 1517 --disable-acl No check for ACL support. 1518 --disable-gpm Don't use gpm (Linux mouse daemon). 1519 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1520 --disable-nls Don't support NLS (gettext()). 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-mac-arch=ARCH current, intel, ppc or both 1526 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1527 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1528 --without-local-dir do not search /usr/local for local libraries. 1529 --with-vim-name=NAME what to call the Vim executable 1530 --with-ex-name=NAME what to call the Ex executable 1531 --with-view-name=NAME what to call the View executable 1532 --with-global-runtime=DIR global runtime directory in 'runtimepath', comma-separated for multiple directories 1533 --with-modified-by=NAME name of who modified a release version 1534 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1535 --with-compiledby=NAME name to show in :version message 1536 --with-lua-prefix=PFX Prefix where Lua is installed. 1537 --with-luajit Link with LuaJIT instead of Lua. 1538 --with-plthome=PLTHOME Use PLTHOME. 1539 --with-python-command=NAME name of the Python 2 command (default: python2 or python) 1540 --with-python-config-dir=PATH Python's config directory (deprecated) 1541 --with-python3-command=NAME name of the Python 3 command (default: python3 or python) 1542 --with-python3-config-dir=PATH Python's config directory (deprecated) 1543 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1544 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1545 --with-x use the X Window System 1546 --with-gnome-includes=DIR Specify location of GNOME headers 1547 --with-gnome-libs=DIR Specify location of GNOME libs 1548 --with-gnome Specify prefix for GNOME files 1549 --with-motif-lib=STRING Library for Motif 1550 --with-tlib=library terminal library to be used 1551 1552Some influential environment variables: 1553 CC C compiler command 1554 CFLAGS C compiler flags 1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1556 nonstandard directory <lib dir> 1557 LIBS libraries to pass to the linker, e.g. -l<library> 1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1559 you have headers in a nonstandard directory <include dir> 1560 CPP C preprocessor 1561 XMKMF Path to xmkmf, Makefile generator for X Window System 1562 1563Use these variables to override the choices made by `configure' or to help 1564it to find libraries and programs with nonstandard names/locations. 1565 1566Report bugs to the package provider. 1567_ACEOF 1568ac_status=$? 1569fi 1570 1571if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629configure 1630generated by GNU Autoconf 2.69 1631 1632Copyright (C) 2012 Free Software Foundation, Inc. 1633This configure script is free software; the Free Software Foundation 1634gives unlimited permission to copy, distribute and modify it. 1635_ACEOF 1636 exit 1637fi 1638 1639## ------------------------ ## 1640## Autoconf initialization. ## 1641## ------------------------ ## 1642 1643# ac_fn_c_try_compile LINENO 1644# -------------------------- 1645# Try to compile conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_c_try_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_compile 1680 1681# ac_fn_c_try_cpp LINENO 1682# ---------------------- 1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_cpp () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } > conftest.i && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_cpp 1717 1718# ac_fn_c_try_link LINENO 1719# ----------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_link () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext conftest$ac_exeext 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest$ac_exeext && { 1744 test "$cross_compiling" = yes || 1745 test -x conftest$ac_exeext 1746 }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=1 1753fi 1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1756 # interfere with the next link command; also delete a directory that is 1757 # left behind by Apple's compiler. We do this before executing the actions. 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_link 1763 1764# ac_fn_c_try_run LINENO 1765# ---------------------- 1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1767# that executables *can* be run. 1768ac_fn_c_try_run () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 if { { ac_try="$ac_link" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_link") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1782 { { case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_try") 2>&5 1789 ac_status=$? 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; }; }; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: program exited with status $ac_status" >&5 1795 $as_echo "$as_me: failed program was:" >&5 1796sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=$ac_status 1799fi 1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804} # ac_fn_c_try_run 1805 1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1807# ------------------------------------------------------- 1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1809# the include files in INCLUDES and setting the cache variable VAR 1810# accordingly. 1811ac_fn_c_check_header_mongrel () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if eval \${$3+:} false; then : 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823else 1824 # Is the header compilable? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1826$as_echo_n "checking $2 usability... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 ac_header_compiler=yes 1834else 1835 ac_header_compiler=no 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1839$as_echo "$ac_header_compiler" >&6; } 1840 1841# Is the header present? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1843$as_echo_n "checking $2 presence... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_cpp "$LINENO"; then : 1849 ac_header_preproc=yes 1850else 1851 ac_header_preproc=no 1852fi 1853rm -f conftest.err conftest.i conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1855$as_echo "$ac_header_preproc" >&6; } 1856 1857# So? What about this header? 1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1859 yes:no: ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864 ;; 1865 no:yes:* ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1869$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1873$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876 ;; 1877esac 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if eval \${$3+:} false; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 eval "$3=\$ac_header_compiler" 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888fi 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 1891} # ac_fn_c_check_header_mongrel 1892 1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1894# ------------------------------------------------------- 1895# Tests whether HEADER exists and can be compiled using the include files in 1896# INCLUDES, setting the cache variable VAR accordingly. 1897ac_fn_c_check_header_compile () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1901$as_echo_n "checking for $2... " >&6; } 1902if eval \${$3+:} false; then : 1903 $as_echo_n "(cached) " >&6 1904else 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908#include <$2> 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 eval "$3=yes" 1912else 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922} # ac_fn_c_check_header_compile 1923 1924# ac_fn_c_check_func LINENO FUNC VAR 1925# ---------------------------------- 1926# Tests whether FUNC exists, setting the cache variable VAR accordingly 1927ac_fn_c_check_func () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931$as_echo_n "checking for $2... " >&6; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934else 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1939#define $2 innocuous_$2 1940 1941/* System header to define __stub macros and hopefully few prototypes, 1942 which can conflict with char $2 (); below. 1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1944 <limits.h> exists even on freestanding compilers. */ 1945 1946#ifdef __STDC__ 1947# include <limits.h> 1948#else 1949# include <assert.h> 1950#endif 1951 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main () 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO"; then : 1977 eval "$3=yes" 1978else 1979 eval "$3=no" 1980fi 1981rm -f core conftest.err conftest.$ac_objext \ 1982 conftest$ac_exeext conftest.$ac_ext 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_c_check_func 1990 1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1992# ------------------------------------------- 1993# Tests whether TYPE exists after having included INCLUDES, setting cache 1994# variable VAR accordingly. 1995ac_fn_c_check_type () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1999$as_echo_n "checking for $2... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002else 2003 eval "$3=no" 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main () 2009{ 2010if (sizeof ($2)) 2011 return 0; 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023if (sizeof (($2))) 2024 return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 2031else 2032 eval "$3=yes" 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037fi 2038eval ac_res=\$$3 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 2043} # ac_fn_c_check_type 2044 2045# ac_fn_c_find_uintX_t LINENO BITS VAR 2046# ------------------------------------ 2047# Finds an unsigned integer type with width BITS, setting cache variable VAR 2048# accordingly. 2049ac_fn_c_find_uintX_t () 2050{ 2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2053$as_echo_n "checking for uint$2_t... " >&6; } 2054if eval \${$3+:} false; then : 2055 $as_echo_n "(cached) " >&6 2056else 2057 eval "$3=no" 2058 # Order is important - never check a type that is potentially smaller 2059 # than half of the expected target width. 2060 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$ac_includes_default 2065int 2066main () 2067{ 2068static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2069test_array [0] = 0; 2070return test_array [0]; 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 case $ac_type in #( 2078 uint$2_t) : 2079 eval "$3=yes" ;; #( 2080 *) : 2081 eval "$3=\$ac_type" ;; 2082esac 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085 if eval test \"x\$"$3"\" = x"no"; then : 2086 2087else 2088 break 2089fi 2090 done 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_find_uintX_t 2098 2099# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2100# -------------------------------------------- 2101# Tries to find the compile-time value of EXPR in a program that includes 2102# INCLUDES, setting VAR accordingly. Returns whether the value could be 2103# computed 2104ac_fn_c_compute_int () 2105{ 2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2107 if test "$cross_compiling" = yes; then 2108 # Depending upon the size, compute the lo and hi bounds. 2109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !(($2) >= 0)]; 2116test_array [0] = 0; 2117return test_array [0]; 2118 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_lo=0 ac_mid=0 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main () 2131{ 2132static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO"; then : 2141 ac_hi=$ac_mid; break 2142else 2143 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2144 if test $ac_lo -le $ac_mid; then 2145 ac_lo= ac_hi= 2146 break 2147 fi 2148 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151 done 2152else 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159static int test_array [1 - 2 * !(($2) < 0)]; 2160test_array [0] = 0; 2161return test_array [0]; 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_hi=-1 ac_mid=-1 2169 while :; do 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main () 2175{ 2176static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2177test_array [0] = 0; 2178return test_array [0]; 2179 2180 ; 2181 return 0; 2182} 2183_ACEOF 2184if ac_fn_c_try_compile "$LINENO"; then : 2185 ac_lo=$ac_mid; break 2186else 2187 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2188 if test $ac_mid -le $ac_hi; then 2189 ac_lo= ac_hi= 2190 break 2191 fi 2192 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195 done 2196else 2197 ac_lo= ac_hi= 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202# Binary search between lo and hi bounds. 2203while test "x$ac_lo" != "x$ac_hi"; do 2204 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2212test_array [0] = 0; 2213return test_array [0]; 2214 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219if ac_fn_c_try_compile "$LINENO"; then : 2220 ac_hi=$ac_mid 2221else 2222 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2223fi 2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2225done 2226case $ac_lo in #(( 2227?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2228'') ac_retval=1 ;; 2229esac 2230 else 2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2232/* end confdefs.h. */ 2233$4 2234static long int longval () { return $2; } 2235static unsigned long int ulongval () { return $2; } 2236#include <stdio.h> 2237#include <stdlib.h> 2238int 2239main () 2240{ 2241 2242 FILE *f = fopen ("conftest.val", "w"); 2243 if (! f) 2244 return 1; 2245 if (($2) < 0) 2246 { 2247 long int i = longval (); 2248 if (i != ($2)) 2249 return 1; 2250 fprintf (f, "%ld", i); 2251 } 2252 else 2253 { 2254 unsigned long int i = ulongval (); 2255 if (i != ($2)) 2256 return 1; 2257 fprintf (f, "%lu", i); 2258 } 2259 /* Do not output a trailing newline, as this causes \r\n confusion 2260 on some platforms. */ 2261 return ferror (f) || fclose (f) != 0; 2262 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267if ac_fn_c_try_run "$LINENO"; then : 2268 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2269else 2270 ac_retval=1 2271fi 2272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2273 conftest.$ac_objext conftest.beam conftest.$ac_ext 2274rm -f conftest.val 2275 2276 fi 2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2278 as_fn_set_status $ac_retval 2279 2280} # ac_fn_c_compute_int 2281cat >auto/config.log <<_ACEOF 2282This file contains any messages produced by compilers while 2283running configure, to aid debugging if configure makes a mistake. 2284 2285It was created by $as_me, which was 2286generated by GNU Autoconf 2.69. Invocation command line was 2287 2288 $ $0 $@ 2289 2290_ACEOF 2291exec 5>>auto/config.log 2292{ 2293cat <<_ASUNAME 2294## --------- ## 2295## Platform. ## 2296## --------- ## 2297 2298hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2299uname -m = `(uname -m) 2>/dev/null || echo unknown` 2300uname -r = `(uname -r) 2>/dev/null || echo unknown` 2301uname -s = `(uname -s) 2>/dev/null || echo unknown` 2302uname -v = `(uname -v) 2>/dev/null || echo unknown` 2303 2304/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2305/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2306 2307/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2308/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2309/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2310/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2311/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2312/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2313/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2314 2315_ASUNAME 2316 2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2318for as_dir in $PATH 2319do 2320 IFS=$as_save_IFS 2321 test -z "$as_dir" && as_dir=. 2322 $as_echo "PATH: $as_dir" 2323 done 2324IFS=$as_save_IFS 2325 2326} >&5 2327 2328cat >&5 <<_ACEOF 2329 2330 2331## ----------- ## 2332## Core tests. ## 2333## ----------- ## 2334 2335_ACEOF 2336 2337 2338# Keep a trace of the command line. 2339# Strip out --no-create and --no-recursion so they do not pile up. 2340# Strip out --silent because we don't want to record it for future runs. 2341# Also quote any args containing shell meta-characters. 2342# Make two passes to allow for proper duplicate-argument suppression. 2343ac_configure_args= 2344ac_configure_args0= 2345ac_configure_args1= 2346ac_must_keep_next=false 2347for ac_pass in 1 2 2348do 2349 for ac_arg 2350 do 2351 case $ac_arg in 2352 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2354 | -silent | --silent | --silen | --sile | --sil) 2355 continue ;; 2356 *\'*) 2357 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2358 esac 2359 case $ac_pass in 2360 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2361 2) 2362 as_fn_append ac_configure_args1 " '$ac_arg'" 2363 if test $ac_must_keep_next = true; then 2364 ac_must_keep_next=false # Got value, back to normal. 2365 else 2366 case $ac_arg in 2367 *=* | --config-cache | -C | -disable-* | --disable-* \ 2368 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2369 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2370 | -with-* | --with-* | -without-* | --without-* | --x) 2371 case "$ac_configure_args0 " in 2372 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2373 esac 2374 ;; 2375 -* ) ac_must_keep_next=true ;; 2376 esac 2377 fi 2378 as_fn_append ac_configure_args " '$ac_arg'" 2379 ;; 2380 esac 2381 done 2382done 2383{ ac_configure_args0=; unset ac_configure_args0;} 2384{ ac_configure_args1=; unset ac_configure_args1;} 2385 2386# When interrupted or exit'd, cleanup temporary files, and complete 2387# config.log. We remove comments because anyway the quotes in there 2388# would cause problems or look ugly. 2389# WARNING: Use '\'' to represent an apostrophe within the trap. 2390# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2391trap 'exit_status=$? 2392 # Save into config.log some information that might help in debugging. 2393 { 2394 echo 2395 2396 $as_echo "## ---------------- ## 2397## Cache variables. ## 2398## ---------------- ##" 2399 echo 2400 # The following way of writing the cache mishandles newlines in values, 2401( 2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2403 eval ac_val=\$$ac_var 2404 case $ac_val in #( 2405 *${as_nl}*) 2406 case $ac_var in #( 2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2409 esac 2410 case $ac_var in #( 2411 _ | IFS | as_nl) ;; #( 2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2413 *) { eval $ac_var=; unset $ac_var;} ;; 2414 esac ;; 2415 esac 2416 done 2417 (set) 2>&1 | 2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2419 *${as_nl}ac_space=\ *) 2420 sed -n \ 2421 "s/'\''/'\''\\\\'\'''\''/g; 2422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2423 ;; #( 2424 *) 2425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2426 ;; 2427 esac | 2428 sort 2429) 2430 echo 2431 2432 $as_echo "## ----------------- ## 2433## Output variables. ## 2434## ----------------- ##" 2435 echo 2436 for ac_var in $ac_subst_vars 2437 do 2438 eval ac_val=\$$ac_var 2439 case $ac_val in 2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2441 esac 2442 $as_echo "$ac_var='\''$ac_val'\''" 2443 done | sort 2444 echo 2445 2446 if test -n "$ac_subst_files"; then 2447 $as_echo "## ------------------- ## 2448## File substitutions. ## 2449## ------------------- ##" 2450 echo 2451 for ac_var in $ac_subst_files 2452 do 2453 eval ac_val=\$$ac_var 2454 case $ac_val in 2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2456 esac 2457 $as_echo "$ac_var='\''$ac_val'\''" 2458 done | sort 2459 echo 2460 fi 2461 2462 if test -s confdefs.h; then 2463 $as_echo "## ----------- ## 2464## confdefs.h. ## 2465## ----------- ##" 2466 echo 2467 cat confdefs.h 2468 echo 2469 fi 2470 test "$ac_signal" != 0 && 2471 $as_echo "$as_me: caught signal $ac_signal" 2472 $as_echo "$as_me: exit $exit_status" 2473 } >&5 2474 rm -f core *.core core.conftest.* && 2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2476 exit $exit_status 2477' 0 2478for ac_signal in 1 2 13 15; do 2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2480done 2481ac_signal=0 2482 2483# confdefs.h avoids OS command line length limits that DEFS can exceed. 2484rm -f -r conftest* confdefs.h 2485 2486$as_echo "/* confdefs.h */" > confdefs.h 2487 2488# Predefined preprocessor variables. 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_NAME "$PACKAGE_NAME" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2496_ACEOF 2497 2498cat >>confdefs.h <<_ACEOF 2499#define PACKAGE_VERSION "$PACKAGE_VERSION" 2500_ACEOF 2501 2502cat >>confdefs.h <<_ACEOF 2503#define PACKAGE_STRING "$PACKAGE_STRING" 2504_ACEOF 2505 2506cat >>confdefs.h <<_ACEOF 2507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2508_ACEOF 2509 2510cat >>confdefs.h <<_ACEOF 2511#define PACKAGE_URL "$PACKAGE_URL" 2512_ACEOF 2513 2514 2515# Let the site file select an alternate cache file if it wants to. 2516# Prefer an explicitly selected file to automatically selected ones. 2517ac_site_file1=NONE 2518ac_site_file2=NONE 2519if test -n "$CONFIG_SITE"; then 2520 # We do not want a PATH search for config.site. 2521 case $CONFIG_SITE in #(( 2522 -*) ac_site_file1=./$CONFIG_SITE;; 2523 */*) ac_site_file1=$CONFIG_SITE;; 2524 *) ac_site_file1=./$CONFIG_SITE;; 2525 esac 2526elif test "x$prefix" != xNONE; then 2527 ac_site_file1=$prefix/share/config.site 2528 ac_site_file2=$prefix/etc/config.site 2529else 2530 ac_site_file1=$ac_default_prefix/share/config.site 2531 ac_site_file2=$ac_default_prefix/etc/config.site 2532fi 2533for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2534do 2535 test "x$ac_site_file" = xNONE && continue 2536 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2538$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2539 sed 's/^/| /' "$ac_site_file" >&5 2540 . "$ac_site_file" \ 2541 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2543as_fn_error $? "failed to load site script $ac_site_file 2544See \`config.log' for more details" "$LINENO" 5; } 2545 fi 2546done 2547 2548if test -r "$cache_file"; then 2549 # Some versions of bash will fail to source /dev/null (special files 2550 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2551 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2553$as_echo "$as_me: loading cache $cache_file" >&6;} 2554 case $cache_file in 2555 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2556 *) . "./$cache_file";; 2557 esac 2558 fi 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2561$as_echo "$as_me: creating cache $cache_file" >&6;} 2562 >$cache_file 2563fi 2564 2565# Check that the precious variables saved in the cache have kept the same 2566# value. 2567ac_cache_corrupted=false 2568for ac_var in $ac_precious_vars; do 2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value 2573 case $ac_old_set,$ac_new_set in 2574 set,) 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2577 ac_cache_corrupted=: ;; 2578 ,set) 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,);; 2583 *) 2584 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 # differences in whitespace do not lead to failure. 2586 ac_old_val_w=`echo x $ac_old_val` 2587 ac_new_val_w=`echo x $ac_new_val` 2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2591 ac_cache_corrupted=: 2592 else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2595 eval $ac_var=\$ac_old_val 2596 fi 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2598$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2600$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2601 fi;; 2602 esac 2603 # Pass precious variables to config.status. 2604 if test "$ac_new_set" = set; then 2605 case $ac_new_val in 2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;; 2608 esac 2609 case " $ac_configure_args " in 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2612 esac 2613 fi 2614done 2615if $ac_cache_corrupted; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2620 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2621fi 2622## -------------------- ## 2623## Main body of script. ## 2624## -------------------- ## 2625 2626ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632 2633ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2634 2635 2636$as_echo "#define UNIX 1" >>confdefs.h 2637 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2639$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2640set x ${MAKE-make} 2641ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2642if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 cat >conftest.make <<\_ACEOF 2646SHELL = /bin/sh 2647all: 2648 @echo '@@@%%%=$(MAKE)=@@@%%%' 2649_ACEOF 2650# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2651case `${MAKE-make} -f conftest.make 2>/dev/null` in 2652 *@@@%%%=?*=@@@%%%*) 2653 eval ac_cv_prog_make_${ac_make}_set=yes;; 2654 *) 2655 eval ac_cv_prog_make_${ac_make}_set=no;; 2656esac 2657rm -f conftest.make 2658fi 2659if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2661$as_echo "yes" >&6; } 2662 SET_MAKE= 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666 SET_MAKE="MAKE=${MAKE-make}" 2667fi 2668 2669 2670ac_ext=c 2671ac_cpp='$CPP $CPPFLAGS' 2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2674ac_compiler_gnu=$ac_cv_c_compiler_gnu 2675if test -n "$ac_tool_prefix"; then 2676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2677set dummy ${ac_tool_prefix}gcc; ac_word=$2 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679$as_echo_n "checking for $ac_word... " >&6; } 2680if ${ac_cv_prog_CC+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 if test -n "$CC"; then 2684 ac_cv_prog_CC="$CC" # Let the user override the test. 2685else 2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2693 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697done 2698 done 2699IFS=$as_save_IFS 2700 2701fi 2702fi 2703CC=$ac_cv_prog_CC 2704if test -n "$CC"; then 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2706$as_echo "$CC" >&6; } 2707else 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2709$as_echo "no" >&6; } 2710fi 2711 2712 2713fi 2714if test -z "$ac_cv_prog_CC"; then 2715 ac_ct_CC=$CC 2716 # Extract the first word of "gcc", so it can be a program name with args. 2717set dummy gcc; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_ac_ct_CC+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$ac_ct_CC"; then 2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_ac_ct_CC="gcc" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743ac_ct_CC=$ac_cv_prog_ac_ct_CC 2744if test -n "$ac_ct_CC"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2746$as_echo "$ac_ct_CC" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 if test "x$ac_ct_CC" = x; then 2753 CC="" 2754 else 2755 case $cross_compiling:$ac_tool_warned in 2756yes:) 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2759ac_tool_warned=yes ;; 2760esac 2761 CC=$ac_ct_CC 2762 fi 2763else 2764 CC="$ac_cv_prog_CC" 2765fi 2766 2767if test -z "$CC"; then 2768 if test -n "$ac_tool_prefix"; then 2769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2770set dummy ${ac_tool_prefix}cc; ac_word=$2 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772$as_echo_n "checking for $ac_word... " >&6; } 2773if ${ac_cv_prog_CC+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 if test -n "$CC"; then 2777 ac_cv_prog_CC="$CC" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_CC="${ac_tool_prefix}cc" 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795fi 2796CC=$ac_cv_prog_CC 2797if test -n "$CC"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2799$as_echo "$CC" >&6; } 2800else 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2802$as_echo "no" >&6; } 2803fi 2804 2805 2806 fi 2807fi 2808if test -z "$CC"; then 2809 # Extract the first word of "cc", so it can be a program name with args. 2810set dummy cc; ac_word=$2 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if ${ac_cv_prog_CC+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$CC"; then 2817 ac_cv_prog_CC="$CC" # Let the user override the test. 2818else 2819 ac_prog_rejected=no 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2828 ac_prog_rejected=yes 2829 continue 2830 fi 2831 ac_cv_prog_CC="cc" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839if test $ac_prog_rejected = yes; then 2840 # We found a bogon in the path, so make sure we never use it. 2841 set dummy $ac_cv_prog_CC 2842 shift 2843 if test $# != 0; then 2844 # We chose a different compiler from the bogus one. 2845 # However, it has the same basename, so the bogon will be chosen 2846 # first if we set CC to just the basename; use the full file name. 2847 shift 2848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2849 fi 2850fi 2851fi 2852fi 2853CC=$ac_cv_prog_CC 2854if test -n "$CC"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856$as_echo "$CC" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 2863fi 2864if test -z "$CC"; then 2865 if test -n "$ac_tool_prefix"; then 2866 for ac_prog in cl.exe 2867 do 2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871$as_echo_n "checking for $ac_word... " >&6; } 2872if ${ac_cv_prog_CC+:} false; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 if test -n "$CC"; then 2876 ac_cv_prog_CC="$CC" # Let the user override the test. 2877else 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2887 break 2 2888 fi 2889done 2890 done 2891IFS=$as_save_IFS 2892 2893fi 2894fi 2895CC=$ac_cv_prog_CC 2896if test -n "$CC"; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2898$as_echo "$CC" >&6; } 2899else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901$as_echo "no" >&6; } 2902fi 2903 2904 2905 test -n "$CC" && break 2906 done 2907fi 2908if test -z "$CC"; then 2909 ac_ct_CC=$CC 2910 for ac_prog in cl.exe 2911do 2912 # Extract the first word of "$ac_prog", so it can be a program name with args. 2913set dummy $ac_prog; ac_word=$2 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2915$as_echo_n "checking for $ac_word... " >&6; } 2916if ${ac_cv_prog_ac_ct_CC+:} false; then : 2917 $as_echo_n "(cached) " >&6 2918else 2919 if test -n "$ac_ct_CC"; then 2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 ac_cv_prog_ac_ct_CC="$ac_prog" 2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934 done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939ac_ct_CC=$ac_cv_prog_ac_ct_CC 2940if test -n "$ac_ct_CC"; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2942$as_echo "$ac_ct_CC" >&6; } 2943else 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945$as_echo "no" >&6; } 2946fi 2947 2948 2949 test -n "$ac_ct_CC" && break 2950done 2951 2952 if test "x$ac_ct_CC" = x; then 2953 CC="" 2954 else 2955 case $cross_compiling:$ac_tool_warned in 2956yes:) 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2959ac_tool_warned=yes ;; 2960esac 2961 CC=$ac_ct_CC 2962 fi 2963fi 2964 2965fi 2966 2967 2968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2970as_fn_error $? "no acceptable C compiler found in \$PATH 2971See \`config.log' for more details" "$LINENO" 5; } 2972 2973# Provide some information about the compiler. 2974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2975set X $ac_compile 2976ac_compiler=$2 2977for ac_option in --version -v -V -qversion; do 2978 { { ac_try="$ac_compiler $ac_option >&5" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2984$as_echo "$ac_try_echo"; } >&5 2985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2986 ac_status=$? 2987 if test -s conftest.err; then 2988 sed '10a\ 2989... rest of stderr output deleted ... 2990 10q' conftest.err >conftest.er1 2991 cat conftest.er1 >&5 2992 fi 2993 rm -f conftest.er1 conftest.err 2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2995 test $ac_status = 0; } 2996done 2997 2998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2999/* end confdefs.h. */ 3000 3001int 3002main () 3003{ 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009ac_clean_files_save=$ac_clean_files 3010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3011# Try to create an executable without -o first, disregard a.out. 3012# It will help us diagnose broken compilers, and finding out an intuition 3013# of exeext. 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3015$as_echo_n "checking whether the C compiler works... " >&6; } 3016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3017 3018# The possible output files: 3019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3020 3021ac_rmfiles= 3022for ac_file in $ac_files 3023do 3024 case $ac_file in 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3027 esac 3028done 3029rm -f $ac_rmfiles 3030 3031if { { ac_try="$ac_link_default" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3037$as_echo "$ac_try_echo"; } >&5 3038 (eval "$ac_link_default") 2>&5 3039 ac_status=$? 3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3041 test $ac_status = 0; }; then : 3042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3044# in a Makefile. We should not override ac_cv_exeext if it was cached, 3045# so that the user can short-circuit this test for compilers unknown to 3046# Autoconf. 3047for ac_file in $ac_files '' 3048do 3049 test -f "$ac_file" || continue 3050 case $ac_file in 3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3052 ;; 3053 [ab].out ) 3054 # We found the default executable, but exeext='' is most 3055 # certainly right. 3056 break;; 3057 *.* ) 3058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3059 then :; else 3060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3061 fi 3062 # We set ac_cv_exeext here because the later test for it is not 3063 # safe: cross compilers may not add the suffix if given an `-o' 3064 # argument, so we may need to know it at that point already. 3065 # Even if this section looks crufty: it has the advantage of 3066 # actually working. 3067 break;; 3068 * ) 3069 break;; 3070 esac 3071done 3072test "$ac_cv_exeext" = no && ac_cv_exeext= 3073 3074else 3075 ac_file='' 3076fi 3077if test -z "$ac_file"; then : 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079$as_echo "no" >&6; } 3080$as_echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3085as_fn_error 77 "C compiler cannot create executables 3086See \`config.log' for more details" "$LINENO" 5; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3089$as_echo "yes" >&6; } 3090fi 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3092$as_echo_n "checking for C compiler default output file name... " >&6; } 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3094$as_echo "$ac_file" >&6; } 3095ac_exeext=$ac_cv_exeext 3096 3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3098ac_clean_files=$ac_clean_files_save 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3100$as_echo_n "checking for suffix of executables... " >&6; } 3101if { { ac_try="$ac_link" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107$as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_link") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; }; then : 3112 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3114# work properly (i.e., refer to `conftest.exe'), while it won't with 3115# `rm'. 3116for ac_file in conftest.exe conftest conftest.*; do 3117 test -f "$ac_file" || continue 3118 case $ac_file in 3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 break;; 3122 * ) break;; 3123 esac 3124done 3125else 3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3128as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3129See \`config.log' for more details" "$LINENO" 5; } 3130fi 3131rm -f conftest conftest$ac_cv_exeext 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3133$as_echo "$ac_cv_exeext" >&6; } 3134 3135rm -f conftest.$ac_ext 3136EXEEXT=$ac_cv_exeext 3137ac_exeext=$EXEEXT 3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3139/* end confdefs.h. */ 3140#include <stdio.h> 3141int 3142main () 3143{ 3144FILE *f = fopen ("conftest.out", "w"); 3145 return ferror (f) || fclose (f) != 0; 3146 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151ac_clean_files="$ac_clean_files conftest.out" 3152# Check that the compiler produces executables we can run. If not, either 3153# the compiler is broken, or we cross compile. 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3155$as_echo_n "checking whether we are cross compiling... " >&6; } 3156if test "$cross_compiling" != yes; then 3157 { { ac_try="$ac_link" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163$as_echo "$ac_try_echo"; } >&5 3164 (eval "$ac_link") 2>&5 3165 ac_status=$? 3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; } 3168 if { ac_try='./conftest$ac_cv_exeext' 3169 { { case "(($ac_try" in 3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171 *) ac_try_echo=$ac_try;; 3172esac 3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3174$as_echo "$ac_try_echo"; } >&5 3175 (eval "$ac_try") 2>&5 3176 ac_status=$? 3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3178 test $ac_status = 0; }; }; then 3179 cross_compiling=no 3180 else 3181 if test "$cross_compiling" = maybe; then 3182 cross_compiling=yes 3183 else 3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3186as_fn_error $? "cannot run C compiled programs. 3187If you meant to cross compile, use \`--host'. 3188See \`config.log' for more details" "$LINENO" 5; } 3189 fi 3190 fi 3191fi 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3193$as_echo "$cross_compiling" >&6; } 3194 3195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3196ac_clean_files=$ac_clean_files_save 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3198$as_echo_n "checking for suffix of object files... " >&6; } 3199if ${ac_cv_objext+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204 3205int 3206main () 3207{ 3208 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213rm -f conftest.o conftest.obj 3214if { { ac_try="$ac_compile" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220$as_echo "$ac_try_echo"; } >&5 3221 (eval "$ac_compile") 2>&5 3222 ac_status=$? 3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; }; then : 3225 for ac_file in conftest.o conftest.obj conftest.*; do 3226 test -f "$ac_file" || continue; 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3230 break;; 3231 esac 3232done 3233else 3234 $as_echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "cannot compute suffix of object files: cannot compile 3240See \`config.log' for more details" "$LINENO" 5; } 3241fi 3242rm -f conftest.$ac_cv_objext conftest.$ac_ext 3243fi 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3245$as_echo "$ac_cv_objext" >&6; } 3246OBJEXT=$ac_cv_objext 3247ac_objext=$OBJEXT 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3250if ${ac_cv_c_compiler_gnu+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3254/* end confdefs.h. */ 3255 3256int 3257main () 3258{ 3259#ifndef __GNUC__ 3260 choke me 3261#endif 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267if ac_fn_c_try_compile "$LINENO"; then : 3268 ac_compiler_gnu=yes 3269else 3270 ac_compiler_gnu=no 3271fi 3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3273ac_cv_c_compiler_gnu=$ac_compiler_gnu 3274 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3277$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3278if test $ac_compiler_gnu = yes; then 3279 GCC=yes 3280else 3281 GCC= 3282fi 3283ac_test_CFLAGS=${CFLAGS+set} 3284ac_save_CFLAGS=$CFLAGS 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3286$as_echo_n "checking whether $CC accepts -g... " >&6; } 3287if ${ac_cv_prog_cc_g+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 ac_save_c_werror_flag=$ac_c_werror_flag 3291 ac_c_werror_flag=yes 3292 ac_cv_prog_cc_g=no 3293 CFLAGS="-g" 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3295/* end confdefs.h. */ 3296 3297int 3298main () 3299{ 3300 3301 ; 3302 return 0; 3303} 3304_ACEOF 3305if ac_fn_c_try_compile "$LINENO"; then : 3306 ac_cv_prog_cc_g=yes 3307else 3308 CFLAGS="" 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320if ac_fn_c_try_compile "$LINENO"; then : 3321 3322else 3323 ac_c_werror_flag=$ac_save_c_werror_flag 3324 CFLAGS="-g" 3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3326/* end confdefs.h. */ 3327 3328int 3329main () 3330{ 3331 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336if ac_fn_c_try_compile "$LINENO"; then : 3337 ac_cv_prog_cc_g=yes 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340fi 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342fi 3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3344 ac_c_werror_flag=$ac_save_c_werror_flag 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3347$as_echo "$ac_cv_prog_cc_g" >&6; } 3348if test "$ac_test_CFLAGS" = set; then 3349 CFLAGS=$ac_save_CFLAGS 3350elif test $ac_cv_prog_cc_g = yes; then 3351 if test "$GCC" = yes; then 3352 CFLAGS="-g -O2" 3353 else 3354 CFLAGS="-g" 3355 fi 3356else 3357 if test "$GCC" = yes; then 3358 CFLAGS="-O2" 3359 else 3360 CFLAGS= 3361 fi 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3365if ${ac_cv_prog_cc_c89+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 ac_cv_prog_cc_c89=no 3369ac_save_CC=$CC 3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372#include <stdarg.h> 3373#include <stdio.h> 3374struct stat; 3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3376struct buf { int x; }; 3377FILE * (*rcsopen) (struct buf *, struct stat *, int); 3378static char *e (p, i) 3379 char **p; 3380 int i; 3381{ 3382 return p[i]; 3383} 3384static char *f (char * (*g) (char **, int), char **p, ...) 3385{ 3386 char *s; 3387 va_list v; 3388 va_start (v,p); 3389 s = g (p, va_arg (v,int)); 3390 va_end (v); 3391 return s; 3392} 3393 3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3395 function prototypes and stuff, but not '\xHH' hex character constants. 3396 These don't provoke an error unfortunately, instead are silently treated 3397 as 'x'. The following induces an error, until -std is added to get 3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3399 array size at least. It's necessary to write '\x00'==0 to get something 3400 that's true only with -std. */ 3401int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3402 3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3404 inside strings and character constants. */ 3405#define FOO(x) 'x' 3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3407 3408int test (int i, double x); 3409struct s1 {int (*f) (int a);}; 3410struct s2 {int (*f) (double a);}; 3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3412int argc; 3413char **argv; 3414int 3415main () 3416{ 3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3424do 3425 CC="$ac_save_CC $ac_arg" 3426 if ac_fn_c_try_compile "$LINENO"; then : 3427 ac_cv_prog_cc_c89=$ac_arg 3428fi 3429rm -f core conftest.err conftest.$ac_objext 3430 test "x$ac_cv_prog_cc_c89" != "xno" && break 3431done 3432rm -f conftest.$ac_ext 3433CC=$ac_save_CC 3434 3435fi 3436# AC_CACHE_VAL 3437case "x$ac_cv_prog_cc_c89" in 3438 x) 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3440$as_echo "none needed" >&6; } ;; 3441 xno) 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3443$as_echo "unsupported" >&6; } ;; 3444 *) 3445 CC="$CC $ac_cv_prog_cc_c89" 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3448esac 3449if test "x$ac_cv_prog_cc_c89" != xno; then : 3450 3451fi 3452 3453ac_ext=c 3454ac_cpp='$CPP $CPPFLAGS' 3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3457ac_compiler_gnu=$ac_cv_c_compiler_gnu 3458 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3460$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3461if ${ac_cv_prog_cc_c99+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463else 3464 ac_cv_prog_cc_c99=no 3465ac_save_CC=$CC 3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468#include <stdarg.h> 3469#include <stdbool.h> 3470#include <stdlib.h> 3471#include <wchar.h> 3472#include <stdio.h> 3473 3474// Check varargs macros. These examples are taken from C99 6.10.3.5. 3475#define debug(...) fprintf (stderr, __VA_ARGS__) 3476#define showlist(...) puts (#__VA_ARGS__) 3477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3478static void 3479test_varargs_macros (void) 3480{ 3481 int x = 1234; 3482 int y = 5678; 3483 debug ("Flag"); 3484 debug ("X = %d\n", x); 3485 showlist (The first, second, and third items.); 3486 report (x>y, "x is %d but y is %d", x, y); 3487} 3488 3489// Check long long types. 3490#define BIG64 18446744073709551615ull 3491#define BIG32 4294967295ul 3492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3493#if !BIG_OK 3494 your preprocessor is broken; 3495#endif 3496#if BIG_OK 3497#else 3498 your preprocessor is broken; 3499#endif 3500static long long int bignum = -9223372036854775807LL; 3501static unsigned long long int ubignum = BIG64; 3502 3503struct incomplete_array 3504{ 3505 int datasize; 3506 double data[]; 3507}; 3508 3509struct named_init { 3510 int number; 3511 const wchar_t *name; 3512 double average; 3513}; 3514 3515typedef const char *ccp; 3516 3517static inline int 3518test_restrict (ccp restrict text) 3519{ 3520 // See if C++-style comments work. 3521 // Iterate through items via the restricted pointer. 3522 // Also check for declarations in for loops. 3523 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3524 continue; 3525 return 0; 3526} 3527 3528// Check varargs and va_copy. 3529static void 3530test_varargs (const char *format, ...) 3531{ 3532 va_list args; 3533 va_start (args, format); 3534 va_list args_copy; 3535 va_copy (args_copy, args); 3536 3537 const char *str; 3538 int number; 3539 float fnumber; 3540 3541 while (*format) 3542 { 3543 switch (*format++) 3544 { 3545 case 's': // string 3546 str = va_arg (args_copy, const char *); 3547 break; 3548 case 'd': // int 3549 number = va_arg (args_copy, int); 3550 break; 3551 case 'f': // float 3552 fnumber = va_arg (args_copy, double); 3553 break; 3554 default: 3555 break; 3556 } 3557 } 3558 va_end (args_copy); 3559 va_end (args); 3560} 3561 3562int 3563main () 3564{ 3565 3566 // Check bool. 3567 _Bool success = false; 3568 3569 // Check restrict. 3570 if (test_restrict ("String literal") == 0) 3571 success = true; 3572 char *restrict newvar = "Another string"; 3573 3574 // Check varargs. 3575 test_varargs ("s, d' f .", "string", 65, 34.234); 3576 test_varargs_macros (); 3577 3578 // Check flexible array members. 3579 struct incomplete_array *ia = 3580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3581 ia->datasize = 10; 3582 for (int i = 0; i < ia->datasize; ++i) 3583 ia->data[i] = i * 1.234; 3584 3585 // Check named initializers. 3586 struct named_init ni = { 3587 .number = 34, 3588 .name = L"Test wide string", 3589 .average = 543.34343, 3590 }; 3591 3592 ni.number = 58; 3593 3594 int dynamic_array[ni.number]; 3595 dynamic_array[ni.number - 1] = 543; 3596 3597 // work around unused variable warnings 3598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3599 || dynamic_array[ni.number - 1] != 543); 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3606do 3607 CC="$ac_save_CC $ac_arg" 3608 if ac_fn_c_try_compile "$LINENO"; then : 3609 ac_cv_prog_cc_c99=$ac_arg 3610fi 3611rm -f core conftest.err conftest.$ac_objext 3612 test "x$ac_cv_prog_cc_c99" != "xno" && break 3613done 3614rm -f conftest.$ac_ext 3615CC=$ac_save_CC 3616 3617fi 3618# AC_CACHE_VAL 3619case "x$ac_cv_prog_cc_c99" in 3620 x) 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3622$as_echo "none needed" >&6; } ;; 3623 xno) 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3625$as_echo "unsupported" >&6; } ;; 3626 *) 3627 CC="$CC $ac_cv_prog_cc_c99" 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3629$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3630esac 3631if test "x$ac_cv_prog_cc_c99" != xno; then : 3632 3633fi 3634 3635 ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3641$as_echo_n "checking how to run the C preprocessor... " >&6; } 3642# On Suns, sometimes $CPP names a directory. 3643if test -n "$CPP" && test -d "$CPP"; then 3644 CPP= 3645fi 3646if test -z "$CPP"; then 3647 if ${ac_cv_prog_CPP+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 # Double quotes because CPP needs to be expanded 3651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3652 do 3653 ac_preproc_ok=false 3654for ac_c_preproc_warn_flag in '' yes 3655do 3656 # Use a header file that comes with gcc, so configuring glibc 3657 # with a fresh cross-compiler works. 3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3659 # <limits.h> exists even on freestanding compilers. 3660 # On the NeXT, cc -E runs the code through the compiler's parser, 3661 # not just through cpp. "Syntax error" is here to catch this case. 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664#ifdef __STDC__ 3665# include <limits.h> 3666#else 3667# include <assert.h> 3668#endif 3669 Syntax error 3670_ACEOF 3671if ac_fn_c_try_cpp "$LINENO"; then : 3672 3673else 3674 # Broken: fails on valid input. 3675continue 3676fi 3677rm -f conftest.err conftest.i conftest.$ac_ext 3678 3679 # OK, works on sane cases. Now check whether nonexistent headers 3680 # can be detected and how. 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683#include <ac_nonexistent.h> 3684_ACEOF 3685if ac_fn_c_try_cpp "$LINENO"; then : 3686 # Broken: success on invalid input. 3687continue 3688else 3689 # Passes both tests. 3690ac_preproc_ok=: 3691break 3692fi 3693rm -f conftest.err conftest.i conftest.$ac_ext 3694 3695done 3696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3697rm -f conftest.i conftest.err conftest.$ac_ext 3698if $ac_preproc_ok; then : 3699 break 3700fi 3701 3702 done 3703 ac_cv_prog_CPP=$CPP 3704 3705fi 3706 CPP=$ac_cv_prog_CPP 3707else 3708 ac_cv_prog_CPP=$CPP 3709fi 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3711$as_echo "$CPP" >&6; } 3712ac_preproc_ok=false 3713for ac_c_preproc_warn_flag in '' yes 3714do 3715 # Use a header file that comes with gcc, so configuring glibc 3716 # with a fresh cross-compiler works. 3717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3718 # <limits.h> exists even on freestanding compilers. 3719 # On the NeXT, cc -E runs the code through the compiler's parser, 3720 # not just through cpp. "Syntax error" is here to catch this case. 3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722/* end confdefs.h. */ 3723#ifdef __STDC__ 3724# include <limits.h> 3725#else 3726# include <assert.h> 3727#endif 3728 Syntax error 3729_ACEOF 3730if ac_fn_c_try_cpp "$LINENO"; then : 3731 3732else 3733 # Broken: fails on valid input. 3734continue 3735fi 3736rm -f conftest.err conftest.i conftest.$ac_ext 3737 3738 # OK, works on sane cases. Now check whether nonexistent headers 3739 # can be detected and how. 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742#include <ac_nonexistent.h> 3743_ACEOF 3744if ac_fn_c_try_cpp "$LINENO"; then : 3745 # Broken: success on invalid input. 3746continue 3747else 3748 # Passes both tests. 3749ac_preproc_ok=: 3750break 3751fi 3752rm -f conftest.err conftest.i conftest.$ac_ext 3753 3754done 3755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3756rm -f conftest.i conftest.err conftest.$ac_ext 3757if $ac_preproc_ok; then : 3758 3759else 3760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3763See \`config.log' for more details" "$LINENO" 5; } 3764fi 3765 3766ac_ext=c 3767ac_cpp='$CPP $CPPFLAGS' 3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771 3772 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3774$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3775if ${ac_cv_path_GREP+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 if test -z "$GREP"; then 3779 ac_path_GREP_found=false 3780 # Loop through the user's path and test for each of PROGNAME-LIST 3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3783do 3784 IFS=$as_save_IFS 3785 test -z "$as_dir" && as_dir=. 3786 for ac_prog in grep ggrep; do 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3789 as_fn_executable_p "$ac_path_GREP" || continue 3790# Check for GNU ac_path_GREP and select it if it is found. 3791 # Check for GNU $ac_path_GREP 3792case `"$ac_path_GREP" --version 2>&1` in 3793*GNU*) 3794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3795*) 3796 ac_count=0 3797 $as_echo_n 0123456789 >"conftest.in" 3798 while : 3799 do 3800 cat "conftest.in" "conftest.in" >"conftest.tmp" 3801 mv "conftest.tmp" "conftest.in" 3802 cp "conftest.in" "conftest.nl" 3803 $as_echo 'GREP' >> "conftest.nl" 3804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3806 as_fn_arith $ac_count + 1 && ac_count=$as_val 3807 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3808 # Best one so far, save it but keep looking for a better one 3809 ac_cv_path_GREP="$ac_path_GREP" 3810 ac_path_GREP_max=$ac_count 3811 fi 3812 # 10*(2^10) chars as input seems more than enough 3813 test $ac_count -gt 10 && break 3814 done 3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3816esac 3817 3818 $ac_path_GREP_found && break 3 3819 done 3820 done 3821 done 3822IFS=$as_save_IFS 3823 if test -z "$ac_cv_path_GREP"; then 3824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3825 fi 3826else 3827 ac_cv_path_GREP=$GREP 3828fi 3829 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3832$as_echo "$ac_cv_path_GREP" >&6; } 3833 GREP="$ac_cv_path_GREP" 3834 3835 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3837$as_echo_n "checking for egrep... " >&6; } 3838if ${ac_cv_path_EGREP+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3842 then ac_cv_path_EGREP="$GREP -E" 3843 else 3844 if test -z "$EGREP"; then 3845 ac_path_EGREP_found=false 3846 # Loop through the user's path and test for each of PROGNAME-LIST 3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3849do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_prog in egrep; do 3853 for ac_exec_ext in '' $ac_executable_extensions; do 3854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3855 as_fn_executable_p "$ac_path_EGREP" || continue 3856# Check for GNU ac_path_EGREP and select it if it is found. 3857 # Check for GNU $ac_path_EGREP 3858case `"$ac_path_EGREP" --version 2>&1` in 3859*GNU*) 3860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3861*) 3862 ac_count=0 3863 $as_echo_n 0123456789 >"conftest.in" 3864 while : 3865 do 3866 cat "conftest.in" "conftest.in" >"conftest.tmp" 3867 mv "conftest.tmp" "conftest.in" 3868 cp "conftest.in" "conftest.nl" 3869 $as_echo 'EGREP' >> "conftest.nl" 3870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3872 as_fn_arith $ac_count + 1 && ac_count=$as_val 3873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3874 # Best one so far, save it but keep looking for a better one 3875 ac_cv_path_EGREP="$ac_path_EGREP" 3876 ac_path_EGREP_max=$ac_count 3877 fi 3878 # 10*(2^10) chars as input seems more than enough 3879 test $ac_count -gt 10 && break 3880 done 3881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3882esac 3883 3884 $ac_path_EGREP_found && break 3 3885 done 3886 done 3887 done 3888IFS=$as_save_IFS 3889 if test -z "$ac_cv_path_EGREP"; then 3890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3891 fi 3892else 3893 ac_cv_path_EGREP=$EGREP 3894fi 3895 3896 fi 3897fi 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3899$as_echo "$ac_cv_path_EGREP" >&6; } 3900 EGREP="$ac_cv_path_EGREP" 3901 3902 3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905 3906_ACEOF 3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3908 $EGREP "" >/dev/null 2>&1; then : 3909 3910fi 3911rm -f conftest* 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3913$as_echo_n "checking for fgrep... " >&6; } 3914if ${ac_cv_path_FGREP+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3918 then ac_cv_path_FGREP="$GREP -F" 3919 else 3920 if test -z "$FGREP"; then 3921 ac_path_FGREP_found=false 3922 # Loop through the user's path and test for each of PROGNAME-LIST 3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_prog in fgrep; do 3929 for ac_exec_ext in '' $ac_executable_extensions; do 3930 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3931 as_fn_executable_p "$ac_path_FGREP" || continue 3932# Check for GNU ac_path_FGREP and select it if it is found. 3933 # Check for GNU $ac_path_FGREP 3934case `"$ac_path_FGREP" --version 2>&1` in 3935*GNU*) 3936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3937*) 3938 ac_count=0 3939 $as_echo_n 0123456789 >"conftest.in" 3940 while : 3941 do 3942 cat "conftest.in" "conftest.in" >"conftest.tmp" 3943 mv "conftest.tmp" "conftest.in" 3944 cp "conftest.in" "conftest.nl" 3945 $as_echo 'FGREP' >> "conftest.nl" 3946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3948 as_fn_arith $ac_count + 1 && ac_count=$as_val 3949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3950 # Best one so far, save it but keep looking for a better one 3951 ac_cv_path_FGREP="$ac_path_FGREP" 3952 ac_path_FGREP_max=$ac_count 3953 fi 3954 # 10*(2^10) chars as input seems more than enough 3955 test $ac_count -gt 10 && break 3956 done 3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3958esac 3959 3960 $ac_path_FGREP_found && break 3 3961 done 3962 done 3963 done 3964IFS=$as_save_IFS 3965 if test -z "$ac_cv_path_FGREP"; then 3966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3967 fi 3968else 3969 ac_cv_path_FGREP=$FGREP 3970fi 3971 3972 fi 3973fi 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3975$as_echo "$ac_cv_path_FGREP" >&6; } 3976 FGREP="$ac_cv_path_FGREP" 3977 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3979$as_echo_n "checking for library containing strerror... " >&6; } 3980if ${ac_cv_search_strerror+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 ac_func_search_save_LIBS=$LIBS 3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987/* Override any GCC internal prototype to avoid an error. 3988 Use char because int might match the return type of a GCC 3989 builtin and then its argument prototype would still apply. */ 3990#ifdef __cplusplus 3991extern "C" 3992#endif 3993char strerror (); 3994int 3995main () 3996{ 3997return strerror (); 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002for ac_lib in '' cposix; do 4003 if test -z "$ac_lib"; then 4004 ac_res="none required" 4005 else 4006 ac_res=-l$ac_lib 4007 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4008 fi 4009 if ac_fn_c_try_link "$LINENO"; then : 4010 ac_cv_search_strerror=$ac_res 4011fi 4012rm -f core conftest.err conftest.$ac_objext \ 4013 conftest$ac_exeext 4014 if ${ac_cv_search_strerror+:} false; then : 4015 break 4016fi 4017done 4018if ${ac_cv_search_strerror+:} false; then : 4019 4020else 4021 ac_cv_search_strerror=no 4022fi 4023rm conftest.$ac_ext 4024LIBS=$ac_func_search_save_LIBS 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4027$as_echo "$ac_cv_search_strerror" >&6; } 4028ac_res=$ac_cv_search_strerror 4029if test "$ac_res" != no; then : 4030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4031 4032fi 4033 for ac_prog in gawk mawk nawk awk 4034do 4035 # Extract the first word of "$ac_prog", so it can be a program name with args. 4036set dummy $ac_prog; ac_word=$2 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4038$as_echo_n "checking for $ac_word... " >&6; } 4039if ${ac_cv_prog_AWK+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 if test -n "$AWK"; then 4043 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4044else 4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046for as_dir in $PATH 4047do 4048 IFS=$as_save_IFS 4049 test -z "$as_dir" && as_dir=. 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4052 ac_cv_prog_AWK="$ac_prog" 4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4054 break 2 4055 fi 4056done 4057 done 4058IFS=$as_save_IFS 4059 4060fi 4061fi 4062AWK=$ac_cv_prog_AWK 4063if test -n "$AWK"; then 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4065$as_echo "$AWK" >&6; } 4066else 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4068$as_echo "no" >&6; } 4069fi 4070 4071 4072 test -n "$AWK" && break 4073done 4074 4075# Extract the first word of "strip", so it can be a program name with args. 4076set dummy strip; ac_word=$2 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4078$as_echo_n "checking for $ac_word... " >&6; } 4079if ${ac_cv_prog_STRIP+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 if test -n "$STRIP"; then 4083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4084else 4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4086for as_dir in $PATH 4087do 4088 IFS=$as_save_IFS 4089 test -z "$as_dir" && as_dir=. 4090 for ac_exec_ext in '' $ac_executable_extensions; do 4091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4092 ac_cv_prog_STRIP="strip" 4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4094 break 2 4095 fi 4096done 4097 done 4098IFS=$as_save_IFS 4099 4100 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4101fi 4102fi 4103STRIP=$ac_cv_prog_STRIP 4104if test -n "$STRIP"; then 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4106$as_echo "$STRIP" >&6; } 4107else 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4109$as_echo "no" >&6; } 4110fi 4111 4112 4113 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4117$as_echo_n "checking for ANSI C header files... " >&6; } 4118if ${ac_cv_header_stdc+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123#include <stdlib.h> 4124#include <stdarg.h> 4125#include <string.h> 4126#include <float.h> 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136if ac_fn_c_try_compile "$LINENO"; then : 4137 ac_cv_header_stdc=yes 4138else 4139 ac_cv_header_stdc=no 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 4143if test $ac_cv_header_stdc = yes; then 4144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147#include <string.h> 4148 4149_ACEOF 4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4151 $EGREP "memchr" >/dev/null 2>&1; then : 4152 4153else 4154 ac_cv_header_stdc=no 4155fi 4156rm -f conftest* 4157 4158fi 4159 4160if test $ac_cv_header_stdc = yes; then 4161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164#include <stdlib.h> 4165 4166_ACEOF 4167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4168 $EGREP "free" >/dev/null 2>&1; then : 4169 4170else 4171 ac_cv_header_stdc=no 4172fi 4173rm -f conftest* 4174 4175fi 4176 4177if test $ac_cv_header_stdc = yes; then 4178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4179 if test "$cross_compiling" = yes; then : 4180 : 4181else 4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183/* end confdefs.h. */ 4184#include <ctype.h> 4185#include <stdlib.h> 4186#if ((' ' & 0x0FF) == 0x020) 4187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4189#else 4190# define ISLOWER(c) \ 4191 (('a' <= (c) && (c) <= 'i') \ 4192 || ('j' <= (c) && (c) <= 'r') \ 4193 || ('s' <= (c) && (c) <= 'z')) 4194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4195#endif 4196 4197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4198int 4199main () 4200{ 4201 int i; 4202 for (i = 0; i < 256; i++) 4203 if (XOR (islower (i), ISLOWER (i)) 4204 || toupper (i) != TOUPPER (i)) 4205 return 2; 4206 return 0; 4207} 4208_ACEOF 4209if ac_fn_c_try_run "$LINENO"; then : 4210 4211else 4212 ac_cv_header_stdc=no 4213fi 4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4215 conftest.$ac_objext conftest.beam conftest.$ac_ext 4216fi 4217 4218fi 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4221$as_echo "$ac_cv_header_stdc" >&6; } 4222if test $ac_cv_header_stdc = yes; then 4223 4224$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4225 4226fi 4227 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4229$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4230if ${ac_cv_header_sys_wait_h+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235#include <sys/types.h> 4236#include <sys/wait.h> 4237#ifndef WEXITSTATUS 4238# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4239#endif 4240#ifndef WIFEXITED 4241# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4242#endif 4243 4244int 4245main () 4246{ 4247 int s; 4248 wait (&s); 4249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_header_sys_wait_h=yes 4256else 4257 ac_cv_header_sys_wait_h=no 4258fi 4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4262$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4263if test $ac_cv_header_sys_wait_h = yes; then 4264 4265$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4266 4267fi 4268 4269 4270if test x"$ac_cv_prog_cc_c99" != xno; then 4271 4272 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 4274$as_echo_n "checking for unsigned long long int... " >&6; } 4275if ${ac_cv_type_unsigned_long_long_int+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 ac_cv_type_unsigned_long_long_int=yes 4279 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283 /* For now, do not test the preprocessor; as of 2007 there are too many 4284 implementations with broken preprocessors. Perhaps this can 4285 be revisited in 2012. In the meantime, code should not expect 4286 #if to work with literals wider than 32 bits. */ 4287 /* Test literals. */ 4288 long long int ll = 9223372036854775807ll; 4289 long long int nll = -9223372036854775807LL; 4290 unsigned long long int ull = 18446744073709551615ULL; 4291 /* Test constant expressions. */ 4292 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 4293 ? 1 : -1)]; 4294 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 4295 ? 1 : -1)]; 4296 int i = 63; 4297int 4298main () 4299{ 4300/* Test availability of runtime routines for shift and division. */ 4301 long long int llmax = 9223372036854775807ll; 4302 unsigned long long int ullmax = 18446744073709551615ull; 4303 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 4304 | (llmax / ll) | (llmax % ll) 4305 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 4306 | (ullmax / ull) | (ullmax % ull)); 4307 ; 4308 return 0; 4309} 4310 4311_ACEOF 4312if ac_fn_c_try_link "$LINENO"; then : 4313 4314else 4315 ac_cv_type_unsigned_long_long_int=no 4316fi 4317rm -f core conftest.err conftest.$ac_objext \ 4318 conftest$ac_exeext conftest.$ac_ext 4319 fi 4320fi 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 4322$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 4323 if test $ac_cv_type_unsigned_long_long_int = yes; then 4324 4325$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 4326 4327 fi 4328 4329 4330 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 4332$as_echo_n "checking for long long int... " >&6; } 4333if ${ac_cv_type_long_long_int+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 ac_cv_type_long_long_int=yes 4337 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4338 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 4339 if test $ac_cv_type_long_long_int = yes; then 4340 if test "$cross_compiling" = yes; then : 4341 : 4342else 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345#include <limits.h> 4346 #ifndef LLONG_MAX 4347 # define HALF \ 4348 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 4349 # define LLONG_MAX (HALF - 1 + HALF) 4350 #endif 4351int 4352main () 4353{ 4354long long int n = 1; 4355 int i; 4356 for (i = 0; ; i++) 4357 { 4358 long long int m = n << i; 4359 if (m >> i != n) 4360 return 1; 4361 if (LLONG_MAX / 2 < m) 4362 break; 4363 } 4364 return 0; 4365 ; 4366 return 0; 4367} 4368_ACEOF 4369if ac_fn_c_try_run "$LINENO"; then : 4370 4371else 4372 ac_cv_type_long_long_int=no 4373fi 4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4375 conftest.$ac_objext conftest.beam conftest.$ac_ext 4376fi 4377 4378 fi 4379 fi 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 4382$as_echo "$ac_cv_type_long_long_int" >&6; } 4383 if test $ac_cv_type_long_long_int = yes; then 4384 4385$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 4386 4387 fi 4388 4389 if test "$ac_cv_type_long_long_int" = no; then 4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4392as_fn_error $? "Compiler does not support long long int 4393See \`config.log' for more details" "$LINENO" 5; } 4394 fi 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 4397$as_echo_n "checking if the compiler supports trailing commas... " >&6; } 4398 trailing_commas=no 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401 4402int 4403main () 4404{ 4405 4406 enum { 4407 one, 4408 }; 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413if ac_fn_c_try_compile "$LINENO"; then : 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4415$as_echo "yes" >&6; }; trailing_commas=yes 4416else 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4418$as_echo "no" >&6; } 4419fi 4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4421 if test "$trailing_commas" = no; then 4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4424as_fn_error $? "Compiler does not support trailing comma in enum 4425See \`config.log' for more details" "$LINENO" 5; } 4426 fi 4427 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 4429$as_echo_n "checking if the compiler supports C++ comments... " >&6; } 4430 slash_comments=no 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432/* end confdefs.h. */ 4433 4434int 4435main () 4436{ 4437// C++ comments? 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442if ac_fn_c_try_compile "$LINENO"; then : 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4444$as_echo "yes" >&6; }; slash_comments=yes 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447$as_echo "no" >&6; } 4448fi 4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4450 if test "$slash_comments" = no; then 4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4453as_fn_error $? "Compiler does not support C++ comments 4454See \`config.log' for more details" "$LINENO" 5; } 4455 fi 4456fi 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4460$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4461# Check whether --enable-fail_if_missing was given. 4462if test "${enable_fail_if_missing+set}" = set; then : 4463 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4464else 4465 fail_if_missing="no" 4466fi 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4469$as_echo "$fail_if_missing" >&6; } 4470 4471with_x_arg="$with_x" 4472 4473if test -z "$CFLAGS"; then 4474 CFLAGS="-O" 4475 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4476fi 4477if test "$GCC" = yes; then 4478 gccversion=`$CC -dumpversion` 4479 if test "x$gccversion" = "x"; then 4480 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4481 fi 4482 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4483 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4484 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4485 else 4486 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4487 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4488 CFLAGS="$CFLAGS -fno-strength-reduce" 4489 fi 4490 fi 4491fi 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4494$as_echo_n "checking for clang version... " >&6; } 4495CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4496if test x"$CLANG_VERSION_STRING" != x"" ; then 4497 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4498 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4499 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4500 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4502$as_echo "$CLANG_VERSION" >&6; } 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4504$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4505 if test "$CLANG_VERSION" -ge 500002075 ; then 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4507$as_echo "no" >&6; } 4508 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4509 else 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4511$as_echo "yes" >&6; } 4512 fi 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4515$as_echo "N/A" >&6; } 4516fi 4517 4518CROSS_COMPILING= 4519if test "$cross_compiling" = yes; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4521$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4522 CROSS_COMPILING=1 4523fi 4524 4525 4526test "$GCC" = yes && CPP_MM=M; 4527 4528if test -f ./toolcheck; then 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4530$as_echo "$as_me: checking for buggy tools..." >&6;} 4531 sh ./toolcheck 1>&6 4532fi 4533 4534OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4537$as_echo_n "checking for BeOS... " >&6; } 4538case `uname` in 4539 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4540 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4541$as_echo "yes" >&6; };; 4542 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; };; 4544esac 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4547$as_echo_n "checking for QNX... " >&6; } 4548case `uname` in 4549 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4550 test -z "$with_x" && with_x=no 4551 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4552$as_echo "yes" >&6; };; 4553 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554$as_echo "no" >&6; };; 4555esac 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4558$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4559if test "`(uname) 2>/dev/null`" = Darwin; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4561$as_echo "yes" >&6; } 4562 MACOS_X=yes 4563 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4564 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4566$as_echo_n "checking --disable-darwin argument... " >&6; } 4567 # Check whether --enable-darwin was given. 4568if test "${enable_darwin+set}" = set; then : 4569 enableval=$enable_darwin; 4570else 4571 enable_darwin="yes" 4572fi 4573 4574 if test "$enable_darwin" = "yes"; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576$as_echo "no" >&6; } 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4578$as_echo_n "checking if Darwin files are there... " >&6; } 4579 if test -f os_macosx.m; then 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4581$as_echo "yes" >&6; } 4582 else 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4584$as_echo "no, Darwin support disabled" >&6; } 4585 enable_darwin=no 4586 fi 4587 else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4589$as_echo "yes, Darwin support excluded" >&6; } 4590 fi 4591 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4593$as_echo_n "checking --with-mac-arch argument... " >&6; } 4594 4595# Check whether --with-mac-arch was given. 4596if test "${with_mac_arch+set}" = set; then : 4597 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4598$as_echo "$MACARCH" >&6; } 4599else 4600 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4601$as_echo "defaulting to $MACARCH" >&6; } 4602fi 4603 4604 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4606$as_echo_n "checking --with-developer-dir argument... " >&6; } 4607 4608# Check whether --with-developer-dir was given. 4609if test "${with_developer_dir+set}" = set; then : 4610 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4611$as_echo "$DEVELOPER_DIR" >&6; } 4612else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4614$as_echo "not present" >&6; } 4615fi 4616 4617 4618 if test "x$DEVELOPER_DIR" = "x"; then 4619 # Extract the first word of "xcode-select", so it can be a program name with args. 4620set dummy xcode-select; ac_word=$2 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4622$as_echo_n "checking for $ac_word... " >&6; } 4623if ${ac_cv_path_XCODE_SELECT+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 case $XCODE_SELECT in 4627 [\\/]* | ?:[\\/]*) 4628 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4629 ;; 4630 *) 4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4632for as_dir in $PATH 4633do 4634 IFS=$as_save_IFS 4635 test -z "$as_dir" && as_dir=. 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4638 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4640 break 2 4641 fi 4642done 4643 done 4644IFS=$as_save_IFS 4645 4646 ;; 4647esac 4648fi 4649XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4650if test -n "$XCODE_SELECT"; then 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4652$as_echo "$XCODE_SELECT" >&6; } 4653else 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655$as_echo "no" >&6; } 4656fi 4657 4658 4659 if test "x$XCODE_SELECT" != "x"; then 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4661$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4662 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4664$as_echo "$DEVELOPER_DIR" >&6; } 4665 else 4666 DEVELOPER_DIR=/Developer 4667 fi 4668 fi 4669 4670 if test "x$MACARCH" = "xboth"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4672$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4673 save_cppflags="$CPPFLAGS" 4674 save_cflags="$CFLAGS" 4675 save_ldflags="$LDFLAGS" 4676 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4678/* end confdefs.h. */ 4679 4680int 4681main () 4682{ 4683 4684 ; 4685 return 0; 4686} 4687_ACEOF 4688if ac_fn_c_try_link "$LINENO"; then : 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4690$as_echo "found" >&6; } 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4693$as_echo "not found" >&6; } 4694 CFLAGS="$save_cflags" 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4696$as_echo_n "checking if Intel architecture is supported... " >&6; } 4697 CPPFLAGS="$CPPFLAGS -arch i386" 4698 LDFLAGS="$save_ldflags -arch i386" 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700/* end confdefs.h. */ 4701 4702int 4703main () 4704{ 4705 4706 ; 4707 return 0; 4708} 4709_ACEOF 4710if ac_fn_c_try_link "$LINENO"; then : 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; }; MACARCH="intel" 4713else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715$as_echo "no" >&6; } 4716 MACARCH="ppc" 4717 CPPFLAGS="$save_cppflags -arch ppc" 4718 LDFLAGS="$save_ldflags -arch ppc" 4719fi 4720rm -f core conftest.err conftest.$ac_objext \ 4721 conftest$ac_exeext conftest.$ac_ext 4722fi 4723rm -f core conftest.err conftest.$ac_objext \ 4724 conftest$ac_exeext conftest.$ac_ext 4725 elif test "x$MACARCH" = "xintel"; then 4726 CPPFLAGS="$CPPFLAGS -arch intel" 4727 LDFLAGS="$LDFLAGS -arch intel" 4728 elif test "x$MACARCH" = "xppc"; then 4729 CPPFLAGS="$CPPFLAGS -arch ppc" 4730 LDFLAGS="$LDFLAGS -arch ppc" 4731 fi 4732 4733 if test "$enable_darwin" = "yes"; then 4734 MACOS_X_DARWIN=yes 4735 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4736 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4737 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4738 4739 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4740for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4741 inttypes.h stdint.h unistd.h 4742do : 4743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4744ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4745" 4746if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4747 cat >>confdefs.h <<_ACEOF 4748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4749_ACEOF 4750 4751fi 4752 4753done 4754 4755 4756ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4757if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4758 CARBON=yes 4759fi 4760 4761 4762 if test "x$CARBON" = "xyes"; then 4763 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 4764 with_x=no 4765 fi 4766 fi 4767 fi 4768 4769 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4770 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4771 fi 4772 4773else 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4775$as_echo "no" >&6; } 4776fi 4777 4778for ac_header in AvailabilityMacros.h 4779do : 4780 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4781if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4782 cat >>confdefs.h <<_ACEOF 4783#define HAVE_AVAILABILITYMACROS_H 1 4784_ACEOF 4785 4786fi 4787 4788done 4789 4790 4791 4792 4793 4794if test "$cross_compiling" = no; then 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4796$as_echo_n "checking --with-local-dir argument... " >&6; } 4797 have_local_include='' 4798 have_local_lib='' 4799 4800# Check whether --with-local-dir was given. 4801if test "${with_local_dir+set}" = set; then : 4802 withval=$with_local_dir; 4803 local_dir="$withval" 4804 case "$withval" in 4805 */*) ;; 4806 no) 4807 # avoid adding local dir to LDFLAGS and CPPFLAGS 4808 have_local_include=yes 4809 have_local_lib=yes 4810 ;; 4811 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4812 esac 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4814$as_echo "$local_dir" >&6; } 4815 4816else 4817 4818 local_dir=/usr/local 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4820$as_echo "Defaulting to $local_dir" >&6; } 4821 4822fi 4823 4824 if test "$GCC" = yes -a "$local_dir" != no; then 4825 echo 'void f(){}' > conftest.c 4826 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4827 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4828 rm -f conftest.c conftest.o 4829 fi 4830 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4831 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4832 if test "$tt" = "$LDFLAGS"; then 4833 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4834 fi 4835 fi 4836 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4837 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4838 if test "$tt" = "$CPPFLAGS"; then 4839 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4840 fi 4841 fi 4842fi 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4845$as_echo_n "checking --with-vim-name argument... " >&6; } 4846 4847# Check whether --with-vim-name was given. 4848if test "${with_vim_name+set}" = set; then : 4849 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4850$as_echo "$VIMNAME" >&6; } 4851else 4852 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4853$as_echo "Defaulting to $VIMNAME" >&6; } 4854fi 4855 4856 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4858$as_echo_n "checking --with-ex-name argument... " >&6; } 4859 4860# Check whether --with-ex-name was given. 4861if test "${with_ex_name+set}" = set; then : 4862 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4863$as_echo "$EXNAME" >&6; } 4864else 4865 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4866$as_echo "Defaulting to ex" >&6; } 4867fi 4868 4869 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4871$as_echo_n "checking --with-view-name argument... " >&6; } 4872 4873# Check whether --with-view-name was given. 4874if test "${with_view_name+set}" = set; then : 4875 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4876$as_echo "$VIEWNAME" >&6; } 4877else 4878 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4879$as_echo "Defaulting to view" >&6; } 4880fi 4881 4882 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4885$as_echo_n "checking --with-global-runtime argument... " >&6; } 4886 4887# Check whether --with-global-runtime was given. 4888if test "${with_global_runtime+set}" = set; then : 4889 withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4890$as_echo "$withval" >&6; } 4891else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4893$as_echo "no" >&6; } 4894fi 4895 4896 4897if test "X$RUNTIME_GLOBAL" != "X"; then 4898 RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') 4899 cat >>confdefs.h <<_ACEOF 4900#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL" 4901_ACEOF 4902 4903 cat >>confdefs.h <<_ACEOF 4904#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER" 4905_ACEOF 4906 4907fi 4908 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4910$as_echo_n "checking --with-modified-by argument... " >&6; } 4911 4912# Check whether --with-modified-by was given. 4913if test "${with_modified_by+set}" = set; then : 4914 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4915$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4916#define MODIFIED_BY "$withval" 4917_ACEOF 4918 4919else 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4921$as_echo "no" >&6; } 4922fi 4923 4924 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4926$as_echo_n "checking if character set is EBCDIC... " >&6; } 4927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929 4930int 4931main () 4932{ 4933 /* TryCompile function for CharSet. 4934 Treat any failure as ASCII for compatibility with existing art. 4935 Use compile-time rather than run-time tests for cross-compiler 4936 tolerance. */ 4937#if '0'!=240 4938make an error "Character set is not EBCDIC" 4939#endif 4940 ; 4941 return 0; 4942} 4943_ACEOF 4944if ac_fn_c_try_compile "$LINENO"; then : 4945 # TryCompile action if true 4946cf_cv_ebcdic=yes 4947else 4948 # TryCompile action if false 4949cf_cv_ebcdic=no 4950fi 4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4952# end of TryCompile ]) 4953# end of CacheVal CvEbcdic 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4955$as_echo "$cf_cv_ebcdic" >&6; } 4956case "$cf_cv_ebcdic" in #(vi 4957 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4958 4959 line_break='"\\n"' 4960 ;; 4961 *) line_break='"\\012"';; 4962esac 4963 4964 4965if test "$cf_cv_ebcdic" = "yes"; then 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4967$as_echo_n "checking for z/OS Unix... " >&6; } 4968case `uname` in 4969 OS/390) zOSUnix="yes"; 4970 if test "$CC" = "cc"; then 4971 ccm="$_CC_CCMODE" 4972 ccn="CC" 4973 else 4974 if test "$CC" = "c89"; then 4975 ccm="$_CC_C89MODE" 4976 ccn="C89" 4977 else 4978 ccm=1 4979 fi 4980 fi 4981 if test "$ccm" != "1"; then 4982 echo "" 4983 echo "------------------------------------------" 4984 echo " On z/OS Unix, the environment variable" 4985 echo " _CC_${ccn}MODE must be set to \"1\"!" 4986 echo " Do:" 4987 echo " export _CC_${ccn}MODE=1" 4988 echo " and then call configure again." 4989 echo "------------------------------------------" 4990 exit 1 4991 fi 4992 # Set CFLAGS for configure process. 4993 # This will be reset later for config.mk. 4994 # Use haltonmsg to force error for missing H files. 4995 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4996 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4998$as_echo "yes" >&6; } 4999 ;; 5000 *) zOSUnix="no"; 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5002$as_echo "no" >&6; } 5003 ;; 5004esac 5005fi 5006 5007if test "$zOSUnix" = "yes"; then 5008 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 5009else 5010 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 5011fi 5012 5013 5014 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 5016$as_echo_n "checking --disable-smack argument... " >&6; } 5017# Check whether --enable-smack was given. 5018if test "${enable_smack+set}" = set; then : 5019 enableval=$enable_smack; 5020else 5021 enable_smack="yes" 5022fi 5023 5024if test "$enable_smack" = "yes"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5026$as_echo "no" >&6; } 5027 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 5028if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 5029 true 5030else 5031 enable_smack="no" 5032fi 5033 5034 5035else 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5037$as_echo "yes" >&6; } 5038fi 5039if test "$enable_smack" = "yes"; then 5040 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 5041if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 5042 true 5043else 5044 enable_smack="no" 5045fi 5046 5047 5048fi 5049if test "$enable_smack" = "yes"; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 5051$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054#include <linux/xattr.h> 5055_ACEOF 5056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5057 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5059$as_echo "yes" >&6; } 5060else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062$as_echo "no" >&6; }; enable_smack="no" 5063fi 5064rm -f conftest* 5065 5066fi 5067if test "$enable_smack" = "yes"; then 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 5069$as_echo_n "checking for setxattr in -lattr... " >&6; } 5070if ${ac_cv_lib_attr_setxattr+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 ac_check_lib_save_LIBS=$LIBS 5074LIBS="-lattr $LIBS" 5075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077 5078/* Override any GCC internal prototype to avoid an error. 5079 Use char because int might match the return type of a GCC 5080 builtin and then its argument prototype would still apply. */ 5081#ifdef __cplusplus 5082extern "C" 5083#endif 5084char setxattr (); 5085int 5086main () 5087{ 5088return setxattr (); 5089 ; 5090 return 0; 5091} 5092_ACEOF 5093if ac_fn_c_try_link "$LINENO"; then : 5094 ac_cv_lib_attr_setxattr=yes 5095else 5096 ac_cv_lib_attr_setxattr=no 5097fi 5098rm -f core conftest.err conftest.$ac_objext \ 5099 conftest$ac_exeext conftest.$ac_ext 5100LIBS=$ac_check_lib_save_LIBS 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 5103$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 5104if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 5105 LIBS="$LIBS -lattr" 5106 found_smack="yes" 5107 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 5108 5109fi 5110 5111fi 5112 5113if test "x$found_smack" = "x"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 5115$as_echo_n "checking --disable-selinux argument... " >&6; } 5116 # Check whether --enable-selinux was given. 5117if test "${enable_selinux+set}" = set; then : 5118 enableval=$enable_selinux; 5119else 5120 enable_selinux="yes" 5121fi 5122 5123 if test "$enable_selinux" = "yes"; then 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5125$as_echo "no" >&6; } 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 5127$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 5128if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 ac_check_lib_save_LIBS=$LIBS 5132LIBS="-lselinux $LIBS" 5133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5134/* end confdefs.h. */ 5135 5136/* Override any GCC internal prototype to avoid an error. 5137 Use char because int might match the return type of a GCC 5138 builtin and then its argument prototype would still apply. */ 5139#ifdef __cplusplus 5140extern "C" 5141#endif 5142char is_selinux_enabled (); 5143int 5144main () 5145{ 5146return is_selinux_enabled (); 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151if ac_fn_c_try_link "$LINENO"; then : 5152 ac_cv_lib_selinux_is_selinux_enabled=yes 5153else 5154 ac_cv_lib_selinux_is_selinux_enabled=no 5155fi 5156rm -f core conftest.err conftest.$ac_objext \ 5157 conftest$ac_exeext conftest.$ac_ext 5158LIBS=$ac_check_lib_save_LIBS 5159fi 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 5161$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 5162if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 5163 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 5164if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 5165 LIBS="$LIBS -lselinux" 5166 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5167 5168fi 5169 5170 5171fi 5172 5173 else 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5175$as_echo "yes" >&6; } 5176 fi 5177fi 5178 5179 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 5181$as_echo_n "checking --with-features argument... " >&6; } 5182 5183# Check whether --with-features was given. 5184if test "${with_features+set}" = set; then : 5185 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 5186$as_echo "$features" >&6; } 5187else 5188 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 5189$as_echo "Defaulting to huge" >&6; } 5190fi 5191 5192 5193dovimdiff="" 5194dogvimdiff="" 5195case "$features" in 5196 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 5197 ;; 5198 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 5199 ;; 5200 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 5201 dovimdiff="installvimdiff"; 5202 dogvimdiff="installgvimdiff" ;; 5203 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 5204 dovimdiff="installvimdiff"; 5205 dogvimdiff="installgvimdiff" ;; 5206 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 5207 dovimdiff="installvimdiff"; 5208 dogvimdiff="installgvimdiff" ;; 5209 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 5210$as_echo "Sorry, $features is not supported" >&6; } ;; 5211esac 5212 5213 5214 5215 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 5217$as_echo_n "checking --with-compiledby argument... " >&6; } 5218 5219# Check whether --with-compiledby was given. 5220if test "${with_compiledby+set}" = set; then : 5221 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5222$as_echo "$withval" >&6; } 5223else 5224 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225$as_echo "no" >&6; } 5226fi 5227 5228 5229 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 5231$as_echo_n "checking --disable-xsmp argument... " >&6; } 5232# Check whether --enable-xsmp was given. 5233if test "${enable_xsmp+set}" = set; then : 5234 enableval=$enable_xsmp; 5235else 5236 enable_xsmp="yes" 5237fi 5238 5239 5240if test "$enable_xsmp" = "yes"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242$as_echo "no" >&6; } 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 5244$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 5245 # Check whether --enable-xsmp-interact was given. 5246if test "${enable_xsmp_interact+set}" = set; then : 5247 enableval=$enable_xsmp_interact; 5248else 5249 enable_xsmp_interact="yes" 5250fi 5251 5252 if test "$enable_xsmp_interact" = "yes"; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254$as_echo "no" >&6; } 5255 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 5256 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5259$as_echo "yes" >&6; } 5260 fi 5261else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5263$as_echo "yes" >&6; } 5264fi 5265 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 5267$as_echo_n "checking --enable-luainterp argument... " >&6; } 5268# Check whether --enable-luainterp was given. 5269if test "${enable_luainterp+set}" = set; then : 5270 enableval=$enable_luainterp; 5271else 5272 enable_luainterp="no" 5273fi 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 5276$as_echo "$enable_luainterp" >&6; } 5277 5278if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 5279 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5280 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 5281 fi 5282 5283 5284 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 5286$as_echo_n "checking --with-lua-prefix argument... " >&6; } 5287 5288# Check whether --with-lua_prefix was given. 5289if test "${with_lua_prefix+set}" = set; then : 5290 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 5291$as_echo "$with_lua_prefix" >&6; } 5292else 5293 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294$as_echo "no" >&6; } 5295fi 5296 5297 5298 if test "X$with_lua_prefix" != "X"; then 5299 vi_cv_path_lua_pfx="$with_lua_prefix" 5300 else 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 5302$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 5303 if test "X$LUA_PREFIX" != "X"; then 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 5305$as_echo "\"$LUA_PREFIX\"" >&6; } 5306 vi_cv_path_lua_pfx="$LUA_PREFIX" 5307 else 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 5309$as_echo "not set, default to /usr" >&6; } 5310 vi_cv_path_lua_pfx="/usr" 5311 fi 5312 fi 5313 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 5315$as_echo_n "checking --with-luajit... " >&6; } 5316 5317# Check whether --with-luajit was given. 5318if test "${with_luajit+set}" = set; then : 5319 withval=$with_luajit; vi_cv_with_luajit="$withval" 5320else 5321 vi_cv_with_luajit="no" 5322fi 5323 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 5325$as_echo "$vi_cv_with_luajit" >&6; } 5326 5327 LUA_INC= 5328 if test "X$vi_cv_path_lua_pfx" != "X"; then 5329 if test "x$vi_cv_with_luajit" != "xno"; then 5330 # Extract the first word of "luajit", so it can be a program name with args. 5331set dummy luajit; ac_word=$2 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5333$as_echo_n "checking for $ac_word... " >&6; } 5334if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 case $vi_cv_path_luajit in 5338 [\\/]* | ?:[\\/]*) 5339 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 5340 ;; 5341 *) 5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5343for as_dir in $PATH 5344do 5345 IFS=$as_save_IFS 5346 test -z "$as_dir" && as_dir=. 5347 for ac_exec_ext in '' $ac_executable_extensions; do 5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5349 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5351 break 2 5352 fi 5353done 5354 done 5355IFS=$as_save_IFS 5356 5357 ;; 5358esac 5359fi 5360vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 5361if test -n "$vi_cv_path_luajit"; then 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 5363$as_echo "$vi_cv_path_luajit" >&6; } 5364else 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5366$as_echo "no" >&6; } 5367fi 5368 5369 5370 if test "X$vi_cv_path_luajit" != "X"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 5372$as_echo_n "checking LuaJIT version... " >&6; } 5373if ${vi_cv_version_luajit+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 5377fi 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5379$as_echo "$vi_cv_version_luajit" >&6; } 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5381$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5382if ${vi_cv_version_lua_luajit+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5386fi 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5388$as_echo "$vi_cv_version_lua_luajit" >&6; } 5389 vi_cv_path_lua="$vi_cv_path_luajit" 5390 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5391 fi 5392 else 5393 # Extract the first word of "lua", so it can be a program name with args. 5394set dummy lua; ac_word=$2 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5396$as_echo_n "checking for $ac_word... " >&6; } 5397if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 case $vi_cv_path_plain_lua in 5401 [\\/]* | ?:[\\/]*) 5402 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5403 ;; 5404 *) 5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5406for as_dir in $PATH 5407do 5408 IFS=$as_save_IFS 5409 test -z "$as_dir" && as_dir=. 5410 for ac_exec_ext in '' $ac_executable_extensions; do 5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5412 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5414 break 2 5415 fi 5416done 5417 done 5418IFS=$as_save_IFS 5419 5420 ;; 5421esac 5422fi 5423vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5424if test -n "$vi_cv_path_plain_lua"; then 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5426$as_echo "$vi_cv_path_plain_lua" >&6; } 5427else 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5429$as_echo "no" >&6; } 5430fi 5431 5432 5433 if test "X$vi_cv_path_plain_lua" != "X"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5435$as_echo_n "checking Lua version... " >&6; } 5436if ${vi_cv_version_plain_lua+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5440fi 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5442$as_echo "$vi_cv_version_plain_lua" >&6; } 5443 fi 5444 vi_cv_path_lua="$vi_cv_path_plain_lua" 5445 vi_cv_version_lua="$vi_cv_version_plain_lua" 5446 fi 5447 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5448 { $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 5449$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5450 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5452$as_echo "yes" >&6; } 5453 LUA_INC=/luajit-$vi_cv_version_luajit 5454 fi 5455 fi 5456 if test "X$LUA_INC" = "X"; then 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5458$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5459 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5461$as_echo "yes" >&6; } 5462 else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464$as_echo "no" >&6; } 5465 { $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 5466$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5467 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5469$as_echo "yes" >&6; } 5470 LUA_INC=/lua$vi_cv_version_lua 5471 else 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5473$as_echo "no" >&6; } 5474 vi_cv_path_lua_pfx= 5475 fi 5476 fi 5477 fi 5478 fi 5479 5480 if test "X$vi_cv_path_lua_pfx" != "X"; then 5481 if test "x$vi_cv_with_luajit" != "xno"; then 5482 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5483 if test "X$multiarch" != "X"; then 5484 lib_multiarch="lib/${multiarch}" 5485 else 5486 lib_multiarch="lib" 5487 fi 5488 if test "X$vi_cv_version_lua" = "X"; then 5489 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5490 else 5491 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5492 fi 5493 else 5494 if test "X$LUA_INC" != "X"; then 5495 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5496 else 5497 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5498 fi 5499 fi 5500 if test "$enable_luainterp" = "dynamic"; then 5501 lua_ok="yes" 5502 else 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5504$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5505 libs_save=$LIBS 5506 LIBS="$LIBS $LUA_LIBS" 5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508/* end confdefs.h. */ 5509 5510int 5511main () 5512{ 5513 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518if ac_fn_c_try_link "$LINENO"; then : 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5520$as_echo "yes" >&6; }; lua_ok="yes" 5521else 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5523$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5524fi 5525rm -f core conftest.err conftest.$ac_objext \ 5526 conftest$ac_exeext conftest.$ac_ext 5527 LIBS=$libs_save 5528 fi 5529 if test "x$lua_ok" = "xyes"; then 5530 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5531 LUA_SRC="if_lua.c" 5532 LUA_OBJ="objects/if_lua.o" 5533 LUA_PRO="if_lua.pro" 5534 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5535 5536 fi 5537 if test "$enable_luainterp" = "dynamic"; then 5538 if test "x$vi_cv_with_luajit" != "xno"; then 5539 luajit="jit" 5540 fi 5541 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5542 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5543 else 5544 if test "x$MACOS_X" = "xyes"; then 5545 ext="dylib" 5546 indexes="" 5547 else 5548 ext="so" 5549 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5550 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5551 if test "X$multiarch" != "X"; then 5552 lib_multiarch="lib/${multiarch}" 5553 fi 5554 fi 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5556$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5557 for subdir in "${lib_multiarch}" lib64 lib; do 5558 if test -z "$subdir"; then 5559 continue 5560 fi 5561 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5562 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5563 for i in $indexes ""; do 5564 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5565 sover2="$i" 5566 break 3 5567 fi 5568 done 5569 done 5570 sover="" 5571 done 5572 if test "X$sover" = "X"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574$as_echo "no" >&6; } 5575 lua_ok="no" 5576 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5577 else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5579$as_echo "yes" >&6; } 5580 lua_ok="yes" 5581 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5582 fi 5583 fi 5584 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5585 5586 LUA_LIBS="" 5587 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5588 fi 5589 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5590 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5591 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5592 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5593 fi 5594 fi 5595 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5596 as_fn_error $? "could not configure lua" "$LINENO" 5 5597 fi 5598 5599 5600 5601 5602 5603fi 5604 5605 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5607$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5608# Check whether --enable-mzschemeinterp was given. 5609if test "${enable_mzschemeinterp+set}" = set; then : 5610 enableval=$enable_mzschemeinterp; 5611else 5612 enable_mzschemeinterp="no" 5613fi 5614 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5616$as_echo "$enable_mzschemeinterp" >&6; } 5617 5618if test "$enable_mzschemeinterp" = "yes"; then 5619 5620 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5622$as_echo_n "checking --with-plthome argument... " >&6; } 5623 5624# Check whether --with-plthome was given. 5625if test "${with_plthome+set}" = set; then : 5626 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5627$as_echo "$with_plthome" >&6; } 5628else 5629 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5630$as_echo "\"no\"" >&6; } 5631fi 5632 5633 5634 if test "X$with_plthome" != "X"; then 5635 vi_cv_path_mzscheme_pfx="$with_plthome" 5636 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5637 else 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5639$as_echo_n "checking PLTHOME environment var... " >&6; } 5640 if test "X$PLTHOME" != "X"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5642$as_echo "\"$PLTHOME\"" >&6; } 5643 vi_cv_path_mzscheme_pfx="$PLTHOME" 5644 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5645 else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5647$as_echo "not set" >&6; } 5648 # Extract the first word of "mzscheme", so it can be a program name with args. 5649set dummy mzscheme; ac_word=$2 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5651$as_echo_n "checking for $ac_word... " >&6; } 5652if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 case $vi_cv_path_mzscheme in 5656 [\\/]* | ?:[\\/]*) 5657 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5658 ;; 5659 *) 5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 test -z "$as_dir" && as_dir=. 5665 for ac_exec_ext in '' $ac_executable_extensions; do 5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5667 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5669 break 2 5670 fi 5671done 5672 done 5673IFS=$as_save_IFS 5674 5675 ;; 5676esac 5677fi 5678vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5679if test -n "$vi_cv_path_mzscheme"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5681$as_echo "$vi_cv_path_mzscheme" >&6; } 5682else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685fi 5686 5687 5688 5689 if test "X$vi_cv_path_mzscheme" != "X"; then 5690 lsout=`ls -l $vi_cv_path_mzscheme` 5691 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5692 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5693 fi 5694 fi 5695 5696 if test "X$vi_cv_path_mzscheme" != "X"; then 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5698$as_echo_n "checking MzScheme install prefix... " >&6; } 5699if ${vi_cv_path_mzscheme_pfx+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701else 5702 echo "(display (simplify-path \ 5703 (build-path (call-with-values \ 5704 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5705 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5706 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5707 sed -e 's+/$++'` 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5710$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5711 rm -f mzdirs.scm 5712 fi 5713 fi 5714 fi 5715 5716 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5718$as_echo_n "checking for racket include directory... " >&6; } 5719 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5720 if test "X$SCHEME_INC" != "X"; then 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5722$as_echo "${SCHEME_INC}" >&6; } 5723 else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5725$as_echo "not found" >&6; } 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5727$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5728 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5729 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5731$as_echo "yes" >&6; } 5732 else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5736$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5737 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5739$as_echo "yes" >&6; } 5740 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5741 else 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743$as_echo "no" >&6; } 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5745$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5746 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5748$as_echo "yes" >&6; } 5749 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5750 else 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5752$as_echo "no" >&6; } 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5754$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5755 if test -f /usr/include/plt/scheme.h; then 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5757$as_echo "yes" >&6; } 5758 SCHEME_INC=/usr/include/plt 5759 else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5763$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5764 if test -f /usr/include/racket/scheme.h; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5766$as_echo "yes" >&6; } 5767 SCHEME_INC=/usr/include/racket 5768 else 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770$as_echo "no" >&6; } 5771 vi_cv_path_mzscheme_pfx= 5772 fi 5773 fi 5774 fi 5775 fi 5776 fi 5777 fi 5778 fi 5779 5780 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5781 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5783$as_echo_n "checking for racket lib directory... " >&6; } 5784 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5785 if test "X$SCHEME_LIB" != "X"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5787$as_echo "${SCHEME_LIB}" >&6; } 5788 else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5790$as_echo "not found" >&6; } 5791 fi 5792 5793 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5794 if test "X$path" != "X"; then 5795 if test "x$MACOS_X" = "xyes"; then 5796 MZSCHEME_LIBS="-framework Racket" 5797 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5798 elif test -f "${path}/libmzscheme3m.a"; then 5799 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5800 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5801 elif test -f "${path}/libracket3m.a"; then 5802 MZSCHEME_LIBS="${path}/libracket3m.a" 5803 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5804 elif test -f "${path}/libracket.a"; then 5805 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5806 elif test -f "${path}/libmzscheme.a"; then 5807 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5808 else 5809 if test -f "${path}/libmzscheme3m.so"; then 5810 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5811 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5812 elif test -f "${path}/libracket3m.so"; then 5813 MZSCHEME_LIBS="-L${path} -lracket3m" 5814 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5815 elif test -f "${path}/libracket.so"; then 5816 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5817 else 5818 if test "$path" != "$SCHEME_LIB"; then 5819 continue 5820 fi 5821 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5822 fi 5823 if test "$GCC" = yes; then 5824 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5825 elif test "`(uname) 2>/dev/null`" = SunOS && 5826 uname -r | grep '^5' >/dev/null; then 5827 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5828 fi 5829 fi 5830 fi 5831 if test "X$MZSCHEME_LIBS" != "X"; then 5832 break 5833 fi 5834 done 5835 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5837$as_echo_n "checking if racket requires -pthread... " >&6; } 5838 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840$as_echo "yes" >&6; } 5841 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5842 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5843 else 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5845$as_echo "no" >&6; } 5846 fi 5847 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5849$as_echo_n "checking for racket config directory... " >&6; } 5850 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5851 if test "X$SCHEME_CONFIGDIR" != "X"; then 5852 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5854$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5855 else 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5857$as_echo "not found" >&6; } 5858 fi 5859 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5861$as_echo_n "checking for racket collects directory... " >&6; } 5862 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))))'` 5863 if test "X$SCHEME_COLLECTS" = "X"; then 5864 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5865 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5866 else 5867 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5868 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5869 else 5870 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5871 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5872 else 5873 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5874 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5875 fi 5876 fi 5877 fi 5878 fi 5879 fi 5880 if test "X$SCHEME_COLLECTS" != "X" ; then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5882$as_echo "${SCHEME_COLLECTS}" >&6; } 5883 else 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5885$as_echo "not found" >&6; } 5886 fi 5887 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5889$as_echo_n "checking for mzscheme_base.c... " >&6; } 5890 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5891 MZSCHEME_EXTRA="mzscheme_base.c" 5892 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5893 MZSCHEME_MOD="++lib scheme/base" 5894 else 5895 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5896 MZSCHEME_EXTRA="mzscheme_base.c" 5897 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5898 MZSCHEME_MOD="++lib scheme/base" 5899 else 5900 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5901 MZSCHEME_EXTRA="mzscheme_base.c" 5902 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5903 MZSCHEME_MOD="" 5904 fi 5905 fi 5906 fi 5907 if test "X$MZSCHEME_EXTRA" != "X" ; then 5908 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5910$as_echo "needed" >&6; } 5911 else 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5913$as_echo "not needed" >&6; } 5914 fi 5915 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5917$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5918if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920else 5921 ac_check_lib_save_LIBS=$LIBS 5922LIBS="-lffi $LIBS" 5923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925 5926/* Override any GCC internal prototype to avoid an error. 5927 Use char because int might match the return type of a GCC 5928 builtin and then its argument prototype would still apply. */ 5929#ifdef __cplusplus 5930extern "C" 5931#endif 5932char ffi_type_void (); 5933int 5934main () 5935{ 5936return ffi_type_void (); 5937 ; 5938 return 0; 5939} 5940_ACEOF 5941if ac_fn_c_try_link "$LINENO"; then : 5942 ac_cv_lib_ffi_ffi_type_void=yes 5943else 5944 ac_cv_lib_ffi_ffi_type_void=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext \ 5947 conftest$ac_exeext conftest.$ac_ext 5948LIBS=$ac_check_lib_save_LIBS 5949fi 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5951$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5952if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5953 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5954fi 5955 5956 5957 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5958 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5959 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5961$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5962 cflags_save=$CFLAGS 5963 libs_save=$LIBS 5964 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5965 LIBS="$LIBS $MZSCHEME_LIBS" 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968 5969int 5970main () 5971{ 5972 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977if ac_fn_c_try_link "$LINENO"; then : 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5979$as_echo "yes" >&6; }; mzs_ok=yes 5980else 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5982$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5983fi 5984rm -f core conftest.err conftest.$ac_objext \ 5985 conftest$ac_exeext conftest.$ac_ext 5986 CFLAGS=$cflags_save 5987 LIBS=$libs_save 5988 if test $mzs_ok = yes; then 5989 MZSCHEME_SRC="if_mzsch.c" 5990 MZSCHEME_OBJ="objects/if_mzsch.o" 5991 MZSCHEME_PRO="if_mzsch.pro" 5992 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5993 5994 else 5995 MZSCHEME_CFLAGS= 5996 MZSCHEME_LIBS= 5997 MZSCHEME_EXTRA= 5998 MZSCHEME_MZC= 5999 fi 6000 fi 6001 6002 6003 6004 6005 6006 6007 6008fi 6009 6010 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 6012$as_echo_n "checking --enable-perlinterp argument... " >&6; } 6013# Check whether --enable-perlinterp was given. 6014if test "${enable_perlinterp+set}" = set; then : 6015 enableval=$enable_perlinterp; 6016else 6017 enable_perlinterp="no" 6018fi 6019 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 6021$as_echo "$enable_perlinterp" >&6; } 6022if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 6023 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6024 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 6025 fi 6026 6027 # Extract the first word of "perl", so it can be a program name with args. 6028set dummy perl; ac_word=$2 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6030$as_echo_n "checking for $ac_word... " >&6; } 6031if ${ac_cv_path_vi_cv_path_perl+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033else 6034 case $vi_cv_path_perl in 6035 [\\/]* | ?:[\\/]*) 6036 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 6037 ;; 6038 *) 6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6046 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054 ;; 6055esac 6056fi 6057vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 6058if test -n "$vi_cv_path_perl"; then 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 6060$as_echo "$vi_cv_path_perl" >&6; } 6061else 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6063$as_echo "no" >&6; } 6064fi 6065 6066 6067 if test "X$vi_cv_path_perl" != "X"; then 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 6069$as_echo_n "checking Perl version... " >&6; } 6070 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 6071 eval `$vi_cv_path_perl -V:usethreads` 6072 eval `$vi_cv_path_perl -V:libperl` 6073 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 6074 badthreads=no 6075 else 6076 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 6077 eval `$vi_cv_path_perl -V:use5005threads` 6078 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 6079 badthreads=no 6080 else 6081 badthreads=yes 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 6083$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 6084 fi 6085 else 6086 badthreads=yes 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 6088$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 6089 fi 6090 fi 6091 if test $badthreads = no; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6093$as_echo "OK" >&6; } 6094 eval `$vi_cv_path_perl -V:shrpenv` 6095 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 6096 shrpenv="" 6097 fi 6098 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 6099 6100 vi_cv_perl_extutils=unknown_perl_extutils_path 6101 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 6102 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 6103 if test -f "$xsubpp_path"; then 6104 vi_cv_perl_xsubpp="$xsubpp_path" 6105 fi 6106 done 6107 6108 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 6109 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 6110 -e 's/-fdebug-prefix-map[^ ]*//g' \ 6111 -e 's/-pipe //' \ 6112 -e 's/-W[^ ]*//g' \ 6113 -e 's/-D_FORTIFY_SOURCE=.//g'` 6114 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 6115 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 6116 -e 's/-bE:perl.exp//' -e 's/-lc //'` 6117 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 6118 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 6119 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 6121$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 6122 cflags_save=$CFLAGS 6123 libs_save=$LIBS 6124 ldflags_save=$LDFLAGS 6125 CFLAGS="$CFLAGS $perlcppflags" 6126 LIBS="$LIBS $perllibs" 6127 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 6128 LDFLAGS="$perlldflags $LDFLAGS" 6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6130/* end confdefs.h. */ 6131 6132int 6133main () 6134{ 6135 6136 ; 6137 return 0; 6138} 6139_ACEOF 6140if ac_fn_c_try_link "$LINENO"; then : 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6142$as_echo "yes" >&6; }; perl_ok=yes 6143else 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 6145$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 6146fi 6147rm -f core conftest.err conftest.$ac_objext \ 6148 conftest$ac_exeext conftest.$ac_ext 6149 CFLAGS=$cflags_save 6150 LIBS=$libs_save 6151 LDFLAGS=$ldflags_save 6152 if test $perl_ok = yes; then 6153 if test "X$perlcppflags" != "X"; then 6154 PERL_CFLAGS=$perlcppflags 6155 fi 6156 if test "X$perlldflags" != "X"; then 6157 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 6158 LDFLAGS="$perlldflags $LDFLAGS" 6159 fi 6160 fi 6161 PERL_LIBS=$perllibs 6162 PERL_SRC="auto/if_perl.c if_perlsfio.c" 6163 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 6164 PERL_PRO="if_perl.pro if_perlsfio.pro" 6165 $as_echo "#define FEAT_PERL 1" >>confdefs.h 6166 6167 fi 6168 fi 6169 else 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 6171$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 6172 fi 6173 fi 6174 6175 if test "x$MACOS_X" = "xyes"; then 6176 dir=/System/Library/Perl 6177 darwindir=$dir/darwin 6178 if test -d $darwindir; then 6179 PERL=/usr/bin/perl 6180 else 6181 dir=/System/Library/Perl/5.8.1 6182 darwindir=$dir/darwin-thread-multi-2level 6183 if test -d $darwindir; then 6184 PERL=/usr/bin/perl 6185 fi 6186 fi 6187 if test -n "$PERL"; then 6188 PERL_DIR="$dir" 6189 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 6190 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 6191 PERL_LIBS="-L$darwindir/CORE -lperl" 6192 fi 6193 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6194 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6195 fi 6196 if test "$enable_perlinterp" = "dynamic"; then 6197 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 6198 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 6199 6200 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 6201 fi 6202 fi 6203 6204 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 6205 as_fn_error $? "could not configure perl" "$LINENO" 5 6206 fi 6207fi 6208 6209 6210 6211 6212 6213 6214 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 6216$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 6217# Check whether --enable-pythoninterp was given. 6218if test "${enable_pythoninterp+set}" = set; then : 6219 enableval=$enable_pythoninterp; 6220else 6221 enable_pythoninterp="no" 6222fi 6223 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 6225$as_echo "$enable_pythoninterp" >&6; } 6226if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 6227 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6228 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6229 fi 6230 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 6232$as_echo_n "checking --with-python-command argument... " >&6; } 6233 6234 6235# Check whether --with-python-command was given. 6236if test "${with_python_command+set}" = set; then : 6237 withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6238$as_echo "$vi_cv_path_python" >&6; } 6239else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241$as_echo "no" >&6; } 6242fi 6243 6244 6245 if test "X$vi_cv_path_python" = "X"; then 6246 for ac_prog in python2 python 6247do 6248 # Extract the first word of "$ac_prog", so it can be a program name with args. 6249set dummy $ac_prog; ac_word=$2 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251$as_echo_n "checking for $ac_word... " >&6; } 6252if ${ac_cv_path_vi_cv_path_python+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 case $vi_cv_path_python in 6256 [\\/]* | ?:[\\/]*) 6257 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 6258 ;; 6259 *) 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6267 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271done 6272 done 6273IFS=$as_save_IFS 6274 6275 ;; 6276esac 6277fi 6278vi_cv_path_python=$ac_cv_path_vi_cv_path_python 6279if test -n "$vi_cv_path_python"; then 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6281$as_echo "$vi_cv_path_python" >&6; } 6282else 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284$as_echo "no" >&6; } 6285fi 6286 6287 6288 test -n "$vi_cv_path_python" && break 6289done 6290 6291 fi 6292 if test "X$vi_cv_path_python" != "X"; then 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6295$as_echo_n "checking Python version... " >&6; } 6296if ${vi_cv_var_python_version+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 vi_cv_var_python_version=` 6300 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 6301 6302fi 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 6304$as_echo "$vi_cv_var_python_version" >&6; } 6305 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 6307$as_echo_n "checking Python is 2.3 or better... " >&6; } 6308 if ${vi_cv_path_python} -c \ 6309 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 6310 then 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6312$as_echo "yep" >&6; } 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6315$as_echo_n "checking Python's install prefix... " >&6; } 6316if ${vi_cv_path_python_pfx+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 vi_cv_path_python_pfx=` 6320 ${vi_cv_path_python} -c \ 6321 "import sys; print sys.prefix"` 6322fi 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 6324$as_echo "$vi_cv_path_python_pfx" >&6; } 6325 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6327$as_echo_n "checking Python's execution prefix... " >&6; } 6328if ${vi_cv_path_python_epfx+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 vi_cv_path_python_epfx=` 6332 ${vi_cv_path_python} -c \ 6333 "import sys; print sys.exec_prefix"` 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 6336$as_echo "$vi_cv_path_python_epfx" >&6; } 6337 6338 6339 if ${vi_cv_path_pythonpath+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 vi_cv_path_pythonpath=` 6343 unset PYTHONPATH; 6344 ${vi_cv_path_python} -c \ 6345 "import sys, string; print string.join(sys.path,':')"` 6346fi 6347 6348 6349 6350 6351# Check whether --with-python-config-dir was given. 6352if test "${with_python_config_dir+set}" = set; then : 6353 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 6354fi 6355 6356 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6358$as_echo_n "checking Python's configuration directory... " >&6; } 6359if ${vi_cv_path_python_conf+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 6363 vi_cv_path_python_conf= 6364 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 6365 if test -d "$d" && test -f "$d/config.c"; then 6366 vi_cv_path_python_conf="$d" 6367 else 6368 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 6369 for subdir in lib64 lib share; do 6370 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 6371 if test -d "$d" && test -f "$d/config.c"; then 6372 vi_cv_path_python_conf="$d" 6373 fi 6374 done 6375 done 6376 fi 6377 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 6380$as_echo "$vi_cv_path_python_conf" >&6; } 6381 6382 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 6383 6384 if test "X$PYTHON_CONFDIR" = "X"; then 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6386$as_echo "can't find it!" >&6; } 6387 else 6388 6389 if ${vi_cv_path_python_plibs+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391else 6392 6393 pwd=`pwd` 6394 tmp_mkf="$pwd/config-PyMake$$" 6395 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6396__: 6397 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6398 @echo "python_LIBS='$(LIBS)'" 6399 @echo "python_SYSLIBS='$(SYSLIBS)'" 6400 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6401 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6402 @echo "python_INSTSONAME='$(INSTSONAME)'" 6403 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6404 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6405 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6406eof 6407 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6408 rm -f -- "${tmp_mkf}" 6409 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6410 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6411 vi_cv_path_python_plibs="-framework Python" 6412 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6413 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6414 fi 6415 else 6416 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6417 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6418 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6419 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6420 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6421 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6422 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6423 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6424 fi 6425 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6426 fi 6427 fi 6428 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6429 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6430 fi 6431 6432fi 6433 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6435$as_echo_n "checking Python's dll name... " >&6; } 6436if ${vi_cv_dll_name_python+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 6440 if test "X$python_DLLLIBRARY" != "X"; then 6441 vi_cv_dll_name_python="$python_DLLLIBRARY" 6442 else 6443 vi_cv_dll_name_python="$python_INSTSONAME" 6444 fi 6445 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6448$as_echo "$vi_cv_dll_name_python" >&6; } 6449 6450 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6451 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6452 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 6453 else 6454 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}" 6455 fi 6456 if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then 6457 PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6458 6459 fi 6460 PYTHON_SRC="if_python.c" 6461 PYTHON_OBJ="objects/if_python.o" 6462 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6464$as_echo_n "checking if -pthread should be used... " >&6; } 6465 threadsafe_flag= 6466 thread_lib= 6467 if test "`(uname) 2>/dev/null`" != Darwin; then 6468 test "$GCC" = yes && threadsafe_flag="-pthread" 6469 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6470 threadsafe_flag="-D_THREAD_SAFE" 6471 thread_lib="-pthread" 6472 fi 6473 if test "`(uname) 2>/dev/null`" = SunOS; then 6474 threadsafe_flag="-pthreads" 6475 fi 6476 fi 6477 libs_save_old=$LIBS 6478 if test -n "$threadsafe_flag"; then 6479 cflags_save=$CFLAGS 6480 CFLAGS="$CFLAGS $threadsafe_flag" 6481 LIBS="$LIBS $thread_lib" 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484 6485int 6486main () 6487{ 6488 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493if ac_fn_c_try_link "$LINENO"; then : 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6495$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6496else 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6498$as_echo "no" >&6; }; LIBS=$libs_save_old 6499 6500fi 6501rm -f core conftest.err conftest.$ac_objext \ 6502 conftest$ac_exeext conftest.$ac_ext 6503 CFLAGS=$cflags_save 6504 else 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506$as_echo "no" >&6; } 6507 fi 6508 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6510$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6511 cflags_save=$CFLAGS 6512 libs_save=$LIBS 6513 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6514 LIBS="$LIBS $PYTHON_LIBS" 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517 6518int 6519main () 6520{ 6521 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526if ac_fn_c_try_link "$LINENO"; then : 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6528$as_echo "yes" >&6; }; python_ok=yes 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6531$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6532fi 6533rm -f core conftest.err conftest.$ac_objext \ 6534 conftest$ac_exeext conftest.$ac_ext 6535 CFLAGS=$cflags_save 6536 LIBS=$libs_save 6537 if test $python_ok = yes; then 6538 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6539 6540 else 6541 LIBS=$libs_save_old 6542 PYTHON_SRC= 6543 PYTHON_OBJ= 6544 PYTHON_LIBS= 6545 PYTHON_CFLAGS= 6546 fi 6547 fi 6548 else 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6550$as_echo "too old" >&6; } 6551 fi 6552 fi 6553 6554 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6555 as_fn_error $? "could not configure python" "$LINENO" 5 6556 fi 6557fi 6558 6559 6560 6561 6562 6563 6564 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6566$as_echo_n "checking --enable-python3interp argument... " >&6; } 6567# Check whether --enable-python3interp was given. 6568if test "${enable_python3interp+set}" = set; then : 6569 enableval=$enable_python3interp; 6570else 6571 enable_python3interp="no" 6572fi 6573 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6575$as_echo "$enable_python3interp" >&6; } 6576if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6577 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6578 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6579 fi 6580 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 6582$as_echo_n "checking --with-python3-command argument... " >&6; } 6583 6584 6585# Check whether --with-python3-command was given. 6586if test "${with_python3_command+set}" = set; then : 6587 withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6588$as_echo "$vi_cv_path_python3" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 6595 if test "X$vi_cv_path_python3" = "X"; then 6596 for ac_prog in python3 python 6597do 6598 # Extract the first word of "$ac_prog", so it can be a program name with args. 6599set dummy $ac_prog; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 case $vi_cv_path_python3 in 6606 [\\/]* | ?:[\\/]*) 6607 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6608 ;; 6609 *) 6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 test -z "$as_dir" && as_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6617 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6619 break 2 6620 fi 6621done 6622 done 6623IFS=$as_save_IFS 6624 6625 ;; 6626esac 6627fi 6628vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6629if test -n "$vi_cv_path_python3"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6631$as_echo "$vi_cv_path_python3" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 6638 test -n "$vi_cv_path_python3" && break 6639done 6640 6641 fi 6642 if test "X$vi_cv_path_python3" != "X"; then 6643 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6645$as_echo_n "checking Python version... " >&6; } 6646if ${vi_cv_var_python3_version+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 vi_cv_var_python3_version=` 6650 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6651 6652fi 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6654$as_echo "$vi_cv_var_python3_version" >&6; } 6655 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6657$as_echo_n "checking Python is 3.0 or better... " >&6; } 6658 if ${vi_cv_path_python3} -c \ 6659 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6660 then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6662$as_echo "yep" >&6; } 6663 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6665$as_echo_n "checking Python's abiflags... " >&6; } 6666if ${vi_cv_var_python3_abiflags+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 6670 vi_cv_var_python3_abiflags= 6671 if ${vi_cv_path_python3} -c \ 6672 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6673 then 6674 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6675 "import sys; print(sys.abiflags)"` 6676 fi 6677fi 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6679$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6680 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6682$as_echo_n "checking Python's install prefix... " >&6; } 6683if ${vi_cv_path_python3_pfx+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 vi_cv_path_python3_pfx=` 6687 ${vi_cv_path_python3} -c \ 6688 "import sys; print(sys.prefix)"` 6689fi 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6691$as_echo "$vi_cv_path_python3_pfx" >&6; } 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6694$as_echo_n "checking Python's execution prefix... " >&6; } 6695if ${vi_cv_path_python3_epfx+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 vi_cv_path_python3_epfx=` 6699 ${vi_cv_path_python3} -c \ 6700 "import sys; print(sys.exec_prefix)"` 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6703$as_echo "$vi_cv_path_python3_epfx" >&6; } 6704 6705 6706 if ${vi_cv_path_python3path+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 vi_cv_path_python3path=` 6710 unset PYTHONPATH; 6711 ${vi_cv_path_python3} -c \ 6712 "import sys, string; print(':'.join(sys.path))"` 6713fi 6714 6715 6716 6717 6718# Check whether --with-python3-config-dir was given. 6719if test "${with_python3_config_dir+set}" = set; then : 6720 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 6721fi 6722 6723 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6725$as_echo_n "checking Python's configuration directory... " >&6; } 6726if ${vi_cv_path_python3_conf+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 6730 vi_cv_path_python3_conf= 6731 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6732 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6733 if test -d "$d" && test -f "$d/config.c"; then 6734 vi_cv_path_python3_conf="$d" 6735 else 6736 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6737 for subdir in lib64 lib share; do 6738 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6739 if test -d "$d" && test -f "$d/config.c"; then 6740 vi_cv_path_python3_conf="$d" 6741 fi 6742 done 6743 done 6744 fi 6745 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6748$as_echo "$vi_cv_path_python3_conf" >&6; } 6749 6750 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6751 6752 if test "X$PYTHON3_CONFDIR" = "X"; then 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6754$as_echo "can't find it!" >&6; } 6755 else 6756 6757 if ${vi_cv_path_python3_plibs+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 6761 pwd=`pwd` 6762 tmp_mkf="$pwd/config-PyMake$$" 6763 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6764__: 6765 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6766 @echo "python3_LIBS='$(LIBS)'" 6767 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6768 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6769 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6770eof 6771 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6772 rm -f -- "${tmp_mkf}" 6773 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6774 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6775 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6776 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6777 6778fi 6779 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6781$as_echo_n "checking Python3's dll name... " >&6; } 6782if ${vi_cv_dll_name_python3+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 6786 if test "X$python3_DLLLIBRARY" != "X"; then 6787 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6788 else 6789 vi_cv_dll_name_python3="$python3_INSTSONAME" 6790 fi 6791 6792fi 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6794$as_echo "$vi_cv_dll_name_python3" >&6; } 6795 6796 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6797 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6798 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6799 else 6800 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}" 6801 fi 6802 if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then 6803 PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6804 fi 6805 PYTHON3_SRC="if_python3.c" 6806 PYTHON3_OBJ="objects/if_python3.o" 6807 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6809$as_echo_n "checking if -pthread should be used... " >&6; } 6810 threadsafe_flag= 6811 thread_lib= 6812 if test "`(uname) 2>/dev/null`" != Darwin; then 6813 test "$GCC" = yes && threadsafe_flag="-pthread" 6814 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6815 threadsafe_flag="-D_THREAD_SAFE" 6816 thread_lib="-pthread" 6817 fi 6818 if test "`(uname) 2>/dev/null`" = SunOS; then 6819 threadsafe_flag="-pthreads" 6820 fi 6821 fi 6822 libs_save_old=$LIBS 6823 if test -n "$threadsafe_flag"; then 6824 cflags_save=$CFLAGS 6825 CFLAGS="$CFLAGS $threadsafe_flag" 6826 LIBS="$LIBS $thread_lib" 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 6830int 6831main () 6832{ 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_link "$LINENO"; then : 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6840$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6841else 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6843$as_echo "no" >&6; }; LIBS=$libs_save_old 6844 6845fi 6846rm -f core conftest.err conftest.$ac_objext \ 6847 conftest$ac_exeext conftest.$ac_ext 6848 CFLAGS=$cflags_save 6849 else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851$as_echo "no" >&6; } 6852 fi 6853 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6855$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6856 cflags_save=$CFLAGS 6857 libs_save=$LIBS 6858 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6859 LIBS="$LIBS $PYTHON3_LIBS" 6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6861/* end confdefs.h. */ 6862 6863int 6864main () 6865{ 6866 6867 ; 6868 return 0; 6869} 6870_ACEOF 6871if ac_fn_c_try_link "$LINENO"; then : 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6873$as_echo "yes" >&6; }; python3_ok=yes 6874else 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6876$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext \ 6879 conftest$ac_exeext conftest.$ac_ext 6880 CFLAGS=$cflags_save 6881 LIBS=$libs_save 6882 if test "$python3_ok" = yes; then 6883 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6884 6885 else 6886 LIBS=$libs_save_old 6887 PYTHON3_SRC= 6888 PYTHON3_OBJ= 6889 PYTHON3_LIBS= 6890 PYTHON3_CFLAGS= 6891 fi 6892 fi 6893 else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6895$as_echo "too old" >&6; } 6896 fi 6897 fi 6898 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6899 as_fn_error $? "could not configure python3" "$LINENO" 5 6900 fi 6901fi 6902 6903 6904 6905 6906 6907 6908if test "$python_ok" = yes && test "$python3_ok" = yes; then 6909 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6910 6911 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6912 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6914$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6915 cflags_save=$CFLAGS 6916 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6917 libs_save=$LIBS 6918 LIBS="-ldl $LIBS" 6919 if test "$cross_compiling" = yes; then : 6920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6922as_fn_error $? "cannot run test program while cross compiling 6923See \`config.log' for more details" "$LINENO" 5; } 6924else 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926/* end confdefs.h. */ 6927 6928 #include <dlfcn.h> 6929 /* If this program fails, then RTLD_GLOBAL is needed. 6930 * RTLD_GLOBAL will be used and then it is not possible to 6931 * have both python versions enabled in the same vim instance. 6932 * Only the first python version used will be switched on. 6933 */ 6934 6935 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6936 { 6937 int needed = 0; 6938 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6939 if (pylib != 0) 6940 { 6941 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6942 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6943 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6944 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6945 (*pfx)(prefix); 6946 (*init)(); 6947 needed = (*simple)("import termios") == -1; 6948 (*final)(); 6949 dlclose(pylib); 6950 } 6951 return !needed; 6952 } 6953 6954 int main(int argc, char** argv) 6955 { 6956 int not_needed = 0; 6957 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6958 not_needed = 1; 6959 return !not_needed; 6960 } 6961_ACEOF 6962if ac_fn_c_try_run "$LINENO"; then : 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6964$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6965 6966else 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6968$as_echo "no" >&6; } 6969fi 6970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6971 conftest.$ac_objext conftest.beam conftest.$ac_ext 6972fi 6973 6974 6975 CFLAGS=$cflags_save 6976 LIBS=$libs_save 6977 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6979$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6980 cflags_save=$CFLAGS 6981 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6982 libs_save=$LIBS 6983 LIBS="-ldl $LIBS" 6984 if test "$cross_compiling" = yes; then : 6985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6987as_fn_error $? "cannot run test program while cross compiling 6988See \`config.log' for more details" "$LINENO" 5; } 6989else 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992 6993 #include <dlfcn.h> 6994 #include <wchar.h> 6995 /* If this program fails, then RTLD_GLOBAL is needed. 6996 * RTLD_GLOBAL will be used and then it is not possible to 6997 * have both python versions enabled in the same vim instance. 6998 * Only the first python version used will be switched on. 6999 */ 7000 7001 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 7002 { 7003 int needed = 0; 7004 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 7005 if (pylib != 0) 7006 { 7007 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 7008 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 7009 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 7010 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 7011 (*pfx)(prefix); 7012 (*init)(); 7013 needed = (*simple)("import termios") == -1; 7014 (*final)(); 7015 dlclose(pylib); 7016 } 7017 return !needed; 7018 } 7019 7020 int main(int argc, char** argv) 7021 { 7022 int not_needed = 0; 7023 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 7024 not_needed = 1; 7025 return !not_needed; 7026 } 7027_ACEOF 7028if ac_fn_c_try_run "$LINENO"; then : 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7030$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 7031 7032else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034$as_echo "no" >&6; } 7035fi 7036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7037 conftest.$ac_objext conftest.beam conftest.$ac_ext 7038fi 7039 7040 7041 CFLAGS=$cflags_save 7042 LIBS=$libs_save 7043 7044 PYTHON_SRC="if_python.c" 7045 PYTHON_OBJ="objects/if_python.o" 7046 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7047 PYTHON_LIBS= 7048 PYTHON3_SRC="if_python3.c" 7049 PYTHON3_OBJ="objects/if_python3.o" 7050 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7051 PYTHON3_LIBS= 7052elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 7053 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 7054 7055 PYTHON_SRC="if_python.c" 7056 PYTHON_OBJ="objects/if_python.o" 7057 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7058 PYTHON_LIBS= 7059elif test "$python_ok" = yes; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 7061$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 7062 cflags_save=$CFLAGS 7063 libs_save=$LIBS 7064 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 7065 LIBS="$LIBS $PYTHON_LIBS" 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068 7069int 7070main () 7071{ 7072 7073 ; 7074 return 0; 7075} 7076_ACEOF 7077if ac_fn_c_try_link "$LINENO"; then : 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7079$as_echo "yes" >&6; }; fpie_ok=yes 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; }; fpie_ok=no 7083fi 7084rm -f core conftest.err conftest.$ac_objext \ 7085 conftest$ac_exeext conftest.$ac_ext 7086 CFLAGS=$cflags_save 7087 LIBS=$libs_save 7088 if test $fpie_ok = yes; then 7089 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 7090 fi 7091elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 7092 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 7093 7094 PYTHON3_SRC="if_python3.c" 7095 PYTHON3_OBJ="objects/if_python3.o" 7096 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7097 PYTHON3_LIBS= 7098elif test "$python3_ok" = yes; then 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 7100$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 7101 cflags_save=$CFLAGS 7102 libs_save=$LIBS 7103 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 7104 LIBS="$LIBS $PYTHON3_LIBS" 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107 7108int 7109main () 7110{ 7111 7112 ; 7113 return 0; 7114} 7115_ACEOF 7116if ac_fn_c_try_link "$LINENO"; then : 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7118$as_echo "yes" >&6; }; fpie_ok=yes 7119else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121$as_echo "no" >&6; }; fpie_ok=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext \ 7124 conftest$ac_exeext conftest.$ac_ext 7125 CFLAGS=$cflags_save 7126 LIBS=$libs_save 7127 if test $fpie_ok = yes; then 7128 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 7129 fi 7130fi 7131 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 7133$as_echo_n "checking --enable-tclinterp argument... " >&6; } 7134# Check whether --enable-tclinterp was given. 7135if test "${enable_tclinterp+set}" = set; then : 7136 enableval=$enable_tclinterp; 7137else 7138 enable_tclinterp="no" 7139fi 7140 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 7142$as_echo "$enable_tclinterp" >&6; } 7143 7144if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 7145 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 7147$as_echo_n "checking --with-tclsh argument... " >&6; } 7148 7149# Check whether --with-tclsh was given. 7150if test "${with_tclsh+set}" = set; then : 7151 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 7152$as_echo "$tclsh_name" >&6; } 7153else 7154 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7155$as_echo "no" >&6; } 7156fi 7157 7158 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7159set dummy $tclsh_name; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 case $vi_cv_path_tcl in 7166 [\\/]* | ?:[\\/]*) 7167 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7168 ;; 7169 *) 7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7171for as_dir in $PATH 7172do 7173 IFS=$as_save_IFS 7174 test -z "$as_dir" && as_dir=. 7175 for ac_exec_ext in '' $ac_executable_extensions; do 7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7177 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7179 break 2 7180 fi 7181done 7182 done 7183IFS=$as_save_IFS 7184 7185 ;; 7186esac 7187fi 7188vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7189if test -n "$vi_cv_path_tcl"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7191$as_echo "$vi_cv_path_tcl" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198 7199 7200 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 7201 tclsh_name="tclsh8.4" 7202 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7203set dummy $tclsh_name; ac_word=$2 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205$as_echo_n "checking for $ac_word... " >&6; } 7206if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 case $vi_cv_path_tcl in 7210 [\\/]* | ?:[\\/]*) 7211 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7212 ;; 7213 *) 7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229 ;; 7230esac 7231fi 7232vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7233if test -n "$vi_cv_path_tcl"; then 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7235$as_echo "$vi_cv_path_tcl" >&6; } 7236else 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7238$as_echo "no" >&6; } 7239fi 7240 7241 7242 fi 7243 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 7244 tclsh_name="tclsh8.2" 7245 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7246set dummy $tclsh_name; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 case $vi_cv_path_tcl in 7253 [\\/]* | ?:[\\/]*) 7254 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7255 ;; 7256 *) 7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258for as_dir in $PATH 7259do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268done 7269 done 7270IFS=$as_save_IFS 7271 7272 ;; 7273esac 7274fi 7275vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7276if test -n "$vi_cv_path_tcl"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7278$as_echo "$vi_cv_path_tcl" >&6; } 7279else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281$as_echo "no" >&6; } 7282fi 7283 7284 7285 fi 7286 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 7287 tclsh_name="tclsh8.0" 7288 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7289set dummy $tclsh_name; ac_word=$2 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7291$as_echo_n "checking for $ac_word... " >&6; } 7292if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 case $vi_cv_path_tcl in 7296 [\\/]* | ?:[\\/]*) 7297 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7298 ;; 7299 *) 7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7307 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315 ;; 7316esac 7317fi 7318vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7319if test -n "$vi_cv_path_tcl"; then 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7321$as_echo "$vi_cv_path_tcl" >&6; } 7322else 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7324$as_echo "no" >&6; } 7325fi 7326 7327 7328 fi 7329 if test "X$vi_cv_path_tcl" = "X"; then 7330 tclsh_name="tclsh" 7331 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7332set dummy $tclsh_name; ac_word=$2 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7334$as_echo_n "checking for $ac_word... " >&6; } 7335if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337else 7338 case $vi_cv_path_tcl in 7339 [\\/]* | ?:[\\/]*) 7340 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7341 ;; 7342 *) 7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7350 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358 ;; 7359esac 7360fi 7361vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7362if test -n "$vi_cv_path_tcl"; then 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7364$as_echo "$vi_cv_path_tcl" >&6; } 7365else 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367$as_echo "no" >&6; } 7368fi 7369 7370 7371 fi 7372 if test "X$vi_cv_path_tcl" != "X"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 7374$as_echo_n "checking Tcl version... " >&6; } 7375 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 7376 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 7378$as_echo "$tclver - OK" >&6; }; 7379 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 -` 7380 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 7381 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 7383$as_echo_n "checking for location of Tcl include... " >&6; } 7384 if test "x$MACOS_X" != "xyes"; then 7385 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 7386 else 7387 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 7388 fi 7389 TCL_INC= 7390 for try in $tclinc; do 7391 if test -f "$try/tcl.h"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 7393$as_echo "$try/tcl.h" >&6; } 7394 TCL_INC=$try 7395 break 7396 fi 7397 done 7398 if test -z "$TCL_INC"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7400$as_echo "<not found>" >&6; } 7401 SKIP_TCL=YES 7402 fi 7403 if test -z "$SKIP_TCL"; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 7405$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 7406 if test "x$MACOS_X" != "xyes"; then 7407 tclcnf=`echo $tclinc | sed s/include/lib/g` 7408 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7409 else 7410 tclcnf="/System/Library/Frameworks/Tcl.framework" 7411 fi 7412 for try in $tclcnf; do 7413 if test -f "$try/tclConfig.sh"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7415$as_echo "$try/tclConfig.sh" >&6; } 7416 . "$try/tclConfig.sh" 7417 if test "$enable_tclinterp" = "dynamic"; then 7418 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7419 else 7420 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7421 fi 7422 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'` 7423 break 7424 fi 7425 done 7426 if test -z "$TCL_LIBS"; then 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7428$as_echo "<not found>" >&6; } 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7430$as_echo_n "checking for Tcl library by myself... " >&6; } 7431 tcllib=`echo $tclinc | sed s/include/lib/g` 7432 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7433 for ext in .so .a ; do 7434 for ver in "" $tclver ; do 7435 for try in $tcllib ; do 7436 trylib=tcl$ver$ext 7437 if test -f "$try/lib$trylib" ; then 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7439$as_echo "$try/lib$trylib" >&6; } 7440 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7441 if test "`(uname) 2>/dev/null`" = SunOS && 7442 uname -r | grep '^5' >/dev/null; then 7443 TCL_LIBS="$TCL_LIBS -R $try" 7444 fi 7445 break 3 7446 fi 7447 done 7448 done 7449 done 7450 if test -z "$TCL_LIBS"; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7452$as_echo "<not found>" >&6; } 7453 SKIP_TCL=YES 7454 fi 7455 fi 7456 if test -z "$SKIP_TCL"; then 7457 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7458 7459 TCL_SRC=if_tcl.c 7460 TCL_OBJ=objects/if_tcl.o 7461 TCL_PRO=if_tcl.pro 7462 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7463 fi 7464 fi 7465 else 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7467$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7468 fi 7469 fi 7470 if test "$enable_tclinterp" = "dynamic"; then 7471 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7472 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7473 7474 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7475 fi 7476 fi 7477 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7478 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7479 fi 7480fi 7481 7482 7483 7484 7485 7486 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7488$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7489# Check whether --enable-rubyinterp was given. 7490if test "${enable_rubyinterp+set}" = set; then : 7491 enableval=$enable_rubyinterp; 7492else 7493 enable_rubyinterp="no" 7494fi 7495 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7497$as_echo "$enable_rubyinterp" >&6; } 7498if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7499 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7500 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7501 fi 7502 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7504$as_echo_n "checking --with-ruby-command argument... " >&6; } 7505 7506 7507# Check whether --with-ruby-command was given. 7508if test "${with_ruby_command+set}" = set; then : 7509 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7510$as_echo "$RUBY_CMD" >&6; } 7511else 7512 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7513$as_echo "defaulting to $RUBY_CMD" >&6; } 7514fi 7515 7516 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7517set dummy $RUBY_CMD; ac_word=$2 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7519$as_echo_n "checking for $ac_word... " >&6; } 7520if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522else 7523 case $vi_cv_path_ruby in 7524 [\\/]* | ?:[\\/]*) 7525 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7526 ;; 7527 *) 7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7529for as_dir in $PATH 7530do 7531 IFS=$as_save_IFS 7532 test -z "$as_dir" && as_dir=. 7533 for ac_exec_ext in '' $ac_executable_extensions; do 7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7535 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7537 break 2 7538 fi 7539done 7540 done 7541IFS=$as_save_IFS 7542 7543 ;; 7544esac 7545fi 7546vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7547if test -n "$vi_cv_path_ruby"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7549$as_echo "$vi_cv_path_ruby" >&6; } 7550else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7552$as_echo "no" >&6; } 7553fi 7554 7555 7556 if test "X$vi_cv_path_ruby" != "X"; then 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7558$as_echo_n "checking Ruby version... " >&6; } 7559 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7561$as_echo "OK" >&6; } 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7563$as_echo_n "checking Ruby rbconfig... " >&6; } 7564 ruby_rbconfig="RbConfig" 7565 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7566 ruby_rbconfig="Config" 7567 fi 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7569$as_echo "$ruby_rbconfig" >&6; } 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7571$as_echo_n "checking Ruby header files... " >&6; } 7572 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7573 if test "X$rubyhdrdir" != "X"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7575$as_echo "$rubyhdrdir" >&6; } 7576 RUBY_CFLAGS="-I$rubyhdrdir" 7577 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7578 if test -d "$rubyarchdir"; then 7579 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7580 fi 7581 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7582 if test "X$rubyversion" = "X"; then 7583 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7584 fi 7585 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7586 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7587 if test "X$rubylibs" != "X"; then 7588 RUBY_LIBS="$rubylibs" 7589 fi 7590 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7591 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7592 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7593 if test -f "$rubylibdir/$librubya"; then 7594 librubyarg="$librubyarg" 7595 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7596 elif test "$librubyarg" = "libruby.a"; then 7597 librubyarg="-lruby" 7598 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7599 fi 7600 7601 if test "X$librubyarg" != "X"; then 7602 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7603 fi 7604 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7605 if test "X$rubyldflags" != "X"; then 7606 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7607 if test "X$rubyldflags" != "X"; then 7608 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7609 LDFLAGS="$rubyldflags $LDFLAGS" 7610 fi 7611 fi 7612 fi 7613 RUBY_SRC="if_ruby.c" 7614 RUBY_OBJ="objects/if_ruby.o" 7615 RUBY_PRO="if_ruby.pro" 7616 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7617 7618 if test "$enable_rubyinterp" = "dynamic"; then 7619 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7620 if test -z "$libruby_soname"; then 7621 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7622 fi 7623 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7624 7625 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7626 RUBY_LIBS= 7627 fi 7628 else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7630$as_echo "not found; disabling Ruby" >&6; } 7631 fi 7632 else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7634$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7635 fi 7636 fi 7637 7638 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7639 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7640 fi 7641fi 7642 7643 7644 7645 7646 7647 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7649$as_echo_n "checking --enable-cscope argument... " >&6; } 7650# Check whether --enable-cscope was given. 7651if test "${enable_cscope+set}" = set; then : 7652 enableval=$enable_cscope; 7653else 7654 enable_cscope="no" 7655fi 7656 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7658$as_echo "$enable_cscope" >&6; } 7659if test "$enable_cscope" = "yes"; then 7660 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7661 7662fi 7663 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7665$as_echo_n "checking --disable-netbeans argument... " >&6; } 7666# Check whether --enable-netbeans was given. 7667if test "${enable_netbeans+set}" = set; then : 7668 enableval=$enable_netbeans; 7669else 7670 enable_netbeans="yes" 7671fi 7672 7673if test "$enable_netbeans" = "yes"; then 7674 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7676$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7677 enable_netbeans="no" 7678 else 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7680$as_echo "no" >&6; } 7681 fi 7682else 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7684$as_echo "yes" >&6; } 7685fi 7686 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7688$as_echo_n "checking --disable-channel argument... " >&6; } 7689# Check whether --enable-channel was given. 7690if test "${enable_channel+set}" = set; then : 7691 enableval=$enable_channel; 7692else 7693 enable_channel="yes" 7694fi 7695 7696if test "$enable_channel" = "yes"; then 7697 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7699$as_echo "cannot use channels with tiny or small features" >&6; } 7700 enable_channel="no" 7701 else 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7703$as_echo "no" >&6; } 7704 fi 7705else 7706 if test "$enable_netbeans" = "yes"; then 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7708$as_echo "yes, netbeans also disabled" >&6; } 7709 enable_netbeans="no" 7710 else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7712$as_echo "yes" >&6; } 7713 fi 7714fi 7715 7716if test "$enable_channel" = "yes"; then 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7718$as_echo_n "checking for socket in -lsocket... " >&6; } 7719if ${ac_cv_lib_socket_socket+:} false; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 ac_check_lib_save_LIBS=$LIBS 7723LIBS="-lsocket $LIBS" 7724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726 7727/* Override any GCC internal prototype to avoid an error. 7728 Use char because int might match the return type of a GCC 7729 builtin and then its argument prototype would still apply. */ 7730#ifdef __cplusplus 7731extern "C" 7732#endif 7733char socket (); 7734int 7735main () 7736{ 7737return socket (); 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO"; then : 7743 ac_cv_lib_socket_socket=yes 7744else 7745 ac_cv_lib_socket_socket=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749LIBS=$ac_check_lib_save_LIBS 7750fi 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7752$as_echo "$ac_cv_lib_socket_socket" >&6; } 7753if test "x$ac_cv_lib_socket_socket" = xyes; then : 7754 cat >>confdefs.h <<_ACEOF 7755#define HAVE_LIBSOCKET 1 7756_ACEOF 7757 7758 LIBS="-lsocket $LIBS" 7759 7760fi 7761 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7763$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7764if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7765 $as_echo_n "(cached) " >&6 7766else 7767 ac_check_lib_save_LIBS=$LIBS 7768LIBS="-lnsl $LIBS" 7769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771 7772/* Override any GCC internal prototype to avoid an error. 7773 Use char because int might match the return type of a GCC 7774 builtin and then its argument prototype would still apply. */ 7775#ifdef __cplusplus 7776extern "C" 7777#endif 7778char gethostbyname (); 7779int 7780main () 7781{ 7782return gethostbyname (); 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787if ac_fn_c_try_link "$LINENO"; then : 7788 ac_cv_lib_nsl_gethostbyname=yes 7789else 7790 ac_cv_lib_nsl_gethostbyname=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext \ 7793 conftest$ac_exeext conftest.$ac_ext 7794LIBS=$ac_check_lib_save_LIBS 7795fi 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7797$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7798if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7799 cat >>confdefs.h <<_ACEOF 7800#define HAVE_LIBNSL 1 7801_ACEOF 7802 7803 LIBS="-lnsl $LIBS" 7804 7805fi 7806 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7808$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811 7812#include <stdio.h> 7813#include <stdlib.h> 7814#include <stdarg.h> 7815#include <fcntl.h> 7816#include <netdb.h> 7817#include <netinet/in.h> 7818#include <errno.h> 7819#include <sys/types.h> 7820#include <sys/socket.h> 7821 /* Check bitfields */ 7822 struct nbbuf { 7823 unsigned int initDone:1; 7824 unsigned short signmaplen; 7825 }; 7826 7827int 7828main () 7829{ 7830 7831 /* Check creating a socket. */ 7832 struct sockaddr_in server; 7833 (void)socket(AF_INET, SOCK_STREAM, 0); 7834 (void)htons(100); 7835 (void)gethostbyname("microsoft.com"); 7836 if (errno == ECONNREFUSED) 7837 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7838 7839 ; 7840 return 0; 7841} 7842_ACEOF 7843if ac_fn_c_try_link "$LINENO"; then : 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7845$as_echo "yes" >&6; } 7846else 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7848$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7849fi 7850rm -f core conftest.err conftest.$ac_objext \ 7851 conftest$ac_exeext conftest.$ac_ext 7852fi 7853if test "$enable_netbeans" = "yes"; then 7854 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7855 7856 NETBEANS_SRC="netbeans.c" 7857 7858 NETBEANS_OBJ="objects/netbeans.o" 7859 7860fi 7861if test "$enable_channel" = "yes"; then 7862 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7863 7864 CHANNEL_SRC="channel.c" 7865 7866 CHANNEL_OBJ="objects/channel.o" 7867 7868fi 7869 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7871$as_echo_n "checking --enable-terminal argument... " >&6; } 7872# Check whether --enable-terminal was given. 7873if test "${enable_terminal+set}" = set; then : 7874 enableval=$enable_terminal; 7875else 7876 enable_terminal="auto" 7877fi 7878 7879if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7880 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7882$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7883 enable_terminal="no" 7884 else 7885 if test "$enable_terminal" = "auto"; then 7886 enable_terminal="yes" 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7888$as_echo "defaulting to yes" >&6; } 7889 else 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7891$as_echo "yes" >&6; } 7892 fi 7893 fi 7894else 7895 if test "$enable_terminal" = "auto"; then 7896 enable_terminal="no" 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7898$as_echo "defaulting to no" >&6; } 7899 else 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7901$as_echo "no" >&6; } 7902 fi 7903fi 7904if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 7905 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7906 7907 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/termscreen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 7908 7909 TERM_OBJ="objects/encoding.o objects/keyboard.o objects/mouse.o objects/parser.o objects/pen.o objects/termscreen.o objects/state.o objects/unicode.o objects/vterm.o" 7910 7911fi 7912 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 7914$as_echo_n "checking --enable-autoservername argument... " >&6; } 7915# Check whether --enable-autoservername was given. 7916if test "${enable_autoservername+set}" = set; then : 7917 enableval=$enable_autoservername; 7918else 7919 enable_autoservername="no" 7920fi 7921 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 7923$as_echo "$enable_autoservername" >&6; } 7924if test "$enable_autoservername" = "yes"; then 7925 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 7926 7927fi 7928 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7930$as_echo_n "checking --enable-multibyte argument... " >&6; } 7931# Check whether --enable-multibyte was given. 7932if test "${enable_multibyte+set}" = set; then : 7933 enableval=$enable_multibyte; 7934else 7935 enable_multibyte="yes" 7936fi 7937 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7939$as_echo "$enable_multibyte" >&6; } 7940if test "$enable_multibyte" = "yes"; then 7941 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7942 7943else 7944 as_fn_error $? "The multi-byte feature can no longer be disabled. If you have 7945 a problem with this, discuss on the Vim mailing list." "$LINENO" 5 7946fi 7947 7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5 7949$as_echo_n "checking --disable-rightleft argument... " >&6; } 7950# Check whether --enable-rightleft was given. 7951if test "${enable_rightleft+set}" = set; then : 7952 enableval=$enable_rightleft; 7953else 7954 enable_rightleft="yes" 7955fi 7956 7957if test "$enable_rightleft" = "yes"; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7959$as_echo "no" >&6; } 7960else 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7962$as_echo "yes" >&6; } 7963 $as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h 7964 7965fi 7966 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5 7968$as_echo_n "checking --disable-arabic argument... " >&6; } 7969# Check whether --enable-arabic was given. 7970if test "${enable_arabic+set}" = set; then : 7971 enableval=$enable_arabic; 7972else 7973 enable_arabic="yes" 7974fi 7975 7976if test "$enable_arabic" = "yes"; then 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7978$as_echo "no" >&6; } 7979else 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7981$as_echo "yes" >&6; } 7982 $as_echo "#define DISABLE_ARABIC 1" >>confdefs.h 7983 7984fi 7985 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-farsi argument" >&5 7987$as_echo_n "checking --disable-farsi argument... " >&6; } 7988# Check whether --enable-farsi was given. 7989if test "${enable_farsi+set}" = set; then : 7990 enableval=$enable_farsi; 7991else 7992 enable_farsi="yes" 7993fi 7994 7995if test "$enable_farsi" = "yes"; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7997$as_echo "no" >&6; } 7998else 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8000$as_echo "yes" >&6; } 8001 $as_echo "#define DISABLE_FARSI 1" >>confdefs.h 8002 8003fi 8004 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 8006$as_echo_n "checking --enable-hangulinput argument... " >&6; } 8007# Check whether --enable-hangulinput was given. 8008if test "${enable_hangulinput+set}" = set; then : 8009 enableval=$enable_hangulinput; 8010else 8011 enable_hangulinput="no" 8012fi 8013 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 8015$as_echo "$enable_hangulinput" >&6; } 8016 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 8018$as_echo_n "checking --enable-xim argument... " >&6; } 8019# Check whether --enable-xim was given. 8020if test "${enable_xim+set}" = set; then : 8021 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 8022$as_echo "$enable_xim" >&6; } 8023else 8024 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 8025$as_echo "defaulting to auto" >&6; } 8026fi 8027 8028 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 8030$as_echo_n "checking --enable-fontset argument... " >&6; } 8031# Check whether --enable-fontset was given. 8032if test "${enable_fontset+set}" = set; then : 8033 enableval=$enable_fontset; 8034else 8035 enable_fontset="no" 8036fi 8037 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 8039$as_echo "$enable_fontset" >&6; } 8040 8041test -z "$with_x" && with_x=yes 8042test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 8043if test "$with_x" = no; then 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 8045$as_echo "defaulting to: don't HAVE_X11" >&6; } 8046else 8047 8048 # Extract the first word of "xmkmf", so it can be a program name with args. 8049set dummy xmkmf; ac_word=$2 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8051$as_echo_n "checking for $ac_word... " >&6; } 8052if ${ac_cv_path_xmkmfpath+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 case $xmkmfpath in 8056 [\\/]* | ?:[\\/]*) 8057 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 8058 ;; 8059 *) 8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8067 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075 ;; 8076esac 8077fi 8078xmkmfpath=$ac_cv_path_xmkmfpath 8079if test -n "$xmkmfpath"; then 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 8081$as_echo "$xmkmfpath" >&6; } 8082else 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8084$as_echo "no" >&6; } 8085fi 8086 8087 8088 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8090$as_echo_n "checking for X... " >&6; } 8091 8092 8093# Check whether --with-x was given. 8094if test "${with_x+set}" = set; then : 8095 withval=$with_x; 8096fi 8097 8098# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8099if test "x$with_x" = xno; then 8100 # The user explicitly disabled X. 8101 have_x=disabled 8102else 8103 case $x_includes,$x_libraries in #( 8104 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8105 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 # One or both of the vars are not set, and there is no cached value. 8109ac_x_includes=no ac_x_libraries=no 8110rm -f -r conftest.dir 8111if mkdir conftest.dir; then 8112 cd conftest.dir 8113 cat >Imakefile <<'_ACEOF' 8114incroot: 8115 @echo incroot='${INCROOT}' 8116usrlibdir: 8117 @echo usrlibdir='${USRLIBDIR}' 8118libdir: 8119 @echo libdir='${LIBDIR}' 8120_ACEOF 8121 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8123 for ac_var in incroot usrlibdir libdir; do 8124 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8125 done 8126 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8127 for ac_extension in a so sl dylib la dll; do 8128 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8129 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8130 ac_im_usrlibdir=$ac_im_libdir; break 8131 fi 8132 done 8133 # Screen out bogus values from the imake configuration. They are 8134 # bogus both because they are the default anyway, and because 8135 # using them would break gcc on systems where it needs fixed includes. 8136 case $ac_im_incroot in 8137 /usr/include) ac_x_includes= ;; 8138 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8139 esac 8140 case $ac_im_usrlibdir in 8141 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8142 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8143 esac 8144 fi 8145 cd .. 8146 rm -f -r conftest.dir 8147fi 8148 8149# Standard set of common directories for X headers. 8150# Check X11 before X11Rn because it is often a symlink to the current release. 8151ac_x_header_dirs=' 8152/usr/X11/include 8153/usr/X11R7/include 8154/usr/X11R6/include 8155/usr/X11R5/include 8156/usr/X11R4/include 8157 8158/usr/include/X11 8159/usr/include/X11R7 8160/usr/include/X11R6 8161/usr/include/X11R5 8162/usr/include/X11R4 8163 8164/usr/local/X11/include 8165/usr/local/X11R7/include 8166/usr/local/X11R6/include 8167/usr/local/X11R5/include 8168/usr/local/X11R4/include 8169 8170/usr/local/include/X11 8171/usr/local/include/X11R7 8172/usr/local/include/X11R6 8173/usr/local/include/X11R5 8174/usr/local/include/X11R4 8175 8176/usr/X386/include 8177/usr/x386/include 8178/usr/XFree86/include/X11 8179 8180/usr/include 8181/usr/local/include 8182/usr/unsupported/include 8183/usr/athena/include 8184/usr/local/x11r5/include 8185/usr/lpp/Xamples/include 8186 8187/usr/openwin/include 8188/usr/openwin/share/include' 8189 8190if test "$ac_x_includes" = no; then 8191 # Guess where to find include files, by looking for Xlib.h. 8192 # First, try using that file with no special directory specified. 8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194/* end confdefs.h. */ 8195#include <X11/Xlib.h> 8196_ACEOF 8197if ac_fn_c_try_cpp "$LINENO"; then : 8198 # We can compile using X headers with no special include directory. 8199ac_x_includes= 8200else 8201 for ac_dir in $ac_x_header_dirs; do 8202 if test -r "$ac_dir/X11/Xlib.h"; then 8203 ac_x_includes=$ac_dir 8204 break 8205 fi 8206done 8207fi 8208rm -f conftest.err conftest.i conftest.$ac_ext 8209fi # $ac_x_includes = no 8210 8211if test "$ac_x_libraries" = no; then 8212 # Check for the libraries. 8213 # See if we find them without any special options. 8214 # Don't add to $LIBS permanently. 8215 ac_save_LIBS=$LIBS 8216 LIBS="-lX11 $LIBS" 8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8218/* end confdefs.h. */ 8219#include <X11/Xlib.h> 8220int 8221main () 8222{ 8223XrmInitialize () 8224 ; 8225 return 0; 8226} 8227_ACEOF 8228if ac_fn_c_try_link "$LINENO"; then : 8229 LIBS=$ac_save_LIBS 8230# We can link X programs with no special library path. 8231ac_x_libraries= 8232else 8233 LIBS=$ac_save_LIBS 8234for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8235do 8236 # Don't even attempt the hair of trying to link an X program! 8237 for ac_extension in a so sl dylib la dll; do 8238 if test -r "$ac_dir/libX11.$ac_extension"; then 8239 ac_x_libraries=$ac_dir 8240 break 2 8241 fi 8242 done 8243done 8244fi 8245rm -f core conftest.err conftest.$ac_objext \ 8246 conftest$ac_exeext conftest.$ac_ext 8247fi # $ac_x_libraries = no 8248 8249case $ac_x_includes,$ac_x_libraries in #( 8250 no,* | *,no | *\'*) 8251 # Didn't find X, or a directory has "'" in its name. 8252 ac_cv_have_x="have_x=no";; #( 8253 *) 8254 # Record where we found X for the cache. 8255 ac_cv_have_x="have_x=yes\ 8256 ac_x_includes='$ac_x_includes'\ 8257 ac_x_libraries='$ac_x_libraries'" 8258esac 8259fi 8260;; #( 8261 *) have_x=yes;; 8262 esac 8263 eval "$ac_cv_have_x" 8264fi # $with_x != no 8265 8266if test "$have_x" != yes; then 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8268$as_echo "$have_x" >&6; } 8269 no_x=yes 8270else 8271 # If each of the values was on the command line, it overrides each guess. 8272 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8273 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8274 # Update the cache value to reflect the command line values. 8275 ac_cv_have_x="have_x=yes\ 8276 ac_x_includes='$x_includes'\ 8277 ac_x_libraries='$x_libraries'" 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8279$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8280fi 8281 8282if test "$no_x" = yes; then 8283 # Not all programs may use this symbol, but it does not hurt to define it. 8284 8285$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8286 8287 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8288else 8289 if test -n "$x_includes"; then 8290 X_CFLAGS="$X_CFLAGS -I$x_includes" 8291 fi 8292 8293 # It would also be nice to do this for all -L options, not just this one. 8294 if test -n "$x_libraries"; then 8295 X_LIBS="$X_LIBS -L$x_libraries" 8296 # For Solaris; some versions of Sun CC require a space after -R and 8297 # others require no space. Words are not sufficient . . . . 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8299$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8300 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8301 ac_xsave_c_werror_flag=$ac_c_werror_flag 8302 ac_c_werror_flag=yes 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305 8306int 8307main () 8308{ 8309 8310 ; 8311 return 0; 8312} 8313_ACEOF 8314if ac_fn_c_try_link "$LINENO"; then : 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316$as_echo "no" >&6; } 8317 X_LIBS="$X_LIBS -R$x_libraries" 8318else 8319 LIBS="$ac_xsave_LIBS -R $x_libraries" 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322 8323int 8324main () 8325{ 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331if ac_fn_c_try_link "$LINENO"; then : 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8333$as_echo "yes" >&6; } 8334 X_LIBS="$X_LIBS -R $x_libraries" 8335else 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8337$as_echo "neither works" >&6; } 8338fi 8339rm -f core conftest.err conftest.$ac_objext \ 8340 conftest$ac_exeext conftest.$ac_ext 8341fi 8342rm -f core conftest.err conftest.$ac_objext \ 8343 conftest$ac_exeext conftest.$ac_ext 8344 ac_c_werror_flag=$ac_xsave_c_werror_flag 8345 LIBS=$ac_xsave_LIBS 8346 fi 8347 8348 # Check for system-dependent libraries X programs must link with. 8349 # Do this before checking for the system-independent R6 libraries 8350 # (-lICE), since we may need -lsocket or whatever for X linking. 8351 8352 if test "$ISC" = yes; then 8353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8354 else 8355 # Martyn Johnson says this is needed for Ultrix, if the X 8356 # libraries were built with DECnet support. And Karl Berry says 8357 # the Alpha needs dnet_stub (dnet does not exist). 8358 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8360/* end confdefs.h. */ 8361 8362/* Override any GCC internal prototype to avoid an error. 8363 Use char because int might match the return type of a GCC 8364 builtin and then its argument prototype would still apply. */ 8365#ifdef __cplusplus 8366extern "C" 8367#endif 8368char XOpenDisplay (); 8369int 8370main () 8371{ 8372return XOpenDisplay (); 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377if ac_fn_c_try_link "$LINENO"; then : 8378 8379else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8381$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8382if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 ac_check_lib_save_LIBS=$LIBS 8386LIBS="-ldnet $LIBS" 8387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8388/* end confdefs.h. */ 8389 8390/* Override any GCC internal prototype to avoid an error. 8391 Use char because int might match the return type of a GCC 8392 builtin and then its argument prototype would still apply. */ 8393#ifdef __cplusplus 8394extern "C" 8395#endif 8396char dnet_ntoa (); 8397int 8398main () 8399{ 8400return dnet_ntoa (); 8401 ; 8402 return 0; 8403} 8404_ACEOF 8405if ac_fn_c_try_link "$LINENO"; then : 8406 ac_cv_lib_dnet_dnet_ntoa=yes 8407else 8408 ac_cv_lib_dnet_dnet_ntoa=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext \ 8411 conftest$ac_exeext conftest.$ac_ext 8412LIBS=$ac_check_lib_save_LIBS 8413fi 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8415$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8416if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8417 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8418fi 8419 8420 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8422$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8423if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 ac_check_lib_save_LIBS=$LIBS 8427LIBS="-ldnet_stub $LIBS" 8428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430 8431/* Override any GCC internal prototype to avoid an error. 8432 Use char because int might match the return type of a GCC 8433 builtin and then its argument prototype would still apply. */ 8434#ifdef __cplusplus 8435extern "C" 8436#endif 8437char dnet_ntoa (); 8438int 8439main () 8440{ 8441return dnet_ntoa (); 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_link "$LINENO"; then : 8447 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8448else 8449 ac_cv_lib_dnet_stub_dnet_ntoa=no 8450fi 8451rm -f core conftest.err conftest.$ac_objext \ 8452 conftest$ac_exeext conftest.$ac_ext 8453LIBS=$ac_check_lib_save_LIBS 8454fi 8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8456$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8457if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8458 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8459fi 8460 8461 fi 8462fi 8463rm -f core conftest.err conftest.$ac_objext \ 8464 conftest$ac_exeext conftest.$ac_ext 8465 LIBS="$ac_xsave_LIBS" 8466 8467 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8468 # to get the SysV transport functions. 8469 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8470 # needs -lnsl. 8471 # The nsl library prevents programs from opening the X display 8472 # on Irix 5.2, according to T.E. Dickey. 8473 # The functions gethostbyname, getservbyname, and inet_addr are 8474 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8475 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8476if test "x$ac_cv_func_gethostbyname" = xyes; then : 8477 8478fi 8479 8480 if test $ac_cv_func_gethostbyname = no; then 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8482$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8483if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 ac_check_lib_save_LIBS=$LIBS 8487LIBS="-lnsl $LIBS" 8488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490 8491/* Override any GCC internal prototype to avoid an error. 8492 Use char because int might match the return type of a GCC 8493 builtin and then its argument prototype would still apply. */ 8494#ifdef __cplusplus 8495extern "C" 8496#endif 8497char gethostbyname (); 8498int 8499main () 8500{ 8501return gethostbyname (); 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506if ac_fn_c_try_link "$LINENO"; then : 8507 ac_cv_lib_nsl_gethostbyname=yes 8508else 8509 ac_cv_lib_nsl_gethostbyname=no 8510fi 8511rm -f core conftest.err conftest.$ac_objext \ 8512 conftest$ac_exeext conftest.$ac_ext 8513LIBS=$ac_check_lib_save_LIBS 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8516$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8517if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8519fi 8520 8521 if test $ac_cv_lib_nsl_gethostbyname = no; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8523$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8524if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 ac_check_lib_save_LIBS=$LIBS 8528LIBS="-lbsd $LIBS" 8529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8530/* end confdefs.h. */ 8531 8532/* Override any GCC internal prototype to avoid an error. 8533 Use char because int might match the return type of a GCC 8534 builtin and then its argument prototype would still apply. */ 8535#ifdef __cplusplus 8536extern "C" 8537#endif 8538char gethostbyname (); 8539int 8540main () 8541{ 8542return gethostbyname (); 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_link "$LINENO"; then : 8548 ac_cv_lib_bsd_gethostbyname=yes 8549else 8550 ac_cv_lib_bsd_gethostbyname=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554LIBS=$ac_check_lib_save_LIBS 8555fi 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8557$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8558if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8560fi 8561 8562 fi 8563 fi 8564 8565 # [email protected] says without -lsocket, 8566 # socket/setsockopt and other routines are undefined under SCO ODT 8567 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8568 # on later versions), says Simon Leinen: it contains gethostby* 8569 # variants that don't use the name server (or something). -lsocket 8570 # must be given before -lnsl if both are needed. We assume that 8571 # if connect needs -lnsl, so does gethostbyname. 8572 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8573if test "x$ac_cv_func_connect" = xyes; then : 8574 8575fi 8576 8577 if test $ac_cv_func_connect = no; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8579$as_echo_n "checking for connect in -lsocket... " >&6; } 8580if ${ac_cv_lib_socket_connect+:} false; then : 8581 $as_echo_n "(cached) " >&6 8582else 8583 ac_check_lib_save_LIBS=$LIBS 8584LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587 8588/* Override any GCC internal prototype to avoid an error. 8589 Use char because int might match the return type of a GCC 8590 builtin and then its argument prototype would still apply. */ 8591#ifdef __cplusplus 8592extern "C" 8593#endif 8594char connect (); 8595int 8596main () 8597{ 8598return connect (); 8599 ; 8600 return 0; 8601} 8602_ACEOF 8603if ac_fn_c_try_link "$LINENO"; then : 8604 ac_cv_lib_socket_connect=yes 8605else 8606 ac_cv_lib_socket_connect=no 8607fi 8608rm -f core conftest.err conftest.$ac_objext \ 8609 conftest$ac_exeext conftest.$ac_ext 8610LIBS=$ac_check_lib_save_LIBS 8611fi 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8613$as_echo "$ac_cv_lib_socket_connect" >&6; } 8614if test "x$ac_cv_lib_socket_connect" = xyes; then : 8615 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8616fi 8617 8618 fi 8619 8620 # Guillermo Gomez says -lposix is necessary on A/UX. 8621 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8622if test "x$ac_cv_func_remove" = xyes; then : 8623 8624fi 8625 8626 if test $ac_cv_func_remove = no; then 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8628$as_echo_n "checking for remove in -lposix... " >&6; } 8629if ${ac_cv_lib_posix_remove+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 ac_check_lib_save_LIBS=$LIBS 8633LIBS="-lposix $LIBS" 8634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636 8637/* Override any GCC internal prototype to avoid an error. 8638 Use char because int might match the return type of a GCC 8639 builtin and then its argument prototype would still apply. */ 8640#ifdef __cplusplus 8641extern "C" 8642#endif 8643char remove (); 8644int 8645main () 8646{ 8647return remove (); 8648 ; 8649 return 0; 8650} 8651_ACEOF 8652if ac_fn_c_try_link "$LINENO"; then : 8653 ac_cv_lib_posix_remove=yes 8654else 8655 ac_cv_lib_posix_remove=no 8656fi 8657rm -f core conftest.err conftest.$ac_objext \ 8658 conftest$ac_exeext conftest.$ac_ext 8659LIBS=$ac_check_lib_save_LIBS 8660fi 8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8662$as_echo "$ac_cv_lib_posix_remove" >&6; } 8663if test "x$ac_cv_lib_posix_remove" = xyes; then : 8664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8665fi 8666 8667 fi 8668 8669 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8670 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8671if test "x$ac_cv_func_shmat" = xyes; then : 8672 8673fi 8674 8675 if test $ac_cv_func_shmat = no; then 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8677$as_echo_n "checking for shmat in -lipc... " >&6; } 8678if ${ac_cv_lib_ipc_shmat+:} false; then : 8679 $as_echo_n "(cached) " >&6 8680else 8681 ac_check_lib_save_LIBS=$LIBS 8682LIBS="-lipc $LIBS" 8683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684/* end confdefs.h. */ 8685 8686/* Override any GCC internal prototype to avoid an error. 8687 Use char because int might match the return type of a GCC 8688 builtin and then its argument prototype would still apply. */ 8689#ifdef __cplusplus 8690extern "C" 8691#endif 8692char shmat (); 8693int 8694main () 8695{ 8696return shmat (); 8697 ; 8698 return 0; 8699} 8700_ACEOF 8701if ac_fn_c_try_link "$LINENO"; then : 8702 ac_cv_lib_ipc_shmat=yes 8703else 8704 ac_cv_lib_ipc_shmat=no 8705fi 8706rm -f core conftest.err conftest.$ac_objext \ 8707 conftest$ac_exeext conftest.$ac_ext 8708LIBS=$ac_check_lib_save_LIBS 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8711$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8712if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8714fi 8715 8716 fi 8717 fi 8718 8719 # Check for libraries that X11R6 Xt/Xaw programs need. 8720 ac_save_LDFLAGS=$LDFLAGS 8721 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8722 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8723 # check for ICE first), but we must link in the order -lSM -lICE or 8724 # we get undefined symbols. So assume we have SM if we have ICE. 8725 # These have to be linked with before -lX11, unlike the other 8726 # libraries we check for below, so use a different variable. 8727 # John Interrante, Karl Berry 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8729$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8730if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 ac_check_lib_save_LIBS=$LIBS 8734LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736/* end confdefs.h. */ 8737 8738/* Override any GCC internal prototype to avoid an error. 8739 Use char because int might match the return type of a GCC 8740 builtin and then its argument prototype would still apply. */ 8741#ifdef __cplusplus 8742extern "C" 8743#endif 8744char IceConnectionNumber (); 8745int 8746main () 8747{ 8748return IceConnectionNumber (); 8749 ; 8750 return 0; 8751} 8752_ACEOF 8753if ac_fn_c_try_link "$LINENO"; then : 8754 ac_cv_lib_ICE_IceConnectionNumber=yes 8755else 8756 ac_cv_lib_ICE_IceConnectionNumber=no 8757fi 8758rm -f core conftest.err conftest.$ac_objext \ 8759 conftest$ac_exeext conftest.$ac_ext 8760LIBS=$ac_check_lib_save_LIBS 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8763$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8764if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8765 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8766fi 8767 8768 LDFLAGS=$ac_save_LDFLAGS 8769 8770fi 8771 8772 8773 if test "$zOSUnix" = "yes"; then 8774 CFLAGS="$CFLAGS -W c,dll" 8775 LDFLAGS="$LDFLAGS -W l,dll" 8776 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8777 fi 8778 8779 8780 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8781 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8783$as_echo "Corrected X libraries to $x_libraries" >&6; } 8784 X_LIBS="$X_LIBS -L$x_libraries" 8785 if test "`(uname) 2>/dev/null`" = SunOS && 8786 uname -r | grep '^5' >/dev/null; then 8787 X_LIBS="$X_LIBS -R $x_libraries" 8788 fi 8789 fi 8790 8791 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8792 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8794$as_echo "Corrected X includes to $x_includes" >&6; } 8795 X_CFLAGS="$X_CFLAGS -I$x_includes" 8796 fi 8797 8798 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8799 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8800 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8801 8802 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8804$as_echo_n "checking if X11 header files can be found... " >&6; } 8805 cflags_save=$CFLAGS 8806 CFLAGS="$CFLAGS $X_CFLAGS" 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809#include <X11/Xlib.h> 8810#include <X11/Intrinsic.h> 8811int 8812main () 8813{ 8814 8815 ; 8816 return 0; 8817} 8818_ACEOF 8819if ac_fn_c_try_compile "$LINENO"; then : 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8821$as_echo "yes" >&6; } 8822else 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8824$as_echo "no" >&6; }; no_x=yes 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8827 CFLAGS=$cflags_save 8828 8829 if test "${no_x-no}" = yes; then 8830 with_x=no 8831 else 8832 $as_echo "#define HAVE_X11 1" >>confdefs.h 8833 8834 X_LIB="-lXt -lX11"; 8835 8836 8837 ac_save_LDFLAGS="$LDFLAGS" 8838 LDFLAGS="-L$x_libraries $LDFLAGS" 8839 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8841$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8842if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844else 8845 ac_check_lib_save_LIBS=$LIBS 8846LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8848/* end confdefs.h. */ 8849 8850/* Override any GCC internal prototype to avoid an error. 8851 Use char because int might match the return type of a GCC 8852 builtin and then its argument prototype would still apply. */ 8853#ifdef __cplusplus 8854extern "C" 8855#endif 8856char _XdmcpAuthDoIt (); 8857int 8858main () 8859{ 8860return _XdmcpAuthDoIt (); 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865if ac_fn_c_try_link "$LINENO"; then : 8866 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8867else 8868 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8869fi 8870rm -f core conftest.err conftest.$ac_objext \ 8871 conftest$ac_exeext conftest.$ac_ext 8872LIBS=$ac_check_lib_save_LIBS 8873fi 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8875$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8876if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8878fi 8879 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8882$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8883if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8884 $as_echo_n "(cached) " >&6 8885else 8886 ac_check_lib_save_LIBS=$LIBS 8887LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890 8891/* Override any GCC internal prototype to avoid an error. 8892 Use char because int might match the return type of a GCC 8893 builtin and then its argument prototype would still apply. */ 8894#ifdef __cplusplus 8895extern "C" 8896#endif 8897char IceOpenConnection (); 8898int 8899main () 8900{ 8901return IceOpenConnection (); 8902 ; 8903 return 0; 8904} 8905_ACEOF 8906if ac_fn_c_try_link "$LINENO"; then : 8907 ac_cv_lib_ICE_IceOpenConnection=yes 8908else 8909 ac_cv_lib_ICE_IceOpenConnection=no 8910fi 8911rm -f core conftest.err conftest.$ac_objext \ 8912 conftest$ac_exeext conftest.$ac_ext 8913LIBS=$ac_check_lib_save_LIBS 8914fi 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8916$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8917if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8919fi 8920 8921 8922 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8924$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8925if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8926 $as_echo_n "(cached) " >&6 8927else 8928 ac_check_lib_save_LIBS=$LIBS 8929LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931/* end confdefs.h. */ 8932 8933/* Override any GCC internal prototype to avoid an error. 8934 Use char because int might match the return type of a GCC 8935 builtin and then its argument prototype would still apply. */ 8936#ifdef __cplusplus 8937extern "C" 8938#endif 8939char XpmCreatePixmapFromData (); 8940int 8941main () 8942{ 8943return XpmCreatePixmapFromData (); 8944 ; 8945 return 0; 8946} 8947_ACEOF 8948if ac_fn_c_try_link "$LINENO"; then : 8949 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8950else 8951 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8952fi 8953rm -f core conftest.err conftest.$ac_objext \ 8954 conftest$ac_exeext conftest.$ac_ext 8955LIBS=$ac_check_lib_save_LIBS 8956fi 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8958$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8959if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8960 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8961fi 8962 8963 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8965$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8966 cflags_save=$CFLAGS 8967 if test "$GCC" = yes; then 8968 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8969 else 8970 CFLAGS="$CFLAGS $X_CFLAGS" 8971 fi 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974#include <X11/Xlib.h> 8975int 8976main () 8977{ 8978 8979 ; 8980 return 0; 8981} 8982_ACEOF 8983if ac_fn_c_try_compile "$LINENO"; then : 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8985$as_echo "no" >&6; } 8986else 8987 CFLAGS="$CFLAGS -Wno-implicit-int" 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990#include <X11/Xlib.h> 8991int 8992main () 8993{ 8994 8995 ; 8996 return 0; 8997} 8998_ACEOF 8999if ac_fn_c_try_compile "$LINENO"; then : 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9001$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 9002else 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 9004$as_echo "test failed" >&6; } 9005 9006fi 9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9008 9009fi 9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9011 CFLAGS=$cflags_save 9012 9013 LDFLAGS="$ac_save_LDFLAGS" 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 9016$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 9017 if ${ac_cv_small_wchar_t+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 if test "$cross_compiling" = yes; then : 9021 as_fn_error $? "failed to compile test program" "$LINENO" 5 9022else 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025 9026#include <X11/Xlib.h> 9027#if STDC_HEADERS 9028# include <stdlib.h> 9029# include <stddef.h> 9030#endif 9031 main() 9032 { 9033 if (sizeof(wchar_t) <= 2) 9034 exit(1); 9035 exit(0); 9036 } 9037_ACEOF 9038if ac_fn_c_try_run "$LINENO"; then : 9039 ac_cv_small_wchar_t="no" 9040else 9041 ac_cv_small_wchar_t="yes" 9042fi 9043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9044 conftest.$ac_objext conftest.beam conftest.$ac_ext 9045fi 9046 9047fi 9048 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 9050$as_echo "$ac_cv_small_wchar_t" >&6; } 9051 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 9052 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 9053 9054 fi 9055 9056 fi 9057fi 9058 9059if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then 9060 as_fn_error $? "could not configure X" "$LINENO" 5 9061fi 9062 9063test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 9064 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 9066$as_echo_n "checking --enable-gui argument... " >&6; } 9067# Check whether --enable-gui was given. 9068if test "${enable_gui+set}" = set; then : 9069 enableval=$enable_gui; 9070else 9071 enable_gui="auto" 9072fi 9073 9074 9075enable_gui_canon=`echo "_$enable_gui" | \ 9076 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 9077 9078SKIP_GTK2=YES 9079SKIP_GTK3=YES 9080SKIP_GNOME=YES 9081SKIP_MOTIF=YES 9082SKIP_ATHENA=YES 9083SKIP_NEXTAW=YES 9084SKIP_PHOTON=YES 9085SKIP_CARBON=YES 9086GUITYPE=NONE 9087 9088if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 9089 SKIP_PHOTON= 9090 case "$enable_gui_canon" in 9091 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9092$as_echo "no GUI support" >&6; } 9093 SKIP_PHOTON=YES ;; 9094 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5 9095$as_echo "automatic GUI support" >&6; } 9096 gui_auto=yes ;; 9097 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 9098$as_echo "Photon GUI support" >&6; } ;; 9099 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9100$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9101 SKIP_PHOTON=YES ;; 9102 esac 9103 9104elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 9105 SKIP_CARBON= 9106 case "$enable_gui_canon" in 9107 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9108$as_echo "no GUI support" >&6; } 9109 SKIP_CARBON=YES ;; 9110 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9111$as_echo "yes - automatic GUI support" >&6; } 9112 gui_auto=yes ;; 9113 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 9114$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 9115 SKIP_CARBON=YES ;; 9116 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 9117$as_echo "Carbon GUI support" >&6; } ;; 9118 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9119$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9120 SKIP_CARBON=YES ;; 9121 esac 9122 9123else 9124 9125 case "$enable_gui_canon" in 9126 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9127$as_echo "no GUI support" >&6; } ;; 9128 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 9129$as_echo "yes/auto - automatic GUI support" >&6; } 9130 gui_auto=yes 9131 SKIP_GTK2= 9132 SKIP_GNOME= 9133 SKIP_MOTIF= 9134 SKIP_ATHENA= 9135 SKIP_NEXTAW= 9136 SKIP_CARBON=;; 9137 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 9138$as_echo "GTK+ 2.x GUI support" >&6; } 9139 SKIP_GTK2=;; 9140 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 9141$as_echo "GNOME 2.x GUI support" >&6; } 9142 SKIP_GNOME= 9143 SKIP_GTK2=;; 9144 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 9145$as_echo "GTK+ 3.x GUI support" >&6; } 9146 SKIP_GTK3=;; 9147 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 9148$as_echo "Motif GUI support" >&6; } 9149 SKIP_MOTIF=;; 9150 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 9151$as_echo "Athena GUI support" >&6; } 9152 SKIP_ATHENA=;; 9153 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 9154$as_echo "neXtaw GUI support" >&6; } 9155 SKIP_NEXTAW=;; 9156 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9157$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9158 esac 9159 9160fi 9161 9162if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 9163 -a "$enable_gui_canon" != "gnome2"; then 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 9165$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 9166 # Check whether --enable-gtk2-check was given. 9167if test "${enable_gtk2_check+set}" = set; then : 9168 enableval=$enable_gtk2_check; 9169else 9170 enable_gtk2_check="yes" 9171fi 9172 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 9174$as_echo "$enable_gtk2_check" >&6; } 9175 if test "x$enable_gtk2_check" = "xno"; then 9176 SKIP_GTK2=YES 9177 SKIP_GNOME=YES 9178 fi 9179fi 9180 9181if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 9183$as_echo_n "checking whether or not to look for GNOME... " >&6; } 9184 # Check whether --enable-gnome-check was given. 9185if test "${enable_gnome_check+set}" = set; then : 9186 enableval=$enable_gnome_check; 9187else 9188 enable_gnome_check="no" 9189fi 9190 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 9192$as_echo "$enable_gnome_check" >&6; } 9193 if test "x$enable_gnome_check" = "xno"; then 9194 SKIP_GNOME=YES 9195 fi 9196fi 9197 9198if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 9200$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 9201 # Check whether --enable-gtk3-check was given. 9202if test "${enable_gtk3_check+set}" = set; then : 9203 enableval=$enable_gtk3_check; 9204else 9205 enable_gtk3_check="yes" 9206fi 9207 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 9209$as_echo "$enable_gtk3_check" >&6; } 9210 if test "x$enable_gtk3_check" = "xno"; then 9211 SKIP_GTK3=YES 9212 fi 9213fi 9214 9215if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 9217$as_echo_n "checking whether or not to look for Motif... " >&6; } 9218 # Check whether --enable-motif-check was given. 9219if test "${enable_motif_check+set}" = set; then : 9220 enableval=$enable_motif_check; 9221else 9222 enable_motif_check="yes" 9223fi 9224 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 9226$as_echo "$enable_motif_check" >&6; } 9227 if test "x$enable_motif_check" = "xno"; then 9228 SKIP_MOTIF=YES 9229 fi 9230fi 9231 9232if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 9234$as_echo_n "checking whether or not to look for Athena... " >&6; } 9235 # Check whether --enable-athena-check was given. 9236if test "${enable_athena_check+set}" = set; then : 9237 enableval=$enable_athena_check; 9238else 9239 enable_athena_check="yes" 9240fi 9241 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 9243$as_echo "$enable_athena_check" >&6; } 9244 if test "x$enable_athena_check" = "xno"; then 9245 SKIP_ATHENA=YES 9246 fi 9247fi 9248 9249if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 9251$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 9252 # Check whether --enable-nextaw-check was given. 9253if test "${enable_nextaw_check+set}" = set; then : 9254 enableval=$enable_nextaw_check; 9255else 9256 enable_nextaw_check="yes" 9257fi 9258 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 9260$as_echo "$enable_nextaw_check" >&6; }; 9261 if test "x$enable_nextaw_check" = "xno"; then 9262 SKIP_NEXTAW=YES 9263 fi 9264fi 9265 9266if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 9268$as_echo_n "checking whether or not to look for Carbon... " >&6; } 9269 # Check whether --enable-carbon-check was given. 9270if test "${enable_carbon_check+set}" = set; then : 9271 enableval=$enable_carbon_check; 9272else 9273 enable_carbon_check="yes" 9274fi 9275 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 9277$as_echo "$enable_carbon_check" >&6; }; 9278 if test "x$enable_carbon_check" = "xno"; then 9279 SKIP_CARBON=YES 9280 fi 9281fi 9282 9283 9284if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 9286$as_echo_n "checking for Carbon GUI... " >&6; } 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9288$as_echo "yes" >&6; }; 9289 GUITYPE=CARBONGUI 9290 if test "$VIMNAME" = "vim"; then 9291 VIMNAME=Vim 9292 fi 9293 9294 if test "x$MACARCH" = "xboth"; then 9295 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 9296 else 9297 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 9298 fi 9299 9300 if test x$prefix = xNONE; then 9301 prefix=/Applications 9302 fi 9303 9304 datadir='${prefix}/Vim.app/Contents/Resources' 9305 9306 SKIP_GTK2=YES; 9307 SKIP_GNOME=YES; 9308 SKIP_MOTIF=YES; 9309 SKIP_ATHENA=YES; 9310 SKIP_NEXTAW=YES; 9311 SKIP_PHOTON=YES; 9312 SKIP_CARBON=YES 9313fi 9314 9315 9316 9317 9318 9319 9320 9321 9322if test -z "$SKIP_GTK2"; then 9323 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9325$as_echo_n "checking --disable-gtktest argument... " >&6; } 9326 # Check whether --enable-gtktest was given. 9327if test "${enable_gtktest+set}" = set; then : 9328 enableval=$enable_gtktest; 9329else 9330 enable_gtktest=yes 9331fi 9332 9333 if test "x$enable_gtktest" = "xyes" ; then 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9335$as_echo "gtk test enabled" >&6; } 9336 else 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9338$as_echo "gtk test disabled" >&6; } 9339 fi 9340 9341 if test "X$PKG_CONFIG" = "X"; then 9342 if test -n "$ac_tool_prefix"; then 9343 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9344set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9346$as_echo_n "checking for $ac_word... " >&6; } 9347if ${ac_cv_path_PKG_CONFIG+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349else 9350 case $PKG_CONFIG in 9351 [\\/]* | ?:[\\/]*) 9352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9353 ;; 9354 *) 9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9356for as_dir in $PATH 9357do 9358 IFS=$as_save_IFS 9359 test -z "$as_dir" && as_dir=. 9360 for ac_exec_ext in '' $ac_executable_extensions; do 9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9364 break 2 9365 fi 9366done 9367 done 9368IFS=$as_save_IFS 9369 9370 ;; 9371esac 9372fi 9373PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9374if test -n "$PKG_CONFIG"; then 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9376$as_echo "$PKG_CONFIG" >&6; } 9377else 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9379$as_echo "no" >&6; } 9380fi 9381 9382 9383fi 9384if test -z "$ac_cv_path_PKG_CONFIG"; then 9385 ac_pt_PKG_CONFIG=$PKG_CONFIG 9386 # Extract the first word of "pkg-config", so it can be a program name with args. 9387set dummy pkg-config; ac_word=$2 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9389$as_echo_n "checking for $ac_word... " >&6; } 9390if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 case $ac_pt_PKG_CONFIG in 9394 [\\/]* | ?:[\\/]*) 9395 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9396 ;; 9397 *) 9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9399for as_dir in $PATH 9400do 9401 IFS=$as_save_IFS 9402 test -z "$as_dir" && as_dir=. 9403 for ac_exec_ext in '' $ac_executable_extensions; do 9404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9405 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9407 break 2 9408 fi 9409done 9410 done 9411IFS=$as_save_IFS 9412 9413 ;; 9414esac 9415fi 9416ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9417if test -n "$ac_pt_PKG_CONFIG"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9419$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9420else 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9422$as_echo "no" >&6; } 9423fi 9424 9425 if test "x$ac_pt_PKG_CONFIG" = x; then 9426 PKG_CONFIG="no" 9427 else 9428 case $cross_compiling:$ac_tool_warned in 9429yes:) 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9432ac_tool_warned=yes ;; 9433esac 9434 PKG_CONFIG=$ac_pt_PKG_CONFIG 9435 fi 9436else 9437 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9438fi 9439 9440 fi 9441 9442 if test "x$PKG_CONFIG" != "xno"; then 9443 9444 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9445 { 9446 no_gtk="" 9447 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9448 && $PKG_CONFIG --exists gtk+-2.0; then 9449 { 9450 min_gtk_version=2.2.0 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9452$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9453 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9454 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9455 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9456 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9457 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9458 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9459 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9460 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9461 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9462 } 9463 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9464 && $PKG_CONFIG --exists gtk+-3.0; then 9465 { 9466 min_gtk_version=2.2.0 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9468$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9469 9470 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9471 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9472 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9473 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9474 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9475 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9476 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9477 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9478 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9479 } 9480 else 9481 no_gtk=yes 9482 fi 9483 9484 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9485 { 9486 ac_save_CFLAGS="$CFLAGS" 9487 ac_save_LIBS="$LIBS" 9488 CFLAGS="$CFLAGS $GTK_CFLAGS" 9489 LIBS="$LIBS $GTK_LIBS" 9490 9491 rm -f conf.gtktest 9492 if test "$cross_compiling" = yes; then : 9493 echo $ac_n "cross compiling; assumed OK... $ac_c" 9494else 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496/* end confdefs.h. */ 9497 9498#include <gtk/gtk.h> 9499#include <stdio.h> 9500#if STDC_HEADERS 9501# include <stdlib.h> 9502# include <stddef.h> 9503#endif 9504 9505int 9506main () 9507{ 9508int major, minor, micro; 9509char *tmp_version; 9510 9511system ("touch conf.gtktest"); 9512 9513/* HP/UX 9 (%@#!) writes to sscanf strings */ 9514tmp_version = g_strdup("$min_gtk_version"); 9515if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9516 printf("%s, bad version string\n", "$min_gtk_version"); 9517 exit(1); 9518 } 9519 9520if ((gtk_major_version > major) || 9521 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9522 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9523 (gtk_micro_version >= micro))) 9524{ 9525 return 0; 9526} 9527return 1; 9528} 9529 9530_ACEOF 9531if ac_fn_c_try_run "$LINENO"; then : 9532 9533else 9534 no_gtk=yes 9535fi 9536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9537 conftest.$ac_objext conftest.beam conftest.$ac_ext 9538fi 9539 9540 CFLAGS="$ac_save_CFLAGS" 9541 LIBS="$ac_save_LIBS" 9542 } 9543 fi 9544 if test "x$no_gtk" = x ; then 9545 if test "x$enable_gtktest" = "xyes"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9547$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9548 else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9550$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9551 fi 9552 GUI_LIB_LOC="$GTK_LIBDIR" 9553 GTK_LIBNAME="$GTK_LIBS" 9554 GUI_INC_LOC="$GTK_CFLAGS" 9555 else 9556 { 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9558$as_echo "no" >&6; } 9559 GTK_CFLAGS="" 9560 GTK_LIBS="" 9561 : 9562 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9563 as_fn_error $? "could not configure GTK" "$LINENO" 5 9564 fi 9565 } 9566 fi 9567 } 9568 else 9569 GTK_CFLAGS="" 9570 GTK_LIBS="" 9571 : 9572 fi 9573 9574 9575 rm -f conf.gtktest 9576 9577 if test "x$GTK_CFLAGS" != "x"; then 9578 SKIP_GTK3=YES 9579 SKIP_ATHENA=YES 9580 SKIP_NEXTAW=YES 9581 SKIP_MOTIF=YES 9582 GUITYPE=GTK 9583 9584 fi 9585 fi 9586 if test "x$GUITYPE" = "xGTK"; then 9587 if test -z "$SKIP_GNOME"; then 9588 { 9589 9590 9591 9592 9593 9594 9595# Check whether --with-gnome-includes was given. 9596if test "${with_gnome_includes+set}" = set; then : 9597 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9598 9599fi 9600 9601 9602 9603# Check whether --with-gnome-libs was given. 9604if test "${with_gnome_libs+set}" = set; then : 9605 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9606 9607fi 9608 9609 9610 9611# Check whether --with-gnome was given. 9612if test "${with_gnome+set}" = set; then : 9613 withval=$with_gnome; if test x$withval = xyes; then 9614 want_gnome=yes 9615 have_gnome=yes 9616 else 9617 if test "x$withval" = xno; then 9618 want_gnome=no 9619 else 9620 want_gnome=yes 9621 LDFLAGS="$LDFLAGS -L$withval/lib" 9622 CFLAGS="$CFLAGS -I$withval/include" 9623 gnome_prefix=$withval/lib 9624 fi 9625 fi 9626else 9627 want_gnome=yes 9628fi 9629 9630 9631 if test "x$want_gnome" = xyes; then 9632 { 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9634$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9635 if $PKG_CONFIG --exists libgnomeui-2.0; then 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9637$as_echo "yes" >&6; } 9638 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9639 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9640 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9641 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9643$as_echo_n "checking for FreeBSD... " >&6; } 9644 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9646$as_echo "yes" >&6; } 9647 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9648 GNOME_LIBS="$GNOME_LIBS -pthread" 9649 else 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9651$as_echo "no" >&6; } 9652 fi 9653 have_gnome=yes 9654 else 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9656$as_echo "not found" >&6; } 9657 if test "x" = xfail; then 9658 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9659 fi 9660 fi 9661 } 9662 fi 9663 9664 if test "x$have_gnome" = xyes ; then 9665 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9666 9667 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9668 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9669 fi 9670 } 9671 fi 9672 fi 9673fi 9674 9675 9676if test -z "$SKIP_GTK3"; then 9677 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9679$as_echo_n "checking --disable-gtktest argument... " >&6; } 9680 # Check whether --enable-gtktest was given. 9681if test "${enable_gtktest+set}" = set; then : 9682 enableval=$enable_gtktest; 9683else 9684 enable_gtktest=yes 9685fi 9686 9687 if test "x$enable_gtktest" = "xyes" ; then 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9689$as_echo "gtk test enabled" >&6; } 9690 else 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9692$as_echo "gtk test disabled" >&6; } 9693 fi 9694 9695 if test "X$PKG_CONFIG" = "X"; then 9696 if test -n "$ac_tool_prefix"; then 9697 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9698set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9700$as_echo_n "checking for $ac_word... " >&6; } 9701if ${ac_cv_path_PKG_CONFIG+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703else 9704 case $PKG_CONFIG in 9705 [\\/]* | ?:[\\/]*) 9706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9707 ;; 9708 *) 9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9710for as_dir in $PATH 9711do 9712 IFS=$as_save_IFS 9713 test -z "$as_dir" && as_dir=. 9714 for ac_exec_ext in '' $ac_executable_extensions; do 9715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9718 break 2 9719 fi 9720done 9721 done 9722IFS=$as_save_IFS 9723 9724 ;; 9725esac 9726fi 9727PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9728if test -n "$PKG_CONFIG"; then 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9730$as_echo "$PKG_CONFIG" >&6; } 9731else 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9733$as_echo "no" >&6; } 9734fi 9735 9736 9737fi 9738if test -z "$ac_cv_path_PKG_CONFIG"; then 9739 ac_pt_PKG_CONFIG=$PKG_CONFIG 9740 # Extract the first word of "pkg-config", so it can be a program name with args. 9741set dummy pkg-config; ac_word=$2 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9743$as_echo_n "checking for $ac_word... " >&6; } 9744if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 case $ac_pt_PKG_CONFIG in 9748 [\\/]* | ?:[\\/]*) 9749 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9750 ;; 9751 *) 9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9753for as_dir in $PATH 9754do 9755 IFS=$as_save_IFS 9756 test -z "$as_dir" && as_dir=. 9757 for ac_exec_ext in '' $ac_executable_extensions; do 9758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9759 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9761 break 2 9762 fi 9763done 9764 done 9765IFS=$as_save_IFS 9766 9767 ;; 9768esac 9769fi 9770ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9771if test -n "$ac_pt_PKG_CONFIG"; then 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9773$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9774else 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9776$as_echo "no" >&6; } 9777fi 9778 9779 if test "x$ac_pt_PKG_CONFIG" = x; then 9780 PKG_CONFIG="no" 9781 else 9782 case $cross_compiling:$ac_tool_warned in 9783yes:) 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9786ac_tool_warned=yes ;; 9787esac 9788 PKG_CONFIG=$ac_pt_PKG_CONFIG 9789 fi 9790else 9791 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9792fi 9793 9794 fi 9795 9796 if test "x$PKG_CONFIG" != "xno"; then 9797 9798 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9799 { 9800 no_gtk="" 9801 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9802 && $PKG_CONFIG --exists gtk+-2.0; then 9803 { 9804 min_gtk_version=3.0.0 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9806$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9807 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9808 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9809 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9810 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9811 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9812 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9813 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9814 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9815 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9816 } 9817 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9818 && $PKG_CONFIG --exists gtk+-3.0; then 9819 { 9820 min_gtk_version=3.0.0 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9822$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9823 9824 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9825 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9826 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9827 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9828 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9829 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9830 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9831 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9832 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9833 } 9834 else 9835 no_gtk=yes 9836 fi 9837 9838 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9839 { 9840 ac_save_CFLAGS="$CFLAGS" 9841 ac_save_LIBS="$LIBS" 9842 CFLAGS="$CFLAGS $GTK_CFLAGS" 9843 LIBS="$LIBS $GTK_LIBS" 9844 9845 rm -f conf.gtktest 9846 if test "$cross_compiling" = yes; then : 9847 echo $ac_n "cross compiling; assumed OK... $ac_c" 9848else 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851 9852#include <gtk/gtk.h> 9853#include <stdio.h> 9854#if STDC_HEADERS 9855# include <stdlib.h> 9856# include <stddef.h> 9857#endif 9858 9859int 9860main () 9861{ 9862int major, minor, micro; 9863char *tmp_version; 9864 9865system ("touch conf.gtktest"); 9866 9867/* HP/UX 9 (%@#!) writes to sscanf strings */ 9868tmp_version = g_strdup("$min_gtk_version"); 9869if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9870 printf("%s, bad version string\n", "$min_gtk_version"); 9871 exit(1); 9872 } 9873 9874if ((gtk_major_version > major) || 9875 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9876 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9877 (gtk_micro_version >= micro))) 9878{ 9879 return 0; 9880} 9881return 1; 9882} 9883 9884_ACEOF 9885if ac_fn_c_try_run "$LINENO"; then : 9886 9887else 9888 no_gtk=yes 9889fi 9890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9891 conftest.$ac_objext conftest.beam conftest.$ac_ext 9892fi 9893 9894 CFLAGS="$ac_save_CFLAGS" 9895 LIBS="$ac_save_LIBS" 9896 } 9897 fi 9898 if test "x$no_gtk" = x ; then 9899 if test "x$enable_gtktest" = "xyes"; then 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9901$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9902 else 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9904$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9905 fi 9906 GUI_LIB_LOC="$GTK_LIBDIR" 9907 GTK_LIBNAME="$GTK_LIBS" 9908 GUI_INC_LOC="$GTK_CFLAGS" 9909 else 9910 { 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9912$as_echo "no" >&6; } 9913 GTK_CFLAGS="" 9914 GTK_LIBS="" 9915 : 9916 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9917 as_fn_error $? "could not configure GTK" "$LINENO" 5 9918 fi 9919 } 9920 fi 9921 } 9922 else 9923 GTK_CFLAGS="" 9924 GTK_LIBS="" 9925 : 9926 fi 9927 9928 9929 rm -f conf.gtktest 9930 9931 if test "x$GTK_CFLAGS" != "x"; then 9932 SKIP_GTK2=YES 9933 SKIP_GNOME=YES 9934 SKIP_ATHENA=YES 9935 SKIP_NEXTAW=YES 9936 SKIP_MOTIF=YES 9937 GUITYPE=GTK 9938 9939 $as_echo "#define USE_GTK3 1" >>confdefs.h 9940 9941 fi 9942 fi 9943fi 9944 9945if test "x$GUITYPE" = "xGTK"; then 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9947$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9948 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9949 if test "x$gdk_pixbuf_version" != x ; then 9950 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9951 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9952 if test "x$gdk_pixbuf_version_minor" != x -a \ 9953 $gdk_pixbuf_version_minor -ge 31 ; then 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9955$as_echo "OK." >&6; } 9956 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9957set dummy glib-compile-resources; ac_word=$2 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9959$as_echo_n "checking for $ac_word... " >&6; } 9960if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9961 $as_echo_n "(cached) " >&6 9962else 9963 case $GLIB_COMPILE_RESOURCES in 9964 [\\/]* | ?:[\\/]*) 9965 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9966 ;; 9967 *) 9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9969for as_dir in $PATH 9970do 9971 IFS=$as_save_IFS 9972 test -z "$as_dir" && as_dir=. 9973 for ac_exec_ext in '' $ac_executable_extensions; do 9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9975 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9977 break 2 9978 fi 9979done 9980 done 9981IFS=$as_save_IFS 9982 9983 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9984 ;; 9985esac 9986fi 9987GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9988if test -n "$GLIB_COMPILE_RESOURCES"; then 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9990$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9991else 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9993$as_echo "no" >&6; } 9994fi 9995 9996 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9998$as_echo_n "checking glib-compile-resources... " >&6; } 9999 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 10000 GLIB_COMPILE_RESOURCES="" 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 10002$as_echo "cannot be found in PATH." >&6; } 10003 else 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 10005$as_echo "usable." >&6; } 10006 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 10007 10008 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 10009 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 10010 fi 10011 else 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 10013$as_echo "not usable." >&6; } 10014 fi 10015 else 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 10017$as_echo "cannot obtain from pkg_config." >&6; } 10018 fi 10019 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 10021$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 10022 # Check whether --enable-icon_cache_update was given. 10023if test "${enable_icon_cache_update+set}" = set; then : 10024 enableval=$enable_icon_cache_update; 10025else 10026 enable_icon_cache_update="yes" 10027fi 10028 10029 if test "$enable_icon_cache_update" = "yes"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10031$as_echo "not set" >&6; } 10032 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 10033set dummy gtk-update-icon-cache; ac_word=$2 10034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10035$as_echo_n "checking for $ac_word... " >&6; } 10036if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 10037 $as_echo_n "(cached) " >&6 10038else 10039 case $GTK_UPDATE_ICON_CACHE in 10040 [\\/]* | ?:[\\/]*) 10041 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 10042 ;; 10043 *) 10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10045for as_dir in $PATH 10046do 10047 IFS=$as_save_IFS 10048 test -z "$as_dir" && as_dir=. 10049 for ac_exec_ext in '' $ac_executable_extensions; do 10050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10051 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10053 break 2 10054 fi 10055done 10056 done 10057IFS=$as_save_IFS 10058 10059 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 10060 ;; 10061esac 10062fi 10063GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 10064if test -n "$GTK_UPDATE_ICON_CACHE"; then 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 10066$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 10067else 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10069$as_echo "no" >&6; } 10070fi 10071 10072 10073 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10075$as_echo "not found in PATH." >&6; } 10076 fi 10077 else 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10079$as_echo "update disabled" >&6; } 10080 fi 10081 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 10083$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 10084 # Check whether --enable-desktop_database_update was given. 10085if test "${enable_desktop_database_update+set}" = set; then : 10086 enableval=$enable_desktop_database_update; 10087else 10088 enable_desktop_database_update="yes" 10089fi 10090 10091 if test "$enable_desktop_database_update" = "yes"; then 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10093$as_echo "not set" >&6; } 10094 # Extract the first word of "update-desktop-database", so it can be a program name with args. 10095set dummy update-desktop-database; ac_word=$2 10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10097$as_echo_n "checking for $ac_word... " >&6; } 10098if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100else 10101 case $UPDATE_DESKTOP_DATABASE in 10102 [\\/]* | ?:[\\/]*) 10103 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 10104 ;; 10105 *) 10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10107for as_dir in $PATH 10108do 10109 IFS=$as_save_IFS 10110 test -z "$as_dir" && as_dir=. 10111 for ac_exec_ext in '' $ac_executable_extensions; do 10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10113 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10115 break 2 10116 fi 10117done 10118 done 10119IFS=$as_save_IFS 10120 10121 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 10122 ;; 10123esac 10124fi 10125UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 10126if test -n "$UPDATE_DESKTOP_DATABASE"; then 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 10128$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 10129else 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10131$as_echo "no" >&6; } 10132fi 10133 10134 10135 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10137$as_echo "not found in PATH." >&6; } 10138 fi 10139 else 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10141$as_echo "update disabled" >&6; } 10142 fi 10143fi 10144 10145 10146 10147 10148 10149 10150 10151if test -z "$SKIP_MOTIF"; then 10152 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" 10153 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 10154 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 10156$as_echo_n "checking for location of Motif GUI includes... " >&6; } 10157 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 10158 GUI_INC_LOC= 10159 for try in $gui_includes; do 10160 if test -f "$try/Xm/Xm.h"; then 10161 GUI_INC_LOC=$try 10162 fi 10163 done 10164 if test -n "$GUI_INC_LOC"; then 10165 if test "$GUI_INC_LOC" = /usr/include; then 10166 GUI_INC_LOC= 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10168$as_echo "in default path" >&6; } 10169 else 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 10171$as_echo "$GUI_INC_LOC" >&6; } 10172 fi 10173 else 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10175$as_echo "<not found>" >&6; } 10176 SKIP_MOTIF=YES 10177 fi 10178fi 10179 10180 10181if test -z "$SKIP_MOTIF"; then 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 10183$as_echo_n "checking --with-motif-lib argument... " >&6; } 10184 10185# Check whether --with-motif-lib was given. 10186if test "${with_motif_lib+set}" = set; then : 10187 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 10188fi 10189 10190 10191 if test -n "$MOTIF_LIBNAME"; then 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 10193$as_echo "$MOTIF_LIBNAME" >&6; } 10194 GUI_LIB_LOC= 10195 else 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10197$as_echo "no" >&6; } 10198 10199 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 10200 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 10202$as_echo_n "checking for location of Motif GUI libs... " >&6; } 10203 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" 10204 GUI_LIB_LOC= 10205 for try in $gui_libs; do 10206 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 10207 if test -f "$libtry"; then 10208 GUI_LIB_LOC=$try 10209 fi 10210 done 10211 done 10212 if test -n "$GUI_LIB_LOC"; then 10213 if test "$GUI_LIB_LOC" = /usr/lib \ 10214 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 10215 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 10216 GUI_LIB_LOC= 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10218$as_echo "in default path" >&6; } 10219 else 10220 if test -n "$GUI_LIB_LOC"; then 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 10222$as_echo "$GUI_LIB_LOC" >&6; } 10223 if test "`(uname) 2>/dev/null`" = SunOS && 10224 uname -r | grep '^5' >/dev/null; then 10225 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 10226 fi 10227 fi 10228 fi 10229 MOTIF_LIBNAME=-lXm 10230 else 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10232$as_echo "<not found>" >&6; } 10233 SKIP_MOTIF=YES 10234 fi 10235 fi 10236fi 10237 10238if test -z "$SKIP_MOTIF"; then 10239 SKIP_ATHENA=YES 10240 SKIP_NEXTAW=YES 10241 GUITYPE=MOTIF 10242 10243fi 10244 10245 10246GUI_X_LIBS= 10247 10248if test -z "$SKIP_ATHENA"; then 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 10250$as_echo_n "checking if Athena header files can be found... " >&6; } 10251 cflags_save=$CFLAGS 10252 CFLAGS="$CFLAGS $X_CFLAGS" 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255 10256#include <X11/Intrinsic.h> 10257#include <X11/Xaw/Paned.h> 10258int 10259main () 10260{ 10261 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_c_try_compile "$LINENO"; then : 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10268$as_echo "yes" >&6; } 10269else 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10271$as_echo "no" >&6; }; SKIP_ATHENA=YES 10272fi 10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10274 CFLAGS=$cflags_save 10275fi 10276 10277if test -z "$SKIP_ATHENA"; then 10278 GUITYPE=ATHENA 10279fi 10280 10281if test -z "$SKIP_NEXTAW"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 10283$as_echo_n "checking if neXtaw header files can be found... " >&6; } 10284 cflags_save=$CFLAGS 10285 CFLAGS="$CFLAGS $X_CFLAGS" 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288 10289#include <X11/Intrinsic.h> 10290#include <X11/neXtaw/Paned.h> 10291int 10292main () 10293{ 10294 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; } 10302else 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10304$as_echo "no" >&6; }; SKIP_NEXTAW=YES 10305fi 10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10307 CFLAGS=$cflags_save 10308fi 10309 10310if test -z "$SKIP_NEXTAW"; then 10311 GUITYPE=NEXTAW 10312fi 10313 10314if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10315 if test -n "$GUI_INC_LOC"; then 10316 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 10317 fi 10318 if test -n "$GUI_LIB_LOC"; then 10319 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 10320 fi 10321 10322 ldflags_save=$LDFLAGS 10323 LDFLAGS="$X_LIBS $LDFLAGS" 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10325$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10326if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 ac_check_lib_save_LIBS=$LIBS 10330LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333 10334/* Override any GCC internal prototype to avoid an error. 10335 Use char because int might match the return type of a GCC 10336 builtin and then its argument prototype would still apply. */ 10337#ifdef __cplusplus 10338extern "C" 10339#endif 10340char XShapeQueryExtension (); 10341int 10342main () 10343{ 10344return XShapeQueryExtension (); 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO"; then : 10350 ac_cv_lib_Xext_XShapeQueryExtension=yes 10351else 10352 ac_cv_lib_Xext_XShapeQueryExtension=no 10353fi 10354rm -f core conftest.err conftest.$ac_objext \ 10355 conftest$ac_exeext conftest.$ac_ext 10356LIBS=$ac_check_lib_save_LIBS 10357fi 10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10359$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10360if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 10361 GUI_X_LIBS="-lXext" 10362fi 10363 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 10365$as_echo_n "checking for wslen in -lw... " >&6; } 10366if ${ac_cv_lib_w_wslen+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 ac_check_lib_save_LIBS=$LIBS 10370LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373 10374/* Override any GCC internal prototype to avoid an error. 10375 Use char because int might match the return type of a GCC 10376 builtin and then its argument prototype would still apply. */ 10377#ifdef __cplusplus 10378extern "C" 10379#endif 10380char wslen (); 10381int 10382main () 10383{ 10384return wslen (); 10385 ; 10386 return 0; 10387} 10388_ACEOF 10389if ac_fn_c_try_link "$LINENO"; then : 10390 ac_cv_lib_w_wslen=yes 10391else 10392 ac_cv_lib_w_wslen=no 10393fi 10394rm -f core conftest.err conftest.$ac_objext \ 10395 conftest$ac_exeext conftest.$ac_ext 10396LIBS=$ac_check_lib_save_LIBS 10397fi 10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 10399$as_echo "$ac_cv_lib_w_wslen" >&6; } 10400if test "x$ac_cv_lib_w_wslen" = xyes; then : 10401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 10402fi 10403 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10405$as_echo_n "checking for dlsym in -ldl... " >&6; } 10406if ${ac_cv_lib_dl_dlsym+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408else 10409 ac_check_lib_save_LIBS=$LIBS 10410LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412/* end confdefs.h. */ 10413 10414/* Override any GCC internal prototype to avoid an error. 10415 Use char because int might match the return type of a GCC 10416 builtin and then its argument prototype would still apply. */ 10417#ifdef __cplusplus 10418extern "C" 10419#endif 10420char dlsym (); 10421int 10422main () 10423{ 10424return dlsym (); 10425 ; 10426 return 0; 10427} 10428_ACEOF 10429if ac_fn_c_try_link "$LINENO"; then : 10430 ac_cv_lib_dl_dlsym=yes 10431else 10432 ac_cv_lib_dl_dlsym=no 10433fi 10434rm -f core conftest.err conftest.$ac_objext \ 10435 conftest$ac_exeext conftest.$ac_ext 10436LIBS=$ac_check_lib_save_LIBS 10437fi 10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10439$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10440if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10441 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 10442fi 10443 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 10445$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 10446if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 ac_check_lib_save_LIBS=$LIBS 10450LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453 10454/* Override any GCC internal prototype to avoid an error. 10455 Use char because int might match the return type of a GCC 10456 builtin and then its argument prototype would still apply. */ 10457#ifdef __cplusplus 10458extern "C" 10459#endif 10460char XmuCreateStippledPixmap (); 10461int 10462main () 10463{ 10464return XmuCreateStippledPixmap (); 10465 ; 10466 return 0; 10467} 10468_ACEOF 10469if ac_fn_c_try_link "$LINENO"; then : 10470 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10471else 10472 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10473fi 10474rm -f core conftest.err conftest.$ac_objext \ 10475 conftest$ac_exeext conftest.$ac_ext 10476LIBS=$ac_check_lib_save_LIBS 10477fi 10478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10479$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10480if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10481 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10482fi 10483 10484 if test -z "$SKIP_MOTIF"; then 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10486$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10487if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 ac_check_lib_save_LIBS=$LIBS 10491LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10493/* end confdefs.h. */ 10494 10495/* Override any GCC internal prototype to avoid an error. 10496 Use char because int might match the return type of a GCC 10497 builtin and then its argument prototype would still apply. */ 10498#ifdef __cplusplus 10499extern "C" 10500#endif 10501char XpEndJob (); 10502int 10503main () 10504{ 10505return XpEndJob (); 10506 ; 10507 return 0; 10508} 10509_ACEOF 10510if ac_fn_c_try_link "$LINENO"; then : 10511 ac_cv_lib_Xp_XpEndJob=yes 10512else 10513 ac_cv_lib_Xp_XpEndJob=no 10514fi 10515rm -f core conftest.err conftest.$ac_objext \ 10516 conftest$ac_exeext conftest.$ac_ext 10517LIBS=$ac_check_lib_save_LIBS 10518fi 10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10520$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10521if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10522 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10523fi 10524 10525 fi 10526 LDFLAGS=$ldflags_save 10527 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10529$as_echo_n "checking for extra X11 defines... " >&6; } 10530 NARROW_PROTO= 10531 rm -fr conftestdir 10532 if mkdir conftestdir; then 10533 cd conftestdir 10534 cat > Imakefile <<'EOF' 10535acfindx: 10536 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10537EOF 10538 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10539 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10540 fi 10541 cd .. 10542 rm -fr conftestdir 10543 fi 10544 if test -z "$NARROW_PROTO"; then 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10546$as_echo "no" >&6; } 10547 else 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10549$as_echo "$NARROW_PROTO" >&6; } 10550 fi 10551 10552fi 10553 10554if test "$enable_xsmp" = "yes"; then 10555 cppflags_save=$CPPFLAGS 10556 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10557 for ac_header in X11/SM/SMlib.h 10558do : 10559 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10560if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10561 cat >>confdefs.h <<_ACEOF 10562#define HAVE_X11_SM_SMLIB_H 1 10563_ACEOF 10564 10565fi 10566 10567done 10568 10569 CPPFLAGS=$cppflags_save 10570fi 10571 10572 10573if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10574 cppflags_save=$CPPFLAGS 10575 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10576 for ac_header in X11/xpm.h X11/Sunkeysym.h 10577do : 10578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10581 cat >>confdefs.h <<_ACEOF 10582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10583_ACEOF 10584 10585fi 10586 10587done 10588 10589 10590 if test ! "$enable_xim" = "no"; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10592$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595#include <X11/Xlib.h> 10596_ACEOF 10597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10598 $EGREP "XIMText" >/dev/null 2>&1; then : 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10600$as_echo "yes" >&6; } 10601else 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10603$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10604fi 10605rm -f conftest* 10606 10607 fi 10608 CPPFLAGS=$cppflags_save 10609 10610 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10611 -a "x$GUITYPE" != "xNONE" ; then 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10613$as_echo "X GUI selected; xim has been enabled" >&6; } 10614 enable_xim="yes" 10615 fi 10616fi 10617 10618if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10619 cppflags_save=$CPPFLAGS 10620 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10622$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10624/* end confdefs.h. */ 10625 10626#include <X11/Intrinsic.h> 10627#include <X11/Xmu/Editres.h> 10628int 10629main () 10630{ 10631int i; i = 0; 10632 ; 10633 return 0; 10634} 10635_ACEOF 10636if ac_fn_c_try_compile "$LINENO"; then : 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10638$as_echo "yes" >&6; } 10639 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10640 10641else 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10643$as_echo "no" >&6; } 10644fi 10645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10646 CPPFLAGS=$cppflags_save 10647fi 10648 10649if test -z "$SKIP_MOTIF"; then 10650 cppflags_save=$CPPFLAGS 10651 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10652 if test "$zOSUnix" = "yes"; then 10653 xmheader="Xm/Xm.h" 10654 else 10655 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10656 Xm/UnhighlightT.h Xm/Notebook.h" 10657 fi 10658 for ac_header in $xmheader 10659do : 10660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10661ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10662if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10663 cat >>confdefs.h <<_ACEOF 10664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10665_ACEOF 10666 10667fi 10668 10669done 10670 10671 10672 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10674$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10676/* end confdefs.h. */ 10677#include <Xm/XpmP.h> 10678int 10679main () 10680{ 10681XpmAttributes_21 attr; 10682 ; 10683 return 0; 10684} 10685_ACEOF 10686if ac_fn_c_try_compile "$LINENO"; then : 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10688$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10689 10690else 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10692$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10693 10694 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10697 else 10698 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10699 10700 fi 10701 CPPFLAGS=$cppflags_save 10702fi 10703 10704if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10706$as_echo "no GUI selected; xim has been disabled" >&6; } 10707 enable_xim="no" 10708fi 10709if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10711$as_echo "no GUI selected; fontset has been disabled" >&6; } 10712 enable_fontset="no" 10713fi 10714if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10716$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10717 enable_fontset="no" 10718fi 10719 10720if test -z "$SKIP_PHOTON"; then 10721 GUITYPE=PHOTONGUI 10722fi 10723 10724 10725 10726 10727 10728 10729if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10730 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10731fi 10732 10733if test "$enable_xim" = "yes"; then 10734 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10735 10736fi 10737if test "$enable_fontset" = "yes"; then 10738 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10739 10740fi 10741 10742 10743 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10745$as_echo_n "checking for /proc link to executable... " >&6; } 10746if test -L "/proc/self/exe"; then 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10748$as_echo "/proc/self/exe" >&6; } 10749 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10750 10751elif test -L "/proc/self/path/a.out"; then 10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10753$as_echo "/proc/self/path/a.out" >&6; } 10754 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10755 10756elif test -L "/proc/curproc/file"; then 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10758$as_echo "/proc/curproc/file" >&6; } 10759 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10760 10761else 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10763$as_echo "no" >&6; } 10764fi 10765 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10767$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10768case `uname` in 10769 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10770$as_echo "yes" >&6; } 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10772$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10773 if test "x$with_x" = "xno" ; then 10774 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10776$as_echo "yes" >&6; } 10777 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10778 10779 else 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10781$as_echo "no - using X11" >&6; } 10782 fi ;; 10783 10784 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785$as_echo "no" >&6; };; 10786esac 10787 10788if test "$enable_hangulinput" = "yes"; then 10789 if test "x$GUITYPE" = "xNONE"; then 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10791$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10792 enable_hangulinput=no 10793 else 10794 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10795 10796 HANGULIN_SRC=hangulin.c 10797 10798 HANGULIN_OBJ=objects/hangulin.o 10799 10800 fi 10801fi 10802 10803 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10805$as_echo_n "checking whether toupper is broken... " >&6; } 10806if ${vim_cv_toupper_broken+:} false; then : 10807 $as_echo_n "(cached) " >&6 10808else 10809 10810 if test "$cross_compiling" = yes; then : 10811 10812 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10813 10814else 10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816/* end confdefs.h. */ 10817 10818#include "confdefs.h" 10819#include <ctype.h> 10820#if STDC_HEADERS 10821# include <stdlib.h> 10822# include <stddef.h> 10823#endif 10824main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10825 10826_ACEOF 10827if ac_fn_c_try_run "$LINENO"; then : 10828 10829 vim_cv_toupper_broken=yes 10830 10831else 10832 10833 vim_cv_toupper_broken=no 10834 10835fi 10836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10837 conftest.$ac_objext conftest.beam conftest.$ac_ext 10838fi 10839 10840fi 10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10842$as_echo "$vim_cv_toupper_broken" >&6; } 10843 10844if test "x$vim_cv_toupper_broken" = "xyes" ; then 10845 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10846 10847fi 10848 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10850$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853#include <stdio.h> 10854int 10855main () 10856{ 10857printf("(" __DATE__ " " __TIME__ ")"); 10858 ; 10859 return 0; 10860} 10861_ACEOF 10862if ac_fn_c_try_compile "$LINENO"; then : 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10864$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10865 10866else 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10868$as_echo "no" >&6; } 10869fi 10870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10871 10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10873$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875/* end confdefs.h. */ 10876#include <stdio.h> 10877int 10878main () 10879{ 10880int x __attribute__((unused)); 10881 ; 10882 return 0; 10883} 10884_ACEOF 10885if ac_fn_c_try_compile "$LINENO"; then : 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10887$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10888 10889else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10891$as_echo "no" >&6; } 10892fi 10893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10894 10895ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10896if test "x$ac_cv_header_elf_h" = xyes; then : 10897 HAS_ELF=1 10898fi 10899 10900 10901if test "$HAS_ELF" = 1; then 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10903$as_echo_n "checking for main in -lelf... " >&6; } 10904if ${ac_cv_lib_elf_main+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 ac_check_lib_save_LIBS=$LIBS 10908LIBS="-lelf $LIBS" 10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911 10912 10913int 10914main () 10915{ 10916return main (); 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_link "$LINENO"; then : 10922 ac_cv_lib_elf_main=yes 10923else 10924 ac_cv_lib_elf_main=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928LIBS=$ac_check_lib_save_LIBS 10929fi 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10931$as_echo "$ac_cv_lib_elf_main" >&6; } 10932if test "x$ac_cv_lib_elf_main" = xyes; then : 10933 cat >>confdefs.h <<_ACEOF 10934#define HAVE_LIBELF 1 10935_ACEOF 10936 10937 LIBS="-lelf $LIBS" 10938 10939fi 10940 10941fi 10942 10943ac_header_dirent=no 10944for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10945 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10947$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10948if eval \${$as_ac_Header+:} false; then : 10949 $as_echo_n "(cached) " >&6 10950else 10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952/* end confdefs.h. */ 10953#include <sys/types.h> 10954#include <$ac_hdr> 10955 10956int 10957main () 10958{ 10959if ((DIR *) 0) 10960return 0; 10961 ; 10962 return 0; 10963} 10964_ACEOF 10965if ac_fn_c_try_compile "$LINENO"; then : 10966 eval "$as_ac_Header=yes" 10967else 10968 eval "$as_ac_Header=no" 10969fi 10970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10971fi 10972eval ac_res=\$$as_ac_Header 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10974$as_echo "$ac_res" >&6; } 10975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10976 cat >>confdefs.h <<_ACEOF 10977#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10978_ACEOF 10979 10980ac_header_dirent=$ac_hdr; break 10981fi 10982 10983done 10984# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10985if test $ac_header_dirent = dirent.h; then 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10987$as_echo_n "checking for library containing opendir... " >&6; } 10988if ${ac_cv_search_opendir+:} false; then : 10989 $as_echo_n "(cached) " >&6 10990else 10991 ac_func_search_save_LIBS=$LIBS 10992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10993/* end confdefs.h. */ 10994 10995/* Override any GCC internal prototype to avoid an error. 10996 Use char because int might match the return type of a GCC 10997 builtin and then its argument prototype would still apply. */ 10998#ifdef __cplusplus 10999extern "C" 11000#endif 11001char opendir (); 11002int 11003main () 11004{ 11005return opendir (); 11006 ; 11007 return 0; 11008} 11009_ACEOF 11010for ac_lib in '' dir; do 11011 if test -z "$ac_lib"; then 11012 ac_res="none required" 11013 else 11014 ac_res=-l$ac_lib 11015 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11016 fi 11017 if ac_fn_c_try_link "$LINENO"; then : 11018 ac_cv_search_opendir=$ac_res 11019fi 11020rm -f core conftest.err conftest.$ac_objext \ 11021 conftest$ac_exeext 11022 if ${ac_cv_search_opendir+:} false; then : 11023 break 11024fi 11025done 11026if ${ac_cv_search_opendir+:} false; then : 11027 11028else 11029 ac_cv_search_opendir=no 11030fi 11031rm conftest.$ac_ext 11032LIBS=$ac_func_search_save_LIBS 11033fi 11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11035$as_echo "$ac_cv_search_opendir" >&6; } 11036ac_res=$ac_cv_search_opendir 11037if test "$ac_res" != no; then : 11038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11039 11040fi 11041 11042else 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11044$as_echo_n "checking for library containing opendir... " >&6; } 11045if ${ac_cv_search_opendir+:} false; then : 11046 $as_echo_n "(cached) " >&6 11047else 11048 ac_func_search_save_LIBS=$LIBS 11049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11050/* end confdefs.h. */ 11051 11052/* Override any GCC internal prototype to avoid an error. 11053 Use char because int might match the return type of a GCC 11054 builtin and then its argument prototype would still apply. */ 11055#ifdef __cplusplus 11056extern "C" 11057#endif 11058char opendir (); 11059int 11060main () 11061{ 11062return opendir (); 11063 ; 11064 return 0; 11065} 11066_ACEOF 11067for ac_lib in '' x; do 11068 if test -z "$ac_lib"; then 11069 ac_res="none required" 11070 else 11071 ac_res=-l$ac_lib 11072 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11073 fi 11074 if ac_fn_c_try_link "$LINENO"; then : 11075 ac_cv_search_opendir=$ac_res 11076fi 11077rm -f core conftest.err conftest.$ac_objext \ 11078 conftest$ac_exeext 11079 if ${ac_cv_search_opendir+:} false; then : 11080 break 11081fi 11082done 11083if ${ac_cv_search_opendir+:} false; then : 11084 11085else 11086 ac_cv_search_opendir=no 11087fi 11088rm conftest.$ac_ext 11089LIBS=$ac_func_search_save_LIBS 11090fi 11091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11092$as_echo "$ac_cv_search_opendir" >&6; } 11093ac_res=$ac_cv_search_opendir 11094if test "$ac_res" != no; then : 11095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11096 11097fi 11098 11099fi 11100 11101 11102if test $ac_cv_header_sys_wait_h = no; then 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 11104$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11106/* end confdefs.h. */ 11107#include <sys/wait.h> 11108int 11109main () 11110{ 11111union wait xx, yy; xx = yy 11112 ; 11113 return 0; 11114} 11115_ACEOF 11116if ac_fn_c_try_compile "$LINENO"; then : 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11118$as_echo "yes" >&6; } 11119 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11120 11121 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 11122 11123else 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11125$as_echo "no" >&6; } 11126fi 11127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11128fi 11129 11130for ac_header in stdint.h stdlib.h string.h \ 11131 sys/select.h sys/utsname.h termcap.h fcntl.h \ 11132 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 11133 termio.h iconv.h inttypes.h langinfo.h math.h \ 11134 unistd.h stropts.h errno.h sys/resource.h \ 11135 sys/systeminfo.h locale.h sys/stream.h termios.h \ 11136 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 11137 utime.h sys/param.h libintl.h libgen.h \ 11138 util/debug.h util/msg18n.h frame.h sys/acl.h \ 11139 sys/access.h sys/sysinfo.h wchar.h wctype.h 11140do : 11141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11144 cat >>confdefs.h <<_ACEOF 11145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11146_ACEOF 11147 11148fi 11149 11150done 11151 11152 11153for ac_header in sys/ptem.h 11154do : 11155 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 11156# include <sys/stream.h> 11157#endif 11158" 11159if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 11160 cat >>confdefs.h <<_ACEOF 11161#define HAVE_SYS_PTEM_H 1 11162_ACEOF 11163 11164fi 11165 11166done 11167 11168 11169for ac_header in sys/sysctl.h 11170do : 11171 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 11172# include <sys/param.h> 11173#endif 11174" 11175if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 11176 cat >>confdefs.h <<_ACEOF 11177#define HAVE_SYS_SYSCTL_H 1 11178_ACEOF 11179 11180fi 11181 11182done 11183 11184 11185 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 11187$as_echo_n "checking for pthread_np.h... " >&6; } 11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189/* end confdefs.h. */ 11190 11191#include <pthread.h> 11192#include <pthread_np.h> 11193int 11194main () 11195{ 11196int i; i = 0; 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_compile "$LINENO"; then : 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11203$as_echo "yes" >&6; } 11204 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 11205 11206else 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11208$as_echo "no" >&6; } 11209fi 11210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11211 11212for ac_header in strings.h 11213do : 11214 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 11215if test "x$ac_cv_header_strings_h" = xyes; then : 11216 cat >>confdefs.h <<_ACEOF 11217#define HAVE_STRINGS_H 1 11218_ACEOF 11219 11220fi 11221 11222done 11223 11224if test "x$MACOS_X" = "xyes"; then 11225 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11226 11227else 11228 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 11230$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 11231cppflags_save=$CPPFLAGS 11232CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11234/* end confdefs.h. */ 11235 11236#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11237# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11238 /* but don't do it on AIX 5.1 (Uribarri) */ 11239#endif 11240#ifdef HAVE_XM_XM_H 11241# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11242#endif 11243#ifdef HAVE_STRING_H 11244# include <string.h> 11245#endif 11246#if defined(HAVE_STRINGS_H) 11247# include <strings.h> 11248#endif 11249 11250int 11251main () 11252{ 11253int i; i = 0; 11254 ; 11255 return 0; 11256} 11257_ACEOF 11258if ac_fn_c_try_compile "$LINENO"; then : 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11260$as_echo "yes" >&6; } 11261else 11262 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11263 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11265$as_echo "no" >&6; } 11266fi 11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11268CPPFLAGS=$cppflags_save 11269fi 11270 11271if test $ac_cv_c_compiler_gnu = yes; then 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11273$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11274if ${ac_cv_prog_gcc_traditional+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276else 11277 ac_pattern="Autoconf.*'x'" 11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11279/* end confdefs.h. */ 11280#include <sgtty.h> 11281Autoconf TIOCGETP 11282_ACEOF 11283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11284 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11285 ac_cv_prog_gcc_traditional=yes 11286else 11287 ac_cv_prog_gcc_traditional=no 11288fi 11289rm -f conftest* 11290 11291 11292 if test $ac_cv_prog_gcc_traditional = no; then 11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11294/* end confdefs.h. */ 11295#include <termio.h> 11296Autoconf TCGETA 11297_ACEOF 11298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11299 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11300 ac_cv_prog_gcc_traditional=yes 11301fi 11302rm -f conftest* 11303 11304 fi 11305fi 11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11307$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11308 if test $ac_cv_prog_gcc_traditional = yes; then 11309 CC="$CC -traditional" 11310 fi 11311fi 11312 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11314$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11315if ${ac_cv_c_const+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320 11321int 11322main () 11323{ 11324 11325#ifndef __cplusplus 11326 /* Ultrix mips cc rejects this sort of thing. */ 11327 typedef int charset[2]; 11328 const charset cs = { 0, 0 }; 11329 /* SunOS 4.1.1 cc rejects this. */ 11330 char const *const *pcpcc; 11331 char **ppc; 11332 /* NEC SVR4.0.2 mips cc rejects this. */ 11333 struct point {int x, y;}; 11334 static struct point const zero = {0,0}; 11335 /* AIX XL C 1.02.0.0 rejects this. 11336 It does not let you subtract one const X* pointer from another in 11337 an arm of an if-expression whose if-part is not a constant 11338 expression */ 11339 const char *g = "string"; 11340 pcpcc = &g + (g ? g-g : 0); 11341 /* HPUX 7.0 cc rejects these. */ 11342 ++pcpcc; 11343 ppc = (char**) pcpcc; 11344 pcpcc = (char const *const *) ppc; 11345 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11346 char tx; 11347 char *t = &tx; 11348 char const *s = 0 ? (char *) 0 : (char const *) 0; 11349 11350 *t++ = 0; 11351 if (s) return 0; 11352 } 11353 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11354 int x[] = {25, 17}; 11355 const int *foo = &x[0]; 11356 ++foo; 11357 } 11358 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11359 typedef const int *iptr; 11360 iptr p = 0; 11361 ++p; 11362 } 11363 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11364 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11365 struct s { int j; const int *ap[3]; } bx; 11366 struct s *b = &bx; b->j = 5; 11367 } 11368 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11369 const int foo = 10; 11370 if (!foo) return 0; 11371 } 11372 return !cs[0] && !zero.x; 11373#endif 11374 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379if ac_fn_c_try_compile "$LINENO"; then : 11380 ac_cv_c_const=yes 11381else 11382 ac_cv_c_const=no 11383fi 11384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11385fi 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11387$as_echo "$ac_cv_c_const" >&6; } 11388if test $ac_cv_c_const = no; then 11389 11390$as_echo "#define const /**/" >>confdefs.h 11391 11392fi 11393 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11395$as_echo_n "checking for working volatile... " >&6; } 11396if ${ac_cv_c_volatile+:} false; then : 11397 $as_echo_n "(cached) " >&6 11398else 11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11400/* end confdefs.h. */ 11401 11402int 11403main () 11404{ 11405 11406volatile int x; 11407int * volatile y = (int *) 0; 11408return !x && !y; 11409 ; 11410 return 0; 11411} 11412_ACEOF 11413if ac_fn_c_try_compile "$LINENO"; then : 11414 ac_cv_c_volatile=yes 11415else 11416 ac_cv_c_volatile=no 11417fi 11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11419fi 11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11421$as_echo "$ac_cv_c_volatile" >&6; } 11422if test $ac_cv_c_volatile = no; then 11423 11424$as_echo "#define volatile /**/" >>confdefs.h 11425 11426fi 11427 11428ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11429if test "x$ac_cv_type_mode_t" = xyes; then : 11430 11431else 11432 11433cat >>confdefs.h <<_ACEOF 11434#define mode_t int 11435_ACEOF 11436 11437fi 11438 11439ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11440if test "x$ac_cv_type_off_t" = xyes; then : 11441 11442else 11443 11444cat >>confdefs.h <<_ACEOF 11445#define off_t long int 11446_ACEOF 11447 11448fi 11449 11450ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11451if test "x$ac_cv_type_pid_t" = xyes; then : 11452 11453else 11454 11455cat >>confdefs.h <<_ACEOF 11456#define pid_t int 11457_ACEOF 11458 11459fi 11460 11461ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11462if test "x$ac_cv_type_size_t" = xyes; then : 11463 11464else 11465 11466cat >>confdefs.h <<_ACEOF 11467#define size_t unsigned int 11468_ACEOF 11469 11470fi 11471 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11473$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11474if ${ac_cv_type_uid_t+:} false; then : 11475 $as_echo_n "(cached) " >&6 11476else 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479#include <sys/types.h> 11480 11481_ACEOF 11482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11483 $EGREP "uid_t" >/dev/null 2>&1; then : 11484 ac_cv_type_uid_t=yes 11485else 11486 ac_cv_type_uid_t=no 11487fi 11488rm -f conftest* 11489 11490fi 11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11492$as_echo "$ac_cv_type_uid_t" >&6; } 11493if test $ac_cv_type_uid_t = no; then 11494 11495$as_echo "#define uid_t int" >>confdefs.h 11496 11497 11498$as_echo "#define gid_t int" >>confdefs.h 11499 11500fi 11501 11502ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11503case $ac_cv_c_uint32_t in #( 11504 no|yes) ;; #( 11505 *) 11506 11507$as_echo "#define _UINT32_T 1" >>confdefs.h 11508 11509 11510cat >>confdefs.h <<_ACEOF 11511#define uint32_t $ac_cv_c_uint32_t 11512_ACEOF 11513;; 11514 esac 11515 11516 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11518$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11519if ${ac_cv_header_time+:} false; then : 11520 $as_echo_n "(cached) " >&6 11521else 11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11523/* end confdefs.h. */ 11524#include <sys/types.h> 11525#include <sys/time.h> 11526#include <time.h> 11527 11528int 11529main () 11530{ 11531if ((struct tm *) 0) 11532return 0; 11533 ; 11534 return 0; 11535} 11536_ACEOF 11537if ac_fn_c_try_compile "$LINENO"; then : 11538 ac_cv_header_time=yes 11539else 11540 ac_cv_header_time=no 11541fi 11542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11543fi 11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11545$as_echo "$ac_cv_header_time" >&6; } 11546if test $ac_cv_header_time = yes; then 11547 11548$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11549 11550fi 11551 11552ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11553if test "x$ac_cv_type_ino_t" = xyes; then : 11554 11555else 11556 11557cat >>confdefs.h <<_ACEOF 11558#define ino_t long 11559_ACEOF 11560 11561fi 11562 11563ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11564if test "x$ac_cv_type_dev_t" = xyes; then : 11565 11566else 11567 11568cat >>confdefs.h <<_ACEOF 11569#define dev_t unsigned 11570_ACEOF 11571 11572fi 11573 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11575$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11576if ${ac_cv_c_bigendian+:} false; then : 11577 $as_echo_n "(cached) " >&6 11578else 11579 ac_cv_c_bigendian=unknown 11580 # See if we're dealing with a universal compiler. 11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582/* end confdefs.h. */ 11583#ifndef __APPLE_CC__ 11584 not a universal capable compiler 11585 #endif 11586 typedef int dummy; 11587 11588_ACEOF 11589if ac_fn_c_try_compile "$LINENO"; then : 11590 11591 # Check for potential -arch flags. It is not universal unless 11592 # there are at least two -arch flags with different values. 11593 ac_arch= 11594 ac_prev= 11595 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11596 if test -n "$ac_prev"; then 11597 case $ac_word in 11598 i?86 | x86_64 | ppc | ppc64) 11599 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11600 ac_arch=$ac_word 11601 else 11602 ac_cv_c_bigendian=universal 11603 break 11604 fi 11605 ;; 11606 esac 11607 ac_prev= 11608 elif test "x$ac_word" = "x-arch"; then 11609 ac_prev=arch 11610 fi 11611 done 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11614 if test $ac_cv_c_bigendian = unknown; then 11615 # See if sys/param.h defines the BYTE_ORDER macro. 11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11617/* end confdefs.h. */ 11618#include <sys/types.h> 11619 #include <sys/param.h> 11620 11621int 11622main () 11623{ 11624#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11625 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11626 && LITTLE_ENDIAN) 11627 bogus endian macros 11628 #endif 11629 11630 ; 11631 return 0; 11632} 11633_ACEOF 11634if ac_fn_c_try_compile "$LINENO"; then : 11635 # It does; now see whether it defined to BIG_ENDIAN or not. 11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11637/* end confdefs.h. */ 11638#include <sys/types.h> 11639 #include <sys/param.h> 11640 11641int 11642main () 11643{ 11644#if BYTE_ORDER != BIG_ENDIAN 11645 not big endian 11646 #endif 11647 11648 ; 11649 return 0; 11650} 11651_ACEOF 11652if ac_fn_c_try_compile "$LINENO"; then : 11653 ac_cv_c_bigendian=yes 11654else 11655 ac_cv_c_bigendian=no 11656fi 11657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11658fi 11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11660 fi 11661 if test $ac_cv_c_bigendian = unknown; then 11662 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665#include <limits.h> 11666 11667int 11668main () 11669{ 11670#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11671 bogus endian macros 11672 #endif 11673 11674 ; 11675 return 0; 11676} 11677_ACEOF 11678if ac_fn_c_try_compile "$LINENO"; then : 11679 # It does; now see whether it defined to _BIG_ENDIAN or not. 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682#include <limits.h> 11683 11684int 11685main () 11686{ 11687#ifndef _BIG_ENDIAN 11688 not big endian 11689 #endif 11690 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695if ac_fn_c_try_compile "$LINENO"; then : 11696 ac_cv_c_bigendian=yes 11697else 11698 ac_cv_c_bigendian=no 11699fi 11700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11701fi 11702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11703 fi 11704 if test $ac_cv_c_bigendian = unknown; then 11705 # Compile a test program. 11706 if test "$cross_compiling" = yes; then : 11707 # Try to guess by grepping values from an object file. 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710short int ascii_mm[] = 11711 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11712 short int ascii_ii[] = 11713 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11714 int use_ascii (int i) { 11715 return ascii_mm[i] + ascii_ii[i]; 11716 } 11717 short int ebcdic_ii[] = 11718 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11719 short int ebcdic_mm[] = 11720 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11721 int use_ebcdic (int i) { 11722 return ebcdic_mm[i] + ebcdic_ii[i]; 11723 } 11724 extern int foo; 11725 11726int 11727main () 11728{ 11729return use_ascii (foo) == use_ebcdic (foo); 11730 ; 11731 return 0; 11732} 11733_ACEOF 11734if ac_fn_c_try_compile "$LINENO"; then : 11735 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11736 ac_cv_c_bigendian=yes 11737 fi 11738 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11739 if test "$ac_cv_c_bigendian" = unknown; then 11740 ac_cv_c_bigendian=no 11741 else 11742 # finding both strings is unlikely to happen, but who knows? 11743 ac_cv_c_bigendian=unknown 11744 fi 11745 fi 11746fi 11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11748else 11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11750/* end confdefs.h. */ 11751$ac_includes_default 11752int 11753main () 11754{ 11755 11756 /* Are we little or big endian? From Harbison&Steele. */ 11757 union 11758 { 11759 long int l; 11760 char c[sizeof (long int)]; 11761 } u; 11762 u.l = 1; 11763 return u.c[sizeof (long int) - 1] == 1; 11764 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769if ac_fn_c_try_run "$LINENO"; then : 11770 ac_cv_c_bigendian=no 11771else 11772 ac_cv_c_bigendian=yes 11773fi 11774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11775 conftest.$ac_objext conftest.beam conftest.$ac_ext 11776fi 11777 11778 fi 11779fi 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11781$as_echo "$ac_cv_c_bigendian" >&6; } 11782 case $ac_cv_c_bigendian in #( 11783 yes) 11784 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11785;; #( 11786 no) 11787 ;; #( 11788 universal) 11789 11790$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11791 11792 ;; #( 11793 *) 11794 as_fn_error $? "unknown endianness 11795 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11796 esac 11797 11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11799$as_echo_n "checking for inline... " >&6; } 11800if ${ac_cv_c_inline+:} false; then : 11801 $as_echo_n "(cached) " >&6 11802else 11803 ac_cv_c_inline=no 11804for ac_kw in inline __inline__ __inline; do 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807#ifndef __cplusplus 11808typedef int foo_t; 11809static $ac_kw foo_t static_foo () {return 0; } 11810$ac_kw foo_t foo () {return 0; } 11811#endif 11812 11813_ACEOF 11814if ac_fn_c_try_compile "$LINENO"; then : 11815 ac_cv_c_inline=$ac_kw 11816fi 11817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11818 test "$ac_cv_c_inline" != no && break 11819done 11820 11821fi 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11823$as_echo "$ac_cv_c_inline" >&6; } 11824 11825case $ac_cv_c_inline in 11826 inline | yes) ;; 11827 *) 11828 case $ac_cv_c_inline in 11829 no) ac_val=;; 11830 *) ac_val=$ac_cv_c_inline;; 11831 esac 11832 cat >>confdefs.h <<_ACEOF 11833#ifndef __cplusplus 11834#define inline $ac_val 11835#endif 11836_ACEOF 11837 ;; 11838esac 11839 11840 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11842$as_echo_n "checking for rlim_t... " >&6; } 11843if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11845$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11846else 11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11848/* end confdefs.h. */ 11849 11850#include <sys/types.h> 11851#if STDC_HEADERS 11852# include <stdlib.h> 11853# include <stddef.h> 11854#endif 11855#ifdef HAVE_SYS_RESOURCE_H 11856# include <sys/resource.h> 11857#endif 11858 11859_ACEOF 11860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11861 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11862 ac_cv_type_rlim_t=yes 11863else 11864 ac_cv_type_rlim_t=no 11865fi 11866rm -f conftest* 11867 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11869$as_echo "$ac_cv_type_rlim_t" >&6; } 11870fi 11871if test $ac_cv_type_rlim_t = no; then 11872 cat >> confdefs.h <<\EOF 11873#define rlim_t unsigned long 11874EOF 11875fi 11876 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11878$as_echo_n "checking for stack_t... " >&6; } 11879if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11881$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11882else 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886#include <sys/types.h> 11887#if STDC_HEADERS 11888# include <stdlib.h> 11889# include <stddef.h> 11890#endif 11891#include <signal.h> 11892 11893_ACEOF 11894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11895 $EGREP "stack_t" >/dev/null 2>&1; then : 11896 ac_cv_type_stack_t=yes 11897else 11898 ac_cv_type_stack_t=no 11899fi 11900rm -f conftest* 11901 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11903$as_echo "$ac_cv_type_stack_t" >&6; } 11904fi 11905if test $ac_cv_type_stack_t = no; then 11906 cat >> confdefs.h <<\EOF 11907#define stack_t struct sigaltstack 11908EOF 11909fi 11910 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11912$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11914/* end confdefs.h. */ 11915 11916#include <sys/types.h> 11917#if STDC_HEADERS 11918# include <stdlib.h> 11919# include <stddef.h> 11920#endif 11921#include <signal.h> 11922#include "confdefs.h" 11923 11924int 11925main () 11926{ 11927stack_t sigstk; sigstk.ss_base = 0; 11928 ; 11929 return 0; 11930} 11931_ACEOF 11932if ac_fn_c_try_compile "$LINENO"; then : 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11934$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11935 11936else 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11938$as_echo "no" >&6; } 11939fi 11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11941 11942olibs="$LIBS" 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11944$as_echo_n "checking --with-tlib argument... " >&6; } 11945 11946# Check whether --with-tlib was given. 11947if test "${with_tlib+set}" = set; then : 11948 withval=$with_tlib; 11949fi 11950 11951if test -n "$with_tlib"; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11953$as_echo "$with_tlib" >&6; } 11954 LIBS="$LIBS -l$with_tlib" 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11956$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11958/* end confdefs.h. */ 11959 11960int 11961main () 11962{ 11963 11964 ; 11965 return 0; 11966} 11967_ACEOF 11968if ac_fn_c_try_link "$LINENO"; then : 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11970$as_echo "OK" >&6; } 11971else 11972 as_fn_error $? "FAILED" "$LINENO" 5 11973fi 11974rm -f core conftest.err conftest.$ac_objext \ 11975 conftest$ac_exeext conftest.$ac_ext 11976 olibs="$LIBS" 11977else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11979$as_echo "empty: automatic terminal library selection" >&6; } 11980 case "`uname -s 2>/dev/null`" in 11981 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11982 *) tlibs="tinfo ncurses termlib termcap curses";; 11983 esac 11984 for libname in $tlibs; do 11985 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11987$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11988if eval \${$as_ac_Lib+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990else 11991 ac_check_lib_save_LIBS=$LIBS 11992LIBS="-l${libname} $LIBS" 11993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11994/* end confdefs.h. */ 11995 11996/* Override any GCC internal prototype to avoid an error. 11997 Use char because int might match the return type of a GCC 11998 builtin and then its argument prototype would still apply. */ 11999#ifdef __cplusplus 12000extern "C" 12001#endif 12002char tgetent (); 12003int 12004main () 12005{ 12006return tgetent (); 12007 ; 12008 return 0; 12009} 12010_ACEOF 12011if ac_fn_c_try_link "$LINENO"; then : 12012 eval "$as_ac_Lib=yes" 12013else 12014 eval "$as_ac_Lib=no" 12015fi 12016rm -f core conftest.err conftest.$ac_objext \ 12017 conftest$ac_exeext conftest.$ac_ext 12018LIBS=$ac_check_lib_save_LIBS 12019fi 12020eval ac_res=\$$as_ac_Lib 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12022$as_echo "$ac_res" >&6; } 12023if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12024 cat >>confdefs.h <<_ACEOF 12025#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 12026_ACEOF 12027 12028 LIBS="-l${libname} $LIBS" 12029 12030fi 12031 12032 if test "x$olibs" != "x$LIBS"; then 12033 if test "$cross_compiling" = yes; then : 12034 res="FAIL" 12035else 12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12037/* end confdefs.h. */ 12038 12039#ifdef HAVE_TERMCAP_H 12040# include <termcap.h> 12041#endif 12042#if STDC_HEADERS 12043# include <stdlib.h> 12044# include <stddef.h> 12045#endif 12046main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 12047_ACEOF 12048if ac_fn_c_try_run "$LINENO"; then : 12049 res="OK" 12050else 12051 res="FAIL" 12052fi 12053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12054 conftest.$ac_objext conftest.beam conftest.$ac_ext 12055fi 12056 12057 if test "$res" = "OK"; then 12058 break 12059 fi 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 12061$as_echo "$libname library is not usable" >&6; } 12062 LIBS="$olibs" 12063 fi 12064 done 12065 if test "x$olibs" = "x$LIBS"; then 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 12067$as_echo "no terminal library found" >&6; } 12068 fi 12069fi 12070 12071if test "x$olibs" = "x$LIBS"; then 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 12073$as_echo_n "checking for tgetent()... " >&6; } 12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12075/* end confdefs.h. */ 12076 12077int 12078main () 12079{ 12080char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12081 ; 12082 return 0; 12083} 12084_ACEOF 12085if ac_fn_c_try_link "$LINENO"; then : 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12087$as_echo "yes" >&6; } 12088else 12089 as_fn_error $? "NOT FOUND! 12090 You need to install a terminal library; for example ncurses. 12091 Or specify the name of the library with --with-tlib." "$LINENO" 5 12092fi 12093rm -f core conftest.err conftest.$ac_objext \ 12094 conftest$ac_exeext conftest.$ac_ext 12095fi 12096 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 12098$as_echo_n "checking whether we talk terminfo... " >&6; } 12099if ${vim_cv_terminfo+:} false; then : 12100 $as_echo_n "(cached) " >&6 12101else 12102 12103 if test "$cross_compiling" = yes; then : 12104 12105 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 12106 12107else 12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110 12111#include "confdefs.h" 12112#ifdef HAVE_TERMCAP_H 12113# include <termcap.h> 12114#endif 12115#ifdef HAVE_STRING_H 12116# include <string.h> 12117#endif 12118#if STDC_HEADERS 12119# include <stdlib.h> 12120# include <stddef.h> 12121#endif 12122main() 12123{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12124 12125_ACEOF 12126if ac_fn_c_try_run "$LINENO"; then : 12127 12128 vim_cv_terminfo=no 12129 12130else 12131 12132 vim_cv_terminfo=yes 12133 12134fi 12135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12136 conftest.$ac_objext conftest.beam conftest.$ac_ext 12137fi 12138 12139 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 12142$as_echo "$vim_cv_terminfo" >&6; } 12143 12144if test "x$vim_cv_terminfo" = "xyes" ; then 12145 $as_echo "#define TERMINFO 1" >>confdefs.h 12146 12147fi 12148 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 12150$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 12151if ${vim_cv_tgetent+:} false; then : 12152 $as_echo_n "(cached) " >&6 12153else 12154 12155 if test "$cross_compiling" = yes; then : 12156 12157 as_fn_error $? "failed to compile test program." "$LINENO" 5 12158 12159else 12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12161/* end confdefs.h. */ 12162 12163#include "confdefs.h" 12164#ifdef HAVE_TERMCAP_H 12165# include <termcap.h> 12166#endif 12167#if STDC_HEADERS 12168# include <stdlib.h> 12169# include <stddef.h> 12170#endif 12171main() 12172{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12173 12174_ACEOF 12175if ac_fn_c_try_run "$LINENO"; then : 12176 12177 vim_cv_tgetent=zero 12178 12179else 12180 12181 vim_cv_tgetent=non-zero 12182 12183fi 12184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12185 conftest.$ac_objext conftest.beam conftest.$ac_ext 12186fi 12187 12188 12189fi 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 12191$as_echo "$vim_cv_tgetent" >&6; } 12192 12193if test "x$vim_cv_tgetent" = "xzero" ; then 12194 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 12195 12196fi 12197 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 12199$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 12200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12201/* end confdefs.h. */ 12202 12203#ifdef HAVE_TERMCAP_H 12204# include <termcap.h> 12205#endif 12206 12207int 12208main () 12209{ 12210ospeed = 20000 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_link "$LINENO"; then : 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12217$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 12218 12219else 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12221$as_echo "no" >&6; } 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 12223$as_echo_n "checking whether ospeed can be extern... " >&6; } 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226 12227#ifdef HAVE_TERMCAP_H 12228# include <termcap.h> 12229#endif 12230extern short ospeed; 12231 12232int 12233main () 12234{ 12235ospeed = 20000 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240if ac_fn_c_try_link "$LINENO"; then : 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12242$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 12243 12244else 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12246$as_echo "no" >&6; } 12247fi 12248rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 12251fi 12252rm -f core conftest.err conftest.$ac_objext \ 12253 conftest$ac_exeext conftest.$ac_ext 12254 12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 12256$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 12257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259 12260#ifdef HAVE_TERMCAP_H 12261# include <termcap.h> 12262#endif 12263 12264int 12265main () 12266{ 12267if (UP == 0 && BC == 0) PC = 1 12268 ; 12269 return 0; 12270} 12271_ACEOF 12272if ac_fn_c_try_link "$LINENO"; then : 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12274$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 12275 12276else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278$as_echo "no" >&6; } 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 12280$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282/* end confdefs.h. */ 12283 12284#ifdef HAVE_TERMCAP_H 12285# include <termcap.h> 12286#endif 12287extern char *UP, *BC, PC; 12288 12289int 12290main () 12291{ 12292if (UP == 0 && BC == 0) PC = 1 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_link "$LINENO"; then : 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12299$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 12300 12301else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303$as_echo "no" >&6; } 12304fi 12305rm -f core conftest.err conftest.$ac_objext \ 12306 conftest$ac_exeext conftest.$ac_ext 12307 12308fi 12309rm -f core conftest.err conftest.$ac_objext \ 12310 conftest$ac_exeext conftest.$ac_ext 12311 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 12313$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 12314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12315/* end confdefs.h. */ 12316 12317#ifdef HAVE_TERMCAP_H 12318# include <termcap.h> 12319#endif 12320 12321int 12322main () 12323{ 12324extern int xx(); tputs("test", 1, (outfuntype)xx) 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_compile "$LINENO"; then : 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 12332 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336fi 12337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12338 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12340$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343 12344#include <sys/types.h> 12345#include <sys/time.h> 12346#include <sys/select.h> 12347int 12348main () 12349{ 12350 12351 ; 12352 return 0; 12353} 12354_ACEOF 12355if ac_fn_c_try_compile "$LINENO"; then : 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12357$as_echo "yes" >&6; } 12358 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12359 12360else 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12362$as_echo "no" >&6; } 12363fi 12364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12365 12366 12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 12368$as_echo_n "checking for /dev/ptc... " >&6; } 12369if test -r /dev/ptc; then 12370 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 12371 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12373$as_echo "yes" >&6; } 12374else 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12376$as_echo "no" >&6; } 12377fi 12378 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 12380$as_echo_n "checking for SVR4 ptys... " >&6; } 12381if test -c /dev/ptmx ; then 12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12383/* end confdefs.h. */ 12384 12385int 12386main () 12387{ 12388ptsname(0);grantpt(0);unlockpt(0); 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393if ac_fn_c_try_link "$LINENO"; then : 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12395$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 12396 12397else 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12399$as_echo "no" >&6; } 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403else 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405$as_echo "no" >&6; } 12406fi 12407 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 12409$as_echo_n "checking for ptyranges... " >&6; } 12410if test -d /dev/ptym ; then 12411 pdir='/dev/ptym' 12412else 12413 pdir='/dev' 12414fi 12415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417#ifdef M_UNIX 12418 yes; 12419#endif 12420 12421_ACEOF 12422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12423 $EGREP "yes" >/dev/null 2>&1; then : 12424 ptys=`echo /dev/ptyp??` 12425else 12426 ptys=`echo $pdir/pty??` 12427fi 12428rm -f conftest* 12429 12430if test "$ptys" != "$pdir/pty??" ; then 12431 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 12432 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 12433 cat >>confdefs.h <<_ACEOF 12434#define PTYRANGE0 "$p0" 12435_ACEOF 12436 12437 cat >>confdefs.h <<_ACEOF 12438#define PTYRANGE1 "$p1" 12439_ACEOF 12440 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 12442$as_echo "$p0 / $p1" >&6; } 12443else 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 12445$as_echo "don't know" >&6; } 12446fi 12447 12448rm -f conftest_grp 12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 12450$as_echo_n "checking default tty permissions/group... " >&6; } 12451if ${vim_cv_tty_group+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453else 12454 12455 if test "$cross_compiling" = yes; then : 12456 12457 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 12458 12459else 12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461/* end confdefs.h. */ 12462 12463#include "confdefs.h" 12464#include <sys/types.h> 12465#if STDC_HEADERS 12466# include <stdlib.h> 12467# include <stddef.h> 12468#endif 12469#ifdef HAVE_UNISTD_H 12470#include <unistd.h> 12471#endif 12472#include <sys/stat.h> 12473#include <stdio.h> 12474main() 12475{ 12476 struct stat sb; 12477 char *x,*ttyname(); 12478 int om, m; 12479 FILE *fp; 12480 12481 if (!(x = ttyname(0))) exit(1); 12482 if (stat(x, &sb)) exit(1); 12483 om = sb.st_mode; 12484 if (om & 002) exit(0); 12485 m = system("mesg y"); 12486 if (m == -1 || m == 127) exit(1); 12487 if (stat(x, &sb)) exit(1); 12488 m = sb.st_mode; 12489 if (chmod(x, om)) exit(1); 12490 if (m & 002) exit(0); 12491 if (sb.st_gid == getgid()) exit(1); 12492 if (!(fp=fopen("conftest_grp", "w"))) 12493 exit(1); 12494 fprintf(fp, "%d\n", sb.st_gid); 12495 fclose(fp); 12496 exit(0); 12497} 12498 12499_ACEOF 12500if ac_fn_c_try_run "$LINENO"; then : 12501 12502 if test -f conftest_grp; then 12503 vim_cv_tty_group=`cat conftest_grp` 12504 if test "x$vim_cv_tty_mode" = "x" ; then 12505 vim_cv_tty_mode=0620 12506 fi 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 12508$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 12509 else 12510 vim_cv_tty_group=world 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 12512$as_echo "ptys are world accessible" >&6; } 12513 fi 12514 12515else 12516 12517 vim_cv_tty_group=world 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 12519$as_echo "can't determine - assume ptys are world accessible" >&6; } 12520 12521fi 12522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12523 conftest.$ac_objext conftest.beam conftest.$ac_ext 12524fi 12525 12526 12527fi 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 12529$as_echo "$vim_cv_tty_group" >&6; } 12530rm -f conftest_grp 12531 12532if test "x$vim_cv_tty_group" != "xworld" ; then 12533 cat >>confdefs.h <<_ACEOF 12534#define PTYGROUP $vim_cv_tty_group 12535_ACEOF 12536 12537 if test "x$vim_cv_tty_mode" = "x" ; then 12538 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 12539 else 12540 $as_echo "#define PTYMODE 0620" >>confdefs.h 12541 12542 fi 12543fi 12544 12545 12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12547$as_echo_n "checking return type of signal handlers... " >&6; } 12548if ${ac_cv_type_signal+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553#include <sys/types.h> 12554#include <signal.h> 12555 12556int 12557main () 12558{ 12559return *(signal (0, 0)) (0) == 1; 12560 ; 12561 return 0; 12562} 12563_ACEOF 12564if ac_fn_c_try_compile "$LINENO"; then : 12565 ac_cv_type_signal=int 12566else 12567 ac_cv_type_signal=void 12568fi 12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12572$as_echo "$ac_cv_type_signal" >&6; } 12573 12574cat >>confdefs.h <<_ACEOF 12575#define RETSIGTYPE $ac_cv_type_signal 12576_ACEOF 12577 12578 12579 12580if test $ac_cv_type_signal = void; then 12581 $as_echo "#define SIGRETURN return" >>confdefs.h 12582 12583else 12584 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12585 12586fi 12587 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12589$as_echo_n "checking for struct sigcontext... " >&6; } 12590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592 12593#include <signal.h> 12594test_sig() 12595{ 12596 struct sigcontext *scont; 12597 scont = (struct sigcontext *)0; 12598 return 1; 12599} 12600int 12601main () 12602{ 12603 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12610$as_echo "yes" >&6; } 12611 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12612 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616fi 12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12618 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12620$as_echo_n "checking getcwd implementation is broken... " >&6; } 12621if ${vim_cv_getcwd_broken+:} false; then : 12622 $as_echo_n "(cached) " >&6 12623else 12624 12625 if test "$cross_compiling" = yes; then : 12626 12627 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12628 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632 12633#include "confdefs.h" 12634#ifdef HAVE_UNISTD_H 12635#include <unistd.h> 12636#endif 12637char *dagger[] = { "IFS=pwd", 0 }; 12638main() 12639{ 12640 char buffer[500]; 12641 extern char **environ; 12642 environ = dagger; 12643 return getcwd(buffer, 500) ? 0 : 1; 12644} 12645 12646_ACEOF 12647if ac_fn_c_try_run "$LINENO"; then : 12648 12649 vim_cv_getcwd_broken=no 12650 12651else 12652 12653 vim_cv_getcwd_broken=yes 12654 12655fi 12656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12657 conftest.$ac_objext conftest.beam conftest.$ac_ext 12658fi 12659 12660 12661fi 12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12663$as_echo "$vim_cv_getcwd_broken" >&6; } 12664 12665if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12666 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12667 12668fi 12669 12670for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12671 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12672 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12673 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12674 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12675 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12676 usleep utime utimes mblen ftruncate unsetenv 12677do : 12678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12680if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12681 cat >>confdefs.h <<_ACEOF 12682#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12683_ACEOF 12684 12685fi 12686done 12687 12688for ac_header in sys/select.h sys/socket.h 12689do : 12690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12691ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12692if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12693 cat >>confdefs.h <<_ACEOF 12694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12695_ACEOF 12696 12697fi 12698 12699done 12700 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 12702$as_echo_n "checking types of arguments for select... " >&6; } 12703if ${ac_cv_func_select_args+:} false; then : 12704 $as_echo_n "(cached) " >&6 12705else 12706 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 12707 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 12708 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12710/* end confdefs.h. */ 12711$ac_includes_default 12712#ifdef HAVE_SYS_SELECT_H 12713# include <sys/select.h> 12714#endif 12715#ifdef HAVE_SYS_SOCKET_H 12716# include <sys/socket.h> 12717#endif 12718 12719int 12720main () 12721{ 12722extern int select ($ac_arg1, 12723 $ac_arg234, $ac_arg234, $ac_arg234, 12724 $ac_arg5); 12725 ; 12726 return 0; 12727} 12728_ACEOF 12729if ac_fn_c_try_compile "$LINENO"; then : 12730 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 12731fi 12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12733 done 12734 done 12735done 12736# Provide a safe default value. 12737: "${ac_cv_func_select_args=int,int *,struct timeval *}" 12738 12739fi 12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 12741$as_echo "$ac_cv_func_select_args" >&6; } 12742ac_save_IFS=$IFS; IFS=',' 12743set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 12744IFS=$ac_save_IFS 12745shift 12746 12747cat >>confdefs.h <<_ACEOF 12748#define SELECT_TYPE_ARG1 $1 12749_ACEOF 12750 12751 12752cat >>confdefs.h <<_ACEOF 12753#define SELECT_TYPE_ARG234 ($2) 12754_ACEOF 12755 12756 12757cat >>confdefs.h <<_ACEOF 12758#define SELECT_TYPE_ARG5 ($3) 12759_ACEOF 12760 12761rm -f conftest* 12762 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12764$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12765if ${ac_cv_sys_largefile_source+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767else 12768 while :; do 12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12770/* end confdefs.h. */ 12771#include <sys/types.h> /* for off_t */ 12772 #include <stdio.h> 12773int 12774main () 12775{ 12776int (*fp) (FILE *, off_t, int) = fseeko; 12777 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12778 ; 12779 return 0; 12780} 12781_ACEOF 12782if ac_fn_c_try_link "$LINENO"; then : 12783 ac_cv_sys_largefile_source=no; break 12784fi 12785rm -f core conftest.err conftest.$ac_objext \ 12786 conftest$ac_exeext conftest.$ac_ext 12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12788/* end confdefs.h. */ 12789#define _LARGEFILE_SOURCE 1 12790#include <sys/types.h> /* for off_t */ 12791 #include <stdio.h> 12792int 12793main () 12794{ 12795int (*fp) (FILE *, off_t, int) = fseeko; 12796 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_link "$LINENO"; then : 12802 ac_cv_sys_largefile_source=1; break 12803fi 12804rm -f core conftest.err conftest.$ac_objext \ 12805 conftest$ac_exeext conftest.$ac_ext 12806 ac_cv_sys_largefile_source=unknown 12807 break 12808done 12809fi 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12811$as_echo "$ac_cv_sys_largefile_source" >&6; } 12812case $ac_cv_sys_largefile_source in #( 12813 no | unknown) ;; 12814 *) 12815cat >>confdefs.h <<_ACEOF 12816#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12817_ACEOF 12818;; 12819esac 12820rm -rf conftest* 12821 12822# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12823# in glibc 2.1.3, but that breaks too many other things. 12824# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12825if test $ac_cv_sys_largefile_source != unknown; then 12826 12827$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12828 12829fi 12830 12831 12832# Check whether --enable-largefile was given. 12833if test "${enable_largefile+set}" = set; then : 12834 enableval=$enable_largefile; 12835fi 12836 12837if test "$enable_largefile" != no; then 12838 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12840$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12841if ${ac_cv_sys_largefile_CC+:} false; then : 12842 $as_echo_n "(cached) " >&6 12843else 12844 ac_cv_sys_largefile_CC=no 12845 if test "$GCC" != yes; then 12846 ac_save_CC=$CC 12847 while :; do 12848 # IRIX 6.2 and later do not support large files by default, 12849 # so use the C compiler's -n32 option if that helps. 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852#include <sys/types.h> 12853 /* Check that off_t can represent 2**63 - 1 correctly. 12854 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12855 since some C++ compilers masquerading as C compilers 12856 incorrectly reject 9223372036854775807. */ 12857#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12859 && LARGE_OFF_T % 2147483647 == 1) 12860 ? 1 : -1]; 12861int 12862main () 12863{ 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869 if ac_fn_c_try_compile "$LINENO"; then : 12870 break 12871fi 12872rm -f core conftest.err conftest.$ac_objext 12873 CC="$CC -n32" 12874 if ac_fn_c_try_compile "$LINENO"; then : 12875 ac_cv_sys_largefile_CC=' -n32'; break 12876fi 12877rm -f core conftest.err conftest.$ac_objext 12878 break 12879 done 12880 CC=$ac_save_CC 12881 rm -f conftest.$ac_ext 12882 fi 12883fi 12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12885$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12886 if test "$ac_cv_sys_largefile_CC" != no; then 12887 CC=$CC$ac_cv_sys_largefile_CC 12888 fi 12889 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12891$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12892if ${ac_cv_sys_file_offset_bits+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894else 12895 while :; do 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898#include <sys/types.h> 12899 /* Check that off_t can represent 2**63 - 1 correctly. 12900 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12901 since some C++ compilers masquerading as C compilers 12902 incorrectly reject 9223372036854775807. */ 12903#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12905 && LARGE_OFF_T % 2147483647 == 1) 12906 ? 1 : -1]; 12907int 12908main () 12909{ 12910 12911 ; 12912 return 0; 12913} 12914_ACEOF 12915if ac_fn_c_try_compile "$LINENO"; then : 12916 ac_cv_sys_file_offset_bits=no; break 12917fi 12918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921#define _FILE_OFFSET_BITS 64 12922#include <sys/types.h> 12923 /* Check that off_t can represent 2**63 - 1 correctly. 12924 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12925 since some C++ compilers masquerading as C compilers 12926 incorrectly reject 9223372036854775807. */ 12927#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12929 && LARGE_OFF_T % 2147483647 == 1) 12930 ? 1 : -1]; 12931int 12932main () 12933{ 12934 12935 ; 12936 return 0; 12937} 12938_ACEOF 12939if ac_fn_c_try_compile "$LINENO"; then : 12940 ac_cv_sys_file_offset_bits=64; break 12941fi 12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12943 ac_cv_sys_file_offset_bits=unknown 12944 break 12945done 12946fi 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12948$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12949case $ac_cv_sys_file_offset_bits in #( 12950 no | unknown) ;; 12951 *) 12952cat >>confdefs.h <<_ACEOF 12953#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12954_ACEOF 12955;; 12956esac 12957rm -rf conftest* 12958 if test $ac_cv_sys_file_offset_bits = unknown; then 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12960$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12961if ${ac_cv_sys_large_files+:} false; then : 12962 $as_echo_n "(cached) " >&6 12963else 12964 while :; do 12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12966/* end confdefs.h. */ 12967#include <sys/types.h> 12968 /* Check that off_t can represent 2**63 - 1 correctly. 12969 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12970 since some C++ compilers masquerading as C compilers 12971 incorrectly reject 9223372036854775807. */ 12972#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12974 && LARGE_OFF_T % 2147483647 == 1) 12975 ? 1 : -1]; 12976int 12977main () 12978{ 12979 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_compile "$LINENO"; then : 12985 ac_cv_sys_large_files=no; break 12986fi 12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12989/* end confdefs.h. */ 12990#define _LARGE_FILES 1 12991#include <sys/types.h> 12992 /* Check that off_t can represent 2**63 - 1 correctly. 12993 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12994 since some C++ compilers masquerading as C compilers 12995 incorrectly reject 9223372036854775807. */ 12996#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12998 && LARGE_OFF_T % 2147483647 == 1) 12999 ? 1 : -1]; 13000int 13001main () 13002{ 13003 13004 ; 13005 return 0; 13006} 13007_ACEOF 13008if ac_fn_c_try_compile "$LINENO"; then : 13009 ac_cv_sys_large_files=1; break 13010fi 13011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13012 ac_cv_sys_large_files=unknown 13013 break 13014done 13015fi 13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13017$as_echo "$ac_cv_sys_large_files" >&6; } 13018case $ac_cv_sys_large_files in #( 13019 no | unknown) ;; 13020 *) 13021cat >>confdefs.h <<_ACEOF 13022#define _LARGE_FILES $ac_cv_sys_large_files 13023_ACEOF 13024;; 13025esac 13026rm -rf conftest* 13027 fi 13028 13029 13030fi 13031 13032 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 13034$as_echo_n "checking for st_blksize... " >&6; } 13035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13036/* end confdefs.h. */ 13037#include <sys/types.h> 13038#include <sys/stat.h> 13039int 13040main () 13041{ 13042 struct stat st; 13043 int n; 13044 13045 stat("/", &st); 13046 n = (int)st.st_blksize; 13047 ; 13048 return 0; 13049} 13050_ACEOF 13051if ac_fn_c_try_compile "$LINENO"; then : 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13053$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 13054 13055else 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13057$as_echo "no" >&6; } 13058fi 13059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13060 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 13062$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 13063if ${vim_cv_stat_ignores_slash+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 13067 if test "$cross_compiling" = yes; then : 13068 13069 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 13070 13071else 13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13073/* end confdefs.h. */ 13074 13075#include "confdefs.h" 13076#if STDC_HEADERS 13077# include <stdlib.h> 13078# include <stddef.h> 13079#endif 13080#include <sys/types.h> 13081#include <sys/stat.h> 13082main() {struct stat st; exit(stat("configure/", &st) != 0); } 13083 13084_ACEOF 13085if ac_fn_c_try_run "$LINENO"; then : 13086 13087 vim_cv_stat_ignores_slash=yes 13088 13089else 13090 13091 vim_cv_stat_ignores_slash=no 13092 13093fi 13094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13095 conftest.$ac_objext conftest.beam conftest.$ac_ext 13096fi 13097 13098 13099fi 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 13101$as_echo "$vim_cv_stat_ignores_slash" >&6; } 13102 13103if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 13104 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 13105 13106fi 13107 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 13109$as_echo_n "checking for iconv_open()... " >&6; } 13110save_LIBS="$LIBS" 13111LIBS="$LIBS -liconv" 13112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113/* end confdefs.h. */ 13114 13115#ifdef HAVE_ICONV_H 13116# include <iconv.h> 13117#endif 13118 13119int 13120main () 13121{ 13122iconv_open("fr", "to"); 13123 ; 13124 return 0; 13125} 13126_ACEOF 13127if ac_fn_c_try_link "$LINENO"; then : 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 13129$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13130 13131else 13132 LIBS="$save_LIBS" 13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13134/* end confdefs.h. */ 13135 13136#ifdef HAVE_ICONV_H 13137# include <iconv.h> 13138#endif 13139 13140int 13141main () 13142{ 13143iconv_open("fr", "to"); 13144 ; 13145 return 0; 13146} 13147_ACEOF 13148if ac_fn_c_try_link "$LINENO"; then : 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13150$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13151 13152else 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13154$as_echo "no" >&6; } 13155fi 13156rm -f core conftest.err conftest.$ac_objext \ 13157 conftest$ac_exeext conftest.$ac_ext 13158fi 13159rm -f core conftest.err conftest.$ac_objext \ 13160 conftest$ac_exeext conftest.$ac_ext 13161 13162 13163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 13164$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 13165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167 13168#ifdef HAVE_LANGINFO_H 13169# include <langinfo.h> 13170#endif 13171 13172int 13173main () 13174{ 13175char *cs = nl_langinfo(CODESET); 13176 ; 13177 return 0; 13178} 13179_ACEOF 13180if ac_fn_c_try_link "$LINENO"; then : 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13182$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 13183 13184else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13186$as_echo "no" >&6; } 13187fi 13188rm -f core conftest.err conftest.$ac_objext \ 13189 conftest$ac_exeext conftest.$ac_ext 13190 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 13192$as_echo_n "checking for strtod in -lm... " >&6; } 13193if ${ac_cv_lib_m_strtod+:} false; then : 13194 $as_echo_n "(cached) " >&6 13195else 13196 ac_check_lib_save_LIBS=$LIBS 13197LIBS="-lm $LIBS" 13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13199/* end confdefs.h. */ 13200 13201/* Override any GCC internal prototype to avoid an error. 13202 Use char because int might match the return type of a GCC 13203 builtin and then its argument prototype would still apply. */ 13204#ifdef __cplusplus 13205extern "C" 13206#endif 13207char strtod (); 13208int 13209main () 13210{ 13211return strtod (); 13212 ; 13213 return 0; 13214} 13215_ACEOF 13216if ac_fn_c_try_link "$LINENO"; then : 13217 ac_cv_lib_m_strtod=yes 13218else 13219 ac_cv_lib_m_strtod=no 13220fi 13221rm -f core conftest.err conftest.$ac_objext \ 13222 conftest$ac_exeext conftest.$ac_ext 13223LIBS=$ac_check_lib_save_LIBS 13224fi 13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 13226$as_echo "$ac_cv_lib_m_strtod" >&6; } 13227if test "x$ac_cv_lib_m_strtod" = xyes; then : 13228 cat >>confdefs.h <<_ACEOF 13229#define HAVE_LIBM 1 13230_ACEOF 13231 13232 LIBS="-lm $LIBS" 13233 13234fi 13235 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 13237$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 13238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240 13241#ifdef HAVE_MATH_H 13242# include <math.h> 13243#endif 13244#if STDC_HEADERS 13245# include <stdlib.h> 13246# include <stddef.h> 13247#endif 13248 13249int 13250main () 13251{ 13252char *s; double d; 13253 d = strtod("1.1", &s); 13254 d = fabs(1.11); 13255 d = ceil(1.11); 13256 d = floor(1.11); 13257 d = log10(1.11); 13258 d = pow(1.11, 2.22); 13259 d = sqrt(1.11); 13260 d = sin(1.11); 13261 d = cos(1.11); 13262 d = atan(1.11); 13263 13264 ; 13265 return 0; 13266} 13267_ACEOF 13268if ac_fn_c_try_link "$LINENO"; then : 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13270$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 13271 13272else 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13274$as_echo "no" >&6; } 13275fi 13276rm -f core conftest.err conftest.$ac_objext \ 13277 conftest$ac_exeext conftest.$ac_ext 13278 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 13280$as_echo_n "checking for isinf()... " >&6; } 13281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283 13284#ifdef HAVE_MATH_H 13285# include <math.h> 13286#endif 13287#if STDC_HEADERS 13288# include <stdlib.h> 13289# include <stddef.h> 13290#endif 13291 13292int 13293main () 13294{ 13295int r = isinf(1.11); 13296 ; 13297 return 0; 13298} 13299_ACEOF 13300if ac_fn_c_try_link "$LINENO"; then : 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13302$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 13303 13304else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13306$as_echo "no" >&6; } 13307fi 13308rm -f core conftest.err conftest.$ac_objext \ 13309 conftest$ac_exeext conftest.$ac_ext 13310 13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 13312$as_echo_n "checking for isnan()... " >&6; } 13313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315 13316#ifdef HAVE_MATH_H 13317# include <math.h> 13318#endif 13319#if STDC_HEADERS 13320# include <stdlib.h> 13321# include <stddef.h> 13322#endif 13323 13324int 13325main () 13326{ 13327int r = isnan(1.11); 13328 ; 13329 return 0; 13330} 13331_ACEOF 13332if ac_fn_c_try_link "$LINENO"; then : 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13334$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 13335 13336else 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13338$as_echo "no" >&6; } 13339fi 13340rm -f core conftest.err conftest.$ac_objext \ 13341 conftest$ac_exeext conftest.$ac_ext 13342 13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 13344$as_echo_n "checking --disable-acl argument... " >&6; } 13345# Check whether --enable-acl was given. 13346if test "${enable_acl+set}" = set; then : 13347 enableval=$enable_acl; 13348else 13349 enable_acl="yes" 13350fi 13351 13352if test "$enable_acl" = "yes"; then 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13354$as_echo "no" >&6; } 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 13356$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 13357if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 13358 $as_echo_n "(cached) " >&6 13359else 13360 ac_check_lib_save_LIBS=$LIBS 13361LIBS="-lposix1e $LIBS" 13362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13363/* end confdefs.h. */ 13364 13365/* Override any GCC internal prototype to avoid an error. 13366 Use char because int might match the return type of a GCC 13367 builtin and then its argument prototype would still apply. */ 13368#ifdef __cplusplus 13369extern "C" 13370#endif 13371char acl_get_file (); 13372int 13373main () 13374{ 13375return acl_get_file (); 13376 ; 13377 return 0; 13378} 13379_ACEOF 13380if ac_fn_c_try_link "$LINENO"; then : 13381 ac_cv_lib_posix1e_acl_get_file=yes 13382else 13383 ac_cv_lib_posix1e_acl_get_file=no 13384fi 13385rm -f core conftest.err conftest.$ac_objext \ 13386 conftest$ac_exeext conftest.$ac_ext 13387LIBS=$ac_check_lib_save_LIBS 13388fi 13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13390$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 13391if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 13392 LIBS="$LIBS -lposix1e" 13393else 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 13395$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 13396if ${ac_cv_lib_acl_acl_get_file+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 ac_check_lib_save_LIBS=$LIBS 13400LIBS="-lacl $LIBS" 13401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13402/* end confdefs.h. */ 13403 13404/* Override any GCC internal prototype to avoid an error. 13405 Use char because int might match the return type of a GCC 13406 builtin and then its argument prototype would still apply. */ 13407#ifdef __cplusplus 13408extern "C" 13409#endif 13410char acl_get_file (); 13411int 13412main () 13413{ 13414return acl_get_file (); 13415 ; 13416 return 0; 13417} 13418_ACEOF 13419if ac_fn_c_try_link "$LINENO"; then : 13420 ac_cv_lib_acl_acl_get_file=yes 13421else 13422 ac_cv_lib_acl_acl_get_file=no 13423fi 13424rm -f core conftest.err conftest.$ac_objext \ 13425 conftest$ac_exeext conftest.$ac_ext 13426LIBS=$ac_check_lib_save_LIBS 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 13429$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 13430if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 13431 LIBS="$LIBS -lacl" 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 13433$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 13434if ${ac_cv_lib_attr_fgetxattr+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 ac_check_lib_save_LIBS=$LIBS 13438LIBS="-lattr $LIBS" 13439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13440/* end confdefs.h. */ 13441 13442/* Override any GCC internal prototype to avoid an error. 13443 Use char because int might match the return type of a GCC 13444 builtin and then its argument prototype would still apply. */ 13445#ifdef __cplusplus 13446extern "C" 13447#endif 13448char fgetxattr (); 13449int 13450main () 13451{ 13452return fgetxattr (); 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO"; then : 13458 ac_cv_lib_attr_fgetxattr=yes 13459else 13460 ac_cv_lib_attr_fgetxattr=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464LIBS=$ac_check_lib_save_LIBS 13465fi 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 13467$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 13468if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 13469 LIBS="$LIBS -lattr" 13470fi 13471 13472fi 13473 13474fi 13475 13476 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 13478$as_echo_n "checking for POSIX ACL support... " >&6; } 13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481 13482#include <sys/types.h> 13483#ifdef HAVE_SYS_ACL_H 13484# include <sys/acl.h> 13485#endif 13486acl_t acl; 13487int 13488main () 13489{ 13490acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13491 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13492 acl_free(acl); 13493 ; 13494 return 0; 13495} 13496_ACEOF 13497if ac_fn_c_try_link "$LINENO"; then : 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13499$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 13500 13501else 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13503$as_echo "no" >&6; } 13504fi 13505rm -f core conftest.err conftest.$ac_objext \ 13506 conftest$ac_exeext conftest.$ac_ext 13507 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 13509$as_echo_n "checking for acl_get in -lsec... " >&6; } 13510if ${ac_cv_lib_sec_acl_get+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 ac_check_lib_save_LIBS=$LIBS 13514LIBS="-lsec $LIBS" 13515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13516/* end confdefs.h. */ 13517 13518/* Override any GCC internal prototype to avoid an error. 13519 Use char because int might match the return type of a GCC 13520 builtin and then its argument prototype would still apply. */ 13521#ifdef __cplusplus 13522extern "C" 13523#endif 13524char acl_get (); 13525int 13526main () 13527{ 13528return acl_get (); 13529 ; 13530 return 0; 13531} 13532_ACEOF 13533if ac_fn_c_try_link "$LINENO"; then : 13534 ac_cv_lib_sec_acl_get=yes 13535else 13536 ac_cv_lib_sec_acl_get=no 13537fi 13538rm -f core conftest.err conftest.$ac_objext \ 13539 conftest$ac_exeext conftest.$ac_ext 13540LIBS=$ac_check_lib_save_LIBS 13541fi 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13543$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13544if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13545 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13546 13547else 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13549$as_echo_n "checking for Solaris ACL support... " >&6; } 13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13551/* end confdefs.h. */ 13552 13553#ifdef HAVE_SYS_ACL_H 13554# include <sys/acl.h> 13555#endif 13556int 13557main () 13558{ 13559acl("foo", GETACLCNT, 0, NULL); 13560 13561 ; 13562 return 0; 13563} 13564_ACEOF 13565if ac_fn_c_try_link "$LINENO"; then : 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13567$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13568 13569else 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13571$as_echo "no" >&6; } 13572fi 13573rm -f core conftest.err conftest.$ac_objext \ 13574 conftest$ac_exeext conftest.$ac_ext 13575fi 13576 13577 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13579$as_echo_n "checking for AIX ACL support... " >&6; } 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582 13583#if STDC_HEADERS 13584# include <stdlib.h> 13585# include <stddef.h> 13586#endif 13587#ifdef HAVE_SYS_ACL_H 13588# include <sys/acl.h> 13589#endif 13590#ifdef HAVE_SYS_ACCESS_H 13591# include <sys/access.h> 13592#endif 13593#define _ALL_SOURCE 13594 13595#include <sys/stat.h> 13596 13597int aclsize; 13598struct acl *aclent; 13599int 13600main () 13601{ 13602aclsize = sizeof(struct acl); 13603 aclent = (void *)malloc(aclsize); 13604 statacl("foo", STX_NORMAL, aclent, aclsize); 13605 13606 ; 13607 return 0; 13608} 13609_ACEOF 13610if ac_fn_c_try_link "$LINENO"; then : 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13612$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13613 13614else 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13616$as_echo "no" >&6; } 13617fi 13618rm -f core conftest.err conftest.$ac_objext \ 13619 conftest$ac_exeext conftest.$ac_ext 13620else 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13622$as_echo "yes" >&6; } 13623fi 13624 13625if test "x$GTK_CFLAGS" != "x"; then 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13627$as_echo_n "checking for pango_shape_full... " >&6; } 13628 ac_save_CFLAGS="$CFLAGS" 13629 ac_save_LIBS="$LIBS" 13630 CFLAGS="$CFLAGS $GTK_CFLAGS" 13631 LIBS="$LIBS $GTK_LIBS" 13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13633/* end confdefs.h. */ 13634#include <gtk/gtk.h> 13635int 13636main () 13637{ 13638 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13639 ; 13640 return 0; 13641} 13642_ACEOF 13643if ac_fn_c_try_link "$LINENO"; then : 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13645$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13646 13647else 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13649$as_echo "no" >&6; } 13650fi 13651rm -f core conftest.err conftest.$ac_objext \ 13652 conftest$ac_exeext conftest.$ac_ext 13653 CFLAGS="$ac_save_CFLAGS" 13654 LIBS="$ac_save_LIBS" 13655fi 13656 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13658$as_echo_n "checking --disable-gpm argument... " >&6; } 13659# Check whether --enable-gpm was given. 13660if test "${enable_gpm+set}" = set; then : 13661 enableval=$enable_gpm; 13662else 13663 enable_gpm="yes" 13664fi 13665 13666 13667if test "$enable_gpm" = "yes"; then 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13669$as_echo "no" >&6; } 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13671$as_echo_n "checking for gpm... " >&6; } 13672if ${vi_cv_have_gpm+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 olibs="$LIBS" ; LIBS="-lgpm" 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678#include <gpm.h> 13679 #include <linux/keyboard.h> 13680int 13681main () 13682{ 13683Gpm_GetLibVersion(NULL); 13684 ; 13685 return 0; 13686} 13687_ACEOF 13688if ac_fn_c_try_link "$LINENO"; then : 13689 vi_cv_have_gpm=yes 13690else 13691 vi_cv_have_gpm=no 13692fi 13693rm -f core conftest.err conftest.$ac_objext \ 13694 conftest$ac_exeext conftest.$ac_ext 13695 LIBS="$olibs" 13696 13697fi 13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13699$as_echo "$vi_cv_have_gpm" >&6; } 13700 if test $vi_cv_have_gpm = yes; then 13701 LIBS="$LIBS -lgpm" 13702 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13703 13704 fi 13705else 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707$as_echo "yes" >&6; } 13708fi 13709 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13711$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13712# Check whether --enable-sysmouse was given. 13713if test "${enable_sysmouse+set}" = set; then : 13714 enableval=$enable_sysmouse; 13715else 13716 enable_sysmouse="yes" 13717fi 13718 13719 13720if test "$enable_sysmouse" = "yes"; then 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13722$as_echo "no" >&6; } 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13724$as_echo_n "checking for sysmouse... " >&6; } 13725if ${vi_cv_have_sysmouse+:} false; then : 13726 $as_echo_n "(cached) " >&6 13727else 13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729/* end confdefs.h. */ 13730#include <sys/consio.h> 13731 #include <signal.h> 13732 #include <sys/fbio.h> 13733int 13734main () 13735{ 13736struct mouse_info mouse; 13737 mouse.operation = MOUSE_MODE; 13738 mouse.operation = MOUSE_SHOW; 13739 mouse.u.mode.mode = 0; 13740 mouse.u.mode.signal = SIGUSR2; 13741 ; 13742 return 0; 13743} 13744_ACEOF 13745if ac_fn_c_try_link "$LINENO"; then : 13746 vi_cv_have_sysmouse=yes 13747else 13748 vi_cv_have_sysmouse=no 13749fi 13750rm -f core conftest.err conftest.$ac_objext \ 13751 conftest$ac_exeext conftest.$ac_ext 13752 13753fi 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13755$as_echo "$vi_cv_have_sysmouse" >&6; } 13756 if test $vi_cv_have_sysmouse = yes; then 13757 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13758 13759 fi 13760else 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13762$as_echo "yes" >&6; } 13763fi 13764 13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13766$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13768/* end confdefs.h. */ 13769#if HAVE_FCNTL_H 13770# include <fcntl.h> 13771#endif 13772int 13773main () 13774{ 13775 int flag = FD_CLOEXEC; 13776 ; 13777 return 0; 13778} 13779_ACEOF 13780if ac_fn_c_try_compile "$LINENO"; then : 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13782$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13783 13784else 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13786$as_echo "not usable" >&6; } 13787fi 13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13789 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13791$as_echo_n "checking for rename... " >&6; } 13792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794#include <stdio.h> 13795int 13796main () 13797{ 13798rename("this", "that") 13799 ; 13800 return 0; 13801} 13802_ACEOF 13803if ac_fn_c_try_link "$LINENO"; then : 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13805$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13806 13807else 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13809$as_echo "no" >&6; } 13810fi 13811rm -f core conftest.err conftest.$ac_objext \ 13812 conftest$ac_exeext conftest.$ac_ext 13813 13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13815$as_echo_n "checking for sysctl... " >&6; } 13816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817/* end confdefs.h. */ 13818#include <sys/types.h> 13819#include <sys/sysctl.h> 13820int 13821main () 13822{ 13823 int mib[2], r; 13824 size_t len; 13825 13826 mib[0] = CTL_HW; 13827 mib[1] = HW_USERMEM; 13828 len = sizeof(r); 13829 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13830 13831 ; 13832 return 0; 13833} 13834_ACEOF 13835if ac_fn_c_try_compile "$LINENO"; then : 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13837$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13838 13839else 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13841$as_echo "not usable" >&6; } 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13844 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13846$as_echo_n "checking for sysinfo... " >&6; } 13847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849#include <sys/types.h> 13850#include <sys/sysinfo.h> 13851int 13852main () 13853{ 13854 struct sysinfo sinfo; 13855 int t; 13856 13857 (void)sysinfo(&sinfo); 13858 t = sinfo.totalram; 13859 13860 ; 13861 return 0; 13862} 13863_ACEOF 13864if ac_fn_c_try_compile "$LINENO"; then : 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13866$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13867 13868else 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13870$as_echo "not usable" >&6; } 13871fi 13872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13873 13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13875$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13877/* end confdefs.h. */ 13878#include <sys/types.h> 13879#include <sys/sysinfo.h> 13880int 13881main () 13882{ 13883 struct sysinfo sinfo; 13884 sinfo.mem_unit = 1; 13885 13886 ; 13887 return 0; 13888} 13889_ACEOF 13890if ac_fn_c_try_compile "$LINENO"; then : 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13892$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13893 13894else 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13896$as_echo "no" >&6; } 13897fi 13898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13899 13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13901$as_echo_n "checking for sysconf... " >&6; } 13902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13903/* end confdefs.h. */ 13904#include <unistd.h> 13905int 13906main () 13907{ 13908 (void)sysconf(_SC_PAGESIZE); 13909 (void)sysconf(_SC_PHYS_PAGES); 13910 13911 ; 13912 return 0; 13913} 13914_ACEOF 13915if ac_fn_c_try_compile "$LINENO"; then : 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13917$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13918 13919else 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13921$as_echo "not usable" >&6; } 13922fi 13923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13924 13925# The cast to long int works around a bug in the HP C Compiler 13926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13928# This bug is HP SR number 8606223364. 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13930$as_echo_n "checking size of int... " >&6; } 13931if ${ac_cv_sizeof_int+:} false; then : 13932 $as_echo_n "(cached) " >&6 13933else 13934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13935 13936else 13937 if test "$ac_cv_type_int" = yes; then 13938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13940as_fn_error 77 "cannot compute sizeof (int) 13941See \`config.log' for more details" "$LINENO" 5; } 13942 else 13943 ac_cv_sizeof_int=0 13944 fi 13945fi 13946 13947fi 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13949$as_echo "$ac_cv_sizeof_int" >&6; } 13950 13951 13952 13953cat >>confdefs.h <<_ACEOF 13954#define SIZEOF_INT $ac_cv_sizeof_int 13955_ACEOF 13956 13957 13958# The cast to long int works around a bug in the HP C Compiler 13959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13961# This bug is HP SR number 8606223364. 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13963$as_echo_n "checking size of long... " >&6; } 13964if ${ac_cv_sizeof_long+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13968 13969else 13970 if test "$ac_cv_type_long" = yes; then 13971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13973as_fn_error 77 "cannot compute sizeof (long) 13974See \`config.log' for more details" "$LINENO" 5; } 13975 else 13976 ac_cv_sizeof_long=0 13977 fi 13978fi 13979 13980fi 13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13982$as_echo "$ac_cv_sizeof_long" >&6; } 13983 13984 13985 13986cat >>confdefs.h <<_ACEOF 13987#define SIZEOF_LONG $ac_cv_sizeof_long 13988_ACEOF 13989 13990 13991# The cast to long int works around a bug in the HP C Compiler 13992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13994# This bug is HP SR number 8606223364. 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13996$as_echo_n "checking size of time_t... " >&6; } 13997if ${ac_cv_sizeof_time_t+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 14001 14002else 14003 if test "$ac_cv_type_time_t" = yes; then 14004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14006as_fn_error 77 "cannot compute sizeof (time_t) 14007See \`config.log' for more details" "$LINENO" 5; } 14008 else 14009 ac_cv_sizeof_time_t=0 14010 fi 14011fi 14012 14013fi 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14015$as_echo "$ac_cv_sizeof_time_t" >&6; } 14016 14017 14018 14019cat >>confdefs.h <<_ACEOF 14020#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14021_ACEOF 14022 14023 14024# The cast to long int works around a bug in the HP C Compiler 14025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14027# This bug is HP SR number 8606223364. 14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14029$as_echo_n "checking size of off_t... " >&6; } 14030if ${ac_cv_sizeof_off_t+:} false; then : 14031 $as_echo_n "(cached) " >&6 14032else 14033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14034 14035else 14036 if test "$ac_cv_type_off_t" = yes; then 14037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14039as_fn_error 77 "cannot compute sizeof (off_t) 14040See \`config.log' for more details" "$LINENO" 5; } 14041 else 14042 ac_cv_sizeof_off_t=0 14043 fi 14044fi 14045 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14048$as_echo "$ac_cv_sizeof_off_t" >&6; } 14049 14050 14051 14052cat >>confdefs.h <<_ACEOF 14053#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14054_ACEOF 14055 14056 14057 14058cat >>confdefs.h <<_ACEOF 14059#define VIM_SIZEOF_INT $ac_cv_sizeof_int 14060_ACEOF 14061 14062cat >>confdefs.h <<_ACEOF 14063#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 14064_ACEOF 14065 14066 14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 14068$as_echo_n "checking uint32_t is 32 bits... " >&6; } 14069if test "$cross_compiling" = yes; then : 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 14071$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 14072else 14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14074/* end confdefs.h. */ 14075 14076#ifdef HAVE_STDINT_H 14077# include <stdint.h> 14078#endif 14079#ifdef HAVE_INTTYPES_H 14080# include <inttypes.h> 14081#endif 14082main() { 14083 uint32_t nr1 = (uint32_t)-1; 14084 uint32_t nr2 = (uint32_t)0xffffffffUL; 14085 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 14086 exit(0); 14087} 14088_ACEOF 14089if ac_fn_c_try_run "$LINENO"; then : 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14091$as_echo "ok" >&6; } 14092else 14093 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 14094fi 14095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14096 conftest.$ac_objext conftest.beam conftest.$ac_ext 14097fi 14098 14099 14100 14101bcopy_test_prog=' 14102#include "confdefs.h" 14103#ifdef HAVE_STRING_H 14104# include <string.h> 14105#endif 14106#if STDC_HEADERS 14107# include <stdlib.h> 14108# include <stddef.h> 14109#endif 14110main() { 14111 char buf[10]; 14112 strcpy(buf, "abcdefghi"); 14113 mch_memmove(buf, buf + 2, 3); 14114 if (strncmp(buf, "ababcf", 6)) 14115 exit(1); 14116 strcpy(buf, "abcdefghi"); 14117 mch_memmove(buf + 2, buf, 3); 14118 if (strncmp(buf, "cdedef", 6)) 14119 exit(1); 14120 exit(0); /* libc version works properly. */ 14121}' 14122 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 14124$as_echo_n "checking whether memmove handles overlaps... " >&6; } 14125if ${vim_cv_memmove_handles_overlap+:} false; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 14129 if test "$cross_compiling" = yes; then : 14130 14131 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 14132 14133else 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 14137_ACEOF 14138if ac_fn_c_try_run "$LINENO"; then : 14139 14140 vim_cv_memmove_handles_overlap=yes 14141 14142else 14143 14144 vim_cv_memmove_handles_overlap=no 14145 14146fi 14147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14148 conftest.$ac_objext conftest.beam conftest.$ac_ext 14149fi 14150 14151 14152fi 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 14154$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 14155 14156if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 14157 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 14158 14159else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 14161$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 14162if ${vim_cv_bcopy_handles_overlap+:} false; then : 14163 $as_echo_n "(cached) " >&6 14164else 14165 14166 if test "$cross_compiling" = yes; then : 14167 14168 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 14169 14170else 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14174_ACEOF 14175if ac_fn_c_try_run "$LINENO"; then : 14176 14177 vim_cv_bcopy_handles_overlap=yes 14178 14179else 14180 14181 vim_cv_bcopy_handles_overlap=no 14182 14183fi 14184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14185 conftest.$ac_objext conftest.beam conftest.$ac_ext 14186fi 14187 14188 14189fi 14190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 14191$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 14192 14193 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 14194 $as_echo "#define USEBCOPY 1" >>confdefs.h 14195 14196 else 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 14198$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 14199if ${vim_cv_memcpy_handles_overlap+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201else 14202 14203 if test "$cross_compiling" = yes; then : 14204 14205 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 14206 14207else 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209/* end confdefs.h. */ 14210#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14211_ACEOF 14212if ac_fn_c_try_run "$LINENO"; then : 14213 14214 vim_cv_memcpy_handles_overlap=yes 14215 14216else 14217 14218 vim_cv_memcpy_handles_overlap=no 14219 14220fi 14221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14222 conftest.$ac_objext conftest.beam conftest.$ac_ext 14223fi 14224 14225 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 14228$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 14229 14230 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 14231 $as_echo "#define USEMEMCPY 1" >>confdefs.h 14232 14233 fi 14234 fi 14235fi 14236 14237 14238if test "x$with_x" = "xyes"; then 14239 cflags_save=$CFLAGS 14240 libs_save=$LIBS 14241 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 14242 CFLAGS="$CFLAGS $X_CFLAGS" 14243 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 14245$as_echo_n "checking whether X_LOCALE needed... " >&6; } 14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14247/* end confdefs.h. */ 14248#include <X11/Xlocale.h> 14249int 14250main () 14251{ 14252 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257if ac_fn_c_try_compile "$LINENO"; then : 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260 14261/* Override any GCC internal prototype to avoid an error. 14262 Use char because int might match the return type of a GCC 14263 builtin and then its argument prototype would still apply. */ 14264#ifdef __cplusplus 14265extern "C" 14266#endif 14267char _Xsetlocale (); 14268int 14269main () 14270{ 14271return _Xsetlocale (); 14272 ; 14273 return 0; 14274} 14275_ACEOF 14276if ac_fn_c_try_link "$LINENO"; then : 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14278$as_echo "yes" >&6; } 14279 $as_echo "#define X_LOCALE 1" >>confdefs.h 14280 14281else 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14283$as_echo "no" >&6; } 14284fi 14285rm -f core conftest.err conftest.$ac_objext \ 14286 conftest$ac_exeext conftest.$ac_ext 14287else 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14289$as_echo "no" >&6; } 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14292 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 14294$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296/* end confdefs.h. */ 14297 14298/* Override any GCC internal prototype to avoid an error. 14299 Use char because int might match the return type of a GCC 14300 builtin and then its argument prototype would still apply. */ 14301#ifdef __cplusplus 14302extern "C" 14303#endif 14304char Xutf8SetWMProperties (); 14305int 14306main () 14307{ 14308return Xutf8SetWMProperties (); 14309 ; 14310 return 0; 14311} 14312_ACEOF 14313if ac_fn_c_try_link "$LINENO"; then : 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14315$as_echo "yes" >&6; } 14316 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 14317 14318else 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14320$as_echo "no" >&6; } 14321fi 14322rm -f core conftest.err conftest.$ac_objext \ 14323 conftest$ac_exeext conftest.$ac_ext 14324 14325 CFLAGS=$cflags_save 14326 LIBS=$libs_save 14327fi 14328 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 14330$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 14331if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 ac_check_lib_save_LIBS=$LIBS 14335LIBS="-lxpg4 $LIBS" 14336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338 14339/* Override any GCC internal prototype to avoid an error. 14340 Use char because int might match the return type of a GCC 14341 builtin and then its argument prototype would still apply. */ 14342#ifdef __cplusplus 14343extern "C" 14344#endif 14345char _xpg4_setrunelocale (); 14346int 14347main () 14348{ 14349return _xpg4_setrunelocale (); 14350 ; 14351 return 0; 14352} 14353_ACEOF 14354if ac_fn_c_try_link "$LINENO"; then : 14355 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14356else 14357 ac_cv_lib_xpg4__xpg4_setrunelocale=no 14358fi 14359rm -f core conftest.err conftest.$ac_objext \ 14360 conftest$ac_exeext conftest.$ac_ext 14361LIBS=$ac_check_lib_save_LIBS 14362fi 14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14364$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 14365if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 14366 LIBS="$LIBS -lxpg4" 14367fi 14368 14369 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 14371$as_echo_n "checking how to create tags... " >&6; } 14372test -f tags && mv tags tags.save 14373if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14374 TAGPRG="ctags -I INIT+ --fields=+S" 14375elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14376 TAGPRG="exctags -I INIT+ --fields=+S" 14377elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14378 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 14379else 14380 TAGPRG="ctags" 14381 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14382 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14383 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14384 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14385 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14386 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14387 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14388fi 14389test -f tags.save && mv tags.save tags 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 14391$as_echo "$TAGPRG" >&6; } 14392 14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 14394$as_echo_n "checking how to run man with a section nr... " >&6; } 14395MANDEF="man" 14396(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 14398$as_echo "$MANDEF" >&6; } 14399if test "$MANDEF" = "man -s"; then 14400 $as_echo "#define USEMAN_S 1" >>confdefs.h 14401 14402fi 14403 14404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 14405$as_echo_n "checking --disable-nls argument... " >&6; } 14406# Check whether --enable-nls was given. 14407if test "${enable_nls+set}" = set; then : 14408 enableval=$enable_nls; 14409else 14410 enable_nls="yes" 14411fi 14412 14413 14414if test "$enable_nls" = "yes"; then 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14416$as_echo "no" >&6; } 14417 14418 INSTALL_LANGS=install-languages 14419 14420 INSTALL_TOOL_LANGS=install-tool-languages 14421 14422 14423 # Extract the first word of "msgfmt", so it can be a program name with args. 14424set dummy msgfmt; ac_word=$2 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14426$as_echo_n "checking for $ac_word... " >&6; } 14427if ${ac_cv_prog_MSGFMT+:} false; then : 14428 $as_echo_n "(cached) " >&6 14429else 14430 if test -n "$MSGFMT"; then 14431 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14432else 14433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14434for as_dir in $PATH 14435do 14436 IFS=$as_save_IFS 14437 test -z "$as_dir" && as_dir=. 14438 for ac_exec_ext in '' $ac_executable_extensions; do 14439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14440 ac_cv_prog_MSGFMT="msgfmt" 14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14442 break 2 14443 fi 14444done 14445 done 14446IFS=$as_save_IFS 14447 14448fi 14449fi 14450MSGFMT=$ac_cv_prog_MSGFMT 14451if test -n "$MSGFMT"; then 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 14453$as_echo "$MSGFMT" >&6; } 14454else 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14456$as_echo "no" >&6; } 14457fi 14458 14459 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 14461$as_echo_n "checking for NLS... " >&6; } 14462 if test -f po/Makefile; then 14463 have_gettext="no" 14464 if test -n "$MSGFMT"; then 14465 olibs=$LIBS 14466 LIBS="" 14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14468/* end confdefs.h. */ 14469#include <libintl.h> 14470int 14471main () 14472{ 14473gettext("Test"); 14474 ; 14475 return 0; 14476} 14477_ACEOF 14478if ac_fn_c_try_link "$LINENO"; then : 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 14480$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 14481else 14482 LIBS="-lintl" 14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14484/* end confdefs.h. */ 14485#include <libintl.h> 14486int 14487main () 14488{ 14489gettext("Test"); 14490 ; 14491 return 0; 14492} 14493_ACEOF 14494if ac_fn_c_try_link "$LINENO"; then : 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 14496$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 14497 LIBS="$olibs -lintl" 14498else 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 14500$as_echo "gettext() doesn't work" >&6; }; 14501 LIBS=$olibs 14502fi 14503rm -f core conftest.err conftest.$ac_objext \ 14504 conftest$ac_exeext conftest.$ac_ext 14505fi 14506rm -f core conftest.err conftest.$ac_objext \ 14507 conftest$ac_exeext conftest.$ac_ext 14508 else 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 14510$as_echo "msgfmt not found - disabled" >&6; }; 14511 fi 14512 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 14513 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14514 14515 MAKEMO=yes 14516 14517 for ac_func in bind_textdomain_codeset 14518do : 14519 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14520if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14521 cat >>confdefs.h <<_ACEOF 14522#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14523_ACEOF 14524 14525fi 14526done 14527 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 14529$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532#include <libintl.h> 14533 extern int _nl_msg_cat_cntr; 14534int 14535main () 14536{ 14537++_nl_msg_cat_cntr; 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_link "$LINENO"; then : 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14544$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14545 14546else 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14548$as_echo "no" >&6; } 14549fi 14550rm -f core conftest.err conftest.$ac_objext \ 14551 conftest$ac_exeext conftest.$ac_ext 14552 fi 14553 else 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14555$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14556 fi 14557else 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14559$as_echo "yes" >&6; } 14560fi 14561 14562ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14563if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14564 DLL=dlfcn.h 14565else 14566 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14567if test "x$ac_cv_header_dl_h" = xyes; then : 14568 DLL=dl.h 14569fi 14570 14571 14572fi 14573 14574 14575if test x${DLL} = xdlfcn.h; then 14576 14577$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14578 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14580$as_echo_n "checking for dlopen()... " >&6; } 14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14582/* end confdefs.h. */ 14583 14584int 14585main () 14586{ 14587 14588 extern void* dlopen(); 14589 dlopen(); 14590 14591 ; 14592 return 0; 14593} 14594_ACEOF 14595if ac_fn_c_try_link "$LINENO"; then : 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14597$as_echo "yes" >&6; }; 14598 14599$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14600 14601else 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14603$as_echo "no" >&6; }; 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14605$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14606 olibs=$LIBS 14607 LIBS="$LIBS -ldl" 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610 14611int 14612main () 14613{ 14614 14615 extern void* dlopen(); 14616 dlopen(); 14617 14618 ; 14619 return 0; 14620} 14621_ACEOF 14622if ac_fn_c_try_link "$LINENO"; then : 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14624$as_echo "yes" >&6; }; 14625 14626$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14627 14628else 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14630$as_echo "no" >&6; }; 14631 LIBS=$olibs 14632fi 14633rm -f core conftest.err conftest.$ac_objext \ 14634 conftest$ac_exeext conftest.$ac_ext 14635fi 14636rm -f core conftest.err conftest.$ac_objext \ 14637 conftest$ac_exeext conftest.$ac_ext 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14639$as_echo_n "checking for dlsym()... " >&6; } 14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14641/* end confdefs.h. */ 14642 14643int 14644main () 14645{ 14646 14647 extern void* dlsym(); 14648 dlsym(); 14649 14650 ; 14651 return 0; 14652} 14653_ACEOF 14654if ac_fn_c_try_link "$LINENO"; then : 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14656$as_echo "yes" >&6; }; 14657 14658$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14659 14660else 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14662$as_echo "no" >&6; }; 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14664$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14665 olibs=$LIBS 14666 LIBS="$LIBS -ldl" 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668/* end confdefs.h. */ 14669 14670int 14671main () 14672{ 14673 14674 extern void* dlsym(); 14675 dlsym(); 14676 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_link "$LINENO"; then : 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14683$as_echo "yes" >&6; }; 14684 14685$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14686 14687else 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14689$as_echo "no" >&6; }; 14690 LIBS=$olibs 14691fi 14692rm -f core conftest.err conftest.$ac_objext \ 14693 conftest$ac_exeext conftest.$ac_ext 14694fi 14695rm -f core conftest.err conftest.$ac_objext \ 14696 conftest$ac_exeext conftest.$ac_ext 14697elif test x${DLL} = xdl.h; then 14698 14699$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14700 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14702$as_echo_n "checking for shl_load()... " >&6; } 14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705 14706int 14707main () 14708{ 14709 14710 extern void* shl_load(); 14711 shl_load(); 14712 14713 ; 14714 return 0; 14715} 14716_ACEOF 14717if ac_fn_c_try_link "$LINENO"; then : 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14719$as_echo "yes" >&6; }; 14720 14721$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14722 14723else 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725$as_echo "no" >&6; }; 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14727$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14728 olibs=$LIBS 14729 LIBS="$LIBS -ldld" 14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14731/* end confdefs.h. */ 14732 14733int 14734main () 14735{ 14736 14737 extern void* shl_load(); 14738 shl_load(); 14739 14740 ; 14741 return 0; 14742} 14743_ACEOF 14744if ac_fn_c_try_link "$LINENO"; then : 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14746$as_echo "yes" >&6; }; 14747 14748$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14749 14750else 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14752$as_echo "no" >&6; }; 14753 LIBS=$olibs 14754fi 14755rm -f core conftest.err conftest.$ac_objext \ 14756 conftest$ac_exeext conftest.$ac_ext 14757fi 14758rm -f core conftest.err conftest.$ac_objext \ 14759 conftest$ac_exeext conftest.$ac_ext 14760fi 14761for ac_header in setjmp.h 14762do : 14763 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14764if test "x$ac_cv_header_setjmp_h" = xyes; then : 14765 cat >>confdefs.h <<_ACEOF 14766#define HAVE_SETJMP_H 1 14767_ACEOF 14768 14769fi 14770 14771done 14772 14773 14774if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14775 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14776 LIBS=`echo $LIBS | sed s/-ldl//` 14777 PERL_LIBS="$PERL_LIBS -ldl" 14778 fi 14779fi 14780 14781if test "$MACOS_X" = "yes"; then 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14783$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14784 if test "$GUITYPE" = "CARBONGUI"; then 14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14786$as_echo "yes, we need Carbon" >&6; } 14787 LIBS="$LIBS -framework Carbon" 14788 elif test "$MACOS_X_DARWIN" = "yes"; then 14789 if test "$features" = "tiny"; then 14790 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14791 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14793$as_echo "yes, we need CoreServices" >&6; } 14794 LIBS="$LIBS -framework CoreServices" 14795 else 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14797$as_echo "yes, we need AppKit" >&6; } 14798 LIBS="$LIBS -framework AppKit" 14799 fi 14800 else 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14802$as_echo "no" >&6; } 14803 fi 14804fi 14805if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14806 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14807fi 14808 14809DEPEND_CFLAGS_FILTER= 14810if test "$GCC" = yes; then 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14812$as_echo_n "checking for GCC 3 or later... " >&6; } 14813 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14814 if test "$gccmajor" -gt "2"; then 14815 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14817$as_echo "yes" >&6; } 14818 else 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14820$as_echo "no" >&6; } 14821 fi 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14823$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14824 if test "$gccmajor" -gt "3"; then 14825 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/'` 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14827$as_echo "yes" >&6; } 14828 else 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14830$as_echo "no" >&6; } 14831 fi 14832fi 14833 14834 14835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14836$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14837if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14839$as_echo "yes" >&6; } 14840 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14841 14842else 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14844$as_echo "no" >&6; } 14845fi 14846 14847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14848$as_echo_n "checking linker --as-needed support... " >&6; } 14849LINK_AS_NEEDED= 14850# Check if linker supports --as-needed and --no-as-needed options 14851if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14852 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14853 LINK_AS_NEEDED=yes 14854fi 14855if test "$LINK_AS_NEEDED" = yes; then 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14857$as_echo "yes" >&6; } 14858else 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14860$as_echo "no" >&6; } 14861fi 14862 14863 14864# IBM z/OS reset CFLAGS for config.mk 14865if test "$zOSUnix" = "yes"; then 14866 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14867fi 14868 14869ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14870 14871cat >confcache <<\_ACEOF 14872# This file is a shell script that caches the results of configure 14873# tests run on this system so they can be shared between configure 14874# scripts and configure runs, see configure's option --config-cache. 14875# It is not useful on other systems. If it contains results you don't 14876# want to keep, you may remove or edit it. 14877# 14878# config.status only pays attention to the cache file if you give it 14879# the --recheck option to rerun configure. 14880# 14881# `ac_cv_env_foo' variables (set or unset) will be overridden when 14882# loading this file, other *unset* `ac_cv_foo' will be assigned the 14883# following values. 14884 14885_ACEOF 14886 14887# The following way of writing the cache mishandles newlines in values, 14888# but we know of no workaround that is simple, portable, and efficient. 14889# So, we kill variables containing newlines. 14890# Ultrix sh set writes to stderr and can't be redirected directly, 14891# and sets the high bit in the cache file unless we assign to the vars. 14892( 14893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14894 eval ac_val=\$$ac_var 14895 case $ac_val in #( 14896 *${as_nl}*) 14897 case $ac_var in #( 14898 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14899$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14900 esac 14901 case $ac_var in #( 14902 _ | IFS | as_nl) ;; #( 14903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14904 *) { eval $ac_var=; unset $ac_var;} ;; 14905 esac ;; 14906 esac 14907 done 14908 14909 (set) 2>&1 | 14910 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14911 *${as_nl}ac_space=\ *) 14912 # `set' does not quote correctly, so add quotes: double-quote 14913 # substitution turns \\\\ into \\, and sed turns \\ into \. 14914 sed -n \ 14915 "s/'/'\\\\''/g; 14916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14917 ;; #( 14918 *) 14919 # `set' quotes correctly as required by POSIX, so do not add quotes. 14920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14921 ;; 14922 esac | 14923 sort 14924) | 14925 sed ' 14926 /^ac_cv_env_/b end 14927 t clear 14928 :clear 14929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14930 t end 14931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14932 :end' >>confcache 14933if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14934 if test -w "$cache_file"; then 14935 if test "x$cache_file" != "x/dev/null"; then 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14937$as_echo "$as_me: updating cache $cache_file" >&6;} 14938 if test ! -f "$cache_file" || test -h "$cache_file"; then 14939 cat confcache >"$cache_file" 14940 else 14941 case $cache_file in #( 14942 */* | ?:*) 14943 mv -f confcache "$cache_file"$$ && 14944 mv -f "$cache_file"$$ "$cache_file" ;; #( 14945 *) 14946 mv -f confcache "$cache_file" ;; 14947 esac 14948 fi 14949 fi 14950 else 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14952$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14953 fi 14954fi 14955rm -f confcache 14956 14957test "x$prefix" = xNONE && prefix=$ac_default_prefix 14958# Let make expand exec_prefix. 14959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14960 14961DEFS=-DHAVE_CONFIG_H 14962 14963ac_libobjs= 14964ac_ltlibobjs= 14965U= 14966for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14967 # 1. Remove the extension, and $U if already installed. 14968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14969 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14971 # will be set to the directory where LIBOBJS objects are built. 14972 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14973 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14974done 14975LIBOBJS=$ac_libobjs 14976 14977LTLIBOBJS=$ac_ltlibobjs 14978 14979 14980 14981 14982: "${CONFIG_STATUS=./config.status}" 14983ac_write_fail=0 14984ac_clean_files_save=$ac_clean_files 14985ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14987$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14988as_write_fail=0 14989cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14990#! $SHELL 14991# Generated by $as_me. 14992# Run this file to recreate the current configuration. 14993# Compiler output produced by configure, useful for debugging 14994# configure, is in config.log if it exists. 14995 14996debug=false 14997ac_cs_recheck=false 14998ac_cs_silent=false 14999 15000SHELL=\${CONFIG_SHELL-$SHELL} 15001export SHELL 15002_ASEOF 15003cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15004## -------------------- ## 15005## M4sh Initialization. ## 15006## -------------------- ## 15007 15008# Be more Bourne compatible 15009DUALCASE=1; export DUALCASE # for MKS sh 15010if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15011 emulate sh 15012 NULLCMD=: 15013 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15014 # is contrary to our usage. Disable this feature. 15015 alias -g '${1+"$@"}'='"$@"' 15016 setopt NO_GLOB_SUBST 15017else 15018 case `(set -o) 2>/dev/null` in #( 15019 *posix*) : 15020 set -o posix ;; #( 15021 *) : 15022 ;; 15023esac 15024fi 15025 15026 15027as_nl=' 15028' 15029export as_nl 15030# Printing a long string crashes Solaris 7 /usr/bin/printf. 15031as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15032as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15033as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15034# Prefer a ksh shell builtin over an external printf program on Solaris, 15035# but without wasting forks for bash or zsh. 15036if test -z "$BASH_VERSION$ZSH_VERSION" \ 15037 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15038 as_echo='print -r --' 15039 as_echo_n='print -rn --' 15040elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15041 as_echo='printf %s\n' 15042 as_echo_n='printf %s' 15043else 15044 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15045 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15046 as_echo_n='/usr/ucb/echo -n' 15047 else 15048 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15049 as_echo_n_body='eval 15050 arg=$1; 15051 case $arg in #( 15052 *"$as_nl"*) 15053 expr "X$arg" : "X\\(.*\\)$as_nl"; 15054 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15055 esac; 15056 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15057 ' 15058 export as_echo_n_body 15059 as_echo_n='sh -c $as_echo_n_body as_echo' 15060 fi 15061 export as_echo_body 15062 as_echo='sh -c $as_echo_body as_echo' 15063fi 15064 15065# The user is always right. 15066if test "${PATH_SEPARATOR+set}" != set; then 15067 PATH_SEPARATOR=: 15068 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15069 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15070 PATH_SEPARATOR=';' 15071 } 15072fi 15073 15074 15075# IFS 15076# We need space, tab and new line, in precisely that order. Quoting is 15077# there to prevent editors from complaining about space-tab. 15078# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15079# splitting by setting IFS to empty value.) 15080IFS=" "" $as_nl" 15081 15082# Find who we are. Look in the path if we contain no directory separator. 15083as_myself= 15084case $0 in #(( 15085 *[\\/]* ) as_myself=$0 ;; 15086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15087for as_dir in $PATH 15088do 15089 IFS=$as_save_IFS 15090 test -z "$as_dir" && as_dir=. 15091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15092 done 15093IFS=$as_save_IFS 15094 15095 ;; 15096esac 15097# We did not find ourselves, most probably we were run as `sh COMMAND' 15098# in which case we are not to be found in the path. 15099if test "x$as_myself" = x; then 15100 as_myself=$0 15101fi 15102if test ! -f "$as_myself"; then 15103 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15104 exit 1 15105fi 15106 15107# Unset variables that we do not need and which cause bugs (e.g. in 15108# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15109# suppresses any "Segmentation fault" message there. '((' could 15110# trigger a bug in pdksh 5.2.14. 15111for as_var in BASH_ENV ENV MAIL MAILPATH 15112do eval test x\${$as_var+set} = xset \ 15113 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15114done 15115PS1='$ ' 15116PS2='> ' 15117PS4='+ ' 15118 15119# NLS nuisances. 15120LC_ALL=C 15121export LC_ALL 15122LANGUAGE=C 15123export LANGUAGE 15124 15125# CDPATH. 15126(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15127 15128 15129# as_fn_error STATUS ERROR [LINENO LOG_FD] 15130# ---------------------------------------- 15131# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15132# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15133# script with STATUS, using 1 if that was 0. 15134as_fn_error () 15135{ 15136 as_status=$1; test $as_status -eq 0 && as_status=1 15137 if test "$4"; then 15138 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15139 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15140 fi 15141 $as_echo "$as_me: error: $2" >&2 15142 as_fn_exit $as_status 15143} # as_fn_error 15144 15145 15146# as_fn_set_status STATUS 15147# ----------------------- 15148# Set $? to STATUS, without forking. 15149as_fn_set_status () 15150{ 15151 return $1 15152} # as_fn_set_status 15153 15154# as_fn_exit STATUS 15155# ----------------- 15156# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15157as_fn_exit () 15158{ 15159 set +e 15160 as_fn_set_status $1 15161 exit $1 15162} # as_fn_exit 15163 15164# as_fn_unset VAR 15165# --------------- 15166# Portably unset VAR. 15167as_fn_unset () 15168{ 15169 { eval $1=; unset $1;} 15170} 15171as_unset=as_fn_unset 15172# as_fn_append VAR VALUE 15173# ---------------------- 15174# Append the text in VALUE to the end of the definition contained in VAR. Take 15175# advantage of any shell optimizations that allow amortized linear growth over 15176# repeated appends, instead of the typical quadratic growth present in naive 15177# implementations. 15178if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15179 eval 'as_fn_append () 15180 { 15181 eval $1+=\$2 15182 }' 15183else 15184 as_fn_append () 15185 { 15186 eval $1=\$$1\$2 15187 } 15188fi # as_fn_append 15189 15190# as_fn_arith ARG... 15191# ------------------ 15192# Perform arithmetic evaluation on the ARGs, and store the result in the 15193# global $as_val. Take advantage of shells that can avoid forks. The arguments 15194# must be portable across $(()) and expr. 15195if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15196 eval 'as_fn_arith () 15197 { 15198 as_val=$(( $* )) 15199 }' 15200else 15201 as_fn_arith () 15202 { 15203 as_val=`expr "$@" || test $? -eq 1` 15204 } 15205fi # as_fn_arith 15206 15207 15208if expr a : '\(a\)' >/dev/null 2>&1 && 15209 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15210 as_expr=expr 15211else 15212 as_expr=false 15213fi 15214 15215if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15216 as_basename=basename 15217else 15218 as_basename=false 15219fi 15220 15221if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15222 as_dirname=dirname 15223else 15224 as_dirname=false 15225fi 15226 15227as_me=`$as_basename -- "$0" || 15228$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15229 X"$0" : 'X\(//\)$' \| \ 15230 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15231$as_echo X/"$0" | 15232 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15233 s//\1/ 15234 q 15235 } 15236 /^X\/\(\/\/\)$/{ 15237 s//\1/ 15238 q 15239 } 15240 /^X\/\(\/\).*/{ 15241 s//\1/ 15242 q 15243 } 15244 s/.*/./; q'` 15245 15246# Avoid depending upon Character Ranges. 15247as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15248as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15249as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15250as_cr_digits='0123456789' 15251as_cr_alnum=$as_cr_Letters$as_cr_digits 15252 15253ECHO_C= ECHO_N= ECHO_T= 15254case `echo -n x` in #((((( 15255-n*) 15256 case `echo 'xy\c'` in 15257 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15258 xy) ECHO_C='\c';; 15259 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15260 ECHO_T=' ';; 15261 esac;; 15262*) 15263 ECHO_N='-n';; 15264esac 15265 15266rm -f conf$$ conf$$.exe conf$$.file 15267if test -d conf$$.dir; then 15268 rm -f conf$$.dir/conf$$.file 15269else 15270 rm -f conf$$.dir 15271 mkdir conf$$.dir 2>/dev/null 15272fi 15273if (echo >conf$$.file) 2>/dev/null; then 15274 if ln -s conf$$.file conf$$ 2>/dev/null; then 15275 as_ln_s='ln -s' 15276 # ... but there are two gotchas: 15277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15279 # In both cases, we have to default to `cp -pR'. 15280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15281 as_ln_s='cp -pR' 15282 elif ln conf$$.file conf$$ 2>/dev/null; then 15283 as_ln_s=ln 15284 else 15285 as_ln_s='cp -pR' 15286 fi 15287else 15288 as_ln_s='cp -pR' 15289fi 15290rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15291rmdir conf$$.dir 2>/dev/null 15292 15293 15294# as_fn_mkdir_p 15295# ------------- 15296# Create "$as_dir" as a directory, including parents if necessary. 15297as_fn_mkdir_p () 15298{ 15299 15300 case $as_dir in #( 15301 -*) as_dir=./$as_dir;; 15302 esac 15303 test -d "$as_dir" || eval $as_mkdir_p || { 15304 as_dirs= 15305 while :; do 15306 case $as_dir in #( 15307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15308 *) as_qdir=$as_dir;; 15309 esac 15310 as_dirs="'$as_qdir' $as_dirs" 15311 as_dir=`$as_dirname -- "$as_dir" || 15312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15313 X"$as_dir" : 'X\(//\)[^/]' \| \ 15314 X"$as_dir" : 'X\(//\)$' \| \ 15315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15316$as_echo X"$as_dir" | 15317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15318 s//\1/ 15319 q 15320 } 15321 /^X\(\/\/\)[^/].*/{ 15322 s//\1/ 15323 q 15324 } 15325 /^X\(\/\/\)$/{ 15326 s//\1/ 15327 q 15328 } 15329 /^X\(\/\).*/{ 15330 s//\1/ 15331 q 15332 } 15333 s/.*/./; q'` 15334 test -d "$as_dir" && break 15335 done 15336 test -z "$as_dirs" || eval "mkdir $as_dirs" 15337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15338 15339 15340} # as_fn_mkdir_p 15341if mkdir -p . 2>/dev/null; then 15342 as_mkdir_p='mkdir -p "$as_dir"' 15343else 15344 test -d ./-p && rmdir ./-p 15345 as_mkdir_p=false 15346fi 15347 15348 15349# as_fn_executable_p FILE 15350# ----------------------- 15351# Test if FILE is an executable regular file. 15352as_fn_executable_p () 15353{ 15354 test -f "$1" && test -x "$1" 15355} # as_fn_executable_p 15356as_test_x='test -x' 15357as_executable_p=as_fn_executable_p 15358 15359# Sed expression to map a string onto a valid CPP name. 15360as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15361 15362# Sed expression to map a string onto a valid variable name. 15363as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15364 15365 15366exec 6>&1 15367## ----------------------------------- ## 15368## Main body of $CONFIG_STATUS script. ## 15369## ----------------------------------- ## 15370_ASEOF 15371test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15372 15373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15374# Save the log message, to keep $0 and so on meaningful, and to 15375# report actual input values of CONFIG_FILES etc. instead of their 15376# values after options handling. 15377ac_log=" 15378This file was extended by $as_me, which was 15379generated by GNU Autoconf 2.69. Invocation command line was 15380 15381 CONFIG_FILES = $CONFIG_FILES 15382 CONFIG_HEADERS = $CONFIG_HEADERS 15383 CONFIG_LINKS = $CONFIG_LINKS 15384 CONFIG_COMMANDS = $CONFIG_COMMANDS 15385 $ $0 $@ 15386 15387on `(hostname || uname -n) 2>/dev/null | sed 1q` 15388" 15389 15390_ACEOF 15391 15392case $ac_config_files in *" 15393"*) set x $ac_config_files; shift; ac_config_files=$*;; 15394esac 15395 15396case $ac_config_headers in *" 15397"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15398esac 15399 15400 15401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15402# Files that config.status was made for. 15403config_files="$ac_config_files" 15404config_headers="$ac_config_headers" 15405 15406_ACEOF 15407 15408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15409ac_cs_usage="\ 15410\`$as_me' instantiates files and other configuration actions 15411from templates according to the current configuration. Unless the files 15412and actions are specified as TAGs, all are instantiated by default. 15413 15414Usage: $0 [OPTION]... [TAG]... 15415 15416 -h, --help print this help, then exit 15417 -V, --version print version number and configuration settings, then exit 15418 --config print configuration, then exit 15419 -q, --quiet, --silent 15420 do not print progress messages 15421 -d, --debug don't remove temporary files 15422 --recheck update $as_me by reconfiguring in the same conditions 15423 --file=FILE[:TEMPLATE] 15424 instantiate the configuration file FILE 15425 --header=FILE[:TEMPLATE] 15426 instantiate the configuration header FILE 15427 15428Configuration files: 15429$config_files 15430 15431Configuration headers: 15432$config_headers 15433 15434Report bugs to the package provider." 15435 15436_ACEOF 15437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15438ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15439ac_cs_version="\\ 15440config.status 15441configured by $0, generated by GNU Autoconf 2.69, 15442 with options \\"\$ac_cs_config\\" 15443 15444Copyright (C) 2012 Free Software Foundation, Inc. 15445This config.status script is free software; the Free Software Foundation 15446gives unlimited permission to copy, distribute and modify it." 15447 15448ac_pwd='$ac_pwd' 15449srcdir='$srcdir' 15450AWK='$AWK' 15451test -n "\$AWK" || AWK=awk 15452_ACEOF 15453 15454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15455# The default lists apply if the user does not specify any file. 15456ac_need_defaults=: 15457while test $# != 0 15458do 15459 case $1 in 15460 --*=?*) 15461 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15462 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15463 ac_shift=: 15464 ;; 15465 --*=) 15466 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15467 ac_optarg= 15468 ac_shift=: 15469 ;; 15470 *) 15471 ac_option=$1 15472 ac_optarg=$2 15473 ac_shift=shift 15474 ;; 15475 esac 15476 15477 case $ac_option in 15478 # Handling of the options. 15479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15480 ac_cs_recheck=: ;; 15481 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15482 $as_echo "$ac_cs_version"; exit ;; 15483 --config | --confi | --conf | --con | --co | --c ) 15484 $as_echo "$ac_cs_config"; exit ;; 15485 --debug | --debu | --deb | --de | --d | -d ) 15486 debug=: ;; 15487 --file | --fil | --fi | --f ) 15488 $ac_shift 15489 case $ac_optarg in 15490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15491 '') as_fn_error $? "missing file argument" ;; 15492 esac 15493 as_fn_append CONFIG_FILES " '$ac_optarg'" 15494 ac_need_defaults=false;; 15495 --header | --heade | --head | --hea ) 15496 $ac_shift 15497 case $ac_optarg in 15498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15499 esac 15500 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15501 ac_need_defaults=false;; 15502 --he | --h) 15503 # Conflict between --help and --header 15504 as_fn_error $? "ambiguous option: \`$1' 15505Try \`$0 --help' for more information.";; 15506 --help | --hel | -h ) 15507 $as_echo "$ac_cs_usage"; exit ;; 15508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15509 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15510 ac_cs_silent=: ;; 15511 15512 # This is an error. 15513 -*) as_fn_error $? "unrecognized option: \`$1' 15514Try \`$0 --help' for more information." ;; 15515 15516 *) as_fn_append ac_config_targets " $1" 15517 ac_need_defaults=false ;; 15518 15519 esac 15520 shift 15521done 15522 15523ac_configure_extra_args= 15524 15525if $ac_cs_silent; then 15526 exec 6>/dev/null 15527 ac_configure_extra_args="$ac_configure_extra_args --silent" 15528fi 15529 15530_ACEOF 15531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15532if \$ac_cs_recheck; then 15533 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15534 shift 15535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15536 CONFIG_SHELL='$SHELL' 15537 export CONFIG_SHELL 15538 exec "\$@" 15539fi 15540 15541_ACEOF 15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15543exec 5>>auto/config.log 15544{ 15545 echo 15546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15547## Running $as_me. ## 15548_ASBOX 15549 $as_echo "$ac_log" 15550} >&5 15551 15552_ACEOF 15553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15554_ACEOF 15555 15556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15557 15558# Handling of arguments. 15559for ac_config_target in $ac_config_targets 15560do 15561 case $ac_config_target in 15562 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15563 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15564 15565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15566 esac 15567done 15568 15569 15570# If the user did not use the arguments to specify the items to instantiate, 15571# then the envvar interface is used. Set only those that are not. 15572# We use the long form for the default assignment because of an extremely 15573# bizarre bug on SunOS 4.1.3. 15574if $ac_need_defaults; then 15575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15577fi 15578 15579# Have a temporary directory for convenience. Make it in the build tree 15580# simply because there is no reason against having it here, and in addition, 15581# creating and moving files from /tmp can sometimes cause problems. 15582# Hook for its removal unless debugging. 15583# Note that there is a small window in which the directory will not be cleaned: 15584# after its creation but before its name has been assigned to `$tmp'. 15585$debug || 15586{ 15587 tmp= ac_tmp= 15588 trap 'exit_status=$? 15589 : "${ac_tmp:=$tmp}" 15590 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15591' 0 15592 trap 'as_fn_exit 1' 1 2 13 15 15593} 15594# Create a (secure) tmp directory for tmp files. 15595 15596{ 15597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15598 test -d "$tmp" 15599} || 15600{ 15601 tmp=./conf$$-$RANDOM 15602 (umask 077 && mkdir "$tmp") 15603} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15604ac_tmp=$tmp 15605 15606# Set up the scripts for CONFIG_FILES section. 15607# No need to generate them if there are no CONFIG_FILES. 15608# This happens for instance with `./config.status config.h'. 15609if test -n "$CONFIG_FILES"; then 15610 15611 15612ac_cr=`echo X | tr X '\015'` 15613# On cygwin, bash can eat \r inside `` if the user requested igncr. 15614# But we know of no other shell where ac_cr would be empty at this 15615# point, so we can use a bashism as a fallback. 15616if test "x$ac_cr" = x; then 15617 eval ac_cr=\$\'\\r\' 15618fi 15619ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15620if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15621 ac_cs_awk_cr='\\r' 15622else 15623 ac_cs_awk_cr=$ac_cr 15624fi 15625 15626echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15627_ACEOF 15628 15629 15630{ 15631 echo "cat >conf$$subs.awk <<_ACEOF" && 15632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15633 echo "_ACEOF" 15634} >conf$$subs.sh || 15635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15636ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15637ac_delim='%!_!# ' 15638for ac_last_try in false false false false false :; do 15639 . ./conf$$subs.sh || 15640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15641 15642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15643 if test $ac_delim_n = $ac_delim_num; then 15644 break 15645 elif $ac_last_try; then 15646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15647 else 15648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15649 fi 15650done 15651rm -f conf$$subs.sh 15652 15653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15654cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15655_ACEOF 15656sed -n ' 15657h 15658s/^/S["/; s/!.*/"]=/ 15659p 15660g 15661s/^[^!]*!// 15662:repl 15663t repl 15664s/'"$ac_delim"'$// 15665t delim 15666:nl 15667h 15668s/\(.\{148\}\)..*/\1/ 15669t more1 15670s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15671p 15672n 15673b repl 15674:more1 15675s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15676p 15677g 15678s/.\{148\}// 15679t nl 15680:delim 15681h 15682s/\(.\{148\}\)..*/\1/ 15683t more2 15684s/["\\]/\\&/g; s/^/"/; s/$/"/ 15685p 15686b 15687:more2 15688s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15689p 15690g 15691s/.\{148\}// 15692t delim 15693' <conf$$subs.awk | sed ' 15694/^[^""]/{ 15695 N 15696 s/\n// 15697} 15698' >>$CONFIG_STATUS || ac_write_fail=1 15699rm -f conf$$subs.awk 15700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15701_ACAWK 15702cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15703 for (key in S) S_is_set[key] = 1 15704 FS = "" 15705 15706} 15707{ 15708 line = $ 0 15709 nfields = split(line, field, "@") 15710 substed = 0 15711 len = length(field[1]) 15712 for (i = 2; i < nfields; i++) { 15713 key = field[i] 15714 keylen = length(key) 15715 if (S_is_set[key]) { 15716 value = S[key] 15717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15718 len += length(value) + length(field[++i]) 15719 substed = 1 15720 } else 15721 len += 1 + keylen 15722 } 15723 15724 print line 15725} 15726 15727_ACAWK 15728_ACEOF 15729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15730if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15732else 15733 cat 15734fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15735 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15736_ACEOF 15737 15738# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15739# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15740# trailing colons and then remove the whole line if VPATH becomes empty 15741# (actually we leave an empty line to preserve line numbers). 15742if test "x$srcdir" = x.; then 15743 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15744h 15745s/// 15746s/^/:/ 15747s/[ ]*$/:/ 15748s/:\$(srcdir):/:/g 15749s/:\${srcdir}:/:/g 15750s/:@srcdir@:/:/g 15751s/^:*// 15752s/:*$// 15753x 15754s/\(=[ ]*\).*/\1/ 15755G 15756s/\n// 15757s/^[^=]*=[ ]*$// 15758}' 15759fi 15760 15761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15762fi # test -n "$CONFIG_FILES" 15763 15764# Set up the scripts for CONFIG_HEADERS section. 15765# No need to generate them if there are no CONFIG_HEADERS. 15766# This happens for instance with `./config.status Makefile'. 15767if test -n "$CONFIG_HEADERS"; then 15768cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15769BEGIN { 15770_ACEOF 15771 15772# Transform confdefs.h into an awk script `defines.awk', embedded as 15773# here-document in config.status, that substitutes the proper values into 15774# config.h.in to produce config.h. 15775 15776# Create a delimiter string that does not exist in confdefs.h, to ease 15777# handling of long lines. 15778ac_delim='%!_!# ' 15779for ac_last_try in false false :; do 15780 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15781 if test -z "$ac_tt"; then 15782 break 15783 elif $ac_last_try; then 15784 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15785 else 15786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15787 fi 15788done 15789 15790# For the awk script, D is an array of macro values keyed by name, 15791# likewise P contains macro parameters if any. Preserve backslash 15792# newline sequences. 15793 15794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15795sed -n ' 15796s/.\{148\}/&'"$ac_delim"'/g 15797t rset 15798:rset 15799s/^[ ]*#[ ]*define[ ][ ]*/ / 15800t def 15801d 15802:def 15803s/\\$// 15804t bsnl 15805s/["\\]/\\&/g 15806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15807D["\1"]=" \3"/p 15808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15809d 15810:bsnl 15811s/["\\]/\\&/g 15812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15813D["\1"]=" \3\\\\\\n"\\/p 15814t cont 15815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15816t cont 15817d 15818:cont 15819n 15820s/.\{148\}/&'"$ac_delim"'/g 15821t clear 15822:clear 15823s/\\$// 15824t bsnlc 15825s/["\\]/\\&/g; s/^/"/; s/$/"/p 15826d 15827:bsnlc 15828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15829b cont 15830' <confdefs.h | sed ' 15831s/'"$ac_delim"'/"\\\ 15832"/g' >>$CONFIG_STATUS || ac_write_fail=1 15833 15834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15835 for (key in D) D_is_set[key] = 1 15836 FS = "" 15837} 15838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15839 line = \$ 0 15840 split(line, arg, " ") 15841 if (arg[1] == "#") { 15842 defundef = arg[2] 15843 mac1 = arg[3] 15844 } else { 15845 defundef = substr(arg[1], 2) 15846 mac1 = arg[2] 15847 } 15848 split(mac1, mac2, "(") #) 15849 macro = mac2[1] 15850 prefix = substr(line, 1, index(line, defundef) - 1) 15851 if (D_is_set[macro]) { 15852 # Preserve the white space surrounding the "#". 15853 print prefix "define", macro P[macro] D[macro] 15854 next 15855 } else { 15856 # Replace #undef with comments. This is necessary, for example, 15857 # in the case of _POSIX_SOURCE, which is predefined and required 15858 # on some systems where configure will not decide to define it. 15859 if (defundef == "undef") { 15860 print "/*", prefix defundef, macro, "*/" 15861 next 15862 } 15863 } 15864} 15865{ print } 15866_ACAWK 15867_ACEOF 15868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15869 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15870fi # test -n "$CONFIG_HEADERS" 15871 15872 15873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15874shift 15875for ac_tag 15876do 15877 case $ac_tag in 15878 :[FHLC]) ac_mode=$ac_tag; continue;; 15879 esac 15880 case $ac_mode$ac_tag in 15881 :[FHL]*:*);; 15882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15883 :[FH]-) ac_tag=-:-;; 15884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15885 esac 15886 ac_save_IFS=$IFS 15887 IFS=: 15888 set x $ac_tag 15889 IFS=$ac_save_IFS 15890 shift 15891 ac_file=$1 15892 shift 15893 15894 case $ac_mode in 15895 :L) ac_source=$1;; 15896 :[FH]) 15897 ac_file_inputs= 15898 for ac_f 15899 do 15900 case $ac_f in 15901 -) ac_f="$ac_tmp/stdin";; 15902 *) # Look for the file first in the build tree, then in the source tree 15903 # (if the path is not absolute). The absolute path cannot be DOS-style, 15904 # because $ac_f cannot contain `:'. 15905 test -f "$ac_f" || 15906 case $ac_f in 15907 [\\/$]*) false;; 15908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15909 esac || 15910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15911 esac 15912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15913 as_fn_append ac_file_inputs " '$ac_f'" 15914 done 15915 15916 # Let's still pretend it is `configure' which instantiates (i.e., don't 15917 # use $as_me), people would be surprised to read: 15918 # /* config.h. Generated by config.status. */ 15919 configure_input='Generated from '` 15920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15921 `' by configure.' 15922 if test x"$ac_file" != x-; then 15923 configure_input="$ac_file. $configure_input" 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15925$as_echo "$as_me: creating $ac_file" >&6;} 15926 fi 15927 # Neutralize special characters interpreted by sed in replacement strings. 15928 case $configure_input in #( 15929 *\&* | *\|* | *\\* ) 15930 ac_sed_conf_input=`$as_echo "$configure_input" | 15931 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15932 *) ac_sed_conf_input=$configure_input;; 15933 esac 15934 15935 case $ac_tag in 15936 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15938 esac 15939 ;; 15940 esac 15941 15942 ac_dir=`$as_dirname -- "$ac_file" || 15943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15944 X"$ac_file" : 'X\(//\)[^/]' \| \ 15945 X"$ac_file" : 'X\(//\)$' \| \ 15946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15947$as_echo X"$ac_file" | 15948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15949 s//\1/ 15950 q 15951 } 15952 /^X\(\/\/\)[^/].*/{ 15953 s//\1/ 15954 q 15955 } 15956 /^X\(\/\/\)$/{ 15957 s//\1/ 15958 q 15959 } 15960 /^X\(\/\).*/{ 15961 s//\1/ 15962 q 15963 } 15964 s/.*/./; q'` 15965 as_dir="$ac_dir"; as_fn_mkdir_p 15966 ac_builddir=. 15967 15968case "$ac_dir" in 15969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15970*) 15971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15972 # A ".." for each directory in $ac_dir_suffix. 15973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15974 case $ac_top_builddir_sub in 15975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15977 esac ;; 15978esac 15979ac_abs_top_builddir=$ac_pwd 15980ac_abs_builddir=$ac_pwd$ac_dir_suffix 15981# for backward compatibility: 15982ac_top_builddir=$ac_top_build_prefix 15983 15984case $srcdir in 15985 .) # We are building in place. 15986 ac_srcdir=. 15987 ac_top_srcdir=$ac_top_builddir_sub 15988 ac_abs_top_srcdir=$ac_pwd ;; 15989 [\\/]* | ?:[\\/]* ) # Absolute name. 15990 ac_srcdir=$srcdir$ac_dir_suffix; 15991 ac_top_srcdir=$srcdir 15992 ac_abs_top_srcdir=$srcdir ;; 15993 *) # Relative name. 15994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15995 ac_top_srcdir=$ac_top_build_prefix$srcdir 15996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15997esac 15998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15999 16000 16001 case $ac_mode in 16002 :F) 16003 # 16004 # CONFIG_FILE 16005 # 16006 16007_ACEOF 16008 16009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16010# If the template does not know about datarootdir, expand it. 16011# FIXME: This hack should be removed a few years after 2.60. 16012ac_datarootdir_hack=; ac_datarootdir_seen= 16013ac_sed_dataroot=' 16014/datarootdir/ { 16015 p 16016 q 16017} 16018/@datadir@/p 16019/@docdir@/p 16020/@infodir@/p 16021/@localedir@/p 16022/@mandir@/p' 16023case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16024*datarootdir*) ac_datarootdir_seen=yes;; 16025*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16027$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16028_ACEOF 16029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16030 ac_datarootdir_hack=' 16031 s&@datadir@&$datadir&g 16032 s&@docdir@&$docdir&g 16033 s&@infodir@&$infodir&g 16034 s&@localedir@&$localedir&g 16035 s&@mandir@&$mandir&g 16036 s&\\\${datarootdir}&$datarootdir&g' ;; 16037esac 16038_ACEOF 16039 16040# Neutralize VPATH when `$srcdir' = `.'. 16041# Shell code in configure.ac might set extrasub. 16042# FIXME: do we really want to maintain this feature? 16043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16044ac_sed_extra="$ac_vpsub 16045$extrasub 16046_ACEOF 16047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16048:t 16049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16050s|@configure_input@|$ac_sed_conf_input|;t t 16051s&@top_builddir@&$ac_top_builddir_sub&;t t 16052s&@top_build_prefix@&$ac_top_build_prefix&;t t 16053s&@srcdir@&$ac_srcdir&;t t 16054s&@abs_srcdir@&$ac_abs_srcdir&;t t 16055s&@top_srcdir@&$ac_top_srcdir&;t t 16056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16057s&@builddir@&$ac_builddir&;t t 16058s&@abs_builddir@&$ac_abs_builddir&;t t 16059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16060$ac_datarootdir_hack 16061" 16062eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16063 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16064 16065test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16066 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16068 "$ac_tmp/out"`; test -z "$ac_out"; } && 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16070which seems to be undefined. Please make sure it is defined" >&5 16071$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16072which seems to be undefined. Please make sure it is defined" >&2;} 16073 16074 rm -f "$ac_tmp/stdin" 16075 case $ac_file in 16076 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16077 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16078 esac \ 16079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16080 ;; 16081 :H) 16082 # 16083 # CONFIG_HEADER 16084 # 16085 if test x"$ac_file" != x-; then 16086 { 16087 $as_echo "/* $configure_input */" \ 16088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16089 } >"$ac_tmp/config.h" \ 16090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16091 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16093$as_echo "$as_me: $ac_file is unchanged" >&6;} 16094 else 16095 rm -f "$ac_file" 16096 mv "$ac_tmp/config.h" "$ac_file" \ 16097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16098 fi 16099 else 16100 $as_echo "/* $configure_input */" \ 16101 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16102 || as_fn_error $? "could not create -" "$LINENO" 5 16103 fi 16104 ;; 16105 16106 16107 esac 16108 16109done # for ac_tag 16110 16111 16112as_fn_exit 0 16113_ACEOF 16114ac_clean_files=$ac_clean_files_save 16115 16116test $ac_write_fail = 0 || 16117 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16118 16119 16120# configure is writing to config.log, and then calls config.status. 16121# config.status does its own redirection, appending to config.log. 16122# Unfortunately, on DOS this fails, as config.log is still kept open 16123# by configure, so config.status won't be able to write to it; its 16124# output is simply discarded. So we exec the FD to /dev/null, 16125# effectively closing config.log, so it can be properly (re)opened and 16126# appended to by config.status. When coming back to configure, we 16127# need to make the FD available again. 16128if test "$no_create" != yes; then 16129 ac_cs_success=: 16130 ac_config_status_args= 16131 test "$silent" = yes && 16132 ac_config_status_args="$ac_config_status_args --quiet" 16133 exec 5>/dev/null 16134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16135 exec 5>>auto/config.log 16136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16137 # would make configure fail if this is the last instruction. 16138 $ac_cs_success || as_fn_exit 1 16139fi 16140if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16142$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16143fi 16144 16145 16146