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