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 bug-autoconf@gnu.org 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 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_unique_file="gettext.c" 622ac_header_list= 623ac_subst_vars='LTLIBOBJS 624LIBOBJS 625PICFLAG 626BISON3_NO 627BISON3_YES 628INCINTL 629LIBINTL_DEP 630MAINT 631AUTOHEADER 632AUTOCONF 633ACLOCAL 634POSUB 635LTLIBINTL 636LIBINTL 637INTLLIBS 638INTL_LIBTOOL_SUFFIX_PREFIX 639INTLOBJS 640GENCAT 641INSTOBJEXT 642DATADIRNAME 643CATOBJEXT 644USE_INCLUDED_LIBINTL 645BUILD_INCLUDED_LIBINTL 646INTLBISON 647LTLIBICONV 648LIBICONV 649GLIBC21 650ALLOCA 651RANLIB 652host_os 653host_vendor 654host_cpu 655host 656build_os 657build_vendor 658build_cpu 659build 660MSGMERGE 661XGETTEXT 662GMSGFMT 663MSGFMT 664USE_NLS 665MKINSTALLDIRS 666INSTALL_DATA 667INSTALL_SCRIPT 668INSTALL_PROGRAM 669SET_MAKE 670EGREP 671GREP 672CPP 673OBJEXT 674EXEEXT 675ac_ct_CC 676CPPFLAGS 677LDFLAGS 678CFLAGS 679CC 680target_alias 681host_alias 682build_alias 683LIBS 684ECHO_T 685ECHO_N 686ECHO_C 687DEFS 688mandir 689localedir 690libdir 691psdir 692pdfdir 693dvidir 694htmldir 695infodir 696docdir 697oldincludedir 698includedir 699localstatedir 700sharedstatedir 701sysconfdir 702datadir 703datarootdir 704libexecdir 705sbindir 706bindir 707program_transform_name 708prefix 709exec_prefix 710PACKAGE_URL 711PACKAGE_BUGREPORT 712PACKAGE_STRING 713PACKAGE_VERSION 714PACKAGE_TARNAME 715PACKAGE_NAME 716PATH_SEPARATOR 717SHELL' 718ac_subst_files='' 719ac_user_opts=' 720enable_option_checking 721enable_nls 722with_gnu_ld 723enable_rpath 724with_libiconv_prefix 725with_libiconv_type 726with_included_gettext 727with_libintl_prefix 728with_libintl_type 729enable_maintainer_mode 730enable_host_shared 731' 732 ac_precious_vars='build_alias 733host_alias 734target_alias 735CC 736CFLAGS 737LDFLAGS 738LIBS 739CPPFLAGS 740CPP' 741 742 743# Initialize some variables set by options. 744ac_init_help= 745ac_init_version=false 746ac_unrecognized_opts= 747ac_unrecognized_sep= 748# The variables have the same names as the options, with 749# dashes changed to underlines. 750cache_file=/dev/null 751exec_prefix=NONE 752no_create= 753no_recursion= 754prefix=NONE 755program_prefix=NONE 756program_suffix=NONE 757program_transform_name=s,x,x, 758silent= 759site= 760srcdir= 761verbose= 762x_includes=NONE 763x_libraries=NONE 764 765# Installation directory options. 766# These are left unexpanded so users can "make install exec_prefix=/foo" 767# and all the variables that are supposed to be based on exec_prefix 768# by default will actually change. 769# Use braces instead of parens because sh, perl, etc. also accept them. 770# (The list follows the same order as the GNU Coding Standards.) 771bindir='${exec_prefix}/bin' 772sbindir='${exec_prefix}/sbin' 773libexecdir='${exec_prefix}/libexec' 774datarootdir='${prefix}/share' 775datadir='${datarootdir}' 776sysconfdir='${prefix}/etc' 777sharedstatedir='${prefix}/com' 778localstatedir='${prefix}/var' 779includedir='${prefix}/include' 780oldincludedir='/usr/include' 781docdir='${datarootdir}/doc/${PACKAGE}' 782infodir='${datarootdir}/info' 783htmldir='${docdir}' 784dvidir='${docdir}' 785pdfdir='${docdir}' 786psdir='${docdir}' 787libdir='${exec_prefix}/lib' 788localedir='${datarootdir}/locale' 789mandir='${datarootdir}/man' 790 791ac_prev= 792ac_dashdash= 793for ac_option 794do 795 # If the previous option needs an argument, assign it. 796 if test -n "$ac_prev"; then 797 eval $ac_prev=\$ac_option 798 ac_prev= 799 continue 800 fi 801 802 case $ac_option in 803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 804 *=) ac_optarg= ;; 805 *) ac_optarg=yes ;; 806 esac 807 808 # Accept the important Cygnus configure options, so we can diagnose typos. 809 810 case $ac_dashdash$ac_option in 811 --) 812 ac_dashdash=yes ;; 813 814 -bindir | --bindir | --bindi | --bind | --bin | --bi) 815 ac_prev=bindir ;; 816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 817 bindir=$ac_optarg ;; 818 819 -build | --build | --buil | --bui | --bu) 820 ac_prev=build_alias ;; 821 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 822 build_alias=$ac_optarg ;; 823 824 -cache-file | --cache-file | --cache-fil | --cache-fi \ 825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 826 ac_prev=cache_file ;; 827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 829 cache_file=$ac_optarg ;; 830 831 --config-cache | -C) 832 cache_file=config.cache ;; 833 834 -datadir | --datadir | --datadi | --datad) 835 ac_prev=datadir ;; 836 -datadir=* | --datadir=* | --datadi=* | --datad=*) 837 datadir=$ac_optarg ;; 838 839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 840 | --dataroo | --dataro | --datar) 841 ac_prev=datarootdir ;; 842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 844 datarootdir=$ac_optarg ;; 845 846 -disable-* | --disable-*) 847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 848 # Reject names that are not valid shell variable names. 849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 850 as_fn_error $? "invalid feature name: $ac_useropt" 851 ac_useropt_orig=$ac_useropt 852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 853 case $ac_user_opts in 854 *" 855"enable_$ac_useropt" 856"*) ;; 857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 858 ac_unrecognized_sep=', ';; 859 esac 860 eval enable_$ac_useropt=no ;; 861 862 -docdir | --docdir | --docdi | --doc | --do) 863 ac_prev=docdir ;; 864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 865 docdir=$ac_optarg ;; 866 867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 868 ac_prev=dvidir ;; 869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 870 dvidir=$ac_optarg ;; 871 872 -enable-* | --enable-*) 873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 874 # Reject names that are not valid shell variable names. 875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 876 as_fn_error $? "invalid feature name: $ac_useropt" 877 ac_useropt_orig=$ac_useropt 878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 879 case $ac_user_opts in 880 *" 881"enable_$ac_useropt" 882"*) ;; 883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 884 ac_unrecognized_sep=', ';; 885 esac 886 eval enable_$ac_useropt=\$ac_optarg ;; 887 888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 890 | --exec | --exe | --ex) 891 ac_prev=exec_prefix ;; 892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 894 | --exec=* | --exe=* | --ex=*) 895 exec_prefix=$ac_optarg ;; 896 897 -gas | --gas | --ga | --g) 898 # Obsolete; use --with-gas. 899 with_gas=yes ;; 900 901 -help | --help | --hel | --he | -h) 902 ac_init_help=long ;; 903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 904 ac_init_help=recursive ;; 905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 906 ac_init_help=short ;; 907 908 -host | --host | --hos | --ho) 909 ac_prev=host_alias ;; 910 -host=* | --host=* | --hos=* | --ho=*) 911 host_alias=$ac_optarg ;; 912 913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 914 ac_prev=htmldir ;; 915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 916 | --ht=*) 917 htmldir=$ac_optarg ;; 918 919 -includedir | --includedir | --includedi | --included | --include \ 920 | --includ | --inclu | --incl | --inc) 921 ac_prev=includedir ;; 922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 923 | --includ=* | --inclu=* | --incl=* | --inc=*) 924 includedir=$ac_optarg ;; 925 926 -infodir | --infodir | --infodi | --infod | --info | --inf) 927 ac_prev=infodir ;; 928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 929 infodir=$ac_optarg ;; 930 931 -libdir | --libdir | --libdi | --libd) 932 ac_prev=libdir ;; 933 -libdir=* | --libdir=* | --libdi=* | --libd=*) 934 libdir=$ac_optarg ;; 935 936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 937 | --libexe | --libex | --libe) 938 ac_prev=libexecdir ;; 939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 940 | --libexe=* | --libex=* | --libe=*) 941 libexecdir=$ac_optarg ;; 942 943 -localedir | --localedir | --localedi | --localed | --locale) 944 ac_prev=localedir ;; 945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 946 localedir=$ac_optarg ;; 947 948 -localstatedir | --localstatedir | --localstatedi | --localstated \ 949 | --localstate | --localstat | --localsta | --localst | --locals) 950 ac_prev=localstatedir ;; 951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 953 localstatedir=$ac_optarg ;; 954 955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 956 ac_prev=mandir ;; 957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 958 mandir=$ac_optarg ;; 959 960 -nfp | --nfp | --nf) 961 # Obsolete; use --without-fp. 962 with_fp=no ;; 963 964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 965 | --no-cr | --no-c | -n) 966 no_create=yes ;; 967 968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 970 no_recursion=yes ;; 971 972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 974 | --oldin | --oldi | --old | --ol | --o) 975 ac_prev=oldincludedir ;; 976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 979 oldincludedir=$ac_optarg ;; 980 981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 982 ac_prev=prefix ;; 983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 984 prefix=$ac_optarg ;; 985 986 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 987 | --program-pre | --program-pr | --program-p) 988 ac_prev=program_prefix ;; 989 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 991 program_prefix=$ac_optarg ;; 992 993 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 994 | --program-suf | --program-su | --program-s) 995 ac_prev=program_suffix ;; 996 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 998 program_suffix=$ac_optarg ;; 999 1000 -program-transform-name | --program-transform-name \ 1001 | --program-transform-nam | --program-transform-na \ 1002 | --program-transform-n | --program-transform- \ 1003 | --program-transform | --program-transfor \ 1004 | --program-transfo | --program-transf \ 1005 | --program-trans | --program-tran \ 1006 | --progr-tra | --program-tr | --program-t) 1007 ac_prev=program_transform_name ;; 1008 -program-transform-name=* | --program-transform-name=* \ 1009 | --program-transform-nam=* | --program-transform-na=* \ 1010 | --program-transform-n=* | --program-transform-=* \ 1011 | --program-transform=* | --program-transfor=* \ 1012 | --program-transfo=* | --program-transf=* \ 1013 | --program-trans=* | --program-tran=* \ 1014 | --progr-tra=* | --program-tr=* | --program-t=*) 1015 program_transform_name=$ac_optarg ;; 1016 1017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1018 ac_prev=pdfdir ;; 1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1020 pdfdir=$ac_optarg ;; 1021 1022 -psdir | --psdir | --psdi | --psd | --ps) 1023 ac_prev=psdir ;; 1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1025 psdir=$ac_optarg ;; 1026 1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1028 | -silent | --silent | --silen | --sile | --sil) 1029 silent=yes ;; 1030 1031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1032 ac_prev=sbindir ;; 1033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1034 | --sbi=* | --sb=*) 1035 sbindir=$ac_optarg ;; 1036 1037 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1039 | --sharedst | --shareds | --shared | --share | --shar \ 1040 | --sha | --sh) 1041 ac_prev=sharedstatedir ;; 1042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1045 | --sha=* | --sh=*) 1046 sharedstatedir=$ac_optarg ;; 1047 1048 -site | --site | --sit) 1049 ac_prev=site ;; 1050 -site=* | --site=* | --sit=*) 1051 site=$ac_optarg ;; 1052 1053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1054 ac_prev=srcdir ;; 1055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1056 srcdir=$ac_optarg ;; 1057 1058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1059 | --syscon | --sysco | --sysc | --sys | --sy) 1060 ac_prev=sysconfdir ;; 1061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1063 sysconfdir=$ac_optarg ;; 1064 1065 -target | --target | --targe | --targ | --tar | --ta | --t) 1066 ac_prev=target_alias ;; 1067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1068 target_alias=$ac_optarg ;; 1069 1070 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1071 verbose=yes ;; 1072 1073 -version | --version | --versio | --versi | --vers | -V) 1074 ac_init_version=: ;; 1075 1076 -with-* | --with-*) 1077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1078 # Reject names that are not valid shell variable names. 1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1080 as_fn_error $? "invalid package name: $ac_useropt" 1081 ac_useropt_orig=$ac_useropt 1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1083 case $ac_user_opts in 1084 *" 1085"with_$ac_useropt" 1086"*) ;; 1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1088 ac_unrecognized_sep=', ';; 1089 esac 1090 eval with_$ac_useropt=\$ac_optarg ;; 1091 1092 -without-* | --without-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 as_fn_error $? "invalid package name: $ac_useropt" 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"with_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval with_$ac_useropt=no ;; 1107 1108 --x) 1109 # Obsolete; use --with-x. 1110 with_x=yes ;; 1111 1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1113 | --x-incl | --x-inc | --x-in | --x-i) 1114 ac_prev=x_includes ;; 1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1117 x_includes=$ac_optarg ;; 1118 1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1121 ac_prev=x_libraries ;; 1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1124 x_libraries=$ac_optarg ;; 1125 1126 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1127Try \`$0 --help' for more information" 1128 ;; 1129 1130 *=*) 1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1132 # Reject names that are not valid shell variable names. 1133 case $ac_envvar in #( 1134 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1136 esac 1137 eval $ac_envvar=\$ac_optarg 1138 export $ac_envvar ;; 1139 1140 *) 1141 # FIXME: should be removed in autoconf 3.0. 1142 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1144 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1145 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1146 ;; 1147 1148 esac 1149done 1150 1151if test -n "$ac_prev"; then 1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1153 as_fn_error $? "missing argument to $ac_option" 1154fi 1155 1156if test -n "$ac_unrecognized_opts"; then 1157 case $enable_option_checking in 1158 no) ;; 1159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1160 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1161 esac 1162fi 1163 1164# Check all directory arguments for consistency. 1165for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1166 datadir sysconfdir sharedstatedir localstatedir includedir \ 1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1168 libdir localedir mandir 1169do 1170 eval ac_val=\$$ac_var 1171 # Remove trailing slashes. 1172 case $ac_val in 1173 */ ) 1174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1175 eval $ac_var=\$ac_val;; 1176 esac 1177 # Be sure to have absolute directory names. 1178 case $ac_val in 1179 [\\/$]* | ?:[\\/]* ) continue;; 1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1181 esac 1182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1183done 1184 1185# There might be people who depend on the old broken behavior: `$host' 1186# used to hold the argument of --host etc. 1187# FIXME: To remove some day. 1188build=$build_alias 1189host=$host_alias 1190target=$target_alias 1191 1192# FIXME: To remove some day. 1193if test "x$host_alias" != x; then 1194 if test "x$build_alias" = x; then 1195 cross_compiling=maybe 1196 elif test "x$build_alias" != "x$host_alias"; then 1197 cross_compiling=yes 1198 fi 1199fi 1200 1201ac_tool_prefix= 1202test -n "$host_alias" && ac_tool_prefix=$host_alias- 1203 1204test "$silent" = yes && exec 6>/dev/null 1205 1206 1207ac_pwd=`pwd` && test -n "$ac_pwd" && 1208ac_ls_di=`ls -di .` && 1209ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1210 as_fn_error $? "working directory cannot be determined" 1211test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1212 as_fn_error $? "pwd does not report name of working directory" 1213 1214 1215# Find the source files, if location was not specified. 1216if test -z "$srcdir"; then 1217 ac_srcdir_defaulted=yes 1218 # Try the directory containing this script, then the parent directory. 1219 ac_confdir=`$as_dirname -- "$as_myself" || 1220$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1221 X"$as_myself" : 'X\(//\)[^/]' \| \ 1222 X"$as_myself" : 'X\(//\)$' \| \ 1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1224$as_echo X"$as_myself" | 1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1226 s//\1/ 1227 q 1228 } 1229 /^X\(\/\/\)[^/].*/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\/\)$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\).*/{ 1238 s//\1/ 1239 q 1240 } 1241 s/.*/./; q'` 1242 srcdir=$ac_confdir 1243 if test ! -r "$srcdir/$ac_unique_file"; then 1244 srcdir=.. 1245 fi 1246else 1247 ac_srcdir_defaulted=no 1248fi 1249if test ! -r "$srcdir/$ac_unique_file"; then 1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1251 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1252fi 1253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1254ac_abs_confdir=`( 1255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1256 pwd)` 1257# When building in place, set srcdir=. 1258if test "$ac_abs_confdir" = "$ac_pwd"; then 1259 srcdir=. 1260fi 1261# Remove unnecessary trailing slashes from srcdir. 1262# Double slashes in file names in object file debugging info 1263# mess up M-x gdb in Emacs. 1264case $srcdir in 1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1266esac 1267for ac_var in $ac_precious_vars; do 1268 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1269 eval ac_env_${ac_var}_value=\$${ac_var} 1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1271 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1272done 1273 1274# 1275# Report the --help message. 1276# 1277if test "$ac_init_help" = "long"; then 1278 # Omit some internal or obsolete options to make the list less imposing. 1279 # This message is too long to be a string in the A/UX 3.1 sh. 1280 cat <<_ACEOF 1281\`configure' configures this package to adapt to many kinds of systems. 1282 1283Usage: $0 [OPTION]... [VAR=VALUE]... 1284 1285To assign environment variables (e.g., CC, CFLAGS...), specify them as 1286VAR=VALUE. See below for descriptions of some of the useful variables. 1287 1288Defaults for the options are specified in brackets. 1289 1290Configuration: 1291 -h, --help display this help and exit 1292 --help=short display options specific to this package 1293 --help=recursive display the short help of all the included packages 1294 -V, --version display version information and exit 1295 -q, --quiet, --silent do not print \`checking ...' messages 1296 --cache-file=FILE cache test results in FILE [disabled] 1297 -C, --config-cache alias for \`--cache-file=config.cache' 1298 -n, --no-create do not create output files 1299 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1300 1301Installation directories: 1302 --prefix=PREFIX install architecture-independent files in PREFIX 1303 [$ac_default_prefix] 1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1305 [PREFIX] 1306 1307By default, \`make install' will install all the files in 1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1309an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1310for instance \`--prefix=\$HOME'. 1311 1312For better control, use the options below. 1313 1314Fine tuning of the installation directories: 1315 --bindir=DIR user executables [EPREFIX/bin] 1316 --sbindir=DIR system admin executables [EPREFIX/sbin] 1317 --libexecdir=DIR program executables [EPREFIX/libexec] 1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1321 --libdir=DIR object code libraries [EPREFIX/lib] 1322 --includedir=DIR C header files [PREFIX/include] 1323 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1326 --infodir=DIR info documentation [DATAROOTDIR/info] 1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1328 --mandir=DIR man documentation [DATAROOTDIR/man] 1329 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1330 --htmldir=DIR html documentation [DOCDIR] 1331 --dvidir=DIR dvi documentation [DOCDIR] 1332 --pdfdir=DIR pdf documentation [DOCDIR] 1333 --psdir=DIR ps documentation [DOCDIR] 1334_ACEOF 1335 1336 cat <<\_ACEOF 1337 1338System types: 1339 --build=BUILD configure for building on BUILD [guessed] 1340 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1341_ACEOF 1342fi 1343 1344if test -n "$ac_init_help"; then 1345 1346 cat <<\_ACEOF 1347 1348Optional Features: 1349 --disable-option-checking ignore unrecognized --enable/--with options 1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1352 --disable-nls do not use Native Language Support 1353 --disable-rpath do not hardcode runtime library paths 1354 --enable-maintainer-mode enable rules only needed by maintainers 1355 --enable-host-shared build host code as shared libraries 1356 1357Optional Packages: 1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1360 --with-gnu-ld assume the C compiler uses GNU ld default=no 1361 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1362 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1363 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1364 --with-included-gettext use the GNU gettext library included here 1365 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1366 --without-libintl-prefix don't search for libintl in includedir and libdir 1367 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1368 1369Some influential environment variables: 1370 CC C compiler command 1371 CFLAGS C compiler flags 1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1373 nonstandard directory <lib dir> 1374 LIBS libraries to pass to the linker, e.g. -l<library> 1375 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1376 you have headers in a nonstandard directory <include dir> 1377 CPP C preprocessor 1378 1379Use these variables to override the choices made by `configure' or to help 1380it to find libraries and programs with nonstandard names/locations. 1381 1382Report bugs to the package provider. 1383_ACEOF 1384ac_status=$? 1385fi 1386 1387if test "$ac_init_help" = "recursive"; then 1388 # If there are subdirs, report their specific --help. 1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1390 test -d "$ac_dir" || 1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1392 continue 1393 ac_builddir=. 1394 1395case "$ac_dir" in 1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1397*) 1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1399 # A ".." for each directory in $ac_dir_suffix. 1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1401 case $ac_top_builddir_sub in 1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1404 esac ;; 1405esac 1406ac_abs_top_builddir=$ac_pwd 1407ac_abs_builddir=$ac_pwd$ac_dir_suffix 1408# for backward compatibility: 1409ac_top_builddir=$ac_top_build_prefix 1410 1411case $srcdir in 1412 .) # We are building in place. 1413 ac_srcdir=. 1414 ac_top_srcdir=$ac_top_builddir_sub 1415 ac_abs_top_srcdir=$ac_pwd ;; 1416 [\\/]* | ?:[\\/]* ) # Absolute name. 1417 ac_srcdir=$srcdir$ac_dir_suffix; 1418 ac_top_srcdir=$srcdir 1419 ac_abs_top_srcdir=$srcdir ;; 1420 *) # Relative name. 1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1422 ac_top_srcdir=$ac_top_build_prefix$srcdir 1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1424esac 1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1426 1427 cd "$ac_dir" || { ac_status=$?; continue; } 1428 # Check for guested configure. 1429 if test -f "$ac_srcdir/configure.gnu"; then 1430 echo && 1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1432 elif test -f "$ac_srcdir/configure"; then 1433 echo && 1434 $SHELL "$ac_srcdir/configure" --help=recursive 1435 else 1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1437 fi || ac_status=$? 1438 cd "$ac_pwd" || { ac_status=$?; break; } 1439 done 1440fi 1441 1442test -n "$ac_init_help" && exit $ac_status 1443if $ac_init_version; then 1444 cat <<\_ACEOF 1445configure 1446generated by GNU Autoconf 2.69 1447 1448Copyright (C) 2012 Free Software Foundation, Inc. 1449This configure script is free software; the Free Software Foundation 1450gives unlimited permission to copy, distribute and modify it. 1451_ACEOF 1452 exit 1453fi 1454 1455## ------------------------ ## 1456## Autoconf initialization. ## 1457## ------------------------ ## 1458 1459# ac_fn_c_try_compile LINENO 1460# -------------------------- 1461# Try to compile conftest.$ac_ext, and return whether this succeeded. 1462ac_fn_c_try_compile () 1463{ 1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1465 rm -f conftest.$ac_objext 1466 if { { ac_try="$ac_compile" 1467case "(($ac_try" in 1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1469 *) ac_try_echo=$ac_try;; 1470esac 1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1472$as_echo "$ac_try_echo"; } >&5 1473 (eval "$ac_compile") 2>conftest.err 1474 ac_status=$? 1475 if test -s conftest.err; then 1476 grep -v '^ *+' conftest.err >conftest.er1 1477 cat conftest.er1 >&5 1478 mv -f conftest.er1 conftest.err 1479 fi 1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1481 test $ac_status = 0; } && { 1482 test -z "$ac_c_werror_flag" || 1483 test ! -s conftest.err 1484 } && test -s conftest.$ac_objext; then : 1485 ac_retval=0 1486else 1487 $as_echo "$as_me: failed program was:" >&5 1488sed 's/^/| /' conftest.$ac_ext >&5 1489 1490 ac_retval=1 1491fi 1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1493 as_fn_set_status $ac_retval 1494 1495} # ac_fn_c_try_compile 1496 1497# ac_fn_c_try_cpp LINENO 1498# ---------------------- 1499# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_cpp () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 if { { ac_try="$ac_cpp conftest.$ac_ext" 1504case "(($ac_try" in 1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1506 *) ac_try_echo=$ac_try;; 1507esac 1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1509$as_echo "$ac_try_echo"; } >&5 1510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1511 ac_status=$? 1512 if test -s conftest.err; then 1513 grep -v '^ *+' conftest.err >conftest.er1 1514 cat conftest.er1 >&5 1515 mv -f conftest.er1 conftest.err 1516 fi 1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1518 test $ac_status = 0; } > conftest.i && { 1519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1520 test ! -s conftest.err 1521 }; then : 1522 ac_retval=0 1523else 1524 $as_echo "$as_me: failed program was:" >&5 1525sed 's/^/| /' conftest.$ac_ext >&5 1526 1527 ac_retval=1 1528fi 1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1530 as_fn_set_status $ac_retval 1531 1532} # ac_fn_c_try_cpp 1533 1534# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1535# ------------------------------------------------------- 1536# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1537# the include files in INCLUDES and setting the cache variable VAR 1538# accordingly. 1539ac_fn_c_check_header_mongrel () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 if eval \${$3+:} false; then : 1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1544$as_echo_n "checking for $2... " >&6; } 1545if eval \${$3+:} false; then : 1546 $as_echo_n "(cached) " >&6 1547fi 1548eval ac_res=\$$3 1549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1550$as_echo "$ac_res" >&6; } 1551else 1552 # Is the header compilable? 1553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1554$as_echo_n "checking $2 usability... " >&6; } 1555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1556/* end confdefs.h. */ 1557$4 1558#include <$2> 1559_ACEOF 1560if ac_fn_c_try_compile "$LINENO"; then : 1561 ac_header_compiler=yes 1562else 1563 ac_header_compiler=no 1564fi 1565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1567$as_echo "$ac_header_compiler" >&6; } 1568 1569# Is the header present? 1570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1571$as_echo_n "checking $2 presence... " >&6; } 1572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574#include <$2> 1575_ACEOF 1576if ac_fn_c_try_cpp "$LINENO"; then : 1577 ac_header_preproc=yes 1578else 1579 ac_header_preproc=no 1580fi 1581rm -f conftest.err conftest.i conftest.$ac_ext 1582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1583$as_echo "$ac_header_preproc" >&6; } 1584 1585# So? What about this header? 1586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1587 yes:no: ) 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1589$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1591$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1592 ;; 1593 no:yes:* ) 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1595$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1597$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1599$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1601$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1603$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1604 ;; 1605esac 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607$as_echo_n "checking for $2... " >&6; } 1608if eval \${$3+:} false; then : 1609 $as_echo_n "(cached) " >&6 1610else 1611 eval "$3=\$ac_header_compiler" 1612fi 1613eval ac_res=\$$3 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1615$as_echo "$ac_res" >&6; } 1616fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 1619} # ac_fn_c_check_header_mongrel 1620 1621# ac_fn_c_try_run LINENO 1622# ---------------------- 1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1624# that executables *can* be run. 1625ac_fn_c_try_run () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if { { ac_try="$ac_link" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_link") 2>&5 1636 ac_status=$? 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1639 { { case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_try") 2>&5 1646 ac_status=$? 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; }; }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: program exited with status $ac_status" >&5 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=$ac_status 1656fi 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_run 1662 1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664# ------------------------------------------------------- 1665# Tests whether HEADER exists and can be compiled using the include files in 1666# INCLUDES, setting the cache variable VAR accordingly. 1667ac_fn_c_check_header_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677$4 1678#include <$2> 1679_ACEOF 1680if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682else 1683 eval "$3=no" 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692} # ac_fn_c_check_header_compile 1693 1694# ac_fn_c_try_link LINENO 1695# ----------------------- 1696# Try to link conftest.$ac_ext, and return whether this succeeded. 1697ac_fn_c_try_link () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 rm -f conftest.$ac_objext conftest$ac_exeext 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { 1717 test -z "$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 } && test -s conftest$ac_exeext && { 1720 test "$cross_compiling" = yes || 1721 test -x conftest$ac_exeext 1722 }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1732 # interfere with the next link command; also delete a directory that is 1733 # left behind by Apple's compiler. We do this before executing the actions. 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_link 1739 1740# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1741# ------------------------------------------- 1742# Tests whether TYPE exists after having included INCLUDES, setting cache 1743# variable VAR accordingly. 1744ac_fn_c_check_type () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748$as_echo_n "checking for $2... " >&6; } 1749if eval \${$3+:} false; then : 1750 $as_echo_n "(cached) " >&6 1751else 1752 eval "$3=no" 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755$4 1756int 1757main () 1758{ 1759if (sizeof ($2)) 1760 return 0; 1761 ; 1762 return 0; 1763} 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO"; then : 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769int 1770main () 1771{ 1772if (sizeof (($2))) 1773 return 0; 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778if ac_fn_c_try_compile "$LINENO"; then : 1779 1780else 1781 eval "$3=yes" 1782fi 1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_type 1793 1794# ac_fn_c_check_func LINENO FUNC VAR 1795# ---------------------------------- 1796# Tests whether FUNC exists, setting the cache variable VAR accordingly 1797ac_fn_c_check_func () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1801$as_echo_n "checking for $2... " >&6; } 1802if eval \${$3+:} false; then : 1803 $as_echo_n "(cached) " >&6 1804else 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1809#define $2 innocuous_$2 1810 1811/* System header to define __stub macros and hopefully few prototypes, 1812 which can conflict with char $2 (); below. 1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1814 <limits.h> exists even on freestanding compilers. */ 1815 1816#ifdef __STDC__ 1817# include <limits.h> 1818#else 1819# include <assert.h> 1820#endif 1821 1822#undef $2 1823 1824/* Override any GCC internal prototype to avoid an error. 1825 Use char because int might match the return type of a GCC 1826 builtin and then its argument prototype would still apply. */ 1827#ifdef __cplusplus 1828extern "C" 1829#endif 1830char $2 (); 1831/* The GNU C library defines this for functions which it implements 1832 to always fail with ENOSYS. Some functions are actually named 1833 something starting with __ and the normal name is an alias. */ 1834#if defined __stub_$2 || defined __stub___$2 1835choke me 1836#endif 1837 1838int 1839main () 1840{ 1841return $2 (); 1842 ; 1843 return 0; 1844} 1845_ACEOF 1846if ac_fn_c_try_link "$LINENO"; then : 1847 eval "$3=yes" 1848else 1849 eval "$3=no" 1850fi 1851rm -f core conftest.err conftest.$ac_objext \ 1852 conftest$ac_exeext conftest.$ac_ext 1853fi 1854eval ac_res=\$$3 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1856$as_echo "$ac_res" >&6; } 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_func 1860cat >config.log <<_ACEOF 1861This file contains any messages produced by compilers while 1862running configure, to aid debugging if configure makes a mistake. 1863 1864It was created by $as_me, which was 1865generated by GNU Autoconf 2.69. Invocation command line was 1866 1867 $ $0 $@ 1868 1869_ACEOF 1870exec 5>>config.log 1871{ 1872cat <<_ASUNAME 1873## --------- ## 1874## Platform. ## 1875## --------- ## 1876 1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1878uname -m = `(uname -m) 2>/dev/null || echo unknown` 1879uname -r = `(uname -r) 2>/dev/null || echo unknown` 1880uname -s = `(uname -s) 2>/dev/null || echo unknown` 1881uname -v = `(uname -v) 2>/dev/null || echo unknown` 1882 1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1884/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1885 1886/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1887/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1889/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1890/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1891/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1892/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1893 1894_ASUNAME 1895 1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1897for as_dir in $PATH 1898do 1899 IFS=$as_save_IFS 1900 test -z "$as_dir" && as_dir=. 1901 $as_echo "PATH: $as_dir" 1902 done 1903IFS=$as_save_IFS 1904 1905} >&5 1906 1907cat >&5 <<_ACEOF 1908 1909 1910## ----------- ## 1911## Core tests. ## 1912## ----------- ## 1913 1914_ACEOF 1915 1916 1917# Keep a trace of the command line. 1918# Strip out --no-create and --no-recursion so they do not pile up. 1919# Strip out --silent because we don't want to record it for future runs. 1920# Also quote any args containing shell meta-characters. 1921# Make two passes to allow for proper duplicate-argument suppression. 1922ac_configure_args= 1923ac_configure_args0= 1924ac_configure_args1= 1925ac_must_keep_next=false 1926for ac_pass in 1 2 1927do 1928 for ac_arg 1929 do 1930 case $ac_arg in 1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1933 | -silent | --silent | --silen | --sile | --sil) 1934 continue ;; 1935 *\'*) 1936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1937 esac 1938 case $ac_pass in 1939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1940 2) 1941 as_fn_append ac_configure_args1 " '$ac_arg'" 1942 if test $ac_must_keep_next = true; then 1943 ac_must_keep_next=false # Got value, back to normal. 1944 else 1945 case $ac_arg in 1946 *=* | --config-cache | -C | -disable-* | --disable-* \ 1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1949 | -with-* | --with-* | -without-* | --without-* | --x) 1950 case "$ac_configure_args0 " in 1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1952 esac 1953 ;; 1954 -* ) ac_must_keep_next=true ;; 1955 esac 1956 fi 1957 as_fn_append ac_configure_args " '$ac_arg'" 1958 ;; 1959 esac 1960 done 1961done 1962{ ac_configure_args0=; unset ac_configure_args0;} 1963{ ac_configure_args1=; unset ac_configure_args1;} 1964 1965# When interrupted or exit'd, cleanup temporary files, and complete 1966# config.log. We remove comments because anyway the quotes in there 1967# would cause problems or look ugly. 1968# WARNING: Use '\'' to represent an apostrophe within the trap. 1969# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1970trap 'exit_status=$? 1971 # Save into config.log some information that might help in debugging. 1972 { 1973 echo 1974 1975 $as_echo "## ---------------- ## 1976## Cache variables. ## 1977## ---------------- ##" 1978 echo 1979 # The following way of writing the cache mishandles newlines in values, 1980( 1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in #( 1984 *${as_nl}*) 1985 case $ac_var in #( 1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1988 esac 1989 case $ac_var in #( 1990 _ | IFS | as_nl) ;; #( 1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1992 *) { eval $ac_var=; unset $ac_var;} ;; 1993 esac ;; 1994 esac 1995 done 1996 (set) 2>&1 | 1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1998 *${as_nl}ac_space=\ *) 1999 sed -n \ 2000 "s/'\''/'\''\\\\'\'''\''/g; 2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2002 ;; #( 2003 *) 2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2005 ;; 2006 esac | 2007 sort 2008) 2009 echo 2010 2011 $as_echo "## ----------------- ## 2012## Output variables. ## 2013## ----------------- ##" 2014 echo 2015 for ac_var in $ac_subst_vars 2016 do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in 2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2020 esac 2021 $as_echo "$ac_var='\''$ac_val'\''" 2022 done | sort 2023 echo 2024 2025 if test -n "$ac_subst_files"; then 2026 $as_echo "## ------------------- ## 2027## File substitutions. ## 2028## ------------------- ##" 2029 echo 2030 for ac_var in $ac_subst_files 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 fi 2040 2041 if test -s confdefs.h; then 2042 $as_echo "## ----------- ## 2043## confdefs.h. ## 2044## ----------- ##" 2045 echo 2046 cat confdefs.h 2047 echo 2048 fi 2049 test "$ac_signal" != 0 && 2050 $as_echo "$as_me: caught signal $ac_signal" 2051 $as_echo "$as_me: exit $exit_status" 2052 } >&5 2053 rm -f core *.core core.conftest.* && 2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2055 exit $exit_status 2056' 0 2057for ac_signal in 1 2 13 15; do 2058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2059done 2060ac_signal=0 2061 2062# confdefs.h avoids OS command line length limits that DEFS can exceed. 2063rm -f -r conftest* confdefs.h 2064 2065$as_echo "/* confdefs.h */" > confdefs.h 2066 2067# Predefined preprocessor variables. 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_NAME "$PACKAGE_NAME" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2075_ACEOF 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_VERSION "$PACKAGE_VERSION" 2079_ACEOF 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE_STRING "$PACKAGE_STRING" 2083_ACEOF 2084 2085cat >>confdefs.h <<_ACEOF 2086#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2087_ACEOF 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_URL "$PACKAGE_URL" 2091_ACEOF 2092 2093 2094# Let the site file select an alternate cache file if it wants to. 2095# Prefer an explicitly selected file to automatically selected ones. 2096ac_site_file1=NONE 2097ac_site_file2=NONE 2098if test -n "$CONFIG_SITE"; then 2099 # We do not want a PATH search for config.site. 2100 case $CONFIG_SITE in #(( 2101 -*) ac_site_file1=./$CONFIG_SITE;; 2102 */*) ac_site_file1=$CONFIG_SITE;; 2103 *) ac_site_file1=./$CONFIG_SITE;; 2104 esac 2105elif test "x$prefix" != xNONE; then 2106 ac_site_file1=$prefix/share/config.site 2107 ac_site_file2=$prefix/etc/config.site 2108else 2109 ac_site_file1=$ac_default_prefix/share/config.site 2110 ac_site_file2=$ac_default_prefix/etc/config.site 2111fi 2112for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2113do 2114 test "x$ac_site_file" = xNONE && continue 2115 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2117$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2118 sed 's/^/| /' "$ac_site_file" >&5 2119 . "$ac_site_file" \ 2120 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2122as_fn_error $? "failed to load site script $ac_site_file 2123See \`config.log' for more details" "$LINENO" 5; } 2124 fi 2125done 2126 2127if test -r "$cache_file"; then 2128 # Some versions of bash will fail to source /dev/null (special files 2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2132$as_echo "$as_me: loading cache $cache_file" >&6;} 2133 case $cache_file in 2134 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2135 *) . "./$cache_file";; 2136 esac 2137 fi 2138else 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2140$as_echo "$as_me: creating cache $cache_file" >&6;} 2141 >$cache_file 2142fi 2143 2144as_fn_append ac_header_list " stdlib.h" 2145as_fn_append ac_header_list " unistd.h" 2146as_fn_append ac_header_list " sys/param.h" 2147# Check that the precious variables saved in the cache have kept the same 2148# value. 2149ac_cache_corrupted=false 2150for ac_var in $ac_precious_vars; do 2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2152 eval ac_new_set=\$ac_env_${ac_var}_set 2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2154 eval ac_new_val=\$ac_env_${ac_var}_value 2155 case $ac_old_set,$ac_new_set in 2156 set,) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2158$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2159 ac_cache_corrupted=: ;; 2160 ,set) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2162$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2163 ac_cache_corrupted=: ;; 2164 ,);; 2165 *) 2166 if test "x$ac_old_val" != "x$ac_new_val"; then 2167 # differences in whitespace do not lead to failure. 2168 ac_old_val_w=`echo x $ac_old_val` 2169 ac_new_val_w=`echo x $ac_new_val` 2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2172$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2173 ac_cache_corrupted=: 2174 else 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2176$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2177 eval $ac_var=\$ac_old_val 2178 fi 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2180$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2182$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2183 fi;; 2184 esac 2185 # Pass precious variables to config.status. 2186 if test "$ac_new_set" = set; then 2187 case $ac_new_val in 2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2189 *) ac_arg=$ac_var=$ac_new_val ;; 2190 esac 2191 case " $ac_configure_args " in 2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2194 esac 2195 fi 2196done 2197if $ac_cache_corrupted; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2201$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2203fi 2204## -------------------- ## 2205## Main body of script. ## 2206## -------------------- ## 2207 2208ac_ext=c 2209ac_cpp='$CPP $CPPFLAGS' 2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2212ac_compiler_gnu=$ac_cv_c_compiler_gnu 2213 2214 2215 2216 2217 2218ac_ext=c 2219ac_cpp='$CPP $CPPFLAGS' 2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2222ac_compiler_gnu=$ac_cv_c_compiler_gnu 2223if test -n "$ac_tool_prefix"; then 2224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2225set dummy ${ac_tool_prefix}gcc; ac_word=$2 2226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2227$as_echo_n "checking for $ac_word... " >&6; } 2228if ${ac_cv_prog_CC+:} false; then : 2229 $as_echo_n "(cached) " >&6 2230else 2231 if test -n "$CC"; then 2232 ac_cv_prog_CC="$CC" # Let the user override the test. 2233else 2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2235for as_dir in $PATH 2236do 2237 IFS=$as_save_IFS 2238 test -z "$as_dir" && as_dir=. 2239 for ac_exec_ext in '' $ac_executable_extensions; do 2240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2241 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2243 break 2 2244 fi 2245done 2246 done 2247IFS=$as_save_IFS 2248 2249fi 2250fi 2251CC=$ac_cv_prog_CC 2252if test -n "$CC"; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2254$as_echo "$CC" >&6; } 2255else 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2257$as_echo "no" >&6; } 2258fi 2259 2260 2261fi 2262if test -z "$ac_cv_prog_CC"; then 2263 ac_ct_CC=$CC 2264 # Extract the first word of "gcc", so it can be a program name with args. 2265set dummy gcc; ac_word=$2 2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2267$as_echo_n "checking for $ac_word... " >&6; } 2268if ${ac_cv_prog_ac_ct_CC+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270else 2271 if test -n "$ac_ct_CC"; then 2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2273else 2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2275for as_dir in $PATH 2276do 2277 IFS=$as_save_IFS 2278 test -z "$as_dir" && as_dir=. 2279 for ac_exec_ext in '' $ac_executable_extensions; do 2280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2281 ac_cv_prog_ac_ct_CC="gcc" 2282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2283 break 2 2284 fi 2285done 2286 done 2287IFS=$as_save_IFS 2288 2289fi 2290fi 2291ac_ct_CC=$ac_cv_prog_ac_ct_CC 2292if test -n "$ac_ct_CC"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2294$as_echo "$ac_ct_CC" >&6; } 2295else 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2297$as_echo "no" >&6; } 2298fi 2299 2300 if test "x$ac_ct_CC" = x; then 2301 CC="" 2302 else 2303 case $cross_compiling:$ac_tool_warned in 2304yes:) 2305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2307ac_tool_warned=yes ;; 2308esac 2309 CC=$ac_ct_CC 2310 fi 2311else 2312 CC="$ac_cv_prog_CC" 2313fi 2314 2315if test -z "$CC"; then 2316 if test -n "$ac_tool_prefix"; then 2317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2318set dummy ${ac_tool_prefix}cc; ac_word=$2 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2320$as_echo_n "checking for $ac_word... " >&6; } 2321if ${ac_cv_prog_CC+:} false; then : 2322 $as_echo_n "(cached) " >&6 2323else 2324 if test -n "$CC"; then 2325 ac_cv_prog_CC="$CC" # Let the user override the test. 2326else 2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2328for as_dir in $PATH 2329do 2330 IFS=$as_save_IFS 2331 test -z "$as_dir" && as_dir=. 2332 for ac_exec_ext in '' $ac_executable_extensions; do 2333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2334 ac_cv_prog_CC="${ac_tool_prefix}cc" 2335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2336 break 2 2337 fi 2338done 2339 done 2340IFS=$as_save_IFS 2341 2342fi 2343fi 2344CC=$ac_cv_prog_CC 2345if test -n "$CC"; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2347$as_echo "$CC" >&6; } 2348else 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2350$as_echo "no" >&6; } 2351fi 2352 2353 2354 fi 2355fi 2356if test -z "$CC"; then 2357 # Extract the first word of "cc", so it can be a program name with args. 2358set dummy cc; ac_word=$2 2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2360$as_echo_n "checking for $ac_word... " >&6; } 2361if ${ac_cv_prog_CC+:} false; then : 2362 $as_echo_n "(cached) " >&6 2363else 2364 if test -n "$CC"; then 2365 ac_cv_prog_CC="$CC" # Let the user override the test. 2366else 2367 ac_prog_rejected=no 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2376 ac_prog_rejected=yes 2377 continue 2378 fi 2379 ac_cv_prog_CC="cc" 2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2381 break 2 2382 fi 2383done 2384 done 2385IFS=$as_save_IFS 2386 2387if test $ac_prog_rejected = yes; then 2388 # We found a bogon in the path, so make sure we never use it. 2389 set dummy $ac_cv_prog_CC 2390 shift 2391 if test $# != 0; then 2392 # We chose a different compiler from the bogus one. 2393 # However, it has the same basename, so the bogon will be chosen 2394 # first if we set CC to just the basename; use the full file name. 2395 shift 2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2397 fi 2398fi 2399fi 2400fi 2401CC=$ac_cv_prog_CC 2402if test -n "$CC"; then 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2404$as_echo "$CC" >&6; } 2405else 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2407$as_echo "no" >&6; } 2408fi 2409 2410 2411fi 2412if test -z "$CC"; then 2413 if test -n "$ac_tool_prefix"; then 2414 for ac_prog in cl.exe 2415 do 2416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2419$as_echo_n "checking for $ac_word... " >&6; } 2420if ${ac_cv_prog_CC+:} false; then : 2421 $as_echo_n "(cached) " >&6 2422else 2423 if test -n "$CC"; then 2424 ac_cv_prog_CC="$CC" # Let the user override the test. 2425else 2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427for as_dir in $PATH 2428do 2429 IFS=$as_save_IFS 2430 test -z "$as_dir" && as_dir=. 2431 for ac_exec_ext in '' $ac_executable_extensions; do 2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2435 break 2 2436 fi 2437done 2438 done 2439IFS=$as_save_IFS 2440 2441fi 2442fi 2443CC=$ac_cv_prog_CC 2444if test -n "$CC"; then 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2446$as_echo "$CC" >&6; } 2447else 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2449$as_echo "no" >&6; } 2450fi 2451 2452 2453 test -n "$CC" && break 2454 done 2455fi 2456if test -z "$CC"; then 2457 ac_ct_CC=$CC 2458 for ac_prog in cl.exe 2459do 2460 # Extract the first word of "$ac_prog", so it can be a program name with args. 2461set dummy $ac_prog; ac_word=$2 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if ${ac_cv_prog_ac_ct_CC+:} false; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$ac_ct_CC"; then 2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2477 ac_cv_prog_ac_ct_CC="$ac_prog" 2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482 done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487ac_ct_CC=$ac_cv_prog_ac_ct_CC 2488if test -n "$ac_ct_CC"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2490$as_echo "$ac_ct_CC" >&6; } 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497 test -n "$ac_ct_CC" && break 2498done 2499 2500 if test "x$ac_ct_CC" = x; then 2501 CC="" 2502 else 2503 case $cross_compiling:$ac_tool_warned in 2504yes:) 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2507ac_tool_warned=yes ;; 2508esac 2509 CC=$ac_ct_CC 2510 fi 2511fi 2512 2513fi 2514 2515 2516test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2518as_fn_error $? "no acceptable C compiler found in \$PATH 2519See \`config.log' for more details" "$LINENO" 5; } 2520 2521# Provide some information about the compiler. 2522$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2523set X $ac_compile 2524ac_compiler=$2 2525for ac_option in --version -v -V -qversion; do 2526 { { ac_try="$ac_compiler $ac_option >&5" 2527case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530esac 2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2532$as_echo "$ac_try_echo"; } >&5 2533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2534 ac_status=$? 2535 if test -s conftest.err; then 2536 sed '10a\ 2537... rest of stderr output deleted ... 2538 10q' conftest.err >conftest.er1 2539 cat conftest.er1 >&5 2540 fi 2541 rm -f conftest.er1 conftest.err 2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2543 test $ac_status = 0; } 2544done 2545 2546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2547/* end confdefs.h. */ 2548 2549int 2550main () 2551{ 2552 2553 ; 2554 return 0; 2555} 2556_ACEOF 2557ac_clean_files_save=$ac_clean_files 2558ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2559# Try to create an executable without -o first, disregard a.out. 2560# It will help us diagnose broken compilers, and finding out an intuition 2561# of exeext. 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2563$as_echo_n "checking whether the C compiler works... " >&6; } 2564ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2565 2566# The possible output files: 2567ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2568 2569ac_rmfiles= 2570for ac_file in $ac_files 2571do 2572 case $ac_file in 2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2574 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2575 esac 2576done 2577rm -f $ac_rmfiles 2578 2579if { { ac_try="$ac_link_default" 2580case "(($ac_try" in 2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2582 *) ac_try_echo=$ac_try;; 2583esac 2584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2585$as_echo "$ac_try_echo"; } >&5 2586 (eval "$ac_link_default") 2>&5 2587 ac_status=$? 2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2589 test $ac_status = 0; }; then : 2590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2591# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2592# in a Makefile. We should not override ac_cv_exeext if it was cached, 2593# so that the user can short-circuit this test for compilers unknown to 2594# Autoconf. 2595for ac_file in $ac_files '' 2596do 2597 test -f "$ac_file" || continue 2598 case $ac_file in 2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2600 ;; 2601 [ab].out ) 2602 # We found the default executable, but exeext='' is most 2603 # certainly right. 2604 break;; 2605 *.* ) 2606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2607 then :; else 2608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2609 fi 2610 # We set ac_cv_exeext here because the later test for it is not 2611 # safe: cross compilers may not add the suffix if given an `-o' 2612 # argument, so we may need to know it at that point already. 2613 # Even if this section looks crufty: it has the advantage of 2614 # actually working. 2615 break;; 2616 * ) 2617 break;; 2618 esac 2619done 2620test "$ac_cv_exeext" = no && ac_cv_exeext= 2621 2622else 2623 ac_file='' 2624fi 2625if test -z "$ac_file"; then : 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628$as_echo "$as_me: failed program was:" >&5 2629sed 's/^/| /' conftest.$ac_ext >&5 2630 2631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2633as_fn_error 77 "C compiler cannot create executables 2634See \`config.log' for more details" "$LINENO" 5; } 2635else 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2637$as_echo "yes" >&6; } 2638fi 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2640$as_echo_n "checking for C compiler default output file name... " >&6; } 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2642$as_echo "$ac_file" >&6; } 2643ac_exeext=$ac_cv_exeext 2644 2645rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2646ac_clean_files=$ac_clean_files_save 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2648$as_echo_n "checking for suffix of executables... " >&6; } 2649if { { ac_try="$ac_link" 2650case "(($ac_try" in 2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2652 *) ac_try_echo=$ac_try;; 2653esac 2654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2655$as_echo "$ac_try_echo"; } >&5 2656 (eval "$ac_link") 2>&5 2657 ac_status=$? 2658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2659 test $ac_status = 0; }; then : 2660 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2661# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2662# work properly (i.e., refer to `conftest.exe'), while it won't with 2663# `rm'. 2664for ac_file in conftest.exe conftest conftest.*; do 2665 test -f "$ac_file" || continue 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2669 break;; 2670 * ) break;; 2671 esac 2672done 2673else 2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2676as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2677See \`config.log' for more details" "$LINENO" 5; } 2678fi 2679rm -f conftest conftest$ac_cv_exeext 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2681$as_echo "$ac_cv_exeext" >&6; } 2682 2683rm -f conftest.$ac_ext 2684EXEEXT=$ac_cv_exeext 2685ac_exeext=$EXEEXT 2686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687/* end confdefs.h. */ 2688#include <stdio.h> 2689int 2690main () 2691{ 2692FILE *f = fopen ("conftest.out", "w"); 2693 return ferror (f) || fclose (f) != 0; 2694 2695 ; 2696 return 0; 2697} 2698_ACEOF 2699ac_clean_files="$ac_clean_files conftest.out" 2700# Check that the compiler produces executables we can run. If not, either 2701# the compiler is broken, or we cross compile. 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2703$as_echo_n "checking whether we are cross compiling... " >&6; } 2704if test "$cross_compiling" != yes; then 2705 { { ac_try="$ac_link" 2706case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709esac 2710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2711$as_echo "$ac_try_echo"; } >&5 2712 (eval "$ac_link") 2>&5 2713 ac_status=$? 2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2715 test $ac_status = 0; } 2716 if { ac_try='./conftest$ac_cv_exeext' 2717 { { case "(($ac_try" in 2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2719 *) ac_try_echo=$ac_try;; 2720esac 2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2722$as_echo "$ac_try_echo"; } >&5 2723 (eval "$ac_try") 2>&5 2724 ac_status=$? 2725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2726 test $ac_status = 0; }; }; then 2727 cross_compiling=no 2728 else 2729 if test "$cross_compiling" = maybe; then 2730 cross_compiling=yes 2731 else 2732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2734as_fn_error $? "cannot run C compiled programs. 2735If you meant to cross compile, use \`--host'. 2736See \`config.log' for more details" "$LINENO" 5; } 2737 fi 2738 fi 2739fi 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2741$as_echo "$cross_compiling" >&6; } 2742 2743rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2744ac_clean_files=$ac_clean_files_save 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2746$as_echo_n "checking for suffix of object files... " >&6; } 2747if ${ac_cv_objext+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2751/* end confdefs.h. */ 2752 2753int 2754main () 2755{ 2756 2757 ; 2758 return 0; 2759} 2760_ACEOF 2761rm -f conftest.o conftest.obj 2762if { { ac_try="$ac_compile" 2763case "(($ac_try" in 2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2765 *) ac_try_echo=$ac_try;; 2766esac 2767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2768$as_echo "$ac_try_echo"; } >&5 2769 (eval "$ac_compile") 2>&5 2770 ac_status=$? 2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2772 test $ac_status = 0; }; then : 2773 for ac_file in conftest.o conftest.obj conftest.*; do 2774 test -f "$ac_file" || continue; 2775 case $ac_file in 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2778 break;; 2779 esac 2780done 2781else 2782 $as_echo "$as_me: failed program was:" >&5 2783sed 's/^/| /' conftest.$ac_ext >&5 2784 2785{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2787as_fn_error $? "cannot compute suffix of object files: cannot compile 2788See \`config.log' for more details" "$LINENO" 5; } 2789fi 2790rm -f conftest.$ac_cv_objext conftest.$ac_ext 2791fi 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2793$as_echo "$ac_cv_objext" >&6; } 2794OBJEXT=$ac_cv_objext 2795ac_objext=$OBJEXT 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2797$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2798if ${ac_cv_c_compiler_gnu+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2802/* end confdefs.h. */ 2803 2804int 2805main () 2806{ 2807#ifndef __GNUC__ 2808 choke me 2809#endif 2810 2811 ; 2812 return 0; 2813} 2814_ACEOF 2815if ac_fn_c_try_compile "$LINENO"; then : 2816 ac_compiler_gnu=yes 2817else 2818 ac_compiler_gnu=no 2819fi 2820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2821ac_cv_c_compiler_gnu=$ac_compiler_gnu 2822 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2825$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2826if test $ac_compiler_gnu = yes; then 2827 GCC=yes 2828else 2829 GCC= 2830fi 2831ac_test_CFLAGS=${CFLAGS+set} 2832ac_save_CFLAGS=$CFLAGS 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2834$as_echo_n "checking whether $CC accepts -g... " >&6; } 2835if ${ac_cv_prog_cc_g+:} false; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 ac_save_c_werror_flag=$ac_c_werror_flag 2839 ac_c_werror_flag=yes 2840 ac_cv_prog_cc_g=no 2841 CFLAGS="-g" 2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2843/* end confdefs.h. */ 2844 2845int 2846main () 2847{ 2848 2849 ; 2850 return 0; 2851} 2852_ACEOF 2853if ac_fn_c_try_compile "$LINENO"; then : 2854 ac_cv_prog_cc_g=yes 2855else 2856 CFLAGS="" 2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2858/* end confdefs.h. */ 2859 2860int 2861main () 2862{ 2863 2864 ; 2865 return 0; 2866} 2867_ACEOF 2868if ac_fn_c_try_compile "$LINENO"; then : 2869 2870else 2871 ac_c_werror_flag=$ac_save_c_werror_flag 2872 CFLAGS="-g" 2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2874/* end confdefs.h. */ 2875 2876int 2877main () 2878{ 2879 2880 ; 2881 return 0; 2882} 2883_ACEOF 2884if ac_fn_c_try_compile "$LINENO"; then : 2885 ac_cv_prog_cc_g=yes 2886fi 2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2888fi 2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2890fi 2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2892 ac_c_werror_flag=$ac_save_c_werror_flag 2893fi 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2895$as_echo "$ac_cv_prog_cc_g" >&6; } 2896if test "$ac_test_CFLAGS" = set; then 2897 CFLAGS=$ac_save_CFLAGS 2898elif test $ac_cv_prog_cc_g = yes; then 2899 if test "$GCC" = yes; then 2900 CFLAGS="-g -O2" 2901 else 2902 CFLAGS="-g" 2903 fi 2904else 2905 if test "$GCC" = yes; then 2906 CFLAGS="-O2" 2907 else 2908 CFLAGS= 2909 fi 2910fi 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2912$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2913if ${ac_cv_prog_cc_c89+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 ac_cv_prog_cc_c89=no 2917ac_save_CC=$CC 2918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2919/* end confdefs.h. */ 2920#include <stdarg.h> 2921#include <stdio.h> 2922struct stat; 2923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2924struct buf { int x; }; 2925FILE * (*rcsopen) (struct buf *, struct stat *, int); 2926static char *e (p, i) 2927 char **p; 2928 int i; 2929{ 2930 return p[i]; 2931} 2932static char *f (char * (*g) (char **, int), char **p, ...) 2933{ 2934 char *s; 2935 va_list v; 2936 va_start (v,p); 2937 s = g (p, va_arg (v,int)); 2938 va_end (v); 2939 return s; 2940} 2941 2942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2943 function prototypes and stuff, but not '\xHH' hex character constants. 2944 These don't provoke an error unfortunately, instead are silently treated 2945 as 'x'. The following induces an error, until -std is added to get 2946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2947 array size at least. It's necessary to write '\x00'==0 to get something 2948 that's true only with -std. */ 2949int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2950 2951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2952 inside strings and character constants. */ 2953#define FOO(x) 'x' 2954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2955 2956int test (int i, double x); 2957struct s1 {int (*f) (int a);}; 2958struct s2 {int (*f) (double a);}; 2959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2960int argc; 2961char **argv; 2962int 2963main () 2964{ 2965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2972do 2973 CC="$ac_save_CC $ac_arg" 2974 if ac_fn_c_try_compile "$LINENO"; then : 2975 ac_cv_prog_cc_c89=$ac_arg 2976fi 2977rm -f core conftest.err conftest.$ac_objext 2978 test "x$ac_cv_prog_cc_c89" != "xno" && break 2979done 2980rm -f conftest.$ac_ext 2981CC=$ac_save_CC 2982 2983fi 2984# AC_CACHE_VAL 2985case "x$ac_cv_prog_cc_c89" in 2986 x) 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2988$as_echo "none needed" >&6; } ;; 2989 xno) 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2991$as_echo "unsupported" >&6; } ;; 2992 *) 2993 CC="$CC $ac_cv_prog_cc_c89" 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2996esac 2997if test "x$ac_cv_prog_cc_c89" != xno; then : 2998 2999fi 3000 3001ac_ext=c 3002ac_cpp='$CPP $CPPFLAGS' 3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3005ac_compiler_gnu=$ac_cv_c_compiler_gnu 3006 3007 3008ac_ext=c 3009ac_cpp='$CPP $CPPFLAGS' 3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3012ac_compiler_gnu=$ac_cv_c_compiler_gnu 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3014$as_echo_n "checking how to run the C preprocessor... " >&6; } 3015# On Suns, sometimes $CPP names a directory. 3016if test -n "$CPP" && test -d "$CPP"; then 3017 CPP= 3018fi 3019if test -z "$CPP"; then 3020 if ${ac_cv_prog_CPP+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 # Double quotes because CPP needs to be expanded 3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3025 do 3026 ac_preproc_ok=false 3027for ac_c_preproc_warn_flag in '' yes 3028do 3029 # Use a header file that comes with gcc, so configuring glibc 3030 # with a fresh cross-compiler works. 3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3032 # <limits.h> exists even on freestanding compilers. 3033 # On the NeXT, cc -E runs the code through the compiler's parser, 3034 # not just through cpp. "Syntax error" is here to catch this case. 3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3036/* end confdefs.h. */ 3037#ifdef __STDC__ 3038# include <limits.h> 3039#else 3040# include <assert.h> 3041#endif 3042 Syntax error 3043_ACEOF 3044if ac_fn_c_try_cpp "$LINENO"; then : 3045 3046else 3047 # Broken: fails on valid input. 3048continue 3049fi 3050rm -f conftest.err conftest.i conftest.$ac_ext 3051 3052 # OK, works on sane cases. Now check whether nonexistent headers 3053 # can be detected and how. 3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3055/* end confdefs.h. */ 3056#include <ac_nonexistent.h> 3057_ACEOF 3058if ac_fn_c_try_cpp "$LINENO"; then : 3059 # Broken: success on invalid input. 3060continue 3061else 3062 # Passes both tests. 3063ac_preproc_ok=: 3064break 3065fi 3066rm -f conftest.err conftest.i conftest.$ac_ext 3067 3068done 3069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3070rm -f conftest.i conftest.err conftest.$ac_ext 3071if $ac_preproc_ok; then : 3072 break 3073fi 3074 3075 done 3076 ac_cv_prog_CPP=$CPP 3077 3078fi 3079 CPP=$ac_cv_prog_CPP 3080else 3081 ac_cv_prog_CPP=$CPP 3082fi 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3084$as_echo "$CPP" >&6; } 3085ac_preproc_ok=false 3086for ac_c_preproc_warn_flag in '' yes 3087do 3088 # Use a header file that comes with gcc, so configuring glibc 3089 # with a fresh cross-compiler works. 3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3091 # <limits.h> exists even on freestanding compilers. 3092 # On the NeXT, cc -E runs the code through the compiler's parser, 3093 # not just through cpp. "Syntax error" is here to catch this case. 3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3095/* end confdefs.h. */ 3096#ifdef __STDC__ 3097# include <limits.h> 3098#else 3099# include <assert.h> 3100#endif 3101 Syntax error 3102_ACEOF 3103if ac_fn_c_try_cpp "$LINENO"; then : 3104 3105else 3106 # Broken: fails on valid input. 3107continue 3108fi 3109rm -f conftest.err conftest.i conftest.$ac_ext 3110 3111 # OK, works on sane cases. Now check whether nonexistent headers 3112 # can be detected and how. 3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114/* end confdefs.h. */ 3115#include <ac_nonexistent.h> 3116_ACEOF 3117if ac_fn_c_try_cpp "$LINENO"; then : 3118 # Broken: success on invalid input. 3119continue 3120else 3121 # Passes both tests. 3122ac_preproc_ok=: 3123break 3124fi 3125rm -f conftest.err conftest.i conftest.$ac_ext 3126 3127done 3128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3129rm -f conftest.i conftest.err conftest.$ac_ext 3130if $ac_preproc_ok; then : 3131 3132else 3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3135as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3136See \`config.log' for more details" "$LINENO" 5; } 3137fi 3138 3139ac_ext=c 3140ac_cpp='$CPP $CPPFLAGS' 3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3143ac_compiler_gnu=$ac_cv_c_compiler_gnu 3144 3145 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3147$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3148if ${ac_cv_path_GREP+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -z "$GREP"; then 3152 ac_path_GREP_found=false 3153 # Loop through the user's path and test for each of PROGNAME-LIST 3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_prog in grep ggrep; do 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3162 as_fn_executable_p "$ac_path_GREP" || continue 3163# Check for GNU ac_path_GREP and select it if it is found. 3164 # Check for GNU $ac_path_GREP 3165case `"$ac_path_GREP" --version 2>&1` in 3166*GNU*) 3167 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3168*) 3169 ac_count=0 3170 $as_echo_n 0123456789 >"conftest.in" 3171 while : 3172 do 3173 cat "conftest.in" "conftest.in" >"conftest.tmp" 3174 mv "conftest.tmp" "conftest.in" 3175 cp "conftest.in" "conftest.nl" 3176 $as_echo 'GREP' >> "conftest.nl" 3177 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3179 as_fn_arith $ac_count + 1 && ac_count=$as_val 3180 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3181 # Best one so far, save it but keep looking for a better one 3182 ac_cv_path_GREP="$ac_path_GREP" 3183 ac_path_GREP_max=$ac_count 3184 fi 3185 # 10*(2^10) chars as input seems more than enough 3186 test $ac_count -gt 10 && break 3187 done 3188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3189esac 3190 3191 $ac_path_GREP_found && break 3 3192 done 3193 done 3194 done 3195IFS=$as_save_IFS 3196 if test -z "$ac_cv_path_GREP"; then 3197 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3198 fi 3199else 3200 ac_cv_path_GREP=$GREP 3201fi 3202 3203fi 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3205$as_echo "$ac_cv_path_GREP" >&6; } 3206 GREP="$ac_cv_path_GREP" 3207 3208 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3210$as_echo_n "checking for egrep... " >&6; } 3211if ${ac_cv_path_EGREP+:} false; then : 3212 $as_echo_n "(cached) " >&6 3213else 3214 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3215 then ac_cv_path_EGREP="$GREP -E" 3216 else 3217 if test -z "$EGREP"; then 3218 ac_path_EGREP_found=false 3219 # Loop through the user's path and test for each of PROGNAME-LIST 3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_prog in egrep; do 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3228 as_fn_executable_p "$ac_path_EGREP" || continue 3229# Check for GNU ac_path_EGREP and select it if it is found. 3230 # Check for GNU $ac_path_EGREP 3231case `"$ac_path_EGREP" --version 2>&1` in 3232*GNU*) 3233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3234*) 3235 ac_count=0 3236 $as_echo_n 0123456789 >"conftest.in" 3237 while : 3238 do 3239 cat "conftest.in" "conftest.in" >"conftest.tmp" 3240 mv "conftest.tmp" "conftest.in" 3241 cp "conftest.in" "conftest.nl" 3242 $as_echo 'EGREP' >> "conftest.nl" 3243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3245 as_fn_arith $ac_count + 1 && ac_count=$as_val 3246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3247 # Best one so far, save it but keep looking for a better one 3248 ac_cv_path_EGREP="$ac_path_EGREP" 3249 ac_path_EGREP_max=$ac_count 3250 fi 3251 # 10*(2^10) chars as input seems more than enough 3252 test $ac_count -gt 10 && break 3253 done 3254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3255esac 3256 3257 $ac_path_EGREP_found && break 3 3258 done 3259 done 3260 done 3261IFS=$as_save_IFS 3262 if test -z "$ac_cv_path_EGREP"; then 3263 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3264 fi 3265else 3266 ac_cv_path_EGREP=$EGREP 3267fi 3268 3269 fi 3270fi 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3272$as_echo "$ac_cv_path_EGREP" >&6; } 3273 EGREP="$ac_cv_path_EGREP" 3274 3275 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3277$as_echo_n "checking for ANSI C header files... " >&6; } 3278if ${ac_cv_header_stdc+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3282/* end confdefs.h. */ 3283#include <stdlib.h> 3284#include <stdarg.h> 3285#include <string.h> 3286#include <float.h> 3287 3288int 3289main () 3290{ 3291 3292 ; 3293 return 0; 3294} 3295_ACEOF 3296if ac_fn_c_try_compile "$LINENO"; then : 3297 ac_cv_header_stdc=yes 3298else 3299 ac_cv_header_stdc=no 3300fi 3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3302 3303if test $ac_cv_header_stdc = yes; then 3304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306/* end confdefs.h. */ 3307#include <string.h> 3308 3309_ACEOF 3310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3311 $EGREP "memchr" >/dev/null 2>&1; then : 3312 3313else 3314 ac_cv_header_stdc=no 3315fi 3316rm -f conftest* 3317 3318fi 3319 3320if test $ac_cv_header_stdc = yes; then 3321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324#include <stdlib.h> 3325 3326_ACEOF 3327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3328 $EGREP "free" >/dev/null 2>&1; then : 3329 3330else 3331 ac_cv_header_stdc=no 3332fi 3333rm -f conftest* 3334 3335fi 3336 3337if test $ac_cv_header_stdc = yes; then 3338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3339 if test "$cross_compiling" = yes; then : 3340 : 3341else 3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344#include <ctype.h> 3345#include <stdlib.h> 3346#if ((' ' & 0x0FF) == 0x020) 3347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3349#else 3350# define ISLOWER(c) \ 3351 (('a' <= (c) && (c) <= 'i') \ 3352 || ('j' <= (c) && (c) <= 'r') \ 3353 || ('s' <= (c) && (c) <= 'z')) 3354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3355#endif 3356 3357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3358int 3359main () 3360{ 3361 int i; 3362 for (i = 0; i < 256; i++) 3363 if (XOR (islower (i), ISLOWER (i)) 3364 || toupper (i) != TOUPPER (i)) 3365 return 2; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_run "$LINENO"; then : 3370 3371else 3372 ac_cv_header_stdc=no 3373fi 3374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3375 conftest.$ac_objext conftest.beam conftest.$ac_ext 3376fi 3377 3378fi 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3381$as_echo "$ac_cv_header_stdc" >&6; } 3382if test $ac_cv_header_stdc = yes; then 3383 3384$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3385 3386fi 3387 3388# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3389for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3390 inttypes.h stdint.h unistd.h 3391do : 3392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3393ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3394" 3395if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3396 cat >>confdefs.h <<_ACEOF 3397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3398_ACEOF 3399 3400fi 3401 3402done 3403 3404 3405 3406 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3407if test "x$ac_cv_header_minix_config_h" = xyes; then : 3408 MINIX=yes 3409else 3410 MINIX= 3411fi 3412 3413 3414 if test "$MINIX" = yes; then 3415 3416$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3417 3418 3419$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3420 3421 3422$as_echo "#define _MINIX 1" >>confdefs.h 3423 3424 fi 3425 3426 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3428$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3429if ${ac_cv_safe_to_define___extensions__+:} false; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433/* end confdefs.h. */ 3434 3435# define __EXTENSIONS__ 1 3436 $ac_includes_default 3437int 3438main () 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445if ac_fn_c_try_compile "$LINENO"; then : 3446 ac_cv_safe_to_define___extensions__=yes 3447else 3448 ac_cv_safe_to_define___extensions__=no 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3453$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3454 test $ac_cv_safe_to_define___extensions__ = yes && 3455 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3456 3457 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3458 3459 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3460 3461 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3462 3463 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3464 3465 3466 3467ac_config_headers="$ac_config_headers config.h" 3468 3469 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3472$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3473set x ${MAKE-make} 3474ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3475if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 cat >conftest.make <<\_ACEOF 3479SHELL = /bin/sh 3480all: 3481 @echo '@@@%%%=$(MAKE)=@@@%%%' 3482_ACEOF 3483# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3484case `${MAKE-make} -f conftest.make 2>/dev/null` in 3485 *@@@%%%=?*=@@@%%%*) 3486 eval ac_cv_prog_make_${ac_make}_set=yes;; 3487 *) 3488 eval ac_cv_prog_make_${ac_make}_set=no;; 3489esac 3490rm -f conftest.make 3491fi 3492if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3494$as_echo "yes" >&6; } 3495 SET_MAKE= 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498$as_echo "no" >&6; } 3499 SET_MAKE="MAKE=${MAKE-make}" 3500fi 3501 3502ac_aux_dir= 3503for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3504 if test -f "$ac_dir/install-sh"; then 3505 ac_aux_dir=$ac_dir 3506 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 3507 break 3508 elif test -f "$ac_dir/install.sh"; then 3509 ac_aux_dir=$ac_dir 3510 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 3511 break 3512 elif test -f "$ac_dir/shtool"; then 3513 ac_aux_dir=$ac_dir 3514 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 3515 break 3516 fi 3517done 3518if test -z "$ac_aux_dir"; then 3519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3520fi 3521 3522# These three variables are undocumented and unsupported, 3523# and are intended to be withdrawn in a future Autoconf release. 3524# They can cause serious problems if a builder's source tree is in a directory 3525# whose full name contains unusual characters. 3526ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3527ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3528ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3529 3530 3531# Find a good install program. We prefer a C program (faster), 3532# so one script is as good as another. But avoid the broken or 3533# incompatible versions: 3534# SysV /etc/install, /usr/sbin/install 3535# SunOS /usr/etc/install 3536# IRIX /sbin/install 3537# AIX /bin/install 3538# AmigaOS /C/install, which installs bootblocks on floppy discs 3539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3540# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3542# OS/2's system install, which has a completely different semantic 3543# ./install, which can be erroneously created by make from ./install.sh. 3544# Reject install programs that cannot install multiple files. 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3546$as_echo_n "checking for a BSD-compatible install... " >&6; } 3547if test -z "$INSTALL"; then 3548if ${ac_cv_path_install+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3552for as_dir in $PATH 3553do 3554 IFS=$as_save_IFS 3555 test -z "$as_dir" && as_dir=. 3556 # Account for people who put trailing slashes in PATH elements. 3557case $as_dir/ in #(( 3558 ./ | .// | /[cC]/* | \ 3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3560 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3561 /usr/ucb/* ) ;; 3562 *) 3563 # OSF1 and SCO ODT 3.0 have their own names for install. 3564 # Don't use installbsd from OSF since it installs stuff as root 3565 # by default. 3566 for ac_prog in ginstall scoinst install; do 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3569 if test $ac_prog = install && 3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3571 # AIX install. It has an incompatible calling convention. 3572 : 3573 elif test $ac_prog = install && 3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3575 # program-specific install script used by HP pwplus--don't use. 3576 : 3577 else 3578 rm -rf conftest.one conftest.two conftest.dir 3579 echo one > conftest.one 3580 echo two > conftest.two 3581 mkdir conftest.dir 3582 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3583 test -s conftest.one && test -s conftest.two && 3584 test -s conftest.dir/conftest.one && 3585 test -s conftest.dir/conftest.two 3586 then 3587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3588 break 3 3589 fi 3590 fi 3591 fi 3592 done 3593 done 3594 ;; 3595esac 3596 3597 done 3598IFS=$as_save_IFS 3599 3600rm -rf conftest.one conftest.two conftest.dir 3601 3602fi 3603 if test "${ac_cv_path_install+set}" = set; then 3604 INSTALL=$ac_cv_path_install 3605 else 3606 # As a last resort, use the slow shell script. Don't cache a 3607 # value for INSTALL within a source directory, because that will 3608 # break other packages using the cache if that directory is 3609 # removed, or if the value is a relative name. 3610 INSTALL=$ac_install_sh 3611 fi 3612fi 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3614$as_echo "$INSTALL" >&6; } 3615 3616# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3617# It thinks the first close brace ends the variable substitution. 3618test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3619 3620test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3621 3622test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3623 3624 3625 MKINSTALLDIRS= 3626 if test -n "$ac_aux_dir"; then 3627 case "$ac_aux_dir" in 3628 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 3629 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 3630 esac 3631 fi 3632 if test -z "$MKINSTALLDIRS"; then 3633 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3634 fi 3635 3636 3637 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 3639$as_echo_n "checking whether NLS is requested... " >&6; } 3640 # Check whether --enable-nls was given. 3641if test "${enable_nls+set}" = set; then : 3642 enableval=$enable_nls; USE_NLS=$enableval 3643else 3644 USE_NLS=yes 3645fi 3646 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 3648$as_echo "$USE_NLS" >&6; } 3649 3650 3651 3652 3653 3654 3655# Prepare PATH_SEPARATOR. 3656# The user is always right. 3657if test "${PATH_SEPARATOR+set}" != set; then 3658 echo "#! /bin/sh" >conf$$.sh 3659 echo "exit 0" >>conf$$.sh 3660 chmod +x conf$$.sh 3661 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3662 PATH_SEPARATOR=';' 3663 else 3664 PATH_SEPARATOR=: 3665 fi 3666 rm -f conf$$.sh 3667fi 3668 3669# Find out how to test for executable files. Don't use a zero-byte file, 3670# as systems may use methods other than mode bits to determine executability. 3671cat >conf$$.file <<_ASEOF 3672#! /bin/sh 3673exit 0 3674_ASEOF 3675chmod +x conf$$.file 3676if test -x conf$$.file >/dev/null 2>&1; then 3677 ac_executable_p="test -x" 3678else 3679 ac_executable_p="test -f" 3680fi 3681rm -f conf$$.file 3682 3683# Extract the first word of "msgfmt", so it can be a program name with args. 3684set dummy msgfmt; ac_word=$2 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3686$as_echo_n "checking for $ac_word... " >&6; } 3687if ${ac_cv_path_MSGFMT+:} false; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 case "$MSGFMT" in 3691 [\\/]* | ?:[\\/]*) 3692 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3693 ;; 3694 *) 3695 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3696 for ac_dir in $PATH; do 3697 IFS="$ac_save_IFS" 3698 test -z "$ac_dir" && ac_dir=. 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3701 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 3702 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3703 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3704 break 2 3705 fi 3706 fi 3707 done 3708 done 3709 IFS="$ac_save_IFS" 3710 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3711 ;; 3712esac 3713fi 3714MSGFMT="$ac_cv_path_MSGFMT" 3715if test "$MSGFMT" != ":"; then 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3717$as_echo "$MSGFMT" >&6; } 3718else 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720$as_echo "no" >&6; } 3721fi 3722 3723 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3724set dummy gmsgfmt; ac_word=$2 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3726$as_echo_n "checking for $ac_word... " >&6; } 3727if ${ac_cv_path_GMSGFMT+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 case $GMSGFMT in 3731 [\\/]* | ?:[\\/]*) 3732 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3733 ;; 3734 *) 3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3736for as_dir in $PATH 3737do 3738 IFS=$as_save_IFS 3739 test -z "$as_dir" && as_dir=. 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3742 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3744 break 2 3745 fi 3746done 3747 done 3748IFS=$as_save_IFS 3749 3750 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3751 ;; 3752esac 3753fi 3754GMSGFMT=$ac_cv_path_GMSGFMT 3755if test -n "$GMSGFMT"; then 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3757$as_echo "$GMSGFMT" >&6; } 3758else 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3760$as_echo "no" >&6; } 3761fi 3762 3763 3764 3765 3766# Prepare PATH_SEPARATOR. 3767# The user is always right. 3768if test "${PATH_SEPARATOR+set}" != set; then 3769 echo "#! /bin/sh" >conf$$.sh 3770 echo "exit 0" >>conf$$.sh 3771 chmod +x conf$$.sh 3772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3773 PATH_SEPARATOR=';' 3774 else 3775 PATH_SEPARATOR=: 3776 fi 3777 rm -f conf$$.sh 3778fi 3779 3780# Find out how to test for executable files. Don't use a zero-byte file, 3781# as systems may use methods other than mode bits to determine executability. 3782cat >conf$$.file <<_ASEOF 3783#! /bin/sh 3784exit 0 3785_ASEOF 3786chmod +x conf$$.file 3787if test -x conf$$.file >/dev/null 2>&1; then 3788 ac_executable_p="test -x" 3789else 3790 ac_executable_p="test -f" 3791fi 3792rm -f conf$$.file 3793 3794# Extract the first word of "xgettext", so it can be a program name with args. 3795set dummy xgettext; ac_word=$2 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3797$as_echo_n "checking for $ac_word... " >&6; } 3798if ${ac_cv_path_XGETTEXT+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 case "$XGETTEXT" in 3802 [\\/]* | ?:[\\/]*) 3803 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3804 ;; 3805 *) 3806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3807 for ac_dir in $PATH; do 3808 IFS="$ac_save_IFS" 3809 test -z "$ac_dir" && ac_dir=. 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3812 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3813 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3814 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3815 break 2 3816 fi 3817 fi 3818 done 3819 done 3820 IFS="$ac_save_IFS" 3821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3822 ;; 3823esac 3824fi 3825XGETTEXT="$ac_cv_path_XGETTEXT" 3826if test "$XGETTEXT" != ":"; then 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3828$as_echo "$XGETTEXT" >&6; } 3829else 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831$as_echo "no" >&6; } 3832fi 3833 3834 rm -f messages.po 3835 3836 3837# Prepare PATH_SEPARATOR. 3838# The user is always right. 3839if test "${PATH_SEPARATOR+set}" != set; then 3840 echo "#! /bin/sh" >conf$$.sh 3841 echo "exit 0" >>conf$$.sh 3842 chmod +x conf$$.sh 3843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3844 PATH_SEPARATOR=';' 3845 else 3846 PATH_SEPARATOR=: 3847 fi 3848 rm -f conf$$.sh 3849fi 3850 3851# Find out how to test for executable files. Don't use a zero-byte file, 3852# as systems may use methods other than mode bits to determine executability. 3853cat >conf$$.file <<_ASEOF 3854#! /bin/sh 3855exit 0 3856_ASEOF 3857chmod +x conf$$.file 3858if test -x conf$$.file >/dev/null 2>&1; then 3859 ac_executable_p="test -x" 3860else 3861 ac_executable_p="test -f" 3862fi 3863rm -f conf$$.file 3864 3865# Extract the first word of "msgmerge", so it can be a program name with args. 3866set dummy msgmerge; ac_word=$2 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868$as_echo_n "checking for $ac_word... " >&6; } 3869if ${ac_cv_path_MSGMERGE+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 case "$MSGMERGE" in 3873 [\\/]* | ?:[\\/]*) 3874 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3875 ;; 3876 *) 3877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3878 for ac_dir in $PATH; do 3879 IFS="$ac_save_IFS" 3880 test -z "$ac_dir" && ac_dir=. 3881 for ac_exec_ext in '' $ac_executable_extensions; do 3882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3883 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 3884 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3885 break 2 3886 fi 3887 fi 3888 done 3889 done 3890 IFS="$ac_save_IFS" 3891 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3892 ;; 3893esac 3894fi 3895MSGMERGE="$ac_cv_path_MSGMERGE" 3896if test "$MSGMERGE" != ":"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3898$as_echo "$MSGMERGE" >&6; } 3899else 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3901$as_echo "no" >&6; } 3902fi 3903 3904 3905 if test "$GMSGFMT" != ":"; then 3906 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 3907 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3908 : ; 3909 else 3910 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 3912$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 3913 GMSGFMT=":" 3914 fi 3915 fi 3916 3917 if test "$XGETTEXT" != ":"; then 3918 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3919 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3920 : ; 3921 else 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 3923$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 3924 XGETTEXT=":" 3925 fi 3926 rm -f messages.po 3927 fi 3928 3929 ac_config_commands="$ac_config_commands default-1" 3930 3931 3932# Make sure we can run config.sub. 3933$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3934 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3935 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3937$as_echo_n "checking build system type... " >&6; } 3938if ${ac_cv_build+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 ac_build_alias=$build_alias 3942test "x$ac_build_alias" = x && 3943 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3944test "x$ac_build_alias" = x && 3945 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3946ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3947 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3948 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3951$as_echo "$ac_cv_build" >&6; } 3952case $ac_cv_build in 3953*-*-*) ;; 3954*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3955esac 3956build=$ac_cv_build 3957ac_save_IFS=$IFS; IFS='-' 3958set x $ac_cv_build 3959shift 3960build_cpu=$1 3961build_vendor=$2 3962shift; shift 3963# Remember, the first character of IFS is used to create $*, 3964# except with old shells: 3965build_os=$* 3966IFS=$ac_save_IFS 3967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3968 3969 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3971$as_echo_n "checking host system type... " >&6; } 3972if ${ac_cv_host+:} false; then : 3973 $as_echo_n "(cached) " >&6 3974else 3975 if test "x$host_alias" = x; then 3976 ac_cv_host=$ac_cv_build 3977else 3978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3980fi 3981 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3984$as_echo "$ac_cv_host" >&6; } 3985case $ac_cv_host in 3986*-*-*) ;; 3987*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3988esac 3989host=$ac_cv_host 3990ac_save_IFS=$IFS; IFS='-' 3991set x $ac_cv_host 3992shift 3993host_cpu=$1 3994host_vendor=$2 3995shift; shift 3996# Remember, the first character of IFS is used to create $*, 3997# except with old shells: 3998host_os=$* 3999IFS=$ac_save_IFS 4000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4001 4002 4003if test -n "$ac_tool_prefix"; then 4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4005set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4007$as_echo_n "checking for $ac_word... " >&6; } 4008if ${ac_cv_prog_RANLIB+:} false; then : 4009 $as_echo_n "(cached) " >&6 4010else 4011 if test -n "$RANLIB"; then 4012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4013else 4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4015for as_dir in $PATH 4016do 4017 IFS=$as_save_IFS 4018 test -z "$as_dir" && as_dir=. 4019 for ac_exec_ext in '' $ac_executable_extensions; do 4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4023 break 2 4024 fi 4025done 4026 done 4027IFS=$as_save_IFS 4028 4029fi 4030fi 4031RANLIB=$ac_cv_prog_RANLIB 4032if test -n "$RANLIB"; then 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4034$as_echo "$RANLIB" >&6; } 4035else 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037$as_echo "no" >&6; } 4038fi 4039 4040 4041fi 4042if test -z "$ac_cv_prog_RANLIB"; then 4043 ac_ct_RANLIB=$RANLIB 4044 # Extract the first word of "ranlib", so it can be a program name with args. 4045set dummy ranlib; ac_word=$2 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4047$as_echo_n "checking for $ac_word... " >&6; } 4048if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 if test -n "$ac_ct_RANLIB"; then 4052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4053else 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4061 ac_cv_prog_ac_ct_RANLIB="ranlib" 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4063 break 2 4064 fi 4065done 4066 done 4067IFS=$as_save_IFS 4068 4069fi 4070fi 4071ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4072if test -n "$ac_ct_RANLIB"; then 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4074$as_echo "$ac_ct_RANLIB" >&6; } 4075else 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077$as_echo "no" >&6; } 4078fi 4079 4080 if test "x$ac_ct_RANLIB" = x; then 4081 RANLIB=":" 4082 else 4083 case $cross_compiling:$ac_tool_warned in 4084yes:) 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4087ac_tool_warned=yes ;; 4088esac 4089 RANLIB=$ac_ct_RANLIB 4090 fi 4091else 4092 RANLIB="$ac_cv_prog_RANLIB" 4093fi 4094 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4096$as_echo_n "checking for library containing strerror... " >&6; } 4097if ${ac_cv_search_strerror+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 ac_func_search_save_LIBS=$LIBS 4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104/* Override any GCC internal prototype to avoid an error. 4105 Use char because int might match the return type of a GCC 4106 builtin and then its argument prototype would still apply. */ 4107#ifdef __cplusplus 4108extern "C" 4109#endif 4110char strerror (); 4111int 4112main () 4113{ 4114return strerror (); 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119for ac_lib in '' cposix; do 4120 if test -z "$ac_lib"; then 4121 ac_res="none required" 4122 else 4123 ac_res=-l$ac_lib 4124 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4125 fi 4126 if ac_fn_c_try_link "$LINENO"; then : 4127 ac_cv_search_strerror=$ac_res 4128fi 4129rm -f core conftest.err conftest.$ac_objext \ 4130 conftest$ac_exeext 4131 if ${ac_cv_search_strerror+:} false; then : 4132 break 4133fi 4134done 4135if ${ac_cv_search_strerror+:} false; then : 4136 4137else 4138 ac_cv_search_strerror=no 4139fi 4140rm conftest.$ac_ext 4141LIBS=$ac_func_search_save_LIBS 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4144$as_echo "$ac_cv_search_strerror" >&6; } 4145ac_res=$ac_cv_search_strerror 4146if test "$ac_res" != no; then : 4147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4148 4149fi 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4152$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4153if ${ac_cv_c_const+:} false; then : 4154 $as_echo_n "(cached) " >&6 4155else 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main () 4161{ 4162 4163#ifndef __cplusplus 4164 /* Ultrix mips cc rejects this sort of thing. */ 4165 typedef int charset[2]; 4166 const charset cs = { 0, 0 }; 4167 /* SunOS 4.1.1 cc rejects this. */ 4168 char const *const *pcpcc; 4169 char **ppc; 4170 /* NEC SVR4.0.2 mips cc rejects this. */ 4171 struct point {int x, y;}; 4172 static struct point const zero = {0,0}; 4173 /* AIX XL C 1.02.0.0 rejects this. 4174 It does not let you subtract one const X* pointer from another in 4175 an arm of an if-expression whose if-part is not a constant 4176 expression */ 4177 const char *g = "string"; 4178 pcpcc = &g + (g ? g-g : 0); 4179 /* HPUX 7.0 cc rejects these. */ 4180 ++pcpcc; 4181 ppc = (char**) pcpcc; 4182 pcpcc = (char const *const *) ppc; 4183 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4184 char tx; 4185 char *t = &tx; 4186 char const *s = 0 ? (char *) 0 : (char const *) 0; 4187 4188 *t++ = 0; 4189 if (s) return 0; 4190 } 4191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4192 int x[] = {25, 17}; 4193 const int *foo = &x[0]; 4194 ++foo; 4195 } 4196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4197 typedef const int *iptr; 4198 iptr p = 0; 4199 ++p; 4200 } 4201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4203 struct s { int j; const int *ap[3]; } bx; 4204 struct s *b = &bx; b->j = 5; 4205 } 4206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4207 const int foo = 10; 4208 if (!foo) return 0; 4209 } 4210 return !cs[0] && !zero.x; 4211#endif 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217if ac_fn_c_try_compile "$LINENO"; then : 4218 ac_cv_c_const=yes 4219else 4220 ac_cv_c_const=no 4221fi 4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4223fi 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4225$as_echo "$ac_cv_c_const" >&6; } 4226if test $ac_cv_c_const = no; then 4227 4228$as_echo "#define const /**/" >>confdefs.h 4229 4230fi 4231 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4233$as_echo_n "checking for inline... " >&6; } 4234if ${ac_cv_c_inline+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 ac_cv_c_inline=no 4238for ac_kw in inline __inline__ __inline; do 4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241#ifndef __cplusplus 4242typedef int foo_t; 4243static $ac_kw foo_t static_foo () {return 0; } 4244$ac_kw foo_t foo () {return 0; } 4245#endif 4246 4247_ACEOF 4248if ac_fn_c_try_compile "$LINENO"; then : 4249 ac_cv_c_inline=$ac_kw 4250fi 4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252 test "$ac_cv_c_inline" != no && break 4253done 4254 4255fi 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4257$as_echo "$ac_cv_c_inline" >&6; } 4258 4259case $ac_cv_c_inline in 4260 inline | yes) ;; 4261 *) 4262 case $ac_cv_c_inline in 4263 no) ac_val=;; 4264 *) ac_val=$ac_cv_c_inline;; 4265 esac 4266 cat >>confdefs.h <<_ACEOF 4267#ifndef __cplusplus 4268#define inline $ac_val 4269#endif 4270_ACEOF 4271 ;; 4272esac 4273 4274ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4275if test "x$ac_cv_type_off_t" = xyes; then : 4276 4277else 4278 4279cat >>confdefs.h <<_ACEOF 4280#define off_t long int 4281_ACEOF 4282 4283fi 4284 4285ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4286if test "x$ac_cv_type_size_t" = xyes; then : 4287 4288else 4289 4290cat >>confdefs.h <<_ACEOF 4291#define size_t unsigned int 4292_ACEOF 4293 4294fi 4295 4296# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4297# for constant arguments. Useless! 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 4299$as_echo_n "checking for working alloca.h... " >&6; } 4300if ${ac_cv_working_alloca_h+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305#include <alloca.h> 4306int 4307main () 4308{ 4309char *p = (char *) alloca (2 * sizeof (int)); 4310 if (p) return 0; 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315if ac_fn_c_try_link "$LINENO"; then : 4316 ac_cv_working_alloca_h=yes 4317else 4318 ac_cv_working_alloca_h=no 4319fi 4320rm -f core conftest.err conftest.$ac_objext \ 4321 conftest$ac_exeext conftest.$ac_ext 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 4324$as_echo "$ac_cv_working_alloca_h" >&6; } 4325if test $ac_cv_working_alloca_h = yes; then 4326 4327$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 4328 4329fi 4330 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 4332$as_echo_n "checking for alloca... " >&6; } 4333if ${ac_cv_func_alloca_works+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#ifdef __GNUC__ 4339# define alloca __builtin_alloca 4340#else 4341# ifdef _MSC_VER 4342# include <malloc.h> 4343# define alloca _alloca 4344# else 4345# ifdef HAVE_ALLOCA_H 4346# include <alloca.h> 4347# else 4348# ifdef _AIX 4349 #pragma alloca 4350# else 4351# ifndef alloca /* predefined by HP cc +Olibcalls */ 4352void *alloca (size_t); 4353# endif 4354# endif 4355# endif 4356# endif 4357#endif 4358 4359int 4360main () 4361{ 4362char *p = (char *) alloca (1); 4363 if (p) return 0; 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368if ac_fn_c_try_link "$LINENO"; then : 4369 ac_cv_func_alloca_works=yes 4370else 4371 ac_cv_func_alloca_works=no 4372fi 4373rm -f core conftest.err conftest.$ac_objext \ 4374 conftest$ac_exeext conftest.$ac_ext 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 4377$as_echo "$ac_cv_func_alloca_works" >&6; } 4378 4379if test $ac_cv_func_alloca_works = yes; then 4380 4381$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 4382 4383else 4384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4385# that cause trouble. Some versions do not even contain alloca or 4386# contain a buggy version. If you still want to use their alloca, 4387# use ar to extract alloca.o from them instead of compiling alloca.c. 4388 4389ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4390 4391$as_echo "#define C_ALLOCA 1" >>confdefs.h 4392 4393 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 4395$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 4396if ${ac_cv_os_cray+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401#if defined CRAY && ! defined CRAY2 4402webecray 4403#else 4404wenotbecray 4405#endif 4406 4407_ACEOF 4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4409 $EGREP "webecray" >/dev/null 2>&1; then : 4410 ac_cv_os_cray=yes 4411else 4412 ac_cv_os_cray=no 4413fi 4414rm -f conftest* 4415 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 4418$as_echo "$ac_cv_os_cray" >&6; } 4419if test $ac_cv_os_cray = yes; then 4420 for ac_func in _getb67 GETB67 getb67; do 4421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4422ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4423if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4424 4425cat >>confdefs.h <<_ACEOF 4426#define CRAY_STACKSEG_END $ac_func 4427_ACEOF 4428 4429 break 4430fi 4431 4432 done 4433fi 4434 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 4436$as_echo_n "checking stack direction for C alloca... " >&6; } 4437if ${ac_cv_c_stack_direction+:} false; then : 4438 $as_echo_n "(cached) " >&6 4439else 4440 if test "$cross_compiling" = yes; then : 4441 ac_cv_c_stack_direction=0 4442else 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445$ac_includes_default 4446int 4447find_stack_direction (int *addr, int depth) 4448{ 4449 int dir, dummy = 0; 4450 if (! addr) 4451 addr = &dummy; 4452 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 4453 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 4454 return dir + dummy; 4455} 4456 4457int 4458main (int argc, char **argv) 4459{ 4460 return find_stack_direction (0, argc + !argv + 20) < 0; 4461} 4462_ACEOF 4463if ac_fn_c_try_run "$LINENO"; then : 4464 ac_cv_c_stack_direction=1 4465else 4466 ac_cv_c_stack_direction=-1 4467fi 4468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4469 conftest.$ac_objext conftest.beam conftest.$ac_ext 4470fi 4471 4472fi 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 4474$as_echo "$ac_cv_c_stack_direction" >&6; } 4475cat >>confdefs.h <<_ACEOF 4476#define STACK_DIRECTION $ac_cv_c_stack_direction 4477_ACEOF 4478 4479 4480fi 4481 4482 4483 4484 4485 for ac_header in $ac_header_list 4486do : 4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4488ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4489" 4490if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4491 cat >>confdefs.h <<_ACEOF 4492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4493_ACEOF 4494 4495fi 4496 4497done 4498 4499 4500 4501 4502 4503 4504 4505 4506for ac_func in getpagesize 4507do : 4508 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 4509if test "x$ac_cv_func_getpagesize" = xyes; then : 4510 cat >>confdefs.h <<_ACEOF 4511#define HAVE_GETPAGESIZE 1 4512_ACEOF 4513 4514fi 4515done 4516 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 4518$as_echo_n "checking for working mmap... " >&6; } 4519if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 if test "$cross_compiling" = yes; then : 4523 ac_cv_func_mmap_fixed_mapped=no 4524else 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527$ac_includes_default 4528/* malloc might have been renamed as rpl_malloc. */ 4529#undef malloc 4530 4531/* Thanks to Mike Haertel and Jim Avera for this test. 4532 Here is a matrix of mmap possibilities: 4533 mmap private not fixed 4534 mmap private fixed at somewhere currently unmapped 4535 mmap private fixed at somewhere already mapped 4536 mmap shared not fixed 4537 mmap shared fixed at somewhere currently unmapped 4538 mmap shared fixed at somewhere already mapped 4539 For private mappings, we should verify that changes cannot be read() 4540 back from the file, nor mmap's back from the file at a different 4541 address. (There have been systems where private was not correctly 4542 implemented like the infamous i386 svr4.0, and systems where the 4543 VM page cache was not coherent with the file system buffer cache 4544 like early versions of FreeBSD and possibly contemporary NetBSD.) 4545 For shared mappings, we should conversely verify that changes get 4546 propagated back to all the places they're supposed to be. 4547 4548 Grep wants private fixed already mapped. 4549 The main things grep needs to know about mmap are: 4550 * does it exist and is it safe to write into the mmap'd area 4551 * how to use it (BSD variants) */ 4552 4553#include <fcntl.h> 4554#include <sys/mman.h> 4555 4556#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 4557char *malloc (); 4558#endif 4559 4560/* This mess was copied from the GNU getpagesize.h. */ 4561#ifndef HAVE_GETPAGESIZE 4562# ifdef _SC_PAGESIZE 4563# define getpagesize() sysconf(_SC_PAGESIZE) 4564# else /* no _SC_PAGESIZE */ 4565# ifdef HAVE_SYS_PARAM_H 4566# include <sys/param.h> 4567# ifdef EXEC_PAGESIZE 4568# define getpagesize() EXEC_PAGESIZE 4569# else /* no EXEC_PAGESIZE */ 4570# ifdef NBPG 4571# define getpagesize() NBPG * CLSIZE 4572# ifndef CLSIZE 4573# define CLSIZE 1 4574# endif /* no CLSIZE */ 4575# else /* no NBPG */ 4576# ifdef NBPC 4577# define getpagesize() NBPC 4578# else /* no NBPC */ 4579# ifdef PAGESIZE 4580# define getpagesize() PAGESIZE 4581# endif /* PAGESIZE */ 4582# endif /* no NBPC */ 4583# endif /* no NBPG */ 4584# endif /* no EXEC_PAGESIZE */ 4585# else /* no HAVE_SYS_PARAM_H */ 4586# define getpagesize() 8192 /* punt totally */ 4587# endif /* no HAVE_SYS_PARAM_H */ 4588# endif /* no _SC_PAGESIZE */ 4589 4590#endif /* no HAVE_GETPAGESIZE */ 4591 4592int 4593main () 4594{ 4595 char *data, *data2, *data3; 4596 const char *cdata2; 4597 int i, pagesize; 4598 int fd, fd2; 4599 4600 pagesize = getpagesize (); 4601 4602 /* First, make a file with some known garbage in it. */ 4603 data = (char *) malloc (pagesize); 4604 if (!data) 4605 return 1; 4606 for (i = 0; i < pagesize; ++i) 4607 *(data + i) = rand (); 4608 umask (0); 4609 fd = creat ("conftest.mmap", 0600); 4610 if (fd < 0) 4611 return 2; 4612 if (write (fd, data, pagesize) != pagesize) 4613 return 3; 4614 close (fd); 4615 4616 /* Next, check that the tail of a page is zero-filled. File must have 4617 non-zero length, otherwise we risk SIGBUS for entire page. */ 4618 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 4619 if (fd2 < 0) 4620 return 4; 4621 cdata2 = ""; 4622 if (write (fd2, cdata2, 1) != 1) 4623 return 5; 4624 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 4625 if (data2 == MAP_FAILED) 4626 return 6; 4627 for (i = 0; i < pagesize; ++i) 4628 if (*(data2 + i)) 4629 return 7; 4630 close (fd2); 4631 if (munmap (data2, pagesize)) 4632 return 8; 4633 4634 /* Next, try to mmap the file at a fixed address which already has 4635 something else allocated at it. If we can, also make sure that 4636 we see the same garbage. */ 4637 fd = open ("conftest.mmap", O_RDWR); 4638 if (fd < 0) 4639 return 9; 4640 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 4641 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 4642 return 10; 4643 for (i = 0; i < pagesize; ++i) 4644 if (*(data + i) != *(data2 + i)) 4645 return 11; 4646 4647 /* Finally, make sure that changes to the mapped area do not 4648 percolate back to the file as seen by read(). (This is a bug on 4649 some variants of i386 svr4.0.) */ 4650 for (i = 0; i < pagesize; ++i) 4651 *(data2 + i) = *(data2 + i) + 1; 4652 data3 = (char *) malloc (pagesize); 4653 if (!data3) 4654 return 12; 4655 if (read (fd, data3, pagesize) != pagesize) 4656 return 13; 4657 for (i = 0; i < pagesize; ++i) 4658 if (*(data + i) != *(data3 + i)) 4659 return 14; 4660 close (fd); 4661 return 0; 4662} 4663_ACEOF 4664if ac_fn_c_try_run "$LINENO"; then : 4665 ac_cv_func_mmap_fixed_mapped=yes 4666else 4667 ac_cv_func_mmap_fixed_mapped=no 4668fi 4669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4670 conftest.$ac_objext conftest.beam conftest.$ac_ext 4671fi 4672 4673fi 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 4675$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 4676if test $ac_cv_func_mmap_fixed_mapped = yes; then 4677 4678$as_echo "#define HAVE_MMAP 1" >>confdefs.h 4679 4680fi 4681rm -f conftest.mmap conftest.txt 4682 4683 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 4685$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 4686if ${ac_cv_gnu_library_2_1+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692#include <features.h> 4693#ifdef __GNU_LIBRARY__ 4694 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 4695 Lucky GNU user 4696 #endif 4697#endif 4698 4699_ACEOF 4700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4701 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 4702 ac_cv_gnu_library_2_1=yes 4703else 4704 ac_cv_gnu_library_2_1=no 4705fi 4706rm -f conftest* 4707 4708 4709 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 4712$as_echo "$ac_cv_gnu_library_2_1" >&6; } 4713 4714 GLIBC21="$ac_cv_gnu_library_2_1" 4715 4716 4717 4718 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 4720$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 4721if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 4725 if test "$cross_compiling" = yes; then : 4726 4727 # Guess based on the CPU. 4728 case "$host_cpu" in 4729 alpha* | i3456786 | m68k | s390*) 4730 gt_cv_int_divbyzero_sigfpe="guessing yes";; 4731 *) 4732 gt_cv_int_divbyzero_sigfpe="guessing no";; 4733 esac 4734 4735else 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4737/* end confdefs.h. */ 4738 4739#include <stdlib.h> 4740#include <signal.h> 4741 4742static void 4743#ifdef __cplusplus 4744sigfpe_handler (int sig) 4745#else 4746sigfpe_handler (sig) int sig; 4747#endif 4748{ 4749 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 4750 exit (sig != SIGFPE); 4751} 4752 4753int x = 1; 4754int y = 0; 4755int z; 4756int nan; 4757 4758int main () 4759{ 4760 signal (SIGFPE, sigfpe_handler); 4761/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 4762#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 4763 signal (SIGTRAP, sigfpe_handler); 4764#endif 4765/* Linux/SPARC yields signal SIGILL. */ 4766#if defined (__sparc__) && defined (__linux__) 4767 signal (SIGILL, sigfpe_handler); 4768#endif 4769 4770 z = x / y; 4771 nan = y / y; 4772 exit (1); 4773} 4774 4775_ACEOF 4776if ac_fn_c_try_run "$LINENO"; then : 4777 gt_cv_int_divbyzero_sigfpe=yes 4778else 4779 gt_cv_int_divbyzero_sigfpe=no 4780fi 4781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4782 conftest.$ac_objext conftest.beam conftest.$ac_ext 4783fi 4784 4785 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 4788$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 4789 case "$gt_cv_int_divbyzero_sigfpe" in 4790 *yes) value=1;; 4791 *) value=0;; 4792 esac 4793 4794cat >>confdefs.h <<_ACEOF 4795#define INTDIV0_RAISES_SIGFPE $value 4796_ACEOF 4797 4798 4799 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 4801$as_echo_n "checking for inttypes.h... " >&6; } 4802if ${jm_ac_cv_header_inttypes_h+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4806/* end confdefs.h. */ 4807#include <sys/types.h> 4808#include <inttypes.h> 4809int 4810main () 4811{ 4812uintmax_t i = (uintmax_t) -1; 4813 ; 4814 return 0; 4815} 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO"; then : 4818 jm_ac_cv_header_inttypes_h=yes 4819else 4820 jm_ac_cv_header_inttypes_h=no 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 4825$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 4826 if test $jm_ac_cv_header_inttypes_h = yes; then 4827 4828cat >>confdefs.h <<_ACEOF 4829#define HAVE_INTTYPES_H_WITH_UINTMAX 1 4830_ACEOF 4831 4832 fi 4833 4834 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 4836$as_echo_n "checking for stdint.h... " >&6; } 4837if ${jm_ac_cv_header_stdint_h+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842#include <sys/types.h> 4843#include <stdint.h> 4844int 4845main () 4846{ 4847uintmax_t i = (uintmax_t) -1; 4848 ; 4849 return 0; 4850} 4851_ACEOF 4852if ac_fn_c_try_compile "$LINENO"; then : 4853 jm_ac_cv_header_stdint_h=yes 4854else 4855 jm_ac_cv_header_stdint_h=no 4856fi 4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4858fi 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 4860$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 4861 if test $jm_ac_cv_header_stdint_h = yes; then 4862 4863cat >>confdefs.h <<_ACEOF 4864#define HAVE_STDINT_H_WITH_UINTMAX 1 4865_ACEOF 4866 4867 fi 4868 4869 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 4871$as_echo_n "checking for unsigned long long... " >&6; } 4872if ${ac_cv_type_unsigned_long_long+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877unsigned long long ull = 1; int i = 63; 4878int 4879main () 4880{ 4881unsigned long long ullmax = (unsigned long long) -1; 4882 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887if ac_fn_c_try_link "$LINENO"; then : 4888 ac_cv_type_unsigned_long_long=yes 4889else 4890 ac_cv_type_unsigned_long_long=no 4891fi 4892rm -f core conftest.err conftest.$ac_objext \ 4893 conftest$ac_exeext conftest.$ac_ext 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 4896$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 4897 if test $ac_cv_type_unsigned_long_long = yes; then 4898 4899$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 4900 4901 fi 4902 4903 4904 4905 4906 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 4907 4908 test $ac_cv_type_unsigned_long_long = yes \ 4909 && ac_type='unsigned long long' \ 4910 || ac_type='unsigned long' 4911 4912cat >>confdefs.h <<_ACEOF 4913#define uintmax_t $ac_type 4914_ACEOF 4915 4916 else 4917 4918$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 4919 4920 fi 4921 4922 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 4924$as_echo_n "checking for inttypes.h... " >&6; } 4925if ${gt_cv_header_inttypes_h+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930/* end confdefs.h. */ 4931#include <sys/types.h> 4932#include <inttypes.h> 4933int 4934main () 4935{ 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941if ac_fn_c_try_compile "$LINENO"; then : 4942 gt_cv_header_inttypes_h=yes 4943else 4944 gt_cv_header_inttypes_h=no 4945fi 4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 4950$as_echo "$gt_cv_header_inttypes_h" >&6; } 4951 if test $gt_cv_header_inttypes_h = yes; then 4952 4953cat >>confdefs.h <<_ACEOF 4954#define HAVE_INTTYPES_H 1 4955_ACEOF 4956 4957 fi 4958 4959 4960 4961 if test $gt_cv_header_inttypes_h = yes; then 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 4963$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 4964if ${gt_cv_inttypes_pri_broken+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970#include <inttypes.h> 4971#ifdef PRId32 4972char *p = PRId32; 4973#endif 4974 4975int 4976main () 4977{ 4978 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983if ac_fn_c_try_compile "$LINENO"; then : 4984 gt_cv_inttypes_pri_broken=no 4985else 4986 gt_cv_inttypes_pri_broken=yes 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989 4990fi 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 4992$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 4993 fi 4994 if test "$gt_cv_inttypes_pri_broken" = yes; then 4995 4996cat >>confdefs.h <<_ACEOF 4997#define PRI_MACROS_BROKEN 1 4998_ACEOF 4999 5000 fi 5001 5002 5003 if test "X$prefix" = "XNONE"; then 5004 acl_final_prefix="$ac_default_prefix" 5005 else 5006 acl_final_prefix="$prefix" 5007 fi 5008 if test "X$exec_prefix" = "XNONE"; then 5009 acl_final_exec_prefix='${prefix}' 5010 else 5011 acl_final_exec_prefix="$exec_prefix" 5012 fi 5013 acl_save_prefix="$prefix" 5014 prefix="$acl_final_prefix" 5015 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5016 prefix="$acl_save_prefix" 5017 5018 5019# Check whether --with-gnu-ld was given. 5020if test "${with_gnu_ld+set}" = set; then : 5021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5022else 5023 with_gnu_ld=no 5024fi 5025 5026# Prepare PATH_SEPARATOR. 5027# The user is always right. 5028if test "${PATH_SEPARATOR+set}" != set; then 5029 echo "#! /bin/sh" >conf$$.sh 5030 echo "exit 0" >>conf$$.sh 5031 chmod +x conf$$.sh 5032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5033 PATH_SEPARATOR=';' 5034 else 5035 PATH_SEPARATOR=: 5036 fi 5037 rm -f conf$$.sh 5038fi 5039ac_prog=ld 5040if test "$GCC" = yes; then 5041 # Check if gcc -print-prog-name=ld gives a path. 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5043$as_echo_n "checking for ld used by GCC... " >&6; } 5044 case $host in 5045 *-*-mingw*) 5046 # gcc leaves a trailing carriage return which upsets mingw 5047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5048 *) 5049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5050 esac 5051 case $ac_prog in 5052 # Accept absolute paths. 5053 [\\/]* | [A-Za-z]:[\\/]*) 5054 re_direlt='/[^/][^/]*/\.\./' 5055 # Canonicalize the path of ld 5056 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5058 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5059 done 5060 test -z "$LD" && LD="$ac_prog" 5061 ;; 5062 "") 5063 # If it fails, then pretend we aren't using GCC. 5064 ac_prog=ld 5065 ;; 5066 *) 5067 # If it is relative, then search for the first ld in PATH. 5068 with_gnu_ld=unknown 5069 ;; 5070 esac 5071elif test "$with_gnu_ld" = yes; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5073$as_echo_n "checking for GNU ld... " >&6; } 5074else 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5076$as_echo_n "checking for non-GNU ld... " >&6; } 5077fi 5078if ${acl_cv_path_LD+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 if test -z "$LD"; then 5082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5083 for ac_dir in $PATH; do 5084 test -z "$ac_dir" && ac_dir=. 5085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5086 acl_cv_path_LD="$ac_dir/$ac_prog" 5087 # Check to see if the program is GNU ld. I'd rather use --version, 5088 # but apparently some GNU ld's only accept -v. 5089 # Break only if it was the GNU/non-GNU ld that we prefer. 5090 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 5091 test "$with_gnu_ld" != no && break 5092 else 5093 test "$with_gnu_ld" != yes && break 5094 fi 5095 fi 5096 done 5097 IFS="$ac_save_ifs" 5098else 5099 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5100fi 5101fi 5102 5103LD="$acl_cv_path_LD" 5104if test -n "$LD"; then 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5106$as_echo "$LD" >&6; } 5107else 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5109$as_echo "no" >&6; } 5110fi 5111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5114if ${acl_cv_prog_gnu_ld+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5118if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 5119 acl_cv_prog_gnu_ld=yes 5120else 5121 acl_cv_prog_gnu_ld=no 5122fi 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5125$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5126with_gnu_ld=$acl_cv_prog_gnu_ld 5127 5128 5129 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5131$as_echo_n "checking for shared library run path origin... " >&6; } 5132if ${acl_cv_rpath+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 5136 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5137 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5138 . ./conftest.sh 5139 rm -f ./conftest.sh 5140 acl_cv_rpath=done 5141 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5144$as_echo "$acl_cv_rpath" >&6; } 5145 wl="$acl_cv_wl" 5146 libext="$acl_cv_libext" 5147 shlibext="$acl_cv_shlibext" 5148 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5149 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5150 hardcode_direct="$acl_cv_hardcode_direct" 5151 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5152 # Check whether --enable-rpath was given. 5153if test "${enable_rpath+set}" = set; then : 5154 enableval=$enable_rpath; : 5155else 5156 enable_rpath=yes 5157fi 5158 5159 5160 5161 5162 5163 5164 5165 5166 use_additional=yes 5167 5168 acl_save_prefix="$prefix" 5169 prefix="$acl_final_prefix" 5170 acl_save_exec_prefix="$exec_prefix" 5171 exec_prefix="$acl_final_exec_prefix" 5172 5173 eval additional_includedir=\"$includedir\" 5174 eval additional_libdir=\"$libdir\" 5175 5176 exec_prefix="$acl_save_exec_prefix" 5177 prefix="$acl_save_prefix" 5178 5179 5180# Check whether --with-libiconv-prefix was given. 5181if test "${with_libiconv_prefix+set}" = set; then : 5182 withval=$with_libiconv_prefix; 5183 if test "X$withval" = "Xno"; then 5184 use_additional=no 5185 else 5186 if test "X$withval" = "X"; then 5187 5188 acl_save_prefix="$prefix" 5189 prefix="$acl_final_prefix" 5190 acl_save_exec_prefix="$exec_prefix" 5191 exec_prefix="$acl_final_exec_prefix" 5192 5193 eval additional_includedir=\"$includedir\" 5194 eval additional_libdir=\"$libdir\" 5195 5196 exec_prefix="$acl_save_exec_prefix" 5197 prefix="$acl_save_prefix" 5198 5199 else 5200 additional_includedir="$withval/include" 5201 additional_libdir="$withval/lib" 5202 fi 5203 fi 5204 5205fi 5206 5207 5208# Check whether --with-libiconv-type was given. 5209if test "${with_libiconv_type+set}" = set; then : 5210 withval=$with_libiconv_type; with_libiconv_type=$withval 5211else 5212 with_libiconv_type=auto 5213fi 5214 5215 lib_type=`eval echo \$with_libiconv_type` 5216 5217 LIBICONV= 5218 LTLIBICONV= 5219 INCICONV= 5220 rpathdirs= 5221 ltrpathdirs= 5222 names_already_handled= 5223 names_next_round='iconv ' 5224 while test -n "$names_next_round"; do 5225 names_this_round="$names_next_round" 5226 names_next_round= 5227 for name in $names_this_round; do 5228 already_handled= 5229 for n in $names_already_handled; do 5230 if test "$n" = "$name"; then 5231 already_handled=yes 5232 break 5233 fi 5234 done 5235 if test -z "$already_handled"; then 5236 names_already_handled="$names_already_handled $name" 5237 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5238 eval value=\"\$HAVE_LIB$uppername\" 5239 if test -n "$value"; then 5240 if test "$value" = yes; then 5241 eval value=\"\$LIB$uppername\" 5242 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 5243 eval value=\"\$LTLIB$uppername\" 5244 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 5245 else 5246 : 5247 fi 5248 else 5249 found_dir= 5250 found_la= 5251 found_so= 5252 found_a= 5253 if test $use_additional = yes; then 5254 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 5255 found_dir="$additional_libdir" 5256 found_so="$additional_libdir/lib$name.$shlibext" 5257 if test -f "$additional_libdir/lib$name.la"; then 5258 found_la="$additional_libdir/lib$name.la" 5259 fi 5260 elif test x$lib_type != xshared; then 5261 if test -f "$additional_libdir/lib$name.$libext"; then 5262 found_dir="$additional_libdir" 5263 found_a="$additional_libdir/lib$name.$libext" 5264 if test -f "$additional_libdir/lib$name.la"; then 5265 found_la="$additional_libdir/lib$name.la" 5266 fi 5267 fi 5268 fi 5269 fi 5270 if test "X$found_dir" = "X"; then 5271 for x in $LDFLAGS $LTLIBICONV; do 5272 5273 acl_save_prefix="$prefix" 5274 prefix="$acl_final_prefix" 5275 acl_save_exec_prefix="$exec_prefix" 5276 exec_prefix="$acl_final_exec_prefix" 5277 eval x=\"$x\" 5278 exec_prefix="$acl_save_exec_prefix" 5279 prefix="$acl_save_prefix" 5280 5281 case "$x" in 5282 -L*) 5283 dir=`echo "X$x" | sed -e 's/^X-L//'` 5284 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 5285 found_dir="$dir" 5286 found_so="$dir/lib$name.$shlibext" 5287 if test -f "$dir/lib$name.la"; then 5288 found_la="$dir/lib$name.la" 5289 fi 5290 elif test x$lib_type != xshared; then 5291 if test -f "$dir/lib$name.$libext"; then 5292 found_dir="$dir" 5293 found_a="$dir/lib$name.$libext" 5294 if test -f "$dir/lib$name.la"; then 5295 found_la="$dir/lib$name.la" 5296 fi 5297 fi 5298 fi 5299 ;; 5300 esac 5301 if test "X$found_dir" != "X"; then 5302 break 5303 fi 5304 done 5305 fi 5306 if test "X$found_dir" != "X"; then 5307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 5308 if test "X$found_so" != "X"; then 5309 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5310 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5311 else 5312 haveit= 5313 for x in $ltrpathdirs; do 5314 if test "X$x" = "X$found_dir"; then 5315 haveit=yes 5316 break 5317 fi 5318 done 5319 if test -z "$haveit"; then 5320 ltrpathdirs="$ltrpathdirs $found_dir" 5321 fi 5322 if test "$hardcode_direct" = yes; then 5323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5324 else 5325 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5327 haveit= 5328 for x in $rpathdirs; do 5329 if test "X$x" = "X$found_dir"; then 5330 haveit=yes 5331 break 5332 fi 5333 done 5334 if test -z "$haveit"; then 5335 rpathdirs="$rpathdirs $found_dir" 5336 fi 5337 else 5338 haveit= 5339 for x in $LDFLAGS $LIBICONV; do 5340 5341 acl_save_prefix="$prefix" 5342 prefix="$acl_final_prefix" 5343 acl_save_exec_prefix="$exec_prefix" 5344 exec_prefix="$acl_final_exec_prefix" 5345 eval x=\"$x\" 5346 exec_prefix="$acl_save_exec_prefix" 5347 prefix="$acl_save_prefix" 5348 5349 if test "X$x" = "X-L$found_dir"; then 5350 haveit=yes 5351 break 5352 fi 5353 done 5354 if test -z "$haveit"; then 5355 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 5356 fi 5357 if test "$hardcode_minus_L" != no; then 5358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5359 else 5360 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5361 fi 5362 fi 5363 fi 5364 fi 5365 else 5366 if test "X$found_a" != "X"; then 5367 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 5368 else 5369 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 5370 fi 5371 fi 5372 additional_includedir= 5373 case "$found_dir" in 5374 */lib | */lib/) 5375 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5376 additional_includedir="$basedir/include" 5377 ;; 5378 esac 5379 if test "X$additional_includedir" != "X"; then 5380 if test "X$additional_includedir" != "X/usr/include"; then 5381 haveit= 5382 if test "X$additional_includedir" = "X/usr/local/include"; then 5383 if test -n "$GCC"; then 5384 case $host_os in 5385 linux*) haveit=yes;; 5386 esac 5387 fi 5388 fi 5389 if test -z "$haveit"; then 5390 for x in $CPPFLAGS $INCICONV; do 5391 5392 acl_save_prefix="$prefix" 5393 prefix="$acl_final_prefix" 5394 acl_save_exec_prefix="$exec_prefix" 5395 exec_prefix="$acl_final_exec_prefix" 5396 eval x=\"$x\" 5397 exec_prefix="$acl_save_exec_prefix" 5398 prefix="$acl_save_prefix" 5399 5400 if test "X$x" = "X-I$additional_includedir"; then 5401 haveit=yes 5402 break 5403 fi 5404 done 5405 if test -z "$haveit"; then 5406 if test -d "$additional_includedir"; then 5407 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 5408 fi 5409 fi 5410 fi 5411 fi 5412 fi 5413 if test -n "$found_la"; then 5414 save_libdir="$libdir" 5415 case "$found_la" in 5416 */* | *\\*) . "$found_la" ;; 5417 *) . "./$found_la" ;; 5418 esac 5419 libdir="$save_libdir" 5420 for dep in $dependency_libs; do 5421 case "$dep" in 5422 -L*) 5423 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5424 if test "X$additional_libdir" != "X/usr/lib"; then 5425 haveit= 5426 if test "X$additional_libdir" = "X/usr/local/lib"; then 5427 if test -n "$GCC"; then 5428 case $host_os in 5429 linux*) haveit=yes;; 5430 esac 5431 fi 5432 fi 5433 if test -z "$haveit"; then 5434 haveit= 5435 for x in $LDFLAGS $LIBICONV; do 5436 5437 acl_save_prefix="$prefix" 5438 prefix="$acl_final_prefix" 5439 acl_save_exec_prefix="$exec_prefix" 5440 exec_prefix="$acl_final_exec_prefix" 5441 eval x=\"$x\" 5442 exec_prefix="$acl_save_exec_prefix" 5443 prefix="$acl_save_prefix" 5444 5445 if test "X$x" = "X-L$additional_libdir"; then 5446 haveit=yes 5447 break 5448 fi 5449 done 5450 if test -z "$haveit"; then 5451 if test -d "$additional_libdir"; then 5452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 5453 fi 5454 fi 5455 haveit= 5456 for x in $LDFLAGS $LTLIBICONV; do 5457 5458 acl_save_prefix="$prefix" 5459 prefix="$acl_final_prefix" 5460 acl_save_exec_prefix="$exec_prefix" 5461 exec_prefix="$acl_final_exec_prefix" 5462 eval x=\"$x\" 5463 exec_prefix="$acl_save_exec_prefix" 5464 prefix="$acl_save_prefix" 5465 5466 if test "X$x" = "X-L$additional_libdir"; then 5467 haveit=yes 5468 break 5469 fi 5470 done 5471 if test -z "$haveit"; then 5472 if test -d "$additional_libdir"; then 5473 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 5474 fi 5475 fi 5476 fi 5477 fi 5478 ;; 5479 -R*) 5480 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5481 if test "$enable_rpath" != no; then 5482 haveit= 5483 for x in $rpathdirs; do 5484 if test "X$x" = "X$dir"; then 5485 haveit=yes 5486 break 5487 fi 5488 done 5489 if test -z "$haveit"; then 5490 rpathdirs="$rpathdirs $dir" 5491 fi 5492 haveit= 5493 for x in $ltrpathdirs; do 5494 if test "X$x" = "X$dir"; then 5495 haveit=yes 5496 break 5497 fi 5498 done 5499 if test -z "$haveit"; then 5500 ltrpathdirs="$ltrpathdirs $dir" 5501 fi 5502 fi 5503 ;; 5504 -l*) 5505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5506 ;; 5507 *.la) 5508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5509 ;; 5510 *) 5511 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 5512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 5513 ;; 5514 esac 5515 done 5516 fi 5517 else 5518 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 5519 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 5521 else 5522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 5523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 5524 fi 5525 fi 5526 fi 5527 fi 5528 done 5529 done 5530 if test "X$rpathdirs" != "X"; then 5531 if test -n "$hardcode_libdir_separator"; then 5532 alldirs= 5533 for found_dir in $rpathdirs; do 5534 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5535 done 5536 acl_save_libdir="$libdir" 5537 libdir="$alldirs" 5538 eval flag=\"$hardcode_libdir_flag_spec\" 5539 libdir="$acl_save_libdir" 5540 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5541 else 5542 for found_dir in $rpathdirs; do 5543 acl_save_libdir="$libdir" 5544 libdir="$found_dir" 5545 eval flag=\"$hardcode_libdir_flag_spec\" 5546 libdir="$acl_save_libdir" 5547 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5548 done 5549 fi 5550 fi 5551 if test "X$ltrpathdirs" != "X"; then 5552 for found_dir in $ltrpathdirs; do 5553 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5554 done 5555 fi 5556 5557 5558 5559 5560 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 5561stdlib.h string.h unistd.h sys/param.h 5562do : 5563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5564ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5566 cat >>confdefs.h <<_ACEOF 5567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5568_ACEOF 5569 5570fi 5571 5572done 5573 5574 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 5575geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 5576strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ 5577__fsetlocking 5578do : 5579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5581if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5582 cat >>confdefs.h <<_ACEOF 5583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5584_ACEOF 5585 5586fi 5587done 5588 5589 5590 5591 5592 5593 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5596$as_echo_n "checking for iconv... " >&6; } 5597if ${am_cv_func_iconv+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 5601 am_cv_func_iconv="no, consider installing GNU libiconv" 5602 am_cv_lib_iconv=no 5603 am_save_CPPFLAGS="$CPPFLAGS" 5604 CPPFLAGS="$CPPFLAGS $INCICONV" 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607#include <stdlib.h> 5608#include <iconv.h> 5609int 5610main () 5611{ 5612iconv_t cd = iconv_open("",""); 5613 iconv(cd,NULL,NULL,NULL,NULL); 5614 iconv_close(cd); 5615 ; 5616 return 0; 5617} 5618_ACEOF 5619if ac_fn_c_try_link "$LINENO"; then : 5620 am_cv_func_iconv=yes 5621fi 5622rm -f core conftest.err conftest.$ac_objext \ 5623 conftest$ac_exeext conftest.$ac_ext 5624 CPPFLAGS="$am_save_CPPFLAGS" 5625 5626 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 5627 for _libs in .libs _libs; do 5628 am_save_CPPFLAGS="$CPPFLAGS" 5629 am_save_LIBS="$LIBS" 5630 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 5631 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633/* end confdefs.h. */ 5634#include <stdlib.h> 5635#include <iconv.h> 5636int 5637main () 5638{ 5639iconv_t cd = iconv_open("",""); 5640 iconv(cd,NULL,NULL,NULL,NULL); 5641 iconv_close(cd); 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_link "$LINENO"; then : 5647 INCICONV="-I../libiconv/include" 5648 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 5649 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 5650 am_cv_lib_iconv=yes 5651 am_cv_func_iconv=yes 5652fi 5653rm -f core conftest.err conftest.$ac_objext \ 5654 conftest$ac_exeext conftest.$ac_ext 5655 CPPFLAGS="$am_save_CPPFLAGS" 5656 LIBS="$am_save_LIBS" 5657 if test "$am_cv_func_iconv" = "yes"; then 5658 break 5659 fi 5660 done 5661 fi 5662 5663 if test "$am_cv_func_iconv" != yes; then 5664 am_save_CPPFLAGS="$CPPFLAGS" 5665 am_save_LIBS="$LIBS" 5666 CPPFLAGS="$CPPFLAGS $INCICONV" 5667 LIBS="$LIBS $LIBICONV" 5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5669/* end confdefs.h. */ 5670#include <stdlib.h> 5671#include <iconv.h> 5672int 5673main () 5674{ 5675iconv_t cd = iconv_open("",""); 5676 iconv(cd,NULL,NULL,NULL,NULL); 5677 iconv_close(cd); 5678 ; 5679 return 0; 5680} 5681_ACEOF 5682if ac_fn_c_try_link "$LINENO"; then : 5683 am_cv_lib_iconv=yes 5684 am_cv_func_iconv=yes 5685fi 5686rm -f core conftest.err conftest.$ac_objext \ 5687 conftest$ac_exeext conftest.$ac_ext 5688 CPPFLAGS="$am_save_CPPFLAGS" 5689 LIBS="$am_save_LIBS" 5690 fi 5691 5692fi 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 5694$as_echo "$am_cv_func_iconv" >&6; } 5695 if test "$am_cv_func_iconv" = yes; then 5696 5697$as_echo "#define HAVE_ICONV 1" >>confdefs.h 5698 5699 fi 5700 if test "$am_cv_lib_iconv" = yes; then 5701 5702 for element in $INCICONV; do 5703 haveit= 5704 for x in $CPPFLAGS; do 5705 5706 acl_save_prefix="$prefix" 5707 prefix="$acl_final_prefix" 5708 acl_save_exec_prefix="$exec_prefix" 5709 exec_prefix="$acl_final_exec_prefix" 5710 eval x=\"$x\" 5711 exec_prefix="$acl_save_exec_prefix" 5712 prefix="$acl_save_prefix" 5713 5714 if test "X$x" = "X$element"; then 5715 haveit=yes 5716 break 5717 fi 5718 done 5719 if test -z "$haveit"; then 5720 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5721 fi 5722 done 5723 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 5725$as_echo_n "checking how to link with libiconv... " >&6; } 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 5727$as_echo "$LIBICONV" >&6; } 5728 else 5729 LIBICONV= 5730 LTLIBICONV= 5731 fi 5732 5733 5734 5735 if test "$am_cv_func_iconv" = yes; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 5737$as_echo_n "checking for iconv declaration... " >&6; } 5738 if ${am_cv_proto_iconv+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744 5745#include <stdlib.h> 5746#include <iconv.h> 5747extern 5748#ifdef __cplusplus 5749"C" 5750#endif 5751#if defined(__STDC__) || defined(__cplusplus) 5752size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 5753#else 5754size_t iconv(); 5755#endif 5756 5757int 5758main () 5759{ 5760 5761 ; 5762 return 0; 5763} 5764_ACEOF 5765if ac_fn_c_try_compile "$LINENO"; then : 5766 am_cv_proto_iconv_arg1="" 5767else 5768 am_cv_proto_iconv_arg1="const" 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 5772fi 5773 5774 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 5776 }$am_cv_proto_iconv" >&5 5777$as_echo "${ac_t:- 5778 }$am_cv_proto_iconv" >&6; } 5779 5780cat >>confdefs.h <<_ACEOF 5781#define ICONV_CONST $am_cv_proto_iconv_arg1 5782_ACEOF 5783 5784 fi 5785 5786 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 5788$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 5789if ${am_cv_langinfo_codeset+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794#include <langinfo.h> 5795int 5796main () 5797{ 5798char* cs = nl_langinfo(CODESET); 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803if ac_fn_c_try_link "$LINENO"; then : 5804 am_cv_langinfo_codeset=yes 5805else 5806 am_cv_langinfo_codeset=no 5807fi 5808rm -f core conftest.err conftest.$ac_objext \ 5809 conftest$ac_exeext conftest.$ac_ext 5810 5811fi 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 5813$as_echo "$am_cv_langinfo_codeset" >&6; } 5814 if test $am_cv_langinfo_codeset = yes; then 5815 5816$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 5817 5818 fi 5819 5820 if test $ac_cv_header_locale_h = yes; then 5821 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 5823$as_echo_n "checking for LC_MESSAGES... " >&6; } 5824if ${am_cv_val_LC_MESSAGES+:} false; then : 5825 $as_echo_n "(cached) " >&6 5826else 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829#include <locale.h> 5830int 5831main () 5832{ 5833return LC_MESSAGES 5834 ; 5835 return 0; 5836} 5837_ACEOF 5838if ac_fn_c_try_link "$LINENO"; then : 5839 am_cv_val_LC_MESSAGES=yes 5840else 5841 am_cv_val_LC_MESSAGES=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext \ 5844 conftest$ac_exeext conftest.$ac_ext 5845fi 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 5847$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 5848 if test $am_cv_val_LC_MESSAGES = yes; then 5849 5850$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 5851 5852 fi 5853 5854 fi 5855 5856 for ac_prog in bison 5857do 5858 # Extract the first word of "$ac_prog", so it can be a program name with args. 5859set dummy $ac_prog; ac_word=$2 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861$as_echo_n "checking for $ac_word... " >&6; } 5862if ${ac_cv_prog_INTLBISON+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 if test -n "$INTLBISON"; then 5866 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5875 ac_cv_prog_INTLBISON="$ac_prog" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880 done 5881IFS=$as_save_IFS 5882 5883fi 5884fi 5885INTLBISON=$ac_cv_prog_INTLBISON 5886if test -n "$INTLBISON"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 5888$as_echo "$INTLBISON" >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891$as_echo "no" >&6; } 5892fi 5893 5894 5895 test -n "$INTLBISON" && break 5896done 5897 5898 if test -z "$INTLBISON"; then 5899 ac_verc_fail=yes 5900 else 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 5902$as_echo_n "checking version of bison... " >&6; } 5903 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 5904 case $ac_prog_version in 5905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 5906 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 5907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 5908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 5909 esac 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 5911$as_echo "$ac_prog_version" >&6; } 5912 fi 5913 if test $ac_verc_fail = yes; then 5914 INTLBISON=: 5915 fi 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5933$as_echo_n "checking whether NLS is requested... " >&6; } 5934 # Check whether --enable-nls was given. 5935if test "${enable_nls+set}" = set; then : 5936 enableval=$enable_nls; USE_NLS=$enableval 5937else 5938 USE_NLS=yes 5939fi 5940 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5942$as_echo "$USE_NLS" >&6; } 5943 5944 5945 5946 5947 BUILD_INCLUDED_LIBINTL=no 5948 USE_INCLUDED_LIBINTL=no 5949 5950 LIBINTL= 5951 LTLIBINTL= 5952 POSUB= 5953 5954 if test "$USE_NLS" = "yes"; then 5955 gt_use_preinstalled_gnugettext=no 5956 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 5958$as_echo_n "checking whether included gettext is requested... " >&6; } 5959 5960# Check whether --with-included-gettext was given. 5961if test "${with_included_gettext+set}" = set; then : 5962 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 5963else 5964 nls_cv_force_use_gnu_gettext=no 5965fi 5966 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 5968$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 5969 5970 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 5971 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 5972 5973 5974 5975 5976 5977 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 5979$as_echo_n "checking for GNU gettext in libc... " >&6; } 5980if ${gt_cv_func_gnugettext2_libc+:} false; then : 5981 $as_echo_n "(cached) " >&6 5982else 5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5984/* end confdefs.h. */ 5985#include <libintl.h> 5986extern int _nl_msg_cat_cntr; 5987extern int *_nl_domain_bindings; 5988int 5989main () 5990{ 5991bindtextdomain ("", ""); 5992return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings 5993 ; 5994 return 0; 5995} 5996_ACEOF 5997if ac_fn_c_try_link "$LINENO"; then : 5998 gt_cv_func_gnugettext2_libc=yes 5999else 6000 gt_cv_func_gnugettext2_libc=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext \ 6003 conftest$ac_exeext conftest.$ac_ext 6004fi 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 6006$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } 6007 6008 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then 6009 6010 6011 6012 use_additional=yes 6013 6014 acl_save_prefix="$prefix" 6015 prefix="$acl_final_prefix" 6016 acl_save_exec_prefix="$exec_prefix" 6017 exec_prefix="$acl_final_exec_prefix" 6018 6019 eval additional_includedir=\"$includedir\" 6020 eval additional_libdir=\"$libdir\" 6021 6022 exec_prefix="$acl_save_exec_prefix" 6023 prefix="$acl_save_prefix" 6024 6025 6026# Check whether --with-libintl-prefix was given. 6027if test "${with_libintl_prefix+set}" = set; then : 6028 withval=$with_libintl_prefix; 6029 if test "X$withval" = "Xno"; then 6030 use_additional=no 6031 else 6032 if test "X$withval" = "X"; then 6033 6034 acl_save_prefix="$prefix" 6035 prefix="$acl_final_prefix" 6036 acl_save_exec_prefix="$exec_prefix" 6037 exec_prefix="$acl_final_exec_prefix" 6038 6039 eval additional_includedir=\"$includedir\" 6040 eval additional_libdir=\"$libdir\" 6041 6042 exec_prefix="$acl_save_exec_prefix" 6043 prefix="$acl_save_prefix" 6044 6045 else 6046 additional_includedir="$withval/include" 6047 additional_libdir="$withval/lib" 6048 fi 6049 fi 6050 6051fi 6052 6053 6054# Check whether --with-libintl-type was given. 6055if test "${with_libintl_type+set}" = set; then : 6056 withval=$with_libintl_type; with_libintl_type=$withval 6057else 6058 with_libintl_type=auto 6059fi 6060 6061 lib_type=`eval echo \$with_libintl_type` 6062 6063 LIBINTL= 6064 LTLIBINTL= 6065 INCINTL= 6066 rpathdirs= 6067 ltrpathdirs= 6068 names_already_handled= 6069 names_next_round='intl ' 6070 while test -n "$names_next_round"; do 6071 names_this_round="$names_next_round" 6072 names_next_round= 6073 for name in $names_this_round; do 6074 already_handled= 6075 for n in $names_already_handled; do 6076 if test "$n" = "$name"; then 6077 already_handled=yes 6078 break 6079 fi 6080 done 6081 if test -z "$already_handled"; then 6082 names_already_handled="$names_already_handled $name" 6083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6084 eval value=\"\$HAVE_LIB$uppername\" 6085 if test -n "$value"; then 6086 if test "$value" = yes; then 6087 eval value=\"\$LIB$uppername\" 6088 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6089 eval value=\"\$LTLIB$uppername\" 6090 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6091 else 6092 : 6093 fi 6094 else 6095 found_dir= 6096 found_la= 6097 found_so= 6098 found_a= 6099 if test $use_additional = yes; then 6100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6101 found_dir="$additional_libdir" 6102 found_so="$additional_libdir/lib$name.$shlibext" 6103 if test -f "$additional_libdir/lib$name.la"; then 6104 found_la="$additional_libdir/lib$name.la" 6105 fi 6106 elif test x$lib_type != xshared; then 6107 if test -f "$additional_libdir/lib$name.$libext"; then 6108 found_dir="$additional_libdir" 6109 found_a="$additional_libdir/lib$name.$libext" 6110 if test -f "$additional_libdir/lib$name.la"; then 6111 found_la="$additional_libdir/lib$name.la" 6112 fi 6113 fi 6114 fi 6115 fi 6116 if test "X$found_dir" = "X"; then 6117 for x in $LDFLAGS $LTLIBINTL; do 6118 6119 acl_save_prefix="$prefix" 6120 prefix="$acl_final_prefix" 6121 acl_save_exec_prefix="$exec_prefix" 6122 exec_prefix="$acl_final_exec_prefix" 6123 eval x=\"$x\" 6124 exec_prefix="$acl_save_exec_prefix" 6125 prefix="$acl_save_prefix" 6126 6127 case "$x" in 6128 -L*) 6129 dir=`echo "X$x" | sed -e 's/^X-L//'` 6130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6131 found_dir="$dir" 6132 found_so="$dir/lib$name.$shlibext" 6133 if test -f "$dir/lib$name.la"; then 6134 found_la="$dir/lib$name.la" 6135 fi 6136 elif test x$lib_type != xshared; then 6137 if test -f "$dir/lib$name.$libext"; then 6138 found_dir="$dir" 6139 found_a="$dir/lib$name.$libext" 6140 if test -f "$dir/lib$name.la"; then 6141 found_la="$dir/lib$name.la" 6142 fi 6143 fi 6144 fi 6145 ;; 6146 esac 6147 if test "X$found_dir" != "X"; then 6148 break 6149 fi 6150 done 6151 fi 6152 if test "X$found_dir" != "X"; then 6153 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6154 if test "X$found_so" != "X"; then 6155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6156 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6157 else 6158 haveit= 6159 for x in $ltrpathdirs; do 6160 if test "X$x" = "X$found_dir"; then 6161 haveit=yes 6162 break 6163 fi 6164 done 6165 if test -z "$haveit"; then 6166 ltrpathdirs="$ltrpathdirs $found_dir" 6167 fi 6168 if test "$hardcode_direct" = yes; then 6169 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6170 else 6171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6173 haveit= 6174 for x in $rpathdirs; do 6175 if test "X$x" = "X$found_dir"; then 6176 haveit=yes 6177 break 6178 fi 6179 done 6180 if test -z "$haveit"; then 6181 rpathdirs="$rpathdirs $found_dir" 6182 fi 6183 else 6184 haveit= 6185 for x in $LDFLAGS $LIBINTL; do 6186 6187 acl_save_prefix="$prefix" 6188 prefix="$acl_final_prefix" 6189 acl_save_exec_prefix="$exec_prefix" 6190 exec_prefix="$acl_final_exec_prefix" 6191 eval x=\"$x\" 6192 exec_prefix="$acl_save_exec_prefix" 6193 prefix="$acl_save_prefix" 6194 6195 if test "X$x" = "X-L$found_dir"; then 6196 haveit=yes 6197 break 6198 fi 6199 done 6200 if test -z "$haveit"; then 6201 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 6202 fi 6203 if test "$hardcode_minus_L" != no; then 6204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6205 else 6206 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6207 fi 6208 fi 6209 fi 6210 fi 6211 else 6212 if test "X$found_a" != "X"; then 6213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 6214 else 6215 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 6216 fi 6217 fi 6218 additional_includedir= 6219 case "$found_dir" in 6220 */lib | */lib/) 6221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6222 additional_includedir="$basedir/include" 6223 ;; 6224 esac 6225 if test "X$additional_includedir" != "X"; then 6226 if test "X$additional_includedir" != "X/usr/include"; then 6227 haveit= 6228 if test "X$additional_includedir" = "X/usr/local/include"; then 6229 if test -n "$GCC"; then 6230 case $host_os in 6231 linux*) haveit=yes;; 6232 esac 6233 fi 6234 fi 6235 if test -z "$haveit"; then 6236 for x in $CPPFLAGS $INCINTL; do 6237 6238 acl_save_prefix="$prefix" 6239 prefix="$acl_final_prefix" 6240 acl_save_exec_prefix="$exec_prefix" 6241 exec_prefix="$acl_final_exec_prefix" 6242 eval x=\"$x\" 6243 exec_prefix="$acl_save_exec_prefix" 6244 prefix="$acl_save_prefix" 6245 6246 if test "X$x" = "X-I$additional_includedir"; then 6247 haveit=yes 6248 break 6249 fi 6250 done 6251 if test -z "$haveit"; then 6252 if test -d "$additional_includedir"; then 6253 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 6254 fi 6255 fi 6256 fi 6257 fi 6258 fi 6259 if test -n "$found_la"; then 6260 save_libdir="$libdir" 6261 case "$found_la" in 6262 */* | *\\*) . "$found_la" ;; 6263 *) . "./$found_la" ;; 6264 esac 6265 libdir="$save_libdir" 6266 for dep in $dependency_libs; do 6267 case "$dep" in 6268 -L*) 6269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6270 if test "X$additional_libdir" != "X/usr/lib"; then 6271 haveit= 6272 if test "X$additional_libdir" = "X/usr/local/lib"; then 6273 if test -n "$GCC"; then 6274 case $host_os in 6275 linux*) haveit=yes;; 6276 esac 6277 fi 6278 fi 6279 if test -z "$haveit"; then 6280 haveit= 6281 for x in $LDFLAGS $LIBINTL; do 6282 6283 acl_save_prefix="$prefix" 6284 prefix="$acl_final_prefix" 6285 acl_save_exec_prefix="$exec_prefix" 6286 exec_prefix="$acl_final_exec_prefix" 6287 eval x=\"$x\" 6288 exec_prefix="$acl_save_exec_prefix" 6289 prefix="$acl_save_prefix" 6290 6291 if test "X$x" = "X-L$additional_libdir"; then 6292 haveit=yes 6293 break 6294 fi 6295 done 6296 if test -z "$haveit"; then 6297 if test -d "$additional_libdir"; then 6298 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 6299 fi 6300 fi 6301 haveit= 6302 for x in $LDFLAGS $LTLIBINTL; do 6303 6304 acl_save_prefix="$prefix" 6305 prefix="$acl_final_prefix" 6306 acl_save_exec_prefix="$exec_prefix" 6307 exec_prefix="$acl_final_exec_prefix" 6308 eval x=\"$x\" 6309 exec_prefix="$acl_save_exec_prefix" 6310 prefix="$acl_save_prefix" 6311 6312 if test "X$x" = "X-L$additional_libdir"; then 6313 haveit=yes 6314 break 6315 fi 6316 done 6317 if test -z "$haveit"; then 6318 if test -d "$additional_libdir"; then 6319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 6320 fi 6321 fi 6322 fi 6323 fi 6324 ;; 6325 -R*) 6326 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6327 if test "$enable_rpath" != no; then 6328 haveit= 6329 for x in $rpathdirs; do 6330 if test "X$x" = "X$dir"; then 6331 haveit=yes 6332 break 6333 fi 6334 done 6335 if test -z "$haveit"; then 6336 rpathdirs="$rpathdirs $dir" 6337 fi 6338 haveit= 6339 for x in $ltrpathdirs; do 6340 if test "X$x" = "X$dir"; then 6341 haveit=yes 6342 break 6343 fi 6344 done 6345 if test -z "$haveit"; then 6346 ltrpathdirs="$ltrpathdirs $dir" 6347 fi 6348 fi 6349 ;; 6350 -l*) 6351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6352 ;; 6353 *.la) 6354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6355 ;; 6356 *) 6357 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 6358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 6359 ;; 6360 esac 6361 done 6362 fi 6363 else 6364 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 6365 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6366 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 6367 else 6368 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 6369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 6370 fi 6371 fi 6372 fi 6373 fi 6374 done 6375 done 6376 if test "X$rpathdirs" != "X"; then 6377 if test -n "$hardcode_libdir_separator"; then 6378 alldirs= 6379 for found_dir in $rpathdirs; do 6380 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6381 done 6382 acl_save_libdir="$libdir" 6383 libdir="$alldirs" 6384 eval flag=\"$hardcode_libdir_flag_spec\" 6385 libdir="$acl_save_libdir" 6386 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6387 else 6388 for found_dir in $rpathdirs; do 6389 acl_save_libdir="$libdir" 6390 libdir="$found_dir" 6391 eval flag=\"$hardcode_libdir_flag_spec\" 6392 libdir="$acl_save_libdir" 6393 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6394 done 6395 fi 6396 fi 6397 if test "X$ltrpathdirs" != "X"; then 6398 for found_dir in $ltrpathdirs; do 6399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6400 done 6401 fi 6402 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 6404$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6405if ${gt_cv_func_gnugettext2_libintl+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 gt_save_CPPFLAGS="$CPPFLAGS" 6409 CPPFLAGS="$CPPFLAGS $INCINTL" 6410 gt_save_LIBS="$LIBS" 6411 LIBS="$LIBS $LIBINTL" 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414#include <libintl.h> 6415extern int _nl_msg_cat_cntr; 6416extern 6417#ifdef __cplusplus 6418"C" 6419#endif 6420const char *_nl_expand_alias (); 6421int 6422main () 6423{ 6424bindtextdomain ("", ""); 6425return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6426 ; 6427 return 0; 6428} 6429_ACEOF 6430if ac_fn_c_try_link "$LINENO"; then : 6431 gt_cv_func_gnugettext2_libintl=yes 6432else 6433 gt_cv_func_gnugettext2_libintl=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext \ 6436 conftest$ac_exeext conftest.$ac_ext 6437 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 6438 LIBS="$LIBS $LIBICONV" 6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441#include <libintl.h> 6442extern int _nl_msg_cat_cntr; 6443extern 6444#ifdef __cplusplus 6445"C" 6446#endif 6447const char *_nl_expand_alias (); 6448int 6449main () 6450{ 6451bindtextdomain ("", ""); 6452return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6453 ; 6454 return 0; 6455} 6456_ACEOF 6457if ac_fn_c_try_link "$LINENO"; then : 6458 LIBINTL="$LIBINTL $LIBICONV" 6459 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6460 gt_cv_func_gnugettext2_libintl=yes 6461 6462fi 6463rm -f core conftest.err conftest.$ac_objext \ 6464 conftest$ac_exeext conftest.$ac_ext 6465 fi 6466 CPPFLAGS="$gt_save_CPPFLAGS" 6467 LIBS="$gt_save_LIBS" 6468fi 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 6470$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } 6471 fi 6472 6473 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 6474 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 6475 && test "$PACKAGE" != gettext-runtime \ 6476 && test "$PACKAGE" != gettext-tools; }; then 6477 gt_use_preinstalled_gnugettext=yes 6478 else 6479 LIBINTL= 6480 LTLIBINTL= 6481 INCINTL= 6482 fi 6483 6484 6485 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 6486 nls_cv_use_gnu_gettext=yes 6487 fi 6488 fi 6489 6490 if test "$nls_cv_use_gnu_gettext" = "yes"; then 6491 BUILD_INCLUDED_LIBINTL=yes 6492 USE_INCLUDED_LIBINTL=yes 6493 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 6494 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 6495 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 6496 fi 6497 6498 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6499 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6500 CATOBJEXT=.gmo 6501 fi 6502 6503 6504 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6505 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6506 6507$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6508 6509 else 6510 USE_NLS=no 6511 fi 6512 fi 6513 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 6515$as_echo_n "checking whether to use NLS... " >&6; } 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6517$as_echo "$USE_NLS" >&6; } 6518 if test "$USE_NLS" = "yes"; then 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 6520$as_echo_n "checking where the gettext function comes from... " >&6; } 6521 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6522 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 6523 gt_source="external libintl" 6524 else 6525 gt_source="libc" 6526 fi 6527 else 6528 gt_source="included intl directory" 6529 fi 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 6531$as_echo "$gt_source" >&6; } 6532 fi 6533 6534 if test "$USE_NLS" = "yes"; then 6535 6536 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6537 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 6539$as_echo_n "checking how to link with libintl... " >&6; } 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6541$as_echo "$LIBINTL" >&6; } 6542 6543 for element in $INCINTL; do 6544 haveit= 6545 for x in $CPPFLAGS; do 6546 6547 acl_save_prefix="$prefix" 6548 prefix="$acl_final_prefix" 6549 acl_save_exec_prefix="$exec_prefix" 6550 exec_prefix="$acl_final_exec_prefix" 6551 eval x=\"$x\" 6552 exec_prefix="$acl_save_exec_prefix" 6553 prefix="$acl_save_prefix" 6554 6555 if test "X$x" = "X$element"; then 6556 haveit=yes 6557 break 6558 fi 6559 done 6560 if test -z "$haveit"; then 6561 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6562 fi 6563 done 6564 6565 fi 6566 6567 6568$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6569 6570 6571$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6572 6573 fi 6574 6575 POSUB=po 6576 fi 6577 6578 6579 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 6580 BUILD_INCLUDED_LIBINTL=yes 6581 fi 6582 6583 6584 6585 6586 6587 nls_cv_header_intl= 6588 nls_cv_header_libgt= 6589 6590 DATADIRNAME=share 6591 6592 6593 INSTOBJEXT=.mo 6594 6595 6596 GENCAT=gencat 6597 6598 6599 if test "$USE_INCLUDED_LIBINTL" = yes; then 6600 INTLOBJS="\$(GETTOBJS)" 6601 fi 6602 6603 6604 INTL_LIBTOOL_SUFFIX_PREFIX= 6605 6606 6607 6608 INTLLIBS="$LIBINTL" 6609 6610 6611 6612 6613 6614 6615 6616# This replaces the extensive use of DEFS in the original Makefile.in. 6617 6618$as_echo "#define IN_LIBINTL 1" >>confdefs.h 6619 6620 6621$as_echo "#define IN_LIBRARY 1" >>confdefs.h 6622 6623 6624$as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h 6625 6626 6627$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h 6628 6629 6630$as_echo "#define NO_XMALLOC 1" >>confdefs.h 6631 6632 6633$as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h 6634 6635 6636$as_echo "#define relocate libintl_relocate" >>confdefs.h 6637 6638 6639MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 6640for ac_prog in aclocal 6641do 6642 # Extract the first word of "$ac_prog", so it can be a program name with args. 6643set dummy $ac_prog; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_ACLOCAL+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$ACLOCAL"; then 6650 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6659 ac_cv_prog_ACLOCAL="$ac_prog" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669ACLOCAL=$ac_cv_prog_ACLOCAL 6670if test -n "$ACLOCAL"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 6672$as_echo "$ACLOCAL" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 6679 test -n "$ACLOCAL" && break 6680done 6681test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 6682 6683for ac_prog in autoconf 6684do 6685 # Extract the first word of "$ac_prog", so it can be a program name with args. 6686set dummy $ac_prog; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if ${ac_cv_prog_AUTOCONF+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$AUTOCONF"; then 6693 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6702 ac_cv_prog_AUTOCONF="$ac_prog" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712AUTOCONF=$ac_cv_prog_AUTOCONF 6713if test -n "$AUTOCONF"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 6715$as_echo "$AUTOCONF" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 6722 test -n "$AUTOCONF" && break 6723done 6724test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 6725 6726for ac_prog in autoheader 6727do 6728 # Extract the first word of "$ac_prog", so it can be a program name with args. 6729set dummy $ac_prog; ac_word=$2 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731$as_echo_n "checking for $ac_word... " >&6; } 6732if ${ac_cv_prog_AUTOHEADER+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 if test -n "$AUTOHEADER"; then 6736 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 6737else 6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6739for as_dir in $PATH 6740do 6741 IFS=$as_save_IFS 6742 test -z "$as_dir" && as_dir=. 6743 for ac_exec_ext in '' $ac_executable_extensions; do 6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6745 ac_cv_prog_AUTOHEADER="$ac_prog" 6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6747 break 2 6748 fi 6749done 6750 done 6751IFS=$as_save_IFS 6752 6753fi 6754fi 6755AUTOHEADER=$ac_cv_prog_AUTOHEADER 6756if test -n "$AUTOHEADER"; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 6758$as_echo "$AUTOHEADER" >&6; } 6759else 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6761$as_echo "no" >&6; } 6762fi 6763 6764 6765 test -n "$AUTOHEADER" && break 6766done 6767test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 6768 6769 6770# Check whether --enable-maintainer-mode was given. 6771if test "${enable_maintainer_mode+set}" = set; then : 6772 enableval=$enable_maintainer_mode; 6773else 6774 enable_maintainer_mode=no 6775fi 6776 6777if test "x$enable_maintainer_mode" = xno; then 6778 MAINT='#' 6779else 6780 MAINT= 6781fi 6782 6783 6784# Additional info for config.intl. 6785 6786 6787 6788LIBINTL_DEP= 6789INCINTL= 6790case $USE_INCLUDED_LIBINTL in 6791 yes) 6792 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' ` 6793 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' ` 6794 LIBINTL_DEP='${top_builddir}/../intl/libintl.a' 6795 INCINTL='-I${top_builddir}/../intl' 6796 ;; 6797esac 6798 6799BISON3_YES='#' 6800BISON3_NO= 6801if test "$INTLBISON" != :; then 6802 ac_bison3=no 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5 6804$as_echo_n "checking bison 3 or later... " >&6; } 6805 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 6806 case $ac_prog_version in 6807 [3-9].*) 6808 ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;; 6809 *) ac_prog_version="$ac_prog_version, old";; 6810 esac 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 6812$as_echo "$ac_prog_version" >&6; } 6813 if test $ac_bison3 = yes; then 6814 BISON3_YES= 6815 BISON3_NO='#' 6816 fi 6817fi 6818 6819 6820 6821# Check whether --enable-host-shared was given. 6822if test "${enable_host_shared+set}" = set; then : 6823 enableval=$enable_host_shared; PICFLAG=-fPIC 6824else 6825 PICFLAG= 6826fi 6827 6828 6829 6830ac_config_files="$ac_config_files Makefile config.intl" 6831 6832cat >confcache <<\_ACEOF 6833# This file is a shell script that caches the results of configure 6834# tests run on this system so they can be shared between configure 6835# scripts and configure runs, see configure's option --config-cache. 6836# It is not useful on other systems. If it contains results you don't 6837# want to keep, you may remove or edit it. 6838# 6839# config.status only pays attention to the cache file if you give it 6840# the --recheck option to rerun configure. 6841# 6842# `ac_cv_env_foo' variables (set or unset) will be overridden when 6843# loading this file, other *unset* `ac_cv_foo' will be assigned the 6844# following values. 6845 6846_ACEOF 6847 6848# The following way of writing the cache mishandles newlines in values, 6849# but we know of no workaround that is simple, portable, and efficient. 6850# So, we kill variables containing newlines. 6851# Ultrix sh set writes to stderr and can't be redirected directly, 6852# and sets the high bit in the cache file unless we assign to the vars. 6853( 6854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6855 eval ac_val=\$$ac_var 6856 case $ac_val in #( 6857 *${as_nl}*) 6858 case $ac_var in #( 6859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6861 esac 6862 case $ac_var in #( 6863 _ | IFS | as_nl) ;; #( 6864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6865 *) { eval $ac_var=; unset $ac_var;} ;; 6866 esac ;; 6867 esac 6868 done 6869 6870 (set) 2>&1 | 6871 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6872 *${as_nl}ac_space=\ *) 6873 # `set' does not quote correctly, so add quotes: double-quote 6874 # substitution turns \\\\ into \\, and sed turns \\ into \. 6875 sed -n \ 6876 "s/'/'\\\\''/g; 6877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6878 ;; #( 6879 *) 6880 # `set' quotes correctly as required by POSIX, so do not add quotes. 6881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6882 ;; 6883 esac | 6884 sort 6885) | 6886 sed ' 6887 /^ac_cv_env_/b end 6888 t clear 6889 :clear 6890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6891 t end 6892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6893 :end' >>confcache 6894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6895 if test -w "$cache_file"; then 6896 if test "x$cache_file" != "x/dev/null"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6898$as_echo "$as_me: updating cache $cache_file" >&6;} 6899 if test ! -f "$cache_file" || test -h "$cache_file"; then 6900 cat confcache >"$cache_file" 6901 else 6902 case $cache_file in #( 6903 */* | ?:*) 6904 mv -f confcache "$cache_file"$$ && 6905 mv -f "$cache_file"$$ "$cache_file" ;; #( 6906 *) 6907 mv -f confcache "$cache_file" ;; 6908 esac 6909 fi 6910 fi 6911 else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6913$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6914 fi 6915fi 6916rm -f confcache 6917 6918test "x$prefix" = xNONE && prefix=$ac_default_prefix 6919# Let make expand exec_prefix. 6920test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6921 6922DEFS=-DHAVE_CONFIG_H 6923 6924ac_libobjs= 6925ac_ltlibobjs= 6926U= 6927for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6928 # 1. Remove the extension, and $U if already installed. 6929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6932 # will be set to the directory where LIBOBJS objects are built. 6933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6935done 6936LIBOBJS=$ac_libobjs 6937 6938LTLIBOBJS=$ac_ltlibobjs 6939 6940 6941 6942: "${CONFIG_STATUS=./config.status}" 6943ac_write_fail=0 6944ac_clean_files_save=$ac_clean_files 6945ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6948as_write_fail=0 6949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6950#! $SHELL 6951# Generated by $as_me. 6952# Run this file to recreate the current configuration. 6953# Compiler output produced by configure, useful for debugging 6954# configure, is in config.log if it exists. 6955 6956debug=false 6957ac_cs_recheck=false 6958ac_cs_silent=false 6959 6960SHELL=\${CONFIG_SHELL-$SHELL} 6961export SHELL 6962_ASEOF 6963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6964## -------------------- ## 6965## M4sh Initialization. ## 6966## -------------------- ## 6967 6968# Be more Bourne compatible 6969DUALCASE=1; export DUALCASE # for MKS sh 6970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6971 emulate sh 6972 NULLCMD=: 6973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6974 # is contrary to our usage. Disable this feature. 6975 alias -g '${1+"$@"}'='"$@"' 6976 setopt NO_GLOB_SUBST 6977else 6978 case `(set -o) 2>/dev/null` in #( 6979 *posix*) : 6980 set -o posix ;; #( 6981 *) : 6982 ;; 6983esac 6984fi 6985 6986 6987as_nl=' 6988' 6989export as_nl 6990# Printing a long string crashes Solaris 7 /usr/bin/printf. 6991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6994# Prefer a ksh shell builtin over an external printf program on Solaris, 6995# but without wasting forks for bash or zsh. 6996if test -z "$BASH_VERSION$ZSH_VERSION" \ 6997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6998 as_echo='print -r --' 6999 as_echo_n='print -rn --' 7000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7001 as_echo='printf %s\n' 7002 as_echo_n='printf %s' 7003else 7004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7006 as_echo_n='/usr/ucb/echo -n' 7007 else 7008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7009 as_echo_n_body='eval 7010 arg=$1; 7011 case $arg in #( 7012 *"$as_nl"*) 7013 expr "X$arg" : "X\\(.*\\)$as_nl"; 7014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7015 esac; 7016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7017 ' 7018 export as_echo_n_body 7019 as_echo_n='sh -c $as_echo_n_body as_echo' 7020 fi 7021 export as_echo_body 7022 as_echo='sh -c $as_echo_body as_echo' 7023fi 7024 7025# The user is always right. 7026if test "${PATH_SEPARATOR+set}" != set; then 7027 PATH_SEPARATOR=: 7028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7030 PATH_SEPARATOR=';' 7031 } 7032fi 7033 7034 7035# IFS 7036# We need space, tab and new line, in precisely that order. Quoting is 7037# there to prevent editors from complaining about space-tab. 7038# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7039# splitting by setting IFS to empty value.) 7040IFS=" "" $as_nl" 7041 7042# Find who we are. Look in the path if we contain no directory separator. 7043as_myself= 7044case $0 in #(( 7045 *[\\/]* ) as_myself=$0 ;; 7046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7047for as_dir in $PATH 7048do 7049 IFS=$as_save_IFS 7050 test -z "$as_dir" && as_dir=. 7051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7052 done 7053IFS=$as_save_IFS 7054 7055 ;; 7056esac 7057# We did not find ourselves, most probably we were run as `sh COMMAND' 7058# in which case we are not to be found in the path. 7059if test "x$as_myself" = x; then 7060 as_myself=$0 7061fi 7062if test ! -f "$as_myself"; then 7063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7064 exit 1 7065fi 7066 7067# Unset variables that we do not need and which cause bugs (e.g. in 7068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7069# suppresses any "Segmentation fault" message there. '((' could 7070# trigger a bug in pdksh 5.2.14. 7071for as_var in BASH_ENV ENV MAIL MAILPATH 7072do eval test x\${$as_var+set} = xset \ 7073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7074done 7075PS1='$ ' 7076PS2='> ' 7077PS4='+ ' 7078 7079# NLS nuisances. 7080LC_ALL=C 7081export LC_ALL 7082LANGUAGE=C 7083export LANGUAGE 7084 7085# CDPATH. 7086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7087 7088 7089# as_fn_error STATUS ERROR [LINENO LOG_FD] 7090# ---------------------------------------- 7091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7093# script with STATUS, using 1 if that was 0. 7094as_fn_error () 7095{ 7096 as_status=$1; test $as_status -eq 0 && as_status=1 7097 if test "$4"; then 7098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7100 fi 7101 $as_echo "$as_me: error: $2" >&2 7102 as_fn_exit $as_status 7103} # as_fn_error 7104 7105 7106# as_fn_set_status STATUS 7107# ----------------------- 7108# Set $? to STATUS, without forking. 7109as_fn_set_status () 7110{ 7111 return $1 7112} # as_fn_set_status 7113 7114# as_fn_exit STATUS 7115# ----------------- 7116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7117as_fn_exit () 7118{ 7119 set +e 7120 as_fn_set_status $1 7121 exit $1 7122} # as_fn_exit 7123 7124# as_fn_unset VAR 7125# --------------- 7126# Portably unset VAR. 7127as_fn_unset () 7128{ 7129 { eval $1=; unset $1;} 7130} 7131as_unset=as_fn_unset 7132# as_fn_append VAR VALUE 7133# ---------------------- 7134# Append the text in VALUE to the end of the definition contained in VAR. Take 7135# advantage of any shell optimizations that allow amortized linear growth over 7136# repeated appends, instead of the typical quadratic growth present in naive 7137# implementations. 7138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7139 eval 'as_fn_append () 7140 { 7141 eval $1+=\$2 7142 }' 7143else 7144 as_fn_append () 7145 { 7146 eval $1=\$$1\$2 7147 } 7148fi # as_fn_append 7149 7150# as_fn_arith ARG... 7151# ------------------ 7152# Perform arithmetic evaluation on the ARGs, and store the result in the 7153# global $as_val. Take advantage of shells that can avoid forks. The arguments 7154# must be portable across $(()) and expr. 7155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7156 eval 'as_fn_arith () 7157 { 7158 as_val=$(( $* )) 7159 }' 7160else 7161 as_fn_arith () 7162 { 7163 as_val=`expr "$@" || test $? -eq 1` 7164 } 7165fi # as_fn_arith 7166 7167 7168if expr a : '\(a\)' >/dev/null 2>&1 && 7169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7170 as_expr=expr 7171else 7172 as_expr=false 7173fi 7174 7175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7176 as_basename=basename 7177else 7178 as_basename=false 7179fi 7180 7181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7182 as_dirname=dirname 7183else 7184 as_dirname=false 7185fi 7186 7187as_me=`$as_basename -- "$0" || 7188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7189 X"$0" : 'X\(//\)$' \| \ 7190 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7191$as_echo X/"$0" | 7192 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7193 s//\1/ 7194 q 7195 } 7196 /^X\/\(\/\/\)$/{ 7197 s//\1/ 7198 q 7199 } 7200 /^X\/\(\/\).*/{ 7201 s//\1/ 7202 q 7203 } 7204 s/.*/./; q'` 7205 7206# Avoid depending upon Character Ranges. 7207as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7209as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7210as_cr_digits='0123456789' 7211as_cr_alnum=$as_cr_Letters$as_cr_digits 7212 7213ECHO_C= ECHO_N= ECHO_T= 7214case `echo -n x` in #((((( 7215-n*) 7216 case `echo 'xy\c'` in 7217 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7218 xy) ECHO_C='\c';; 7219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7220 ECHO_T=' ';; 7221 esac;; 7222*) 7223 ECHO_N='-n';; 7224esac 7225 7226rm -f conf$$ conf$$.exe conf$$.file 7227if test -d conf$$.dir; then 7228 rm -f conf$$.dir/conf$$.file 7229else 7230 rm -f conf$$.dir 7231 mkdir conf$$.dir 2>/dev/null 7232fi 7233if (echo >conf$$.file) 2>/dev/null; then 7234 if ln -s conf$$.file conf$$ 2>/dev/null; then 7235 as_ln_s='ln -s' 7236 # ... but there are two gotchas: 7237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7239 # In both cases, we have to default to `cp -pR'. 7240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7241 as_ln_s='cp -pR' 7242 elif ln conf$$.file conf$$ 2>/dev/null; then 7243 as_ln_s=ln 7244 else 7245 as_ln_s='cp -pR' 7246 fi 7247else 7248 as_ln_s='cp -pR' 7249fi 7250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7251rmdir conf$$.dir 2>/dev/null 7252 7253 7254# as_fn_mkdir_p 7255# ------------- 7256# Create "$as_dir" as a directory, including parents if necessary. 7257as_fn_mkdir_p () 7258{ 7259 7260 case $as_dir in #( 7261 -*) as_dir=./$as_dir;; 7262 esac 7263 test -d "$as_dir" || eval $as_mkdir_p || { 7264 as_dirs= 7265 while :; do 7266 case $as_dir in #( 7267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7268 *) as_qdir=$as_dir;; 7269 esac 7270 as_dirs="'$as_qdir' $as_dirs" 7271 as_dir=`$as_dirname -- "$as_dir" || 7272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7273 X"$as_dir" : 'X\(//\)[^/]' \| \ 7274 X"$as_dir" : 'X\(//\)$' \| \ 7275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7276$as_echo X"$as_dir" | 7277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7278 s//\1/ 7279 q 7280 } 7281 /^X\(\/\/\)[^/].*/{ 7282 s//\1/ 7283 q 7284 } 7285 /^X\(\/\/\)$/{ 7286 s//\1/ 7287 q 7288 } 7289 /^X\(\/\).*/{ 7290 s//\1/ 7291 q 7292 } 7293 s/.*/./; q'` 7294 test -d "$as_dir" && break 7295 done 7296 test -z "$as_dirs" || eval "mkdir $as_dirs" 7297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7298 7299 7300} # as_fn_mkdir_p 7301if mkdir -p . 2>/dev/null; then 7302 as_mkdir_p='mkdir -p "$as_dir"' 7303else 7304 test -d ./-p && rmdir ./-p 7305 as_mkdir_p=false 7306fi 7307 7308 7309# as_fn_executable_p FILE 7310# ----------------------- 7311# Test if FILE is an executable regular file. 7312as_fn_executable_p () 7313{ 7314 test -f "$1" && test -x "$1" 7315} # as_fn_executable_p 7316as_test_x='test -x' 7317as_executable_p=as_fn_executable_p 7318 7319# Sed expression to map a string onto a valid CPP name. 7320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7321 7322# Sed expression to map a string onto a valid variable name. 7323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7324 7325 7326exec 6>&1 7327## ----------------------------------- ## 7328## Main body of $CONFIG_STATUS script. ## 7329## ----------------------------------- ## 7330_ASEOF 7331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7332 7333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7334# Save the log message, to keep $0 and so on meaningful, and to 7335# report actual input values of CONFIG_FILES etc. instead of their 7336# values after options handling. 7337ac_log=" 7338This file was extended by $as_me, which was 7339generated by GNU Autoconf 2.69. Invocation command line was 7340 7341 CONFIG_FILES = $CONFIG_FILES 7342 CONFIG_HEADERS = $CONFIG_HEADERS 7343 CONFIG_LINKS = $CONFIG_LINKS 7344 CONFIG_COMMANDS = $CONFIG_COMMANDS 7345 $ $0 $@ 7346 7347on `(hostname || uname -n) 2>/dev/null | sed 1q` 7348" 7349 7350_ACEOF 7351 7352case $ac_config_files in *" 7353"*) set x $ac_config_files; shift; ac_config_files=$*;; 7354esac 7355 7356case $ac_config_headers in *" 7357"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7358esac 7359 7360 7361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7362# Files that config.status was made for. 7363config_files="$ac_config_files" 7364config_headers="$ac_config_headers" 7365config_commands="$ac_config_commands" 7366 7367_ACEOF 7368 7369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7370ac_cs_usage="\ 7371\`$as_me' instantiates files and other configuration actions 7372from templates according to the current configuration. Unless the files 7373and actions are specified as TAGs, all are instantiated by default. 7374 7375Usage: $0 [OPTION]... [TAG]... 7376 7377 -h, --help print this help, then exit 7378 -V, --version print version number and configuration settings, then exit 7379 --config print configuration, then exit 7380 -q, --quiet, --silent 7381 do not print progress messages 7382 -d, --debug don't remove temporary files 7383 --recheck update $as_me by reconfiguring in the same conditions 7384 --file=FILE[:TEMPLATE] 7385 instantiate the configuration file FILE 7386 --header=FILE[:TEMPLATE] 7387 instantiate the configuration header FILE 7388 7389Configuration files: 7390$config_files 7391 7392Configuration headers: 7393$config_headers 7394 7395Configuration commands: 7396$config_commands 7397 7398Report bugs to the package provider." 7399 7400_ACEOF 7401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7402ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7403ac_cs_version="\\ 7404config.status 7405configured by $0, generated by GNU Autoconf 2.69, 7406 with options \\"\$ac_cs_config\\" 7407 7408Copyright (C) 2012 Free Software Foundation, Inc. 7409This config.status script is free software; the Free Software Foundation 7410gives unlimited permission to copy, distribute and modify it." 7411 7412ac_pwd='$ac_pwd' 7413srcdir='$srcdir' 7414INSTALL='$INSTALL' 7415test -n "\$AWK" || AWK=awk 7416_ACEOF 7417 7418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7419# The default lists apply if the user does not specify any file. 7420ac_need_defaults=: 7421while test $# != 0 7422do 7423 case $1 in 7424 --*=?*) 7425 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7427 ac_shift=: 7428 ;; 7429 --*=) 7430 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7431 ac_optarg= 7432 ac_shift=: 7433 ;; 7434 *) 7435 ac_option=$1 7436 ac_optarg=$2 7437 ac_shift=shift 7438 ;; 7439 esac 7440 7441 case $ac_option in 7442 # Handling of the options. 7443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7444 ac_cs_recheck=: ;; 7445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7446 $as_echo "$ac_cs_version"; exit ;; 7447 --config | --confi | --conf | --con | --co | --c ) 7448 $as_echo "$ac_cs_config"; exit ;; 7449 --debug | --debu | --deb | --de | --d | -d ) 7450 debug=: ;; 7451 --file | --fil | --fi | --f ) 7452 $ac_shift 7453 case $ac_optarg in 7454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7455 '') as_fn_error $? "missing file argument" ;; 7456 esac 7457 as_fn_append CONFIG_FILES " '$ac_optarg'" 7458 ac_need_defaults=false;; 7459 --header | --heade | --head | --hea ) 7460 $ac_shift 7461 case $ac_optarg in 7462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7463 esac 7464 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7465 ac_need_defaults=false;; 7466 --he | --h) 7467 # Conflict between --help and --header 7468 as_fn_error $? "ambiguous option: \`$1' 7469Try \`$0 --help' for more information.";; 7470 --help | --hel | -h ) 7471 $as_echo "$ac_cs_usage"; exit ;; 7472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7473 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7474 ac_cs_silent=: ;; 7475 7476 # This is an error. 7477 -*) as_fn_error $? "unrecognized option: \`$1' 7478Try \`$0 --help' for more information." ;; 7479 7480 *) as_fn_append ac_config_targets " $1" 7481 ac_need_defaults=false ;; 7482 7483 esac 7484 shift 7485done 7486 7487ac_configure_extra_args= 7488 7489if $ac_cs_silent; then 7490 exec 6>/dev/null 7491 ac_configure_extra_args="$ac_configure_extra_args --silent" 7492fi 7493 7494_ACEOF 7495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7496if \$ac_cs_recheck; then 7497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7498 shift 7499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7500 CONFIG_SHELL='$SHELL' 7501 export CONFIG_SHELL 7502 exec "\$@" 7503fi 7504 7505_ACEOF 7506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7507exec 5>>config.log 7508{ 7509 echo 7510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7511## Running $as_me. ## 7512_ASBOX 7513 $as_echo "$ac_log" 7514} >&5 7515 7516_ACEOF 7517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7518# 7519# INIT-COMMANDS 7520# 7521# Capture the value of obsolete ALL_LINGUAS because we need it to compute 7522 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 7523 # from automake. 7524 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 7525 # Capture the value of LINGUAS because we need it to compute CATALOGS. 7526 LINGUAS="${LINGUAS-%UNSET%}" 7527 7528 7529_ACEOF 7530 7531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7532 7533# Handling of arguments. 7534for ac_config_target in $ac_config_targets 7535do 7536 case $ac_config_target in 7537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7538 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 7539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7540 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;; 7541 7542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7543 esac 7544done 7545 7546 7547# If the user did not use the arguments to specify the items to instantiate, 7548# then the envvar interface is used. Set only those that are not. 7549# We use the long form for the default assignment because of an extremely 7550# bizarre bug on SunOS 4.1.3. 7551if $ac_need_defaults; then 7552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7555fi 7556 7557# Have a temporary directory for convenience. Make it in the build tree 7558# simply because there is no reason against having it here, and in addition, 7559# creating and moving files from /tmp can sometimes cause problems. 7560# Hook for its removal unless debugging. 7561# Note that there is a small window in which the directory will not be cleaned: 7562# after its creation but before its name has been assigned to `$tmp'. 7563$debug || 7564{ 7565 tmp= ac_tmp= 7566 trap 'exit_status=$? 7567 : "${ac_tmp:=$tmp}" 7568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7569' 0 7570 trap 'as_fn_exit 1' 1 2 13 15 7571} 7572# Create a (secure) tmp directory for tmp files. 7573 7574{ 7575 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7576 test -d "$tmp" 7577} || 7578{ 7579 tmp=./conf$$-$RANDOM 7580 (umask 077 && mkdir "$tmp") 7581} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7582ac_tmp=$tmp 7583 7584# Set up the scripts for CONFIG_FILES section. 7585# No need to generate them if there are no CONFIG_FILES. 7586# This happens for instance with `./config.status config.h'. 7587if test -n "$CONFIG_FILES"; then 7588 7589 7590ac_cr=`echo X | tr X '\015'` 7591# On cygwin, bash can eat \r inside `` if the user requested igncr. 7592# But we know of no other shell where ac_cr would be empty at this 7593# point, so we can use a bashism as a fallback. 7594if test "x$ac_cr" = x; then 7595 eval ac_cr=\$\'\\r\' 7596fi 7597ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7598if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7599 ac_cs_awk_cr='\\r' 7600else 7601 ac_cs_awk_cr=$ac_cr 7602fi 7603 7604echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7605_ACEOF 7606 7607 7608{ 7609 echo "cat >conf$$subs.awk <<_ACEOF" && 7610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7611 echo "_ACEOF" 7612} >conf$$subs.sh || 7613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7614ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7615ac_delim='%!_!# ' 7616for ac_last_try in false false false false false :; do 7617 . ./conf$$subs.sh || 7618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7619 7620 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7621 if test $ac_delim_n = $ac_delim_num; then 7622 break 7623 elif $ac_last_try; then 7624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7625 else 7626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7627 fi 7628done 7629rm -f conf$$subs.sh 7630 7631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7632cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7633_ACEOF 7634sed -n ' 7635h 7636s/^/S["/; s/!.*/"]=/ 7637p 7638g 7639s/^[^!]*!// 7640:repl 7641t repl 7642s/'"$ac_delim"'$// 7643t delim 7644:nl 7645h 7646s/\(.\{148\}\)..*/\1/ 7647t more1 7648s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7649p 7650n 7651b repl 7652:more1 7653s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7654p 7655g 7656s/.\{148\}// 7657t nl 7658:delim 7659h 7660s/\(.\{148\}\)..*/\1/ 7661t more2 7662s/["\\]/\\&/g; s/^/"/; s/$/"/ 7663p 7664b 7665:more2 7666s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7667p 7668g 7669s/.\{148\}// 7670t delim 7671' <conf$$subs.awk | sed ' 7672/^[^""]/{ 7673 N 7674 s/\n// 7675} 7676' >>$CONFIG_STATUS || ac_write_fail=1 7677rm -f conf$$subs.awk 7678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7679_ACAWK 7680cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7681 for (key in S) S_is_set[key] = 1 7682 FS = "" 7683 7684} 7685{ 7686 line = $ 0 7687 nfields = split(line, field, "@") 7688 substed = 0 7689 len = length(field[1]) 7690 for (i = 2; i < nfields; i++) { 7691 key = field[i] 7692 keylen = length(key) 7693 if (S_is_set[key]) { 7694 value = S[key] 7695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7696 len += length(value) + length(field[++i]) 7697 substed = 1 7698 } else 7699 len += 1 + keylen 7700 } 7701 7702 print line 7703} 7704 7705_ACAWK 7706_ACEOF 7707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7708if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7709 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7710else 7711 cat 7712fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7713 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7714_ACEOF 7715 7716# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7717# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7718# trailing colons and then remove the whole line if VPATH becomes empty 7719# (actually we leave an empty line to preserve line numbers). 7720if test "x$srcdir" = x.; then 7721 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7722h 7723s/// 7724s/^/:/ 7725s/[ ]*$/:/ 7726s/:\$(srcdir):/:/g 7727s/:\${srcdir}:/:/g 7728s/:@srcdir@:/:/g 7729s/^:*// 7730s/:*$// 7731x 7732s/\(=[ ]*\).*/\1/ 7733G 7734s/\n// 7735s/^[^=]*=[ ]*$// 7736}' 7737fi 7738 7739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7740fi # test -n "$CONFIG_FILES" 7741 7742# Set up the scripts for CONFIG_HEADERS section. 7743# No need to generate them if there are no CONFIG_HEADERS. 7744# This happens for instance with `./config.status Makefile'. 7745if test -n "$CONFIG_HEADERS"; then 7746cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7747BEGIN { 7748_ACEOF 7749 7750# Transform confdefs.h into an awk script `defines.awk', embedded as 7751# here-document in config.status, that substitutes the proper values into 7752# config.h.in to produce config.h. 7753 7754# Create a delimiter string that does not exist in confdefs.h, to ease 7755# handling of long lines. 7756ac_delim='%!_!# ' 7757for ac_last_try in false false :; do 7758 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7759 if test -z "$ac_tt"; then 7760 break 7761 elif $ac_last_try; then 7762 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7763 else 7764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7765 fi 7766done 7767 7768# For the awk script, D is an array of macro values keyed by name, 7769# likewise P contains macro parameters if any. Preserve backslash 7770# newline sequences. 7771 7772ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7773sed -n ' 7774s/.\{148\}/&'"$ac_delim"'/g 7775t rset 7776:rset 7777s/^[ ]*#[ ]*define[ ][ ]*/ / 7778t def 7779d 7780:def 7781s/\\$// 7782t bsnl 7783s/["\\]/\\&/g 7784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7785D["\1"]=" \3"/p 7786s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7787d 7788:bsnl 7789s/["\\]/\\&/g 7790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7791D["\1"]=" \3\\\\\\n"\\/p 7792t cont 7793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7794t cont 7795d 7796:cont 7797n 7798s/.\{148\}/&'"$ac_delim"'/g 7799t clear 7800:clear 7801s/\\$// 7802t bsnlc 7803s/["\\]/\\&/g; s/^/"/; s/$/"/p 7804d 7805:bsnlc 7806s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7807b cont 7808' <confdefs.h | sed ' 7809s/'"$ac_delim"'/"\\\ 7810"/g' >>$CONFIG_STATUS || ac_write_fail=1 7811 7812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7813 for (key in D) D_is_set[key] = 1 7814 FS = "" 7815} 7816/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7817 line = \$ 0 7818 split(line, arg, " ") 7819 if (arg[1] == "#") { 7820 defundef = arg[2] 7821 mac1 = arg[3] 7822 } else { 7823 defundef = substr(arg[1], 2) 7824 mac1 = arg[2] 7825 } 7826 split(mac1, mac2, "(") #) 7827 macro = mac2[1] 7828 prefix = substr(line, 1, index(line, defundef) - 1) 7829 if (D_is_set[macro]) { 7830 # Preserve the white space surrounding the "#". 7831 print prefix "define", macro P[macro] D[macro] 7832 next 7833 } else { 7834 # Replace #undef with comments. This is necessary, for example, 7835 # in the case of _POSIX_SOURCE, which is predefined and required 7836 # on some systems where configure will not decide to define it. 7837 if (defundef == "undef") { 7838 print "/*", prefix defundef, macro, "*/" 7839 next 7840 } 7841 } 7842} 7843{ print } 7844_ACAWK 7845_ACEOF 7846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7847 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 7848fi # test -n "$CONFIG_HEADERS" 7849 7850 7851eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7852shift 7853for ac_tag 7854do 7855 case $ac_tag in 7856 :[FHLC]) ac_mode=$ac_tag; continue;; 7857 esac 7858 case $ac_mode$ac_tag in 7859 :[FHL]*:*);; 7860 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7861 :[FH]-) ac_tag=-:-;; 7862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7863 esac 7864 ac_save_IFS=$IFS 7865 IFS=: 7866 set x $ac_tag 7867 IFS=$ac_save_IFS 7868 shift 7869 ac_file=$1 7870 shift 7871 7872 case $ac_mode in 7873 :L) ac_source=$1;; 7874 :[FH]) 7875 ac_file_inputs= 7876 for ac_f 7877 do 7878 case $ac_f in 7879 -) ac_f="$ac_tmp/stdin";; 7880 *) # Look for the file first in the build tree, then in the source tree 7881 # (if the path is not absolute). The absolute path cannot be DOS-style, 7882 # because $ac_f cannot contain `:'. 7883 test -f "$ac_f" || 7884 case $ac_f in 7885 [\\/$]*) false;; 7886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7887 esac || 7888 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7889 esac 7890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7891 as_fn_append ac_file_inputs " '$ac_f'" 7892 done 7893 7894 # Let's still pretend it is `configure' which instantiates (i.e., don't 7895 # use $as_me), people would be surprised to read: 7896 # /* config.h. Generated by config.status. */ 7897 configure_input='Generated from '` 7898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7899 `' by configure.' 7900 if test x"$ac_file" != x-; then 7901 configure_input="$ac_file. $configure_input" 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7903$as_echo "$as_me: creating $ac_file" >&6;} 7904 fi 7905 # Neutralize special characters interpreted by sed in replacement strings. 7906 case $configure_input in #( 7907 *\&* | *\|* | *\\* ) 7908 ac_sed_conf_input=`$as_echo "$configure_input" | 7909 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7910 *) ac_sed_conf_input=$configure_input;; 7911 esac 7912 7913 case $ac_tag in 7914 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7916 esac 7917 ;; 7918 esac 7919 7920 ac_dir=`$as_dirname -- "$ac_file" || 7921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7922 X"$ac_file" : 'X\(//\)[^/]' \| \ 7923 X"$ac_file" : 'X\(//\)$' \| \ 7924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7925$as_echo X"$ac_file" | 7926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7927 s//\1/ 7928 q 7929 } 7930 /^X\(\/\/\)[^/].*/{ 7931 s//\1/ 7932 q 7933 } 7934 /^X\(\/\/\)$/{ 7935 s//\1/ 7936 q 7937 } 7938 /^X\(\/\).*/{ 7939 s//\1/ 7940 q 7941 } 7942 s/.*/./; q'` 7943 as_dir="$ac_dir"; as_fn_mkdir_p 7944 ac_builddir=. 7945 7946case "$ac_dir" in 7947.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7948*) 7949 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7950 # A ".." for each directory in $ac_dir_suffix. 7951 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7952 case $ac_top_builddir_sub in 7953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7955 esac ;; 7956esac 7957ac_abs_top_builddir=$ac_pwd 7958ac_abs_builddir=$ac_pwd$ac_dir_suffix 7959# for backward compatibility: 7960ac_top_builddir=$ac_top_build_prefix 7961 7962case $srcdir in 7963 .) # We are building in place. 7964 ac_srcdir=. 7965 ac_top_srcdir=$ac_top_builddir_sub 7966 ac_abs_top_srcdir=$ac_pwd ;; 7967 [\\/]* | ?:[\\/]* ) # Absolute name. 7968 ac_srcdir=$srcdir$ac_dir_suffix; 7969 ac_top_srcdir=$srcdir 7970 ac_abs_top_srcdir=$srcdir ;; 7971 *) # Relative name. 7972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7973 ac_top_srcdir=$ac_top_build_prefix$srcdir 7974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7975esac 7976ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7977 7978 7979 case $ac_mode in 7980 :F) 7981 # 7982 # CONFIG_FILE 7983 # 7984 7985 case $INSTALL in 7986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7988 esac 7989_ACEOF 7990 7991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7992# If the template does not know about datarootdir, expand it. 7993# FIXME: This hack should be removed a few years after 2.60. 7994ac_datarootdir_hack=; ac_datarootdir_seen= 7995ac_sed_dataroot=' 7996/datarootdir/ { 7997 p 7998 q 7999} 8000/@datadir@/p 8001/@docdir@/p 8002/@infodir@/p 8003/@localedir@/p 8004/@mandir@/p' 8005case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8006*datarootdir*) ac_datarootdir_seen=yes;; 8007*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8009$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8010_ACEOF 8011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8012 ac_datarootdir_hack=' 8013 s&@datadir@&$datadir&g 8014 s&@docdir@&$docdir&g 8015 s&@infodir@&$infodir&g 8016 s&@localedir@&$localedir&g 8017 s&@mandir@&$mandir&g 8018 s&\\\${datarootdir}&$datarootdir&g' ;; 8019esac 8020_ACEOF 8021 8022# Neutralize VPATH when `$srcdir' = `.'. 8023# Shell code in configure.ac might set extrasub. 8024# FIXME: do we really want to maintain this feature? 8025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8026ac_sed_extra="$ac_vpsub 8027$extrasub 8028_ACEOF 8029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8030:t 8031/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8032s|@configure_input@|$ac_sed_conf_input|;t t 8033s&@top_builddir@&$ac_top_builddir_sub&;t t 8034s&@top_build_prefix@&$ac_top_build_prefix&;t t 8035s&@srcdir@&$ac_srcdir&;t t 8036s&@abs_srcdir@&$ac_abs_srcdir&;t t 8037s&@top_srcdir@&$ac_top_srcdir&;t t 8038s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8039s&@builddir@&$ac_builddir&;t t 8040s&@abs_builddir@&$ac_abs_builddir&;t t 8041s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8042s&@INSTALL@&$ac_INSTALL&;t t 8043$ac_datarootdir_hack 8044" 8045eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8047 8048test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8051 "$ac_tmp/out"`; test -z "$ac_out"; } && 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8053which seems to be undefined. Please make sure it is defined" >&5 8054$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8055which seems to be undefined. Please make sure it is defined" >&2;} 8056 8057 rm -f "$ac_tmp/stdin" 8058 case $ac_file in 8059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8061 esac \ 8062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8063 ;; 8064 :H) 8065 # 8066 # CONFIG_HEADER 8067 # 8068 if test x"$ac_file" != x-; then 8069 { 8070 $as_echo "/* $configure_input */" \ 8071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8072 } >"$ac_tmp/config.h" \ 8073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8076$as_echo "$as_me: $ac_file is unchanged" >&6;} 8077 else 8078 rm -f "$ac_file" 8079 mv "$ac_tmp/config.h" "$ac_file" \ 8080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8081 fi 8082 else 8083 $as_echo "/* $configure_input */" \ 8084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8085 || as_fn_error $? "could not create -" "$LINENO" 5 8086 fi 8087 ;; 8088 8089 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8090$as_echo "$as_me: executing $ac_file commands" >&6;} 8091 ;; 8092 esac 8093 8094 8095 case $ac_file$ac_mode in 8096 "default-1":C) 8097 for ac_file in $CONFIG_FILES; do 8098 # Support "outfile[:infile[:infile...]]" 8099 case "$ac_file" in 8100 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 8101 esac 8102 # PO directories have a Makefile.in generated from Makefile.in.in. 8103 case "$ac_file" in */Makefile.in) 8104 # Adjust a relative srcdir. 8105 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 8106 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 8107 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 8108 # In autoconf-2.13 it is called $ac_given_srcdir. 8109 # In autoconf-2.50 it is called $srcdir. 8110 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 8111 case "$ac_given_srcdir" in 8112 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 8113 /*) top_srcdir="$ac_given_srcdir" ;; 8114 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 8115 esac 8116 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 8117 rm -f "$ac_dir/POTFILES" 8118 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 8119 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 8120 POMAKEFILEDEPS="POTFILES.in" 8121 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 8122 # on $ac_dir but don't depend on user-specified configuration 8123 # parameters. 8124 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 8125 # The LINGUAS file contains the set of available languages. 8126 if test -n "$OBSOLETE_ALL_LINGUAS"; then 8127 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 8128 fi 8129 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 8130 # Hide the ALL_LINGUAS assigment from automake. 8131 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 8132 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 8133 else 8134 # The set of available languages was given in configure.ac. 8135 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 8136 fi 8137 case "$ac_given_srcdir" in 8138 .) srcdirpre= ;; 8139 *) srcdirpre='$(srcdir)/' ;; 8140 esac 8141 POFILES= 8142 GMOFILES= 8143 UPDATEPOFILES= 8144 DUMMYPOFILES= 8145 for lang in $ALL_LINGUAS; do 8146 POFILES="$POFILES $srcdirpre$lang.po" 8147 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 8148 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 8149 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 8150 done 8151 # CATALOGS depends on both $ac_dir and the user's LINGUAS 8152 # environment variable. 8153 INST_LINGUAS= 8154 if test -n "$ALL_LINGUAS"; then 8155 for presentlang in $ALL_LINGUAS; do 8156 useit=no 8157 if test "%UNSET%" != "$LINGUAS"; then 8158 desiredlanguages="$LINGUAS" 8159 else 8160 desiredlanguages="$ALL_LINGUAS" 8161 fi 8162 for desiredlang in $desiredlanguages; do 8163 # Use the presentlang catalog if desiredlang is 8164 # a. equal to presentlang, or 8165 # b. a variant of presentlang (because in this case, 8166 # presentlang can be used as a fallback for messages 8167 # which are not translated in the desiredlang catalog). 8168 case "$desiredlang" in 8169 "$presentlang"*) useit=yes;; 8170 esac 8171 done 8172 if test $useit = yes; then 8173 INST_LINGUAS="$INST_LINGUAS $presentlang" 8174 fi 8175 done 8176 fi 8177 CATALOGS= 8178 if test -n "$INST_LINGUAS"; then 8179 for lang in $INST_LINGUAS; do 8180 CATALOGS="$CATALOGS $lang.gmo" 8181 done 8182 fi 8183 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 8184 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 8185 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 8186 if test -f "$f"; then 8187 case "$f" in 8188 *.orig | *.bak | *~) ;; 8189 *) cat "$f" >> "$ac_dir/Makefile" ;; 8190 esac 8191 fi 8192 done 8193 fi 8194 ;; 8195 esac 8196 done ;; 8197 8198 esac 8199done # for ac_tag 8200 8201 8202as_fn_exit 0 8203_ACEOF 8204ac_clean_files=$ac_clean_files_save 8205 8206test $ac_write_fail = 0 || 8207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8208 8209 8210# configure is writing to config.log, and then calls config.status. 8211# config.status does its own redirection, appending to config.log. 8212# Unfortunately, on DOS this fails, as config.log is still kept open 8213# by configure, so config.status won't be able to write to it; its 8214# output is simply discarded. So we exec the FD to /dev/null, 8215# effectively closing config.log, so it can be properly (re)opened and 8216# appended to by config.status. When coming back to configure, we 8217# need to make the FD available again. 8218if test "$no_create" != yes; then 8219 ac_cs_success=: 8220 ac_config_status_args= 8221 test "$silent" = yes && 8222 ac_config_status_args="$ac_config_status_args --quiet" 8223 exec 5>/dev/null 8224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8225 exec 5>>config.log 8226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8227 # would make configure fail if this is the last instruction. 8228 $ac_cs_success || as_fn_exit 1 8229fi 8230if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8232$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8233fi 8234 8235