1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for gringotts 1.2.10. 4# 5# Report bugs to <shlomif@iglu.org.il>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 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*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576exec 7<&0 </dev/null 6>&1 577 578# Name of the host. 579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580# so uname gets run too. 581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582 583# 584# Initializations. 585# 586ac_default_prefix=/usr/local 587ac_clean_files= 588ac_config_libobj_dir=. 589LIBOBJS= 590cross_compiling=no 591subdirs= 592MFLAGS= 593MAKEFLAGS= 594SHELL=${CONFIG_SHELL-/bin/sh} 595 596# Identity of this package. 597PACKAGE_NAME='gringotts' 598PACKAGE_TARNAME='gringotts' 599PACKAGE_VERSION='1.2.10' 600PACKAGE_STRING='gringotts 1.2.10' 601PACKAGE_BUGREPORT='shlomif@iglu.org.il' 602 603ac_unique_file="src/gringotts.c" 604# Factoring default headers for most tests. 605ac_includes_default="\ 606#include <stdio.h> 607#ifdef HAVE_SYS_TYPES_H 608# include <sys/types.h> 609#endif 610#ifdef HAVE_SYS_STAT_H 611# include <sys/stat.h> 612#endif 613#ifdef STDC_HEADERS 614# include <stdlib.h> 615# include <stddef.h> 616#else 617# ifdef HAVE_STDLIB_H 618# include <stdlib.h> 619# endif 620#endif 621#ifdef HAVE_STRING_H 622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 623# include <memory.h> 624# endif 625# include <string.h> 626#endif 627#ifdef HAVE_STRINGS_H 628# include <strings.h> 629#endif 630#ifdef HAVE_INTTYPES_H 631# include <inttypes.h> 632#endif 633#ifdef HAVE_STDINT_H 634# include <stdint.h> 635#endif 636#ifdef HAVE_UNISTD_H 637# include <unistd.h> 638#endif" 639 640ac_subst_vars='LTLIBOBJS 641LIBOBJS 642POPT 643LIBGRG_LIBS 644LIBGRG_CFLAGS 645GDKPIX_LIBS 646GDKPIX_CFLAGS 647GTK2_LIBS 648GTK2_CFLAGS 649PKG_CONFIG 650X_EXTRA_LIBS 651X_LIBS 652X_PRE_LIBS 653X_CFLAGS 654XMKMF 655MKINSTALLDIRS 656POSUB 657POFILES 658PO_IN_DATADIR_FALSE 659PO_IN_DATADIR_TRUE 660INTLLIBS 661INSTOBJEXT 662GMOFILES 663DATADIRNAME 664CATOBJEXT 665CATALOGS 666XGETTEXT 667GMSGFMT 668MSGFMT_OPTS 669MSGFMT 670USE_NLS 671EGREP 672GREP 673CPP 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690GRG_FILE_SUBVERSION 691GRG_CAP_NAME 692GRG_NAME 693GRG_VERSION 694GETTEXT_PACKAGE 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_BUGREPORT 749PACKAGE_STRING 750PACKAGE_VERSION 751PACKAGE_TARNAME 752PACKAGE_NAME 753PATH_SEPARATOR 754SHELL' 755ac_subst_files='' 756ac_user_opts=' 757enable_option_checking 758enable_env_check 759enable_root_filter 760enable_maintainer_mode 761enable_attach_limit 762with_floppy_device 763enable_dependency_tracking 764with_x 765' 766 ac_precious_vars='build_alias 767host_alias 768target_alias 769CC 770CFLAGS 771LDFLAGS 772LIBS 773CPPFLAGS 774CPP 775XMKMF 776PKG_CONFIG 777GTK2_CFLAGS 778GTK2_LIBS 779GDKPIX_CFLAGS 780GDKPIX_LIBS 781LIBGRG_CFLAGS 782LIBGRG_LIBS' 783 784 785# Initialize some variables set by options. 786ac_init_help= 787ac_init_version=false 788ac_unrecognized_opts= 789ac_unrecognized_sep= 790# The variables have the same names as the options, with 791# dashes changed to underlines. 792cache_file=/dev/null 793exec_prefix=NONE 794no_create= 795no_recursion= 796prefix=NONE 797program_prefix=NONE 798program_suffix=NONE 799program_transform_name=s,x,x, 800silent= 801site= 802srcdir= 803verbose= 804x_includes=NONE 805x_libraries=NONE 806 807# Installation directory options. 808# These are left unexpanded so users can "make install exec_prefix=/foo" 809# and all the variables that are supposed to be based on exec_prefix 810# by default will actually change. 811# Use braces instead of parens because sh, perl, etc. also accept them. 812# (The list follows the same order as the GNU Coding Standards.) 813bindir='${exec_prefix}/bin' 814sbindir='${exec_prefix}/sbin' 815libexecdir='${exec_prefix}/libexec' 816datarootdir='${prefix}/share' 817datadir='${datarootdir}' 818sysconfdir='${prefix}/etc' 819sharedstatedir='${prefix}/com' 820localstatedir='${prefix}/var' 821includedir='${prefix}/include' 822oldincludedir='/usr/include' 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824infodir='${datarootdir}/info' 825htmldir='${docdir}' 826dvidir='${docdir}' 827pdfdir='${docdir}' 828psdir='${docdir}' 829libdir='${exec_prefix}/lib' 830localedir='${datarootdir}/locale' 831mandir='${datarootdir}/man' 832 833ac_prev= 834ac_dashdash= 835for ac_option 836do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 892 { (exit 1); exit 1; }; } 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 919 { (exit 1); exit 1; }; } 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924"enable_$ac_useropt" 925"*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=\$ac_optarg ;; 930 931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 933 | --exec | --exe | --ex) 934 ac_prev=exec_prefix ;; 935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 937 | --exec=* | --exe=* | --ex=*) 938 exec_prefix=$ac_optarg ;; 939 940 -gas | --gas | --ga | --g) 941 # Obsolete; use --with-gas. 942 with_gas=yes ;; 943 944 -help | --help | --hel | --he | -h) 945 ac_init_help=long ;; 946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 947 ac_init_help=recursive ;; 948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 949 ac_init_help=short ;; 950 951 -host | --host | --hos | --ho) 952 ac_prev=host_alias ;; 953 -host=* | --host=* | --hos=* | --ho=*) 954 host_alias=$ac_optarg ;; 955 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 957 ac_prev=htmldir ;; 958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 959 | --ht=*) 960 htmldir=$ac_optarg ;; 961 962 -includedir | --includedir | --includedi | --included | --include \ 963 | --includ | --inclu | --incl | --inc) 964 ac_prev=includedir ;; 965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 966 | --includ=* | --inclu=* | --incl=* | --inc=*) 967 includedir=$ac_optarg ;; 968 969 -infodir | --infodir | --infodi | --infod | --info | --inf) 970 ac_prev=infodir ;; 971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 972 infodir=$ac_optarg ;; 973 974 -libdir | --libdir | --libdi | --libd) 975 ac_prev=libdir ;; 976 -libdir=* | --libdir=* | --libdi=* | --libd=*) 977 libdir=$ac_optarg ;; 978 979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 980 | --libexe | --libex | --libe) 981 ac_prev=libexecdir ;; 982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 983 | --libexe=* | --libex=* | --libe=*) 984 libexecdir=$ac_optarg ;; 985 986 -localedir | --localedir | --localedi | --localed | --locale) 987 ac_prev=localedir ;; 988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 989 localedir=$ac_optarg ;; 990 991 -localstatedir | --localstatedir | --localstatedi | --localstated \ 992 | --localstate | --localstat | --localsta | --localst | --locals) 993 ac_prev=localstatedir ;; 994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 996 localstatedir=$ac_optarg ;; 997 998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 999 ac_prev=mandir ;; 1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1001 mandir=$ac_optarg ;; 1002 1003 -nfp | --nfp | --nf) 1004 # Obsolete; use --without-fp. 1005 with_fp=no ;; 1006 1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 | --no-cr | --no-c | -n) 1009 no_create=yes ;; 1010 1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1013 no_recursion=yes ;; 1014 1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1017 | --oldin | --oldi | --old | --ol | --o) 1018 ac_prev=oldincludedir ;; 1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1022 oldincludedir=$ac_optarg ;; 1023 1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1025 ac_prev=prefix ;; 1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1027 prefix=$ac_optarg ;; 1028 1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1030 | --program-pre | --program-pr | --program-p) 1031 ac_prev=program_prefix ;; 1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1034 program_prefix=$ac_optarg ;; 1035 1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1037 | --program-suf | --program-su | --program-s) 1038 ac_prev=program_suffix ;; 1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1041 program_suffix=$ac_optarg ;; 1042 1043 -program-transform-name | --program-transform-name \ 1044 | --program-transform-nam | --program-transform-na \ 1045 | --program-transform-n | --program-transform- \ 1046 | --program-transform | --program-transfor \ 1047 | --program-transfo | --program-transf \ 1048 | --program-trans | --program-tran \ 1049 | --progr-tra | --program-tr | --program-t) 1050 ac_prev=program_transform_name ;; 1051 -program-transform-name=* | --program-transform-name=* \ 1052 | --program-transform-nam=* | --program-transform-na=* \ 1053 | --program-transform-n=* | --program-transform-=* \ 1054 | --program-transform=* | --program-transfor=* \ 1055 | --program-transfo=* | --program-transf=* \ 1056 | --program-trans=* | --program-tran=* \ 1057 | --progr-tra=* | --program-tr=* | --program-t=*) 1058 program_transform_name=$ac_optarg ;; 1059 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1061 ac_prev=pdfdir ;; 1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1063 pdfdir=$ac_optarg ;; 1064 1065 -psdir | --psdir | --psdi | --psd | --ps) 1066 ac_prev=psdir ;; 1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1068 psdir=$ac_optarg ;; 1069 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 silent=yes ;; 1073 1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1075 ac_prev=sbindir ;; 1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1077 | --sbi=* | --sb=*) 1078 sbindir=$ac_optarg ;; 1079 1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1082 | --sharedst | --shareds | --shared | --share | --shar \ 1083 | --sha | --sh) 1084 ac_prev=sharedstatedir ;; 1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1088 | --sha=* | --sh=*) 1089 sharedstatedir=$ac_optarg ;; 1090 1091 -site | --site | --sit) 1092 ac_prev=site ;; 1093 -site=* | --site=* | --sit=*) 1094 site=$ac_optarg ;; 1095 1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1097 ac_prev=srcdir ;; 1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1099 srcdir=$ac_optarg ;; 1100 1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1102 | --syscon | --sysco | --sysc | --sys | --sy) 1103 ac_prev=sysconfdir ;; 1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1106 sysconfdir=$ac_optarg ;; 1107 1108 -target | --target | --targe | --targ | --tar | --ta | --t) 1109 ac_prev=target_alias ;; 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1111 target_alias=$ac_optarg ;; 1112 1113 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1114 verbose=yes ;; 1115 1116 -version | --version | --versio | --versi | --vers | -V) 1117 ac_init_version=: ;; 1118 1119 -with-* | --with-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1124 { (exit 1); exit 1; }; } 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=\$ac_optarg ;; 1135 1136 -without-* | --without-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1141 { (exit 1); exit 1; }; } 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=no ;; 1152 1153 --x) 1154 # Obsolete; use --with-x. 1155 with_x=yes ;; 1156 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1158 | --x-incl | --x-inc | --x-in | --x-i) 1159 ac_prev=x_includes ;; 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1162 x_includes=$ac_optarg ;; 1163 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1166 ac_prev=x_libraries ;; 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1169 x_libraries=$ac_optarg ;; 1170 1171 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1172Try \`$0 --help' for more information." >&2 1173 { (exit 1); exit 1; }; } 1174 ;; 1175 1176 *=*) 1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1180 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1181 { (exit 1); exit 1; }; } 1182 eval $ac_envvar=\$ac_optarg 1183 export $ac_envvar ;; 1184 1185 *) 1186 # FIXME: should be removed in autoconf 3.0. 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1191 ;; 1192 1193 esac 1194done 1195 1196if test -n "$ac_prev"; then 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1198 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1199 { (exit 1); exit 1; }; } 1200fi 1201 1202if test -n "$ac_unrecognized_opts"; then 1203 case $enable_option_checking in 1204 no) ;; 1205 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1206 { (exit 1); exit 1; }; } ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1230 { (exit 1); exit 1; }; } 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1245 If a cross compiler is detected then cross compile mode will be used." >&2 1246 elif test "x$build_alias" != "x$host_alias"; then 1247 cross_compiling=yes 1248 fi 1249fi 1250 1251ac_tool_prefix= 1252test -n "$host_alias" && ac_tool_prefix=$host_alias- 1253 1254test "$silent" = yes && exec 6>/dev/null 1255 1256 1257ac_pwd=`pwd` && test -n "$ac_pwd" && 1258ac_ls_di=`ls -di .` && 1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1261 { (exit 1); exit 1; }; } 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1264 { (exit 1); exit 1; }; } 1265 1266 1267# Find the source files, if location was not specified. 1268if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276$as_echo X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298else 1299 ac_srcdir_defaulted=no 1300fi 1301if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1304 { (exit 1); exit 1; }; } 1305fi 1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1309 { (exit 1); exit 1; }; } 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures gringotts 1.2.10 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --libdir=DIR object code libraries [EPREFIX/lib] 1376 --includedir=DIR C header files [PREFIX/include] 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1380 --infodir=DIR info documentation [DATAROOTDIR/info] 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1382 --mandir=DIR man documentation [DATAROOTDIR/man] 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/gringotts] 1384 --htmldir=DIR html documentation [DOCDIR] 1385 --dvidir=DIR dvi documentation [DOCDIR] 1386 --pdfdir=DIR pdf documentation [DOCDIR] 1387 --psdir=DIR ps documentation [DOCDIR] 1388_ACEOF 1389 1390 cat <<\_ACEOF 1391 1392Program names: 1393 --program-prefix=PREFIX prepend PREFIX to installed program names 1394 --program-suffix=SUFFIX append SUFFIX to installed program names 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1396 1397X features: 1398 --x-includes=DIR X include files are in DIR 1399 --x-libraries=DIR X library files are in DIR 1400_ACEOF 1401fi 1402 1403if test -n "$ac_init_help"; then 1404 case $ac_init_help in 1405 short | recursive ) echo "Configuration of gringotts 1.2.10:";; 1406 esac 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-env-check validate the environmental variables at startup 1414 (default=yes) 1415 --enable-root-filter strictly forbids access to the root user 1416 (default=no) 1417 --enable-maintainer-mode 1418 enable some checks that are normally unneeded 1419 (default=no) 1420 --enable-attach-limit enable 2Mb limit for attached files (default=yes) 1421 --disable-dependency-tracking speeds up one-time build 1422 --enable-dependency-tracking do not reject slow dependency extractors 1423 1424Optional Packages: 1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1427 --with-block-device=DEV specify the block device to be used as password 1428 (default=/dev/fd0) 1429 --with-x use the X Window System 1430 1431Some influential environment variables: 1432 CC C compiler command 1433 CFLAGS C compiler flags 1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1435 nonstandard directory <lib dir> 1436 LIBS libraries to pass to the linker, e.g. -l<library> 1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1438 you have headers in a nonstandard directory <include dir> 1439 CPP C preprocessor 1440 XMKMF Path to xmkmf, Makefile generator for X Window System 1441 PKG_CONFIG path to pkg-config utility 1442 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config 1443 GTK2_LIBS linker flags for GTK2, overriding pkg-config 1444 GDKPIX_CFLAGS 1445 C compiler flags for GDKPIX, overriding pkg-config 1446 GDKPIX_LIBS linker flags for GDKPIX, overriding pkg-config 1447 LIBGRG_CFLAGS 1448 C compiler flags for LIBGRG, overriding pkg-config 1449 LIBGRG_LIBS linker flags for LIBGRG, overriding pkg-config 1450 1451Use these variables to override the choices made by `configure' or to help 1452it to find libraries and programs with nonstandard names/locations. 1453 1454Report bugs to <shlomif@iglu.org.il>. 1455_ACEOF 1456ac_status=$? 1457fi 1458 1459if test "$ac_init_help" = "recursive"; then 1460 # If there are subdirs, report their specific --help. 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1462 test -d "$ac_dir" || 1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1464 continue 1465 ac_builddir=. 1466 1467case "$ac_dir" in 1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469*) 1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1471 # A ".." for each directory in $ac_dir_suffix. 1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1473 case $ac_top_builddir_sub in 1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1476 esac ;; 1477esac 1478ac_abs_top_builddir=$ac_pwd 1479ac_abs_builddir=$ac_pwd$ac_dir_suffix 1480# for backward compatibility: 1481ac_top_builddir=$ac_top_build_prefix 1482 1483case $srcdir in 1484 .) # We are building in place. 1485 ac_srcdir=. 1486 ac_top_srcdir=$ac_top_builddir_sub 1487 ac_abs_top_srcdir=$ac_pwd ;; 1488 [\\/]* | ?:[\\/]* ) # Absolute name. 1489 ac_srcdir=$srcdir$ac_dir_suffix; 1490 ac_top_srcdir=$srcdir 1491 ac_abs_top_srcdir=$srcdir ;; 1492 *) # Relative name. 1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1494 ac_top_srcdir=$ac_top_build_prefix$srcdir 1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1496esac 1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1498 1499 cd "$ac_dir" || { ac_status=$?; continue; } 1500 # Check for guested configure. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517gringotts configure 1.2.10 1518generated by GNU Autoconf 2.63 1519 1520Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15212002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527cat >config.log <<_ACEOF 1528This file contains any messages produced by compilers while 1529running configure, to aid debugging if configure makes a mistake. 1530 1531It was created by gringotts $as_me 1.2.10, which was 1532generated by GNU Autoconf 2.63. Invocation command line was 1533 1534 $ $0 $@ 1535 1536_ACEOF 1537exec 5>>config.log 1538{ 1539cat <<_ASUNAME 1540## --------- ## 1541## Platform. ## 1542## --------- ## 1543 1544hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1545uname -m = `(uname -m) 2>/dev/null || echo unknown` 1546uname -r = `(uname -r) 2>/dev/null || echo unknown` 1547uname -s = `(uname -s) 2>/dev/null || echo unknown` 1548uname -v = `(uname -v) 2>/dev/null || echo unknown` 1549 1550/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1551/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1552 1553/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1554/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1555/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1556/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1557/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1558/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1559/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1560 1561_ASUNAME 1562 1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564for as_dir in $PATH 1565do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 $as_echo "PATH: $as_dir" 1569done 1570IFS=$as_save_IFS 1571 1572} >&5 1573 1574cat >&5 <<_ACEOF 1575 1576 1577## ----------- ## 1578## Core tests. ## 1579## ----------- ## 1580 1581_ACEOF 1582 1583 1584# Keep a trace of the command line. 1585# Strip out --no-create and --no-recursion so they do not pile up. 1586# Strip out --silent because we don't want to record it for future runs. 1587# Also quote any args containing shell meta-characters. 1588# Make two passes to allow for proper duplicate-argument suppression. 1589ac_configure_args= 1590ac_configure_args0= 1591ac_configure_args1= 1592ac_must_keep_next=false 1593for ac_pass in 1 2 1594do 1595 for ac_arg 1596 do 1597 case $ac_arg in 1598 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1600 | -silent | --silent | --silen | --sile | --sil) 1601 continue ;; 1602 *\'*) 1603 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1604 esac 1605 case $ac_pass in 1606 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1607 2) 1608 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1609 if test $ac_must_keep_next = true; then 1610 ac_must_keep_next=false # Got value, back to normal. 1611 else 1612 case $ac_arg in 1613 *=* | --config-cache | -C | -disable-* | --disable-* \ 1614 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1615 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1616 | -with-* | --with-* | -without-* | --without-* | --x) 1617 case "$ac_configure_args0 " in 1618 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1619 esac 1620 ;; 1621 -* ) ac_must_keep_next=true ;; 1622 esac 1623 fi 1624 ac_configure_args="$ac_configure_args '$ac_arg'" 1625 ;; 1626 esac 1627 done 1628done 1629$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1630$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1631 1632# When interrupted or exit'd, cleanup temporary files, and complete 1633# config.log. We remove comments because anyway the quotes in there 1634# would cause problems or look ugly. 1635# WARNING: Use '\'' to represent an apostrophe within the trap. 1636# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1637trap 'exit_status=$? 1638 # Save into config.log some information that might help in debugging. 1639 { 1640 echo 1641 1642 cat <<\_ASBOX 1643## ---------------- ## 1644## Cache variables. ## 1645## ---------------- ## 1646_ASBOX 1647 echo 1648 # The following way of writing the cache mishandles newlines in values, 1649( 1650 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1651 eval ac_val=\$$ac_var 1652 case $ac_val in #( 1653 *${as_nl}*) 1654 case $ac_var in #( 1655 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1656$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1657 esac 1658 case $ac_var in #( 1659 _ | IFS | as_nl) ;; #( 1660 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1661 *) $as_unset $ac_var ;; 1662 esac ;; 1663 esac 1664 done 1665 (set) 2>&1 | 1666 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1667 *${as_nl}ac_space=\ *) 1668 sed -n \ 1669 "s/'\''/'\''\\\\'\'''\''/g; 1670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1671 ;; #( 1672 *) 1673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1674 ;; 1675 esac | 1676 sort 1677) 1678 echo 1679 1680 cat <<\_ASBOX 1681## ----------------- ## 1682## Output variables. ## 1683## ----------------- ## 1684_ASBOX 1685 echo 1686 for ac_var in $ac_subst_vars 1687 do 1688 eval ac_val=\$$ac_var 1689 case $ac_val in 1690 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1691 esac 1692 $as_echo "$ac_var='\''$ac_val'\''" 1693 done | sort 1694 echo 1695 1696 if test -n "$ac_subst_files"; then 1697 cat <<\_ASBOX 1698## ------------------- ## 1699## File substitutions. ## 1700## ------------------- ## 1701_ASBOX 1702 echo 1703 for ac_var in $ac_subst_files 1704 do 1705 eval ac_val=\$$ac_var 1706 case $ac_val in 1707 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1708 esac 1709 $as_echo "$ac_var='\''$ac_val'\''" 1710 done | sort 1711 echo 1712 fi 1713 1714 if test -s confdefs.h; then 1715 cat <<\_ASBOX 1716## ----------- ## 1717## confdefs.h. ## 1718## ----------- ## 1719_ASBOX 1720 echo 1721 cat confdefs.h 1722 echo 1723 fi 1724 test "$ac_signal" != 0 && 1725 $as_echo "$as_me: caught signal $ac_signal" 1726 $as_echo "$as_me: exit $exit_status" 1727 } >&5 1728 rm -f core *.core core.conftest.* && 1729 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1730 exit $exit_status 1731' 0 1732for ac_signal in 1 2 13 15; do 1733 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1734done 1735ac_signal=0 1736 1737# confdefs.h avoids OS command line length limits that DEFS can exceed. 1738rm -f -r conftest* confdefs.h 1739 1740# Predefined preprocessor variables. 1741 1742cat >>confdefs.h <<_ACEOF 1743#define PACKAGE_NAME "$PACKAGE_NAME" 1744_ACEOF 1745 1746 1747cat >>confdefs.h <<_ACEOF 1748#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1749_ACEOF 1750 1751 1752cat >>confdefs.h <<_ACEOF 1753#define PACKAGE_VERSION "$PACKAGE_VERSION" 1754_ACEOF 1755 1756 1757cat >>confdefs.h <<_ACEOF 1758#define PACKAGE_STRING "$PACKAGE_STRING" 1759_ACEOF 1760 1761 1762cat >>confdefs.h <<_ACEOF 1763#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1764_ACEOF 1765 1766 1767# Let the site file select an alternate cache file if it wants to. 1768# Prefer an explicitly selected file to automatically selected ones. 1769ac_site_file1=NONE 1770ac_site_file2=NONE 1771if test -n "$CONFIG_SITE"; then 1772 ac_site_file1=$CONFIG_SITE 1773elif test "x$prefix" != xNONE; then 1774 ac_site_file1=$prefix/share/config.site 1775 ac_site_file2=$prefix/etc/config.site 1776else 1777 ac_site_file1=$ac_default_prefix/share/config.site 1778 ac_site_file2=$ac_default_prefix/etc/config.site 1779fi 1780for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1781do 1782 test "x$ac_site_file" = xNONE && continue 1783 if test -r "$ac_site_file"; then 1784 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1785$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1786 sed 's/^/| /' "$ac_site_file" >&5 1787 . "$ac_site_file" 1788 fi 1789done 1790 1791if test -r "$cache_file"; then 1792 # Some versions of bash will fail to source /dev/null (special 1793 # files actually), so we avoid doing that. 1794 if test -f "$cache_file"; then 1795 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1796$as_echo "$as_me: loading cache $cache_file" >&6;} 1797 case $cache_file in 1798 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1799 *) . "./$cache_file";; 1800 esac 1801 fi 1802else 1803 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1804$as_echo "$as_me: creating cache $cache_file" >&6;} 1805 >$cache_file 1806fi 1807 1808# Check that the precious variables saved in the cache have kept the same 1809# value. 1810ac_cache_corrupted=false 1811for ac_var in $ac_precious_vars; do 1812 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1813 eval ac_new_set=\$ac_env_${ac_var}_set 1814 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1815 eval ac_new_val=\$ac_env_${ac_var}_value 1816 case $ac_old_set,$ac_new_set in 1817 set,) 1818 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1819$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1820 ac_cache_corrupted=: ;; 1821 ,set) 1822 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1823$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1824 ac_cache_corrupted=: ;; 1825 ,);; 1826 *) 1827 if test "x$ac_old_val" != "x$ac_new_val"; then 1828 # differences in whitespace do not lead to failure. 1829 ac_old_val_w=`echo x $ac_old_val` 1830 ac_new_val_w=`echo x $ac_new_val` 1831 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1832 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1833$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1834 ac_cache_corrupted=: 1835 else 1836 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1837$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1838 eval $ac_var=\$ac_old_val 1839 fi 1840 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1841$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1842 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1843$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1844 fi;; 1845 esac 1846 # Pass precious variables to config.status. 1847 if test "$ac_new_set" = set; then 1848 case $ac_new_val in 1849 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1850 *) ac_arg=$ac_var=$ac_new_val ;; 1851 esac 1852 case " $ac_configure_args " in 1853 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1854 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1855 esac 1856 fi 1857done 1858if $ac_cache_corrupted; then 1859 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1861 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1862$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1863 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1864$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1865 { (exit 1); exit 1; }; } 1866fi 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892ac_ext=c 1893ac_cpp='$CPP $CPPFLAGS' 1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1896ac_compiler_gnu=$ac_cv_c_compiler_gnu 1897 1898 1899 1900GRG_NAME=$PACKAGE_NAME 1901GRG_CAP_NAME=Gringotts 1902GRG_VERSION=$PACKAGE_VERSION 1903GRG_FILE_SUBVERSION="3" 1904 1905am__api_version='1.10' 1906 1907ac_aux_dir= 1908for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1909 if test -f "$ac_dir/install-sh"; then 1910 ac_aux_dir=$ac_dir 1911 ac_install_sh="$ac_aux_dir/install-sh -c" 1912 break 1913 elif test -f "$ac_dir/install.sh"; then 1914 ac_aux_dir=$ac_dir 1915 ac_install_sh="$ac_aux_dir/install.sh -c" 1916 break 1917 elif test -f "$ac_dir/shtool"; then 1918 ac_aux_dir=$ac_dir 1919 ac_install_sh="$ac_aux_dir/shtool install -c" 1920 break 1921 fi 1922done 1923if test -z "$ac_aux_dir"; then 1924 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1925$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1926 { (exit 1); exit 1; }; } 1927fi 1928 1929# These three variables are undocumented and unsupported, 1930# and are intended to be withdrawn in a future Autoconf release. 1931# They can cause serious problems if a builder's source tree is in a directory 1932# whose full name contains unusual characters. 1933ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1934ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1935ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1936 1937 1938# Find a good install program. We prefer a C program (faster), 1939# so one script is as good as another. But avoid the broken or 1940# incompatible versions: 1941# SysV /etc/install, /usr/sbin/install 1942# SunOS /usr/etc/install 1943# IRIX /sbin/install 1944# AIX /bin/install 1945# AmigaOS /C/install, which installs bootblocks on floppy discs 1946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1947# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1949# OS/2's system install, which has a completely different semantic 1950# ./install, which can be erroneously created by make from ./install.sh. 1951# Reject install programs that cannot install multiple files. 1952{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1953$as_echo_n "checking for a BSD-compatible install... " >&6; } 1954if test -z "$INSTALL"; then 1955if test "${ac_cv_path_install+set}" = set; then 1956 $as_echo_n "(cached) " >&6 1957else 1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959for as_dir in $PATH 1960do 1961 IFS=$as_save_IFS 1962 test -z "$as_dir" && as_dir=. 1963 # Account for people who put trailing slashes in PATH elements. 1964case $as_dir/ in 1965 ./ | .// | /cC/* | \ 1966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1968 /usr/ucb/* ) ;; 1969 *) 1970 # OSF1 and SCO ODT 3.0 have their own names for install. 1971 # Don't use installbsd from OSF since it installs stuff as root 1972 # by default. 1973 for ac_prog in ginstall scoinst install; do 1974 for ac_exec_ext in '' $ac_executable_extensions; do 1975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1976 if test $ac_prog = install && 1977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1978 # AIX install. It has an incompatible calling convention. 1979 : 1980 elif test $ac_prog = install && 1981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1982 # program-specific install script used by HP pwplus--don't use. 1983 : 1984 else 1985 rm -rf conftest.one conftest.two conftest.dir 1986 echo one > conftest.one 1987 echo two > conftest.two 1988 mkdir conftest.dir 1989 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1990 test -s conftest.one && test -s conftest.two && 1991 test -s conftest.dir/conftest.one && 1992 test -s conftest.dir/conftest.two 1993 then 1994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1995 break 3 1996 fi 1997 fi 1998 fi 1999 done 2000 done 2001 ;; 2002esac 2003 2004done 2005IFS=$as_save_IFS 2006 2007rm -rf conftest.one conftest.two conftest.dir 2008 2009fi 2010 if test "${ac_cv_path_install+set}" = set; then 2011 INSTALL=$ac_cv_path_install 2012 else 2013 # As a last resort, use the slow shell script. Don't cache a 2014 # value for INSTALL within a source directory, because that will 2015 # break other packages using the cache if that directory is 2016 # removed, or if the value is a relative name. 2017 INSTALL=$ac_install_sh 2018 fi 2019fi 2020{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2021$as_echo "$INSTALL" >&6; } 2022 2023# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2024# It thinks the first close brace ends the variable substitution. 2025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2026 2027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2028 2029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2030 2031{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2032$as_echo_n "checking whether build environment is sane... " >&6; } 2033# Just in case 2034sleep 1 2035echo timestamp > conftest.file 2036# Do `set' in a subshell so we don't clobber the current shell's 2037# arguments. Must try -L first in case configure is actually a 2038# symlink; some systems play weird games with the mod time of symlinks 2039# (eg FreeBSD returns the mod time of the symlink's containing 2040# directory). 2041if ( 2042 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2043 if test "$*" = "X"; then 2044 # -L didn't work. 2045 set X `ls -t $srcdir/configure conftest.file` 2046 fi 2047 rm -f conftest.file 2048 if test "$*" != "X $srcdir/configure conftest.file" \ 2049 && test "$*" != "X conftest.file $srcdir/configure"; then 2050 2051 # If neither matched, then we have a broken ls. This can happen 2052 # if, for instance, CONFIG_SHELL is bash and it inherits a 2053 # broken ls alias from the environment. This has actually 2054 # happened. Such a system could not be considered "sane". 2055 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2056alias in your environment" >&5 2057$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2058alias in your environment" >&2;} 2059 { (exit 1); exit 1; }; } 2060 fi 2061 2062 test "$2" = conftest.file 2063 ) 2064then 2065 # Ok. 2066 : 2067else 2068 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2069Check your system clock" >&5 2070$as_echo "$as_me: error: newly created file is older than distributed files! 2071Check your system clock" >&2;} 2072 { (exit 1); exit 1; }; } 2073fi 2074{ $as_echo "$as_me:$LINENO: result: yes" >&5 2075$as_echo "yes" >&6; } 2076test "$program_prefix" != NONE && 2077 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2078# Use a double $ so make ignores it. 2079test "$program_suffix" != NONE && 2080 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2081# Double any \ or $. 2082# By default was `s,x,x', remove it if useless. 2083ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2084program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2085 2086# expand $ac_aux_dir to an absolute path 2087am_aux_dir=`cd $ac_aux_dir && pwd` 2088 2089test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2090# Use eval to expand $SHELL 2091if eval "$MISSING --run true"; then 2092 am_missing_run="$MISSING --run " 2093else 2094 am_missing_run= 2095 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2096$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2097fi 2098 2099{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2100$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2101if test -z "$MKDIR_P"; then 2102 if test "${ac_cv_path_mkdir+set}" = set; then 2103 $as_echo_n "(cached) " >&6 2104else 2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2106for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2107do 2108 IFS=$as_save_IFS 2109 test -z "$as_dir" && as_dir=. 2110 for ac_prog in mkdir gmkdir; do 2111 for ac_exec_ext in '' $ac_executable_extensions; do 2112 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2113 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2114 'mkdir (GNU coreutils) '* | \ 2115 'mkdir (coreutils) '* | \ 2116 'mkdir (fileutils) '4.1*) 2117 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2118 break 3;; 2119 esac 2120 done 2121 done 2122done 2123IFS=$as_save_IFS 2124 2125fi 2126 2127 if test "${ac_cv_path_mkdir+set}" = set; then 2128 MKDIR_P="$ac_cv_path_mkdir -p" 2129 else 2130 # As a last resort, use the slow shell script. Don't cache a 2131 # value for MKDIR_P within a source directory, because that will 2132 # break other packages using the cache if that directory is 2133 # removed, or if the value is a relative name. 2134 test -d ./--version && rmdir ./--version 2135 MKDIR_P="$ac_install_sh -d" 2136 fi 2137fi 2138{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2139$as_echo "$MKDIR_P" >&6; } 2140 2141mkdir_p="$MKDIR_P" 2142case $mkdir_p in 2143 [\\/$]* | ?:[\\/]*) ;; 2144 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2145esac 2146 2147for ac_prog in gawk mawk nawk awk 2148do 2149 # Extract the first word of "$ac_prog", so it can be a program name with args. 2150set dummy $ac_prog; ac_word=$2 2151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2152$as_echo_n "checking for $ac_word... " >&6; } 2153if test "${ac_cv_prog_AWK+set}" = set; then 2154 $as_echo_n "(cached) " >&6 2155else 2156 if test -n "$AWK"; then 2157 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2158else 2159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2160for as_dir in $PATH 2161do 2162 IFS=$as_save_IFS 2163 test -z "$as_dir" && as_dir=. 2164 for ac_exec_ext in '' $ac_executable_extensions; do 2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2166 ac_cv_prog_AWK="$ac_prog" 2167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2168 break 2 2169 fi 2170done 2171done 2172IFS=$as_save_IFS 2173 2174fi 2175fi 2176AWK=$ac_cv_prog_AWK 2177if test -n "$AWK"; then 2178 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2179$as_echo "$AWK" >&6; } 2180else 2181 { $as_echo "$as_me:$LINENO: result: no" >&5 2182$as_echo "no" >&6; } 2183fi 2184 2185 2186 test -n "$AWK" && break 2187done 2188 2189{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2190$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2191set x ${MAKE-make} 2192ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2193if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2194 $as_echo_n "(cached) " >&6 2195else 2196 cat >conftest.make <<\_ACEOF 2197SHELL = /bin/sh 2198all: 2199 @echo '@@@%%%=$(MAKE)=@@@%%%' 2200_ACEOF 2201# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2202case `${MAKE-make} -f conftest.make 2>/dev/null` in 2203 *@@@%%%=?*=@@@%%%*) 2204 eval ac_cv_prog_make_${ac_make}_set=yes;; 2205 *) 2206 eval ac_cv_prog_make_${ac_make}_set=no;; 2207esac 2208rm -f conftest.make 2209fi 2210if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2211 { $as_echo "$as_me:$LINENO: result: yes" >&5 2212$as_echo "yes" >&6; } 2213 SET_MAKE= 2214else 2215 { $as_echo "$as_me:$LINENO: result: no" >&5 2216$as_echo "no" >&6; } 2217 SET_MAKE="MAKE=${MAKE-make}" 2218fi 2219 2220rm -rf .tst 2>/dev/null 2221mkdir .tst 2>/dev/null 2222if test -d .tst; then 2223 am__leading_dot=. 2224else 2225 am__leading_dot=_ 2226fi 2227rmdir .tst 2>/dev/null 2228 2229if test "`cd $srcdir && pwd`" != "`pwd`"; then 2230 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2231 # is not polluted with repeated "-I." 2232 am__isrc=' -I$(srcdir)' 2233 # test to see if srcdir already configured 2234 if test -f $srcdir/config.status; then 2235 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2236$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2237 { (exit 1); exit 1; }; } 2238 fi 2239fi 2240 2241# test whether we have cygpath 2242if test -z "$CYGPATH_W"; then 2243 if (cygpath --version) >/dev/null 2>/dev/null; then 2244 CYGPATH_W='cygpath -w' 2245 else 2246 CYGPATH_W=echo 2247 fi 2248fi 2249 2250 2251# Define the identity of the package. 2252 PACKAGE=$GRG_NAME 2253 VERSION=$GRG_VERSION 2254 2255 2256cat >>confdefs.h <<_ACEOF 2257#define PACKAGE "$PACKAGE" 2258_ACEOF 2259 2260 2261cat >>confdefs.h <<_ACEOF 2262#define VERSION "$VERSION" 2263_ACEOF 2264 2265# Some tools Automake needs. 2266 2267ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2268 2269 2270AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2271 2272 2273AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2274 2275 2276AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2277 2278 2279MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2280 2281install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2282 2283# Installed binaries are usually stripped using `strip' when the user 2284# run `make install-strip'. However `strip' might not be the right 2285# tool to use in cross-compilation environments, therefore Automake 2286# will honor the `STRIP' environment variable to overrule this program. 2287if test "$cross_compiling" != no; then 2288 if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}strip; ac_word=$2 2291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2292$as_echo_n "checking for $ac_word... " >&6; } 2293if test "${ac_cv_prog_STRIP+set}" = set; then 2294 $as_echo_n "(cached) " >&6 2295else 2296 if test -n "$STRIP"; then 2297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312IFS=$as_save_IFS 2313 2314fi 2315fi 2316STRIP=$ac_cv_prog_STRIP 2317if test -n "$STRIP"; then 2318 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2319$as_echo "$STRIP" >&6; } 2320else 2321 { $as_echo "$as_me:$LINENO: result: no" >&5 2322$as_echo "no" >&6; } 2323fi 2324 2325 2326fi 2327if test -z "$ac_cv_prog_STRIP"; then 2328 ac_ct_STRIP=$STRIP 2329 # Extract the first word of "strip", so it can be a program name with args. 2330set dummy strip; ac_word=$2 2331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2332$as_echo_n "checking for $ac_word... " >&6; } 2333if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2334 $as_echo_n "(cached) " >&6 2335else 2336 if test -n "$ac_ct_STRIP"; then 2337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2346 ac_cv_prog_ac_ct_STRIP="strip" 2347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2357if test -n "$ac_ct_STRIP"; then 2358 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2359$as_echo "$ac_ct_STRIP" >&6; } 2360else 2361 { $as_echo "$as_me:$LINENO: result: no" >&5 2362$as_echo "no" >&6; } 2363fi 2364 2365 if test "x$ac_ct_STRIP" = x; then 2366 STRIP=":" 2367 else 2368 case $cross_compiling:$ac_tool_warned in 2369yes:) 2370{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2372ac_tool_warned=yes ;; 2373esac 2374 STRIP=$ac_ct_STRIP 2375 fi 2376else 2377 STRIP="$ac_cv_prog_STRIP" 2378fi 2379 2380fi 2381INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2382 2383# We need awk for the "check" target. The system "awk" is bad on 2384# some platforms. 2385# Always define AMTAR for backward compatibility. 2386 2387AMTAR=${AMTAR-"${am_missing_run}tar"} 2388 2389am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2390 2391 2392 2393 2394 2395 2396 2397ac_config_headers="$ac_config_headers config.h" 2398 2399 2400GETTEXT_PACKAGE=$GRG_NAME 2401 2402 2403cat >>confdefs.h <<_ACEOF 2404#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 2405_ACEOF 2406 2407 2408 2409 2410 2411 2412 2413cat >>confdefs.h <<_ACEOF 2414#define GRG_NAME "$GRG_NAME" 2415_ACEOF 2416 2417 2418cat >>confdefs.h <<_ACEOF 2419#define GRG_CAP_NAME "$GRG_CAP_NAME" 2420_ACEOF 2421 2422 2423cat >>confdefs.h <<_ACEOF 2424#define GRG_VERSION "$GRG_VERSION" 2425_ACEOF 2426 2427 2428cat >>confdefs.h <<_ACEOF 2429#define GRG_FILE_SUBVERSION "$GRG_FILE_SUBVERSION" 2430_ACEOF 2431 2432 2433 2434 2435 2436 2437 2438# Check whether --enable-env-check was given. 2439if test "${enable_env_check+set}" = set; then 2440 enableval=$enable_env_check; enable_env_check="$enableval" 2441else 2442 enable_env_check=yes 2443fi 2444 2445 2446if test "$enable_env_check" = yes; then 2447 { $as_echo "$as_me:$LINENO: env validation active" >&5 2448$as_echo "$as_me: env validation active" >&6;} 2449 cat >>confdefs.h <<\_ACEOF 2450#define ENV_CHECK 1 2451_ACEOF 2452 2453else 2454 { $as_echo "$as_me:$LINENO: env validation inactive" >&5 2455$as_echo "$as_me: env validation inactive" >&6;} 2456fi 2457 2458 2459 2460 2461# Check whether --enable-root-filter was given. 2462if test "${enable_root_filter+set}" = set; then 2463 enableval=$enable_root_filter; enable_root_filter="$enableval" 2464else 2465 enable_root_filter=no 2466fi 2467 2468 2469if test "$enable_root_filter" = yes; then 2470 { $as_echo "$as_me:$LINENO: strict root check active" >&5 2471$as_echo "$as_me: strict root check active" >&6;} 2472 cat >>confdefs.h <<\_ACEOF 2473#define ROOT_FILTER 1 2474_ACEOF 2475 2476else 2477 { $as_echo "$as_me:$LINENO: strict root check inactive" >&5 2478$as_echo "$as_me: strict root check inactive" >&6;} 2479fi 2480 2481 2482 2483 2484# Check whether --enable-maintainer-mode was given. 2485if test "${enable_maintainer_mode+set}" = set; then 2486 enableval=$enable_maintainer_mode; enable_maintainer_mode="$enableval" 2487else 2488 enable_maintainer_mode=no 2489fi 2490 2491 2492if test "$enable_maintainer_mode" = yes; then 2493 { $as_echo "$as_me:$LINENO: maintainer checks active" >&5 2494$as_echo "$as_me: maintainer checks active" >&6;} 2495 cat >>confdefs.h <<\_ACEOF 2496#define MAINTAINER_MODE 1 2497_ACEOF 2498 2499else 2500 { $as_echo "$as_me:$LINENO: maintainer checks inactive" >&5 2501$as_echo "$as_me: maintainer checks inactive" >&6;} 2502fi 2503 2504 2505 2506 2507# Check whether --enable-attach-limit was given. 2508if test "${enable_attach_limit+set}" = set; then 2509 enableval=$enable_attach_limit; enable_attach_limit="$enableval" 2510else 2511 enable_attach_limit=no 2512fi 2513 2514 2515if test "$enable_attach_limit" = yes; then 2516 { $as_echo "$as_me:$LINENO: 2Mb attachment limit active" >&5 2517$as_echo "$as_me: 2Mb attachment limit active" >&6;} 2518 cat >>confdefs.h <<\_ACEOF 2519#define ATTACH_LIMIT 1 2520_ACEOF 2521 2522else 2523 { $as_echo "$as_me:$LINENO: 2Mb attachment limit inactive" >&5 2524$as_echo "$as_me: 2Mb attachment limit inactive" >&6;} 2525fi 2526 2527 2528 2529 2530 2531# Check whether --with-floppy-device was given. 2532if test "${with_floppy_device+set}" = set; then 2533 withval=$with_floppy_device; with_floppy_device="$withval" 2534else 2535 with_floppy_device="/dev/fd0" 2536fi 2537 2538 2539if test -b "$with_floppy_device"; then 2540 { $as_echo "$as_me:$LINENO: valid block device found in $with_floppy_device" >&5 2541$as_echo "$as_me: valid block device found in $with_floppy_device" >&6;} 2542 cat >>confdefs.h <<_ACEOF 2543#define BLOCK_DEV "$with_floppy_device" 2544_ACEOF 2545 2546else 2547 { $as_echo "$as_me:$LINENO: invalid block device $with_floppy_device, using /dev/fd0" >&5 2548$as_echo "$as_me: invalid block device $with_floppy_device, using /dev/fd0" >&6;} 2549 cat >>confdefs.h <<\_ACEOF 2550#define BLOCK_DEV "/dev/fd0" 2551_ACEOF 2552 2553fi 2554 2555 2556 2557if test "`expr substr "$with_floppy_device" 1 7`" = "/dev/fd"; then 2558 { $as_echo "$as_me:$LINENO: block device seems to be a floppy" >&5 2559$as_echo "$as_me: block device seems to be a floppy" >&6;} 2560 cat >>confdefs.h <<\_ACEOF 2561#define BLOCK_DEV_IS_FLOPPY 1 2562_ACEOF 2563 2564fi 2565 2566ac_ext=c 2567ac_cpp='$CPP $CPPFLAGS' 2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_c_compiler_gnu 2571if test -n "$ac_tool_prefix"; then 2572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2573set dummy ${ac_tool_prefix}gcc; ac_word=$2 2574{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2575$as_echo_n "checking for $ac_word... " >&6; } 2576if test "${ac_cv_prog_CC+set}" = set; then 2577 $as_echo_n "(cached) " >&6 2578else 2579 if test -n "$CC"; then 2580 ac_cv_prog_CC="$CC" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594done 2595IFS=$as_save_IFS 2596 2597fi 2598fi 2599CC=$ac_cv_prog_CC 2600if test -n "$CC"; then 2601 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2602$as_echo "$CC" >&6; } 2603else 2604 { $as_echo "$as_me:$LINENO: result: no" >&5 2605$as_echo "no" >&6; } 2606fi 2607 2608 2609fi 2610if test -z "$ac_cv_prog_CC"; then 2611 ac_ct_CC=$CC 2612 # Extract the first word of "gcc", so it can be a program name with args. 2613set dummy gcc; ac_word=$2 2614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2615$as_echo_n "checking for $ac_word... " >&6; } 2616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2617 $as_echo_n "(cached) " >&6 2618else 2619 if test -n "$ac_ct_CC"; then 2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2621else 2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2623for as_dir in $PATH 2624do 2625 IFS=$as_save_IFS 2626 test -z "$as_dir" && as_dir=. 2627 for ac_exec_ext in '' $ac_executable_extensions; do 2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2629 ac_cv_prog_ac_ct_CC="gcc" 2630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2631 break 2 2632 fi 2633done 2634done 2635IFS=$as_save_IFS 2636 2637fi 2638fi 2639ac_ct_CC=$ac_cv_prog_ac_ct_CC 2640if test -n "$ac_ct_CC"; then 2641 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2642$as_echo "$ac_ct_CC" >&6; } 2643else 2644 { $as_echo "$as_me:$LINENO: result: no" >&5 2645$as_echo "no" >&6; } 2646fi 2647 2648 if test "x$ac_ct_CC" = x; then 2649 CC="" 2650 else 2651 case $cross_compiling:$ac_tool_warned in 2652yes:) 2653{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2655ac_tool_warned=yes ;; 2656esac 2657 CC=$ac_ct_CC 2658 fi 2659else 2660 CC="$ac_cv_prog_CC" 2661fi 2662 2663if test -z "$CC"; then 2664 if test -n "$ac_tool_prefix"; then 2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2666set dummy ${ac_tool_prefix}cc; ac_word=$2 2667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if test "${ac_cv_prog_CC+set}" = set; then 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$CC"; then 2673 ac_cv_prog_CC="$CC" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2682 ac_cv_prog_CC="${ac_tool_prefix}cc" 2683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692CC=$ac_cv_prog_CC 2693if test -n "$CC"; then 2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2695$as_echo "$CC" >&6; } 2696else 2697 { $as_echo "$as_me:$LINENO: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 2702 fi 2703fi 2704if test -z "$CC"; then 2705 # Extract the first word of "cc", so it can be a program name with args. 2706set dummy cc; ac_word=$2 2707{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2708$as_echo_n "checking for $ac_word... " >&6; } 2709if test "${ac_cv_prog_CC+set}" = set; then 2710 $as_echo_n "(cached) " >&6 2711else 2712 if test -n "$CC"; then 2713 ac_cv_prog_CC="$CC" # Let the user override the test. 2714else 2715 ac_prog_rejected=no 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2724 ac_prog_rejected=yes 2725 continue 2726 fi 2727 ac_cv_prog_CC="cc" 2728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732done 2733IFS=$as_save_IFS 2734 2735if test $ac_prog_rejected = yes; then 2736 # We found a bogon in the path, so make sure we never use it. 2737 set dummy $ac_cv_prog_CC 2738 shift 2739 if test $# != 0; then 2740 # We chose a different compiler from the bogus one. 2741 # However, it has the same basename, so the bogon will be chosen 2742 # first if we set CC to just the basename; use the full file name. 2743 shift 2744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2745 fi 2746fi 2747fi 2748fi 2749CC=$ac_cv_prog_CC 2750if test -n "$CC"; then 2751 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2752$as_echo "$CC" >&6; } 2753else 2754 { $as_echo "$as_me:$LINENO: result: no" >&5 2755$as_echo "no" >&6; } 2756fi 2757 2758 2759fi 2760if test -z "$CC"; then 2761 if test -n "$ac_tool_prefix"; then 2762 for ac_prog in cl.exe 2763 do 2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2765set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if test "${ac_cv_prog_CC+set}" = set; then 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$CC"; then 2772 ac_cv_prog_CC="$CC" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791CC=$ac_cv_prog_CC 2792if test -n "$CC"; then 2793 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2794$as_echo "$CC" >&6; } 2795else 2796 { $as_echo "$as_me:$LINENO: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 2801 test -n "$CC" && break 2802 done 2803fi 2804if test -z "$CC"; then 2805 ac_ct_CC=$CC 2806 for ac_prog in cl.exe 2807do 2808 # Extract the first word of "$ac_prog", so it can be a program name with args. 2809set dummy $ac_prog; ac_word=$2 2810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2811$as_echo_n "checking for $ac_word... " >&6; } 2812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$ac_ct_CC"; then 2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2825 ac_cv_prog_ac_ct_CC="$ac_prog" 2826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830done 2831IFS=$as_save_IFS 2832 2833fi 2834fi 2835ac_ct_CC=$ac_cv_prog_ac_ct_CC 2836if test -n "$ac_ct_CC"; then 2837 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2838$as_echo "$ac_ct_CC" >&6; } 2839else 2840 { $as_echo "$as_me:$LINENO: result: no" >&5 2841$as_echo "no" >&6; } 2842fi 2843 2844 2845 test -n "$ac_ct_CC" && break 2846done 2847 2848 if test "x$ac_ct_CC" = x; then 2849 CC="" 2850 else 2851 case $cross_compiling:$ac_tool_warned in 2852yes:) 2853{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2855ac_tool_warned=yes ;; 2856esac 2857 CC=$ac_ct_CC 2858 fi 2859fi 2860 2861fi 2862 2863 2864test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2866{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2867See \`config.log' for more details." >&5 2868$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2869See \`config.log' for more details." >&2;} 2870 { (exit 1); exit 1; }; }; } 2871 2872# Provide some information about the compiler. 2873$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2874set X $ac_compile 2875ac_compiler=$2 2876{ (ac_try="$ac_compiler --version >&5" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2882$as_echo "$ac_try_echo") >&5 2883 (eval "$ac_compiler --version >&5") 2>&5 2884 ac_status=$? 2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); } 2887{ (ac_try="$ac_compiler -v >&5" 2888case "(($ac_try" in 2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2890 *) ac_try_echo=$ac_try;; 2891esac 2892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2893$as_echo "$ac_try_echo") >&5 2894 (eval "$ac_compiler -v >&5") 2>&5 2895 ac_status=$? 2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } 2898{ (ac_try="$ac_compiler -V >&5" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2904$as_echo "$ac_try_echo") >&5 2905 (eval "$ac_compiler -V >&5") 2>&5 2906 ac_status=$? 2907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); } 2909 2910cat >conftest.$ac_ext <<_ACEOF 2911/* confdefs.h. */ 2912_ACEOF 2913cat confdefs.h >>conftest.$ac_ext 2914cat >>conftest.$ac_ext <<_ACEOF 2915/* end confdefs.h. */ 2916 2917int 2918main () 2919{ 2920 2921 ; 2922 return 0; 2923} 2924_ACEOF 2925ac_clean_files_save=$ac_clean_files 2926ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2927# Try to create an executable without -o first, disregard a.out. 2928# It will help us diagnose broken compilers, and finding out an intuition 2929# of exeext. 2930{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2931$as_echo_n "checking for C compiler default output file name... " >&6; } 2932ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2933 2934# The possible output files: 2935ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2936 2937ac_rmfiles= 2938for ac_file in $ac_files 2939do 2940 case $ac_file in 2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2943 esac 2944done 2945rm -f $ac_rmfiles 2946 2947if { (ac_try="$ac_link_default" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2953$as_echo "$ac_try_echo") >&5 2954 (eval "$ac_link_default") 2>&5 2955 ac_status=$? 2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; then 2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2960# in a Makefile. We should not override ac_cv_exeext if it was cached, 2961# so that the user can short-circuit this test for compilers unknown to 2962# Autoconf. 2963for ac_file in $ac_files '' 2964do 2965 test -f "$ac_file" || continue 2966 case $ac_file in 2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2968 ;; 2969 [ab].out ) 2970 # We found the default executable, but exeext='' is most 2971 # certainly right. 2972 break;; 2973 *.* ) 2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2975 then :; else 2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2977 fi 2978 # We set ac_cv_exeext here because the later test for it is not 2979 # safe: cross compilers may not add the suffix if given an `-o' 2980 # argument, so we may need to know it at that point already. 2981 # Even if this section looks crufty: it has the advantage of 2982 # actually working. 2983 break;; 2984 * ) 2985 break;; 2986 esac 2987done 2988test "$ac_cv_exeext" = no && ac_cv_exeext= 2989 2990else 2991 ac_file='' 2992fi 2993 2994{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2995$as_echo "$ac_file" >&6; } 2996if test -z "$ac_file"; then 2997 $as_echo "$as_me: failed program was:" >&5 2998sed 's/^/| /' conftest.$ac_ext >&5 2999 3000{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3002{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3003See \`config.log' for more details." >&5 3004$as_echo "$as_me: error: C compiler cannot create executables 3005See \`config.log' for more details." >&2;} 3006 { (exit 77); exit 77; }; }; } 3007fi 3008 3009ac_exeext=$ac_cv_exeext 3010 3011# Check that the compiler produces executables we can run. If not, either 3012# the compiler is broken, or we cross compile. 3013{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3014$as_echo_n "checking whether the C compiler works... " >&6; } 3015# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3016# If not cross compiling, check that we can run a simple program. 3017if test "$cross_compiling" != yes; then 3018 if { ac_try='./$ac_file' 3019 { (case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3024$as_echo "$ac_try_echo") >&5 3025 (eval "$ac_try") 2>&5 3026 ac_status=$? 3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); }; }; then 3029 cross_compiling=no 3030 else 3031 if test "$cross_compiling" = maybe; then 3032 cross_compiling=yes 3033 else 3034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3036{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3037If you meant to cross compile, use \`--host'. 3038See \`config.log' for more details." >&5 3039$as_echo "$as_me: error: cannot run C compiled programs. 3040If you meant to cross compile, use \`--host'. 3041See \`config.log' for more details." >&2;} 3042 { (exit 1); exit 1; }; }; } 3043 fi 3044 fi 3045fi 3046{ $as_echo "$as_me:$LINENO: result: yes" >&5 3047$as_echo "yes" >&6; } 3048 3049rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3050ac_clean_files=$ac_clean_files_save 3051# Check that the compiler produces executables we can run. If not, either 3052# the compiler is broken, or we cross compile. 3053{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3054$as_echo_n "checking whether we are cross compiling... " >&6; } 3055{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3056$as_echo "$cross_compiling" >&6; } 3057 3058{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3059$as_echo_n "checking for suffix of executables... " >&6; } 3060if { (ac_try="$ac_link" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3066$as_echo "$ac_try_echo") >&5 3067 (eval "$ac_link") 2>&5 3068 ac_status=$? 3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; then 3071 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3073# work properly (i.e., refer to `conftest.exe'), while it won't with 3074# `rm'. 3075for ac_file in conftest.exe conftest conftest.*; do 3076 test -f "$ac_file" || continue 3077 case $ac_file in 3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3080 break;; 3081 * ) break;; 3082 esac 3083done 3084else 3085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3087{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3088See \`config.log' for more details." >&5 3089$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3090See \`config.log' for more details." >&2;} 3091 { (exit 1); exit 1; }; }; } 3092fi 3093 3094rm -f conftest$ac_cv_exeext 3095{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3096$as_echo "$ac_cv_exeext" >&6; } 3097 3098rm -f conftest.$ac_ext 3099EXEEXT=$ac_cv_exeext 3100ac_exeext=$EXEEXT 3101{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3102$as_echo_n "checking for suffix of object files... " >&6; } 3103if test "${ac_cv_objext+set}" = set; then 3104 $as_echo_n "(cached) " >&6 3105else 3106 cat >conftest.$ac_ext <<_ACEOF 3107/* confdefs.h. */ 3108_ACEOF 3109cat confdefs.h >>conftest.$ac_ext 3110cat >>conftest.$ac_ext <<_ACEOF 3111/* end confdefs.h. */ 3112 3113int 3114main () 3115{ 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121rm -f conftest.o conftest.obj 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3128$as_echo "$ac_try_echo") >&5 3129 (eval "$ac_compile") 2>&5 3130 ac_status=$? 3131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); }; then 3133 for ac_file in conftest.o conftest.obj conftest.*; do 3134 test -f "$ac_file" || continue; 3135 case $ac_file in 3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3137 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3138 break;; 3139 esac 3140done 3141else 3142 $as_echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3147{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3148See \`config.log' for more details." >&5 3149$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3150See \`config.log' for more details." >&2;} 3151 { (exit 1); exit 1; }; }; } 3152fi 3153 3154rm -f conftest.$ac_cv_objext conftest.$ac_ext 3155fi 3156{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3157$as_echo "$ac_cv_objext" >&6; } 3158OBJEXT=$ac_cv_objext 3159ac_objext=$OBJEXT 3160{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3161$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3162if test "${ac_cv_c_compiler_gnu+set}" = set; then 3163 $as_echo_n "(cached) " >&6 3164else 3165 cat >conftest.$ac_ext <<_ACEOF 3166/* confdefs.h. */ 3167_ACEOF 3168cat confdefs.h >>conftest.$ac_ext 3169cat >>conftest.$ac_ext <<_ACEOF 3170/* end confdefs.h. */ 3171 3172int 3173main () 3174{ 3175#ifndef __GNUC__ 3176 choke me 3177#endif 3178 3179 ; 3180 return 0; 3181} 3182_ACEOF 3183rm -f conftest.$ac_objext 3184if { (ac_try="$ac_compile" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3190$as_echo "$ac_try_echo") >&5 3191 (eval "$ac_compile") 2>conftest.er1 3192 ac_status=$? 3193 grep -v '^ *+' conftest.er1 >conftest.err 3194 rm -f conftest.er1 3195 cat conftest.err >&5 3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 (exit $ac_status); } && { 3198 test -z "$ac_c_werror_flag" || 3199 test ! -s conftest.err 3200 } && test -s conftest.$ac_objext; then 3201 ac_compiler_gnu=yes 3202else 3203 $as_echo "$as_me: failed program was:" >&5 3204sed 's/^/| /' conftest.$ac_ext >&5 3205 3206 ac_compiler_gnu=no 3207fi 3208 3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3210ac_cv_c_compiler_gnu=$ac_compiler_gnu 3211 3212fi 3213{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3214$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3215if test $ac_compiler_gnu = yes; then 3216 GCC=yes 3217else 3218 GCC= 3219fi 3220ac_test_CFLAGS=${CFLAGS+set} 3221ac_save_CFLAGS=$CFLAGS 3222{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3223$as_echo_n "checking whether $CC accepts -g... " >&6; } 3224if test "${ac_cv_prog_cc_g+set}" = set; then 3225 $as_echo_n "(cached) " >&6 3226else 3227 ac_save_c_werror_flag=$ac_c_werror_flag 3228 ac_c_werror_flag=yes 3229 ac_cv_prog_cc_g=no 3230 CFLAGS="-g" 3231 cat >conftest.$ac_ext <<_ACEOF 3232/* confdefs.h. */ 3233_ACEOF 3234cat confdefs.h >>conftest.$ac_ext 3235cat >>conftest.$ac_ext <<_ACEOF 3236/* end confdefs.h. */ 3237 3238int 3239main () 3240{ 3241 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246rm -f conftest.$ac_objext 3247if { (ac_try="$ac_compile" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3253$as_echo "$ac_try_echo") >&5 3254 (eval "$ac_compile") 2>conftest.er1 3255 ac_status=$? 3256 grep -v '^ *+' conftest.er1 >conftest.err 3257 rm -f conftest.er1 3258 cat conftest.err >&5 3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3260 (exit $ac_status); } && { 3261 test -z "$ac_c_werror_flag" || 3262 test ! -s conftest.err 3263 } && test -s conftest.$ac_objext; then 3264 ac_cv_prog_cc_g=yes 3265else 3266 $as_echo "$as_me: failed program was:" >&5 3267sed 's/^/| /' conftest.$ac_ext >&5 3268 3269 CFLAGS="" 3270 cat >conftest.$ac_ext <<_ACEOF 3271/* confdefs.h. */ 3272_ACEOF 3273cat confdefs.h >>conftest.$ac_ext 3274cat >>conftest.$ac_ext <<_ACEOF 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285rm -f conftest.$ac_objext 3286if { (ac_try="$ac_compile" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3292$as_echo "$ac_try_echo") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 : 3304else 3305 $as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 ac_c_werror_flag=$ac_save_c_werror_flag 3309 CFLAGS="-g" 3310 cat >conftest.$ac_ext <<_ACEOF 3311/* confdefs.h. */ 3312_ACEOF 3313cat confdefs.h >>conftest.$ac_ext 3314cat >>conftest.$ac_ext <<_ACEOF 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f conftest.$ac_objext 3326if { (ac_try="$ac_compile" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3332$as_echo "$ac_try_echo") >&5 3333 (eval "$ac_compile") 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } && { 3340 test -z "$ac_c_werror_flag" || 3341 test ! -s conftest.err 3342 } && test -s conftest.$ac_objext; then 3343 ac_cv_prog_cc_g=yes 3344else 3345 $as_echo "$as_me: failed program was:" >&5 3346sed 's/^/| /' conftest.$ac_ext >&5 3347 3348 3349fi 3350 3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3352fi 3353 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3355fi 3356 3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3358 ac_c_werror_flag=$ac_save_c_werror_flag 3359fi 3360{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3361$as_echo "$ac_cv_prog_cc_g" >&6; } 3362if test "$ac_test_CFLAGS" = set; then 3363 CFLAGS=$ac_save_CFLAGS 3364elif test $ac_cv_prog_cc_g = yes; then 3365 if test "$GCC" = yes; then 3366 CFLAGS="-g -O2" 3367 else 3368 CFLAGS="-g" 3369 fi 3370else 3371 if test "$GCC" = yes; then 3372 CFLAGS="-O2" 3373 else 3374 CFLAGS= 3375 fi 3376fi 3377{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3379if test "${ac_cv_prog_cc_c89+set}" = set; then 3380 $as_echo_n "(cached) " >&6 3381else 3382 ac_cv_prog_cc_c89=no 3383ac_save_CC=$CC 3384cat >conftest.$ac_ext <<_ACEOF 3385/* confdefs.h. */ 3386_ACEOF 3387cat confdefs.h >>conftest.$ac_ext 3388cat >>conftest.$ac_ext <<_ACEOF 3389/* end confdefs.h. */ 3390#include <stdarg.h> 3391#include <stdio.h> 3392#include <sys/types.h> 3393#include <sys/stat.h> 3394/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3395struct buf { int x; }; 3396FILE * (*rcsopen) (struct buf *, struct stat *, int); 3397static char *e (p, i) 3398 char **p; 3399 int i; 3400{ 3401 return p[i]; 3402} 3403static char *f (char * (*g) (char **, int), char **p, ...) 3404{ 3405 char *s; 3406 va_list v; 3407 va_start (v,p); 3408 s = g (p, va_arg (v,int)); 3409 va_end (v); 3410 return s; 3411} 3412 3413/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3414 function prototypes and stuff, but not '\xHH' hex character constants. 3415 These don't provoke an error unfortunately, instead are silently treated 3416 as 'x'. The following induces an error, until -std is added to get 3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3418 array size at least. It's necessary to write '\x00'==0 to get something 3419 that's true only with -std. */ 3420int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3421 3422/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3423 inside strings and character constants. */ 3424#define FOO(x) 'x' 3425int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3426 3427int test (int i, double x); 3428struct s1 {int (*f) (int a);}; 3429struct s2 {int (*f) (double a);}; 3430int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3431int argc; 3432char **argv; 3433int 3434main () 3435{ 3436return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3443do 3444 CC="$ac_save_CC $ac_arg" 3445 rm -f conftest.$ac_objext 3446if { (ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3452$as_echo "$ac_try_echo") >&5 3453 (eval "$ac_compile") 2>conftest.er1 3454 ac_status=$? 3455 grep -v '^ *+' conftest.er1 >conftest.err 3456 rm -f conftest.er1 3457 cat conftest.err >&5 3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3459 (exit $ac_status); } && { 3460 test -z "$ac_c_werror_flag" || 3461 test ! -s conftest.err 3462 } && test -s conftest.$ac_objext; then 3463 ac_cv_prog_cc_c89=$ac_arg 3464else 3465 $as_echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468 3469fi 3470 3471rm -f core conftest.err conftest.$ac_objext 3472 test "x$ac_cv_prog_cc_c89" != "xno" && break 3473done 3474rm -f conftest.$ac_ext 3475CC=$ac_save_CC 3476 3477fi 3478# AC_CACHE_VAL 3479case "x$ac_cv_prog_cc_c89" in 3480 x) 3481 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3482$as_echo "none needed" >&6; } ;; 3483 xno) 3484 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3485$as_echo "unsupported" >&6; } ;; 3486 *) 3487 CC="$CC $ac_cv_prog_cc_c89" 3488 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3490esac 3491 3492 3493ac_ext=c 3494ac_cpp='$CPP $CPPFLAGS' 3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_c_compiler_gnu 3498DEPDIR="${am__leading_dot}deps" 3499 3500ac_config_commands="$ac_config_commands depfiles" 3501 3502 3503am_make=${MAKE-make} 3504cat > confinc << 'END' 3505am__doit: 3506 @echo done 3507.PHONY: am__doit 3508END 3509# If we don't find an include directive, just comment out the code. 3510{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3511$as_echo_n "checking for style of include used by $am_make... " >&6; } 3512am__include="#" 3513am__quote= 3514_am_result=none 3515# First try GNU make style include. 3516echo "include confinc" > confmf 3517# We grep out `Entering directory' and `Leaving directory' 3518# messages which can occur if `w' ends up in MAKEFLAGS. 3519# In particular we don't look at `^make:' because GNU make might 3520# be invoked under some other name (usually "gmake"), in which 3521# case it prints its new name instead of `make'. 3522if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3523 am__include=include 3524 am__quote= 3525 _am_result=GNU 3526fi 3527# Now try BSD make style include. 3528if test "$am__include" = "#"; then 3529 echo '.include "confinc"' > confmf 3530 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3531 am__include=.include 3532 am__quote="\"" 3533 _am_result=BSD 3534 fi 3535fi 3536 3537 3538{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3539$as_echo "$_am_result" >&6; } 3540rm -f confinc confmf 3541 3542# Check whether --enable-dependency-tracking was given. 3543if test "${enable_dependency_tracking+set}" = set; then 3544 enableval=$enable_dependency_tracking; 3545fi 3546 3547if test "x$enable_dependency_tracking" != xno; then 3548 am_depcomp="$ac_aux_dir/depcomp" 3549 AMDEPBACKSLASH='\' 3550fi 3551 if test "x$enable_dependency_tracking" != xno; then 3552 AMDEP_TRUE= 3553 AMDEP_FALSE='#' 3554else 3555 AMDEP_TRUE='#' 3556 AMDEP_FALSE= 3557fi 3558 3559 3560 3561depcc="$CC" am_compiler_list= 3562 3563{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3564$as_echo_n "checking dependency style of $depcc... " >&6; } 3565if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3566 $as_echo_n "(cached) " >&6 3567else 3568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3569 # We make a subdir and do the tests there. Otherwise we can end up 3570 # making bogus files that we don't know about and never remove. For 3571 # instance it was reported that on HP-UX the gcc test will end up 3572 # making a dummy file named `D' -- because `-MD' means `put the output 3573 # in D'. 3574 mkdir conftest.dir 3575 # Copy depcomp to subdir because otherwise we won't find it if we're 3576 # using a relative directory. 3577 cp "$am_depcomp" conftest.dir 3578 cd conftest.dir 3579 # We will build objects and dependencies in a subdirectory because 3580 # it helps to detect inapplicable dependency modes. For instance 3581 # both Tru64's cc and ICC support -MD to output dependencies as a 3582 # side effect of compilation, but ICC will put the dependencies in 3583 # the current directory while Tru64 will put them in the object 3584 # directory. 3585 mkdir sub 3586 3587 am_cv_CC_dependencies_compiler_type=none 3588 if test "$am_compiler_list" = ""; then 3589 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3590 fi 3591 for depmode in $am_compiler_list; do 3592 # Setup a source with many dependencies, because some compilers 3593 # like to wrap large dependency lists on column 80 (with \), and 3594 # we should not choose a depcomp mode which is confused by this. 3595 # 3596 # We need to recreate these files for each test, as the compiler may 3597 # overwrite some of them when testing with obscure command lines. 3598 # This happens at least with the AIX C compiler. 3599 : > sub/conftest.c 3600 for i in 1 2 3 4 5 6; do 3601 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3603 # Solaris 8's {/usr,}/bin/sh. 3604 touch sub/conftst$i.h 3605 done 3606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3607 3608 case $depmode in 3609 nosideeffect) 3610 # after this tag, mechanisms are not by side-effect, so they'll 3611 # only be used when explicitly requested 3612 if test "x$enable_dependency_tracking" = xyes; then 3613 continue 3614 else 3615 break 3616 fi 3617 ;; 3618 none) break ;; 3619 esac 3620 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3621 # mode. It turns out that the SunPro C++ compiler does not properly 3622 # handle `-M -o', and we need to detect this. 3623 if depmode=$depmode \ 3624 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3625 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3626 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3627 >/dev/null 2>conftest.err && 3628 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3630 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3632 # icc doesn't choke on unknown options, it will just issue warnings 3633 # or remarks (even with -Werror). So we grep stderr for any message 3634 # that says an option was ignored or not supported. 3635 # When given -MP, icc 7.0 and 7.1 complain thusly: 3636 # icc: Command line warning: ignoring option '-M'; no argument required 3637 # The diagnosis changed in icc 8.0: 3638 # icc: Command line remark: option '-MP' not supported 3639 if (grep 'ignoring option' conftest.err || 3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3641 am_cv_CC_dependencies_compiler_type=$depmode 3642 break 3643 fi 3644 fi 3645 done 3646 3647 cd .. 3648 rm -rf conftest.dir 3649else 3650 am_cv_CC_dependencies_compiler_type=none 3651fi 3652 3653fi 3654{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3655$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3656CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3657 3658 if 3659 test "x$enable_dependency_tracking" != xno \ 3660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3661 am__fastdepCC_TRUE= 3662 am__fastdepCC_FALSE='#' 3663else 3664 am__fastdepCC_TRUE='#' 3665 am__fastdepCC_FALSE= 3666fi 3667 3668 3669 3670ALL_LINGUAS="it fr de pl ru" 3671 3672ac_ext=c 3673ac_cpp='$CPP $CPPFLAGS' 3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3676ac_compiler_gnu=$ac_cv_c_compiler_gnu 3677{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3678$as_echo_n "checking how to run the C preprocessor... " >&6; } 3679# On Suns, sometimes $CPP names a directory. 3680if test -n "$CPP" && test -d "$CPP"; then 3681 CPP= 3682fi 3683if test -z "$CPP"; then 3684 if test "${ac_cv_prog_CPP+set}" = set; then 3685 $as_echo_n "(cached) " >&6 3686else 3687 # Double quotes because CPP needs to be expanded 3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3689 do 3690 ac_preproc_ok=false 3691for ac_c_preproc_warn_flag in '' yes 3692do 3693 # Use a header file that comes with gcc, so configuring glibc 3694 # with a fresh cross-compiler works. 3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3696 # <limits.h> exists even on freestanding compilers. 3697 # On the NeXT, cc -E runs the code through the compiler's parser, 3698 # not just through cpp. "Syntax error" is here to catch this case. 3699 cat >conftest.$ac_ext <<_ACEOF 3700/* confdefs.h. */ 3701_ACEOF 3702cat confdefs.h >>conftest.$ac_ext 3703cat >>conftest.$ac_ext <<_ACEOF 3704/* end confdefs.h. */ 3705#ifdef __STDC__ 3706# include <limits.h> 3707#else 3708# include <assert.h> 3709#endif 3710 Syntax error 3711_ACEOF 3712if { (ac_try="$ac_cpp conftest.$ac_ext" 3713case "(($ac_try" in 3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3715 *) ac_try_echo=$ac_try;; 3716esac 3717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3718$as_echo "$ac_try_echo") >&5 3719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3720 ac_status=$? 3721 grep -v '^ *+' conftest.er1 >conftest.err 3722 rm -f conftest.er1 3723 cat conftest.err >&5 3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3725 (exit $ac_status); } >/dev/null && { 3726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3727 test ! -s conftest.err 3728 }; then 3729 : 3730else 3731 $as_echo "$as_me: failed program was:" >&5 3732sed 's/^/| /' conftest.$ac_ext >&5 3733 3734 # Broken: fails on valid input. 3735continue 3736fi 3737 3738rm -f conftest.err conftest.$ac_ext 3739 3740 # OK, works on sane cases. Now check whether nonexistent headers 3741 # can be detected and how. 3742 cat >conftest.$ac_ext <<_ACEOF 3743/* confdefs.h. */ 3744_ACEOF 3745cat confdefs.h >>conftest.$ac_ext 3746cat >>conftest.$ac_ext <<_ACEOF 3747/* end confdefs.h. */ 3748#include <ac_nonexistent.h> 3749_ACEOF 3750if { (ac_try="$ac_cpp conftest.$ac_ext" 3751case "(($ac_try" in 3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3753 *) ac_try_echo=$ac_try;; 3754esac 3755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3756$as_echo "$ac_try_echo") >&5 3757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3758 ac_status=$? 3759 grep -v '^ *+' conftest.er1 >conftest.err 3760 rm -f conftest.er1 3761 cat conftest.err >&5 3762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); } >/dev/null && { 3764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3765 test ! -s conftest.err 3766 }; then 3767 # Broken: success on invalid input. 3768continue 3769else 3770 $as_echo "$as_me: failed program was:" >&5 3771sed 's/^/| /' conftest.$ac_ext >&5 3772 3773 # Passes both tests. 3774ac_preproc_ok=: 3775break 3776fi 3777 3778rm -f conftest.err conftest.$ac_ext 3779 3780done 3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3782rm -f conftest.err conftest.$ac_ext 3783if $ac_preproc_ok; then 3784 break 3785fi 3786 3787 done 3788 ac_cv_prog_CPP=$CPP 3789 3790fi 3791 CPP=$ac_cv_prog_CPP 3792else 3793 ac_cv_prog_CPP=$CPP 3794fi 3795{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3796$as_echo "$CPP" >&6; } 3797ac_preproc_ok=false 3798for ac_c_preproc_warn_flag in '' yes 3799do 3800 # Use a header file that comes with gcc, so configuring glibc 3801 # with a fresh cross-compiler works. 3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3803 # <limits.h> exists even on freestanding compilers. 3804 # On the NeXT, cc -E runs the code through the compiler's parser, 3805 # not just through cpp. "Syntax error" is here to catch this case. 3806 cat >conftest.$ac_ext <<_ACEOF 3807/* confdefs.h. */ 3808_ACEOF 3809cat confdefs.h >>conftest.$ac_ext 3810cat >>conftest.$ac_ext <<_ACEOF 3811/* end confdefs.h. */ 3812#ifdef __STDC__ 3813# include <limits.h> 3814#else 3815# include <assert.h> 3816#endif 3817 Syntax error 3818_ACEOF 3819if { (ac_try="$ac_cpp conftest.$ac_ext" 3820case "(($ac_try" in 3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3822 *) ac_try_echo=$ac_try;; 3823esac 3824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3825$as_echo "$ac_try_echo") >&5 3826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3827 ac_status=$? 3828 grep -v '^ *+' conftest.er1 >conftest.err 3829 rm -f conftest.er1 3830 cat conftest.err >&5 3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 (exit $ac_status); } >/dev/null && { 3833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3834 test ! -s conftest.err 3835 }; then 3836 : 3837else 3838 $as_echo "$as_me: failed program was:" >&5 3839sed 's/^/| /' conftest.$ac_ext >&5 3840 3841 # Broken: fails on valid input. 3842continue 3843fi 3844 3845rm -f conftest.err conftest.$ac_ext 3846 3847 # OK, works on sane cases. Now check whether nonexistent headers 3848 # can be detected and how. 3849 cat >conftest.$ac_ext <<_ACEOF 3850/* confdefs.h. */ 3851_ACEOF 3852cat confdefs.h >>conftest.$ac_ext 3853cat >>conftest.$ac_ext <<_ACEOF 3854/* end confdefs.h. */ 3855#include <ac_nonexistent.h> 3856_ACEOF 3857if { (ac_try="$ac_cpp conftest.$ac_ext" 3858case "(($ac_try" in 3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3860 *) ac_try_echo=$ac_try;; 3861esac 3862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3863$as_echo "$ac_try_echo") >&5 3864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3865 ac_status=$? 3866 grep -v '^ *+' conftest.er1 >conftest.err 3867 rm -f conftest.er1 3868 cat conftest.err >&5 3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); } >/dev/null && { 3871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3872 test ! -s conftest.err 3873 }; then 3874 # Broken: success on invalid input. 3875continue 3876else 3877 $as_echo "$as_me: failed program was:" >&5 3878sed 's/^/| /' conftest.$ac_ext >&5 3879 3880 # Passes both tests. 3881ac_preproc_ok=: 3882break 3883fi 3884 3885rm -f conftest.err conftest.$ac_ext 3886 3887done 3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3889rm -f conftest.err conftest.$ac_ext 3890if $ac_preproc_ok; then 3891 : 3892else 3893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3896See \`config.log' for more details." >&5 3897$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3898See \`config.log' for more details." >&2;} 3899 { (exit 1); exit 1; }; }; } 3900fi 3901 3902ac_ext=c 3903ac_cpp='$CPP $CPPFLAGS' 3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3906ac_compiler_gnu=$ac_cv_c_compiler_gnu 3907 3908 3909{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3910$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3911if test "${ac_cv_path_GREP+set}" = set; then 3912 $as_echo_n "(cached) " >&6 3913else 3914 if test -z "$GREP"; then 3915 ac_path_GREP_found=false 3916 # Loop through the user's path and test for each of PROGNAME-LIST 3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3919do 3920 IFS=$as_save_IFS 3921 test -z "$as_dir" && as_dir=. 3922 for ac_prog in grep ggrep; do 3923 for ac_exec_ext in '' $ac_executable_extensions; do 3924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3926# Check for GNU ac_path_GREP and select it if it is found. 3927 # Check for GNU $ac_path_GREP 3928case `"$ac_path_GREP" --version 2>&1` in 3929*GNU*) 3930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3931*) 3932 ac_count=0 3933 $as_echo_n 0123456789 >"conftest.in" 3934 while : 3935 do 3936 cat "conftest.in" "conftest.in" >"conftest.tmp" 3937 mv "conftest.tmp" "conftest.in" 3938 cp "conftest.in" "conftest.nl" 3939 $as_echo 'GREP' >> "conftest.nl" 3940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3942 ac_count=`expr $ac_count + 1` 3943 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3944 # Best one so far, save it but keep looking for a better one 3945 ac_cv_path_GREP="$ac_path_GREP" 3946 ac_path_GREP_max=$ac_count 3947 fi 3948 # 10*(2^10) chars as input seems more than enough 3949 test $ac_count -gt 10 && break 3950 done 3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3952esac 3953 3954 $ac_path_GREP_found && break 3 3955 done 3956 done 3957done 3958IFS=$as_save_IFS 3959 if test -z "$ac_cv_path_GREP"; then 3960 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3961$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3962 { (exit 1); exit 1; }; } 3963 fi 3964else 3965 ac_cv_path_GREP=$GREP 3966fi 3967 3968fi 3969{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3970$as_echo "$ac_cv_path_GREP" >&6; } 3971 GREP="$ac_cv_path_GREP" 3972 3973 3974{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3975$as_echo_n "checking for egrep... " >&6; } 3976if test "${ac_cv_path_EGREP+set}" = set; then 3977 $as_echo_n "(cached) " >&6 3978else 3979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3980 then ac_cv_path_EGREP="$GREP -E" 3981 else 3982 if test -z "$EGREP"; then 3983 ac_path_EGREP_found=false 3984 # Loop through the user's path and test for each of PROGNAME-LIST 3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3987do 3988 IFS=$as_save_IFS 3989 test -z "$as_dir" && as_dir=. 3990 for ac_prog in egrep; do 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3994# Check for GNU ac_path_EGREP and select it if it is found. 3995 # Check for GNU $ac_path_EGREP 3996case `"$ac_path_EGREP" --version 2>&1` in 3997*GNU*) 3998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3999*) 4000 ac_count=0 4001 $as_echo_n 0123456789 >"conftest.in" 4002 while : 4003 do 4004 cat "conftest.in" "conftest.in" >"conftest.tmp" 4005 mv "conftest.tmp" "conftest.in" 4006 cp "conftest.in" "conftest.nl" 4007 $as_echo 'EGREP' >> "conftest.nl" 4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4010 ac_count=`expr $ac_count + 1` 4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4012 # Best one so far, save it but keep looking for a better one 4013 ac_cv_path_EGREP="$ac_path_EGREP" 4014 ac_path_EGREP_max=$ac_count 4015 fi 4016 # 10*(2^10) chars as input seems more than enough 4017 test $ac_count -gt 10 && break 4018 done 4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4020esac 4021 4022 $ac_path_EGREP_found && break 3 4023 done 4024 done 4025done 4026IFS=$as_save_IFS 4027 if test -z "$ac_cv_path_EGREP"; then 4028 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4029$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4030 { (exit 1); exit 1; }; } 4031 fi 4032else 4033 ac_cv_path_EGREP=$EGREP 4034fi 4035 4036 fi 4037fi 4038{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4039$as_echo "$ac_cv_path_EGREP" >&6; } 4040 EGREP="$ac_cv_path_EGREP" 4041 4042 4043{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4044$as_echo_n "checking for ANSI C header files... " >&6; } 4045if test "${ac_cv_header_stdc+set}" = set; then 4046 $as_echo_n "(cached) " >&6 4047else 4048 cat >conftest.$ac_ext <<_ACEOF 4049/* confdefs.h. */ 4050_ACEOF 4051cat confdefs.h >>conftest.$ac_ext 4052cat >>conftest.$ac_ext <<_ACEOF 4053/* end confdefs.h. */ 4054#include <stdlib.h> 4055#include <stdarg.h> 4056#include <string.h> 4057#include <float.h> 4058 4059int 4060main () 4061{ 4062 4063 ; 4064 return 0; 4065} 4066_ACEOF 4067rm -f conftest.$ac_objext 4068if { (ac_try="$ac_compile" 4069case "(($ac_try" in 4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4071 *) ac_try_echo=$ac_try;; 4072esac 4073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4074$as_echo "$ac_try_echo") >&5 4075 (eval "$ac_compile") 2>conftest.er1 4076 ac_status=$? 4077 grep -v '^ *+' conftest.er1 >conftest.err 4078 rm -f conftest.er1 4079 cat conftest.err >&5 4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4081 (exit $ac_status); } && { 4082 test -z "$ac_c_werror_flag" || 4083 test ! -s conftest.err 4084 } && test -s conftest.$ac_objext; then 4085 ac_cv_header_stdc=yes 4086else 4087 $as_echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090 ac_cv_header_stdc=no 4091fi 4092 4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4094 4095if test $ac_cv_header_stdc = yes; then 4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4097 cat >conftest.$ac_ext <<_ACEOF 4098/* confdefs.h. */ 4099_ACEOF 4100cat confdefs.h >>conftest.$ac_ext 4101cat >>conftest.$ac_ext <<_ACEOF 4102/* end confdefs.h. */ 4103#include <string.h> 4104 4105_ACEOF 4106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4107 $EGREP "memchr" >/dev/null 2>&1; then 4108 : 4109else 4110 ac_cv_header_stdc=no 4111fi 4112rm -f conftest* 4113 4114fi 4115 4116if test $ac_cv_header_stdc = yes; then 4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4118 cat >conftest.$ac_ext <<_ACEOF 4119/* confdefs.h. */ 4120_ACEOF 4121cat confdefs.h >>conftest.$ac_ext 4122cat >>conftest.$ac_ext <<_ACEOF 4123/* end confdefs.h. */ 4124#include <stdlib.h> 4125 4126_ACEOF 4127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4128 $EGREP "free" >/dev/null 2>&1; then 4129 : 4130else 4131 ac_cv_header_stdc=no 4132fi 4133rm -f conftest* 4134 4135fi 4136 4137if test $ac_cv_header_stdc = yes; then 4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4139 if test "$cross_compiling" = yes; then 4140 : 4141else 4142 cat >conftest.$ac_ext <<_ACEOF 4143/* confdefs.h. */ 4144_ACEOF 4145cat confdefs.h >>conftest.$ac_ext 4146cat >>conftest.$ac_ext <<_ACEOF 4147/* end confdefs.h. */ 4148#include <ctype.h> 4149#include <stdlib.h> 4150#if ((' ' & 0x0FF) == 0x020) 4151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4153#else 4154# define ISLOWER(c) \ 4155 (('a' <= (c) && (c) <= 'i') \ 4156 || ('j' <= (c) && (c) <= 'r') \ 4157 || ('s' <= (c) && (c) <= 'z')) 4158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4159#endif 4160 4161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4162int 4163main () 4164{ 4165 int i; 4166 for (i = 0; i < 256; i++) 4167 if (XOR (islower (i), ISLOWER (i)) 4168 || toupper (i) != TOUPPER (i)) 4169 return 2; 4170 return 0; 4171} 4172_ACEOF 4173rm -f conftest$ac_exeext 4174if { (ac_try="$ac_link" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4180$as_echo "$ac_try_echo") >&5 4181 (eval "$ac_link") 2>&5 4182 ac_status=$? 4183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4185 { (case "(($ac_try" in 4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4187 *) ac_try_echo=$ac_try;; 4188esac 4189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4190$as_echo "$ac_try_echo") >&5 4191 (eval "$ac_try") 2>&5 4192 ac_status=$? 4193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); }; }; then 4195 : 4196else 4197 $as_echo "$as_me: program exited with status $ac_status" >&5 4198$as_echo "$as_me: failed program was:" >&5 4199sed 's/^/| /' conftest.$ac_ext >&5 4200 4201( exit $ac_status ) 4202ac_cv_header_stdc=no 4203fi 4204rm -rf conftest.dSYM 4205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4206fi 4207 4208 4209fi 4210fi 4211{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4212$as_echo "$ac_cv_header_stdc" >&6; } 4213if test $ac_cv_header_stdc = yes; then 4214 4215cat >>confdefs.h <<\_ACEOF 4216#define STDC_HEADERS 1 4217_ACEOF 4218 4219fi 4220 4221# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4232 inttypes.h stdint.h unistd.h 4233do 4234as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4235{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4236$as_echo_n "checking for $ac_header... " >&6; } 4237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4238 $as_echo_n "(cached) " >&6 4239else 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246$ac_includes_default 4247 4248#include <$ac_header> 4249_ACEOF 4250rm -f conftest.$ac_objext 4251if { (ac_try="$ac_compile" 4252case "(($ac_try" in 4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4254 *) ac_try_echo=$ac_try;; 4255esac 4256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4257$as_echo "$ac_try_echo") >&5 4258 (eval "$ac_compile") 2>conftest.er1 4259 ac_status=$? 4260 grep -v '^ *+' conftest.er1 >conftest.err 4261 rm -f conftest.er1 4262 cat conftest.err >&5 4263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); } && { 4265 test -z "$ac_c_werror_flag" || 4266 test ! -s conftest.err 4267 } && test -s conftest.$ac_objext; then 4268 eval "$as_ac_Header=yes" 4269else 4270 $as_echo "$as_me: failed program was:" >&5 4271sed 's/^/| /' conftest.$ac_ext >&5 4272 4273 eval "$as_ac_Header=no" 4274fi 4275 4276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4277fi 4278ac_res=`eval 'as_val=${'$as_ac_Header'} 4279 $as_echo "$as_val"'` 4280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4281$as_echo "$ac_res" >&6; } 4282as_val=`eval 'as_val=${'$as_ac_Header'} 4283 $as_echo "$as_val"'` 4284 if test "x$as_val" = x""yes; then 4285 cat >>confdefs.h <<_ACEOF 4286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4287_ACEOF 4288 4289fi 4290 4291done 4292 4293 4294 4295 4296for ac_header in locale.h 4297do 4298as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4301$as_echo_n "checking for $ac_header... " >&6; } 4302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4303 $as_echo_n "(cached) " >&6 4304fi 4305ac_res=`eval 'as_val=${'$as_ac_Header'} 4306 $as_echo "$as_val"'` 4307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4308$as_echo "$ac_res" >&6; } 4309else 4310 # Is the header compilable? 4311{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4312$as_echo_n "checking $ac_header usability... " >&6; } 4313cat >conftest.$ac_ext <<_ACEOF 4314/* confdefs.h. */ 4315_ACEOF 4316cat confdefs.h >>conftest.$ac_ext 4317cat >>conftest.$ac_ext <<_ACEOF 4318/* end confdefs.h. */ 4319$ac_includes_default 4320#include <$ac_header> 4321_ACEOF 4322rm -f conftest.$ac_objext 4323if { (ac_try="$ac_compile" 4324case "(($ac_try" in 4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4326 *) ac_try_echo=$ac_try;; 4327esac 4328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4329$as_echo "$ac_try_echo") >&5 4330 (eval "$ac_compile") 2>conftest.er1 4331 ac_status=$? 4332 grep -v '^ *+' conftest.er1 >conftest.err 4333 rm -f conftest.er1 4334 cat conftest.err >&5 4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); } && { 4337 test -z "$ac_c_werror_flag" || 4338 test ! -s conftest.err 4339 } && test -s conftest.$ac_objext; then 4340 ac_header_compiler=yes 4341else 4342 $as_echo "$as_me: failed program was:" >&5 4343sed 's/^/| /' conftest.$ac_ext >&5 4344 4345 ac_header_compiler=no 4346fi 4347 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4350$as_echo "$ac_header_compiler" >&6; } 4351 4352# Is the header present? 4353{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4354$as_echo_n "checking $ac_header presence... " >&6; } 4355cat >conftest.$ac_ext <<_ACEOF 4356/* confdefs.h. */ 4357_ACEOF 4358cat confdefs.h >>conftest.$ac_ext 4359cat >>conftest.$ac_ext <<_ACEOF 4360/* end confdefs.h. */ 4361#include <$ac_header> 4362_ACEOF 4363if { (ac_try="$ac_cpp conftest.$ac_ext" 4364case "(($ac_try" in 4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4366 *) ac_try_echo=$ac_try;; 4367esac 4368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4369$as_echo "$ac_try_echo") >&5 4370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4371 ac_status=$? 4372 grep -v '^ *+' conftest.er1 >conftest.err 4373 rm -f conftest.er1 4374 cat conftest.err >&5 4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); } >/dev/null && { 4377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4378 test ! -s conftest.err 4379 }; then 4380 ac_header_preproc=yes 4381else 4382 $as_echo "$as_me: failed program was:" >&5 4383sed 's/^/| /' conftest.$ac_ext >&5 4384 4385 ac_header_preproc=no 4386fi 4387 4388rm -f conftest.err conftest.$ac_ext 4389{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4390$as_echo "$ac_header_preproc" >&6; } 4391 4392# So? What about this header? 4393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4394 yes:no: ) 4395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4396$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4398$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4399 ac_header_preproc=yes 4400 ;; 4401 no:yes:* ) 4402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4403$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4405$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4407$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4409$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4411$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4413$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4414 ( cat <<\_ASBOX 4415## ---------------------------------- ## 4416## Report this to shlomif@iglu.org.il ## 4417## ---------------------------------- ## 4418_ASBOX 4419 ) | sed "s/^/$as_me: WARNING: /" >&2 4420 ;; 4421esac 4422{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4423$as_echo_n "checking for $ac_header... " >&6; } 4424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4425 $as_echo_n "(cached) " >&6 4426else 4427 eval "$as_ac_Header=\$ac_header_preproc" 4428fi 4429ac_res=`eval 'as_val=${'$as_ac_Header'} 4430 $as_echo "$as_val"'` 4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4432$as_echo "$ac_res" >&6; } 4433 4434fi 4435as_val=`eval 'as_val=${'$as_ac_Header'} 4436 $as_echo "$as_val"'` 4437 if test "x$as_val" = x""yes; then 4438 cat >>confdefs.h <<_ACEOF 4439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4440_ACEOF 4441 4442fi 4443 4444done 4445 4446 if test $ac_cv_header_locale_h = yes; then 4447 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 4448$as_echo_n "checking for LC_MESSAGES... " >&6; } 4449if test "${am_cv_val_LC_MESSAGES+set}" = set; then 4450 $as_echo_n "(cached) " >&6 4451else 4452 cat >conftest.$ac_ext <<_ACEOF 4453/* confdefs.h. */ 4454_ACEOF 4455cat confdefs.h >>conftest.$ac_ext 4456cat >>conftest.$ac_ext <<_ACEOF 4457/* end confdefs.h. */ 4458#include <locale.h> 4459int 4460main () 4461{ 4462return LC_MESSAGES 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467rm -f conftest.$ac_objext conftest$ac_exeext 4468if { (ac_try="$ac_link" 4469case "(($ac_try" in 4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4471 *) ac_try_echo=$ac_try;; 4472esac 4473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4474$as_echo "$ac_try_echo") >&5 4475 (eval "$ac_link") 2>conftest.er1 4476 ac_status=$? 4477 grep -v '^ *+' conftest.er1 >conftest.err 4478 rm -f conftest.er1 4479 cat conftest.err >&5 4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); } && { 4482 test -z "$ac_c_werror_flag" || 4483 test ! -s conftest.err 4484 } && test -s conftest$ac_exeext && { 4485 test "$cross_compiling" = yes || 4486 $as_test_x conftest$ac_exeext 4487 }; then 4488 am_cv_val_LC_MESSAGES=yes 4489else 4490 $as_echo "$as_me: failed program was:" >&5 4491sed 's/^/| /' conftest.$ac_ext >&5 4492 4493 am_cv_val_LC_MESSAGES=no 4494fi 4495 4496rm -rf conftest.dSYM 4497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4498 conftest$ac_exeext conftest.$ac_ext 4499fi 4500{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 4501$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 4502 if test $am_cv_val_LC_MESSAGES = yes; then 4503 4504cat >>confdefs.h <<\_ACEOF 4505#define HAVE_LC_MESSAGES 1 4506_ACEOF 4507 4508 fi 4509 fi 4510 USE_NLS=yes 4511 4512 4513 gt_cv_have_gettext=no 4514 4515 CATOBJEXT=NONE 4516 XGETTEXT=: 4517 INTLLIBS= 4518 4519 if test "${ac_cv_header_libintl_h+set}" = set; then 4520 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5 4521$as_echo_n "checking for libintl.h... " >&6; } 4522if test "${ac_cv_header_libintl_h+set}" = set; then 4523 $as_echo_n "(cached) " >&6 4524fi 4525{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4526$as_echo "$ac_cv_header_libintl_h" >&6; } 4527else 4528 # Is the header compilable? 4529{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5 4530$as_echo_n "checking libintl.h usability... " >&6; } 4531cat >conftest.$ac_ext <<_ACEOF 4532/* confdefs.h. */ 4533_ACEOF 4534cat confdefs.h >>conftest.$ac_ext 4535cat >>conftest.$ac_ext <<_ACEOF 4536/* end confdefs.h. */ 4537$ac_includes_default 4538#include <libintl.h> 4539_ACEOF 4540rm -f conftest.$ac_objext 4541if { (ac_try="$ac_compile" 4542case "(($ac_try" in 4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4544 *) ac_try_echo=$ac_try;; 4545esac 4546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4547$as_echo "$ac_try_echo") >&5 4548 (eval "$ac_compile") 2>conftest.er1 4549 ac_status=$? 4550 grep -v '^ *+' conftest.er1 >conftest.err 4551 rm -f conftest.er1 4552 cat conftest.err >&5 4553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4554 (exit $ac_status); } && { 4555 test -z "$ac_c_werror_flag" || 4556 test ! -s conftest.err 4557 } && test -s conftest.$ac_objext; then 4558 ac_header_compiler=yes 4559else 4560 $as_echo "$as_me: failed program was:" >&5 4561sed 's/^/| /' conftest.$ac_ext >&5 4562 4563 ac_header_compiler=no 4564fi 4565 4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4567{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4568$as_echo "$ac_header_compiler" >&6; } 4569 4570# Is the header present? 4571{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5 4572$as_echo_n "checking libintl.h presence... " >&6; } 4573cat >conftest.$ac_ext <<_ACEOF 4574/* confdefs.h. */ 4575_ACEOF 4576cat confdefs.h >>conftest.$ac_ext 4577cat >>conftest.$ac_ext <<_ACEOF 4578/* end confdefs.h. */ 4579#include <libintl.h> 4580_ACEOF 4581if { (ac_try="$ac_cpp conftest.$ac_ext" 4582case "(($ac_try" in 4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4584 *) ac_try_echo=$ac_try;; 4585esac 4586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4587$as_echo "$ac_try_echo") >&5 4588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4589 ac_status=$? 4590 grep -v '^ *+' conftest.er1 >conftest.err 4591 rm -f conftest.er1 4592 cat conftest.err >&5 4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); } >/dev/null && { 4595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4596 test ! -s conftest.err 4597 }; then 4598 ac_header_preproc=yes 4599else 4600 $as_echo "$as_me: failed program was:" >&5 4601sed 's/^/| /' conftest.$ac_ext >&5 4602 4603 ac_header_preproc=no 4604fi 4605 4606rm -f conftest.err conftest.$ac_ext 4607{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4608$as_echo "$ac_header_preproc" >&6; } 4609 4610# So? What about this header? 4611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4612 yes:no: ) 4613 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 4614$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4615 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 4616$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 4617 ac_header_preproc=yes 4618 ;; 4619 no:yes:* ) 4620 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 4621$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 4622 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 4623$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 4624 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 4625$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 4626 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 4627$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 4628 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 4629$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 4630 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 4631$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 4632 ( cat <<\_ASBOX 4633## ---------------------------------- ## 4634## Report this to shlomif@iglu.org.il ## 4635## ---------------------------------- ## 4636_ASBOX 4637 ) | sed "s/^/$as_me: WARNING: /" >&2 4638 ;; 4639esac 4640{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5 4641$as_echo_n "checking for libintl.h... " >&6; } 4642if test "${ac_cv_header_libintl_h+set}" = set; then 4643 $as_echo_n "(cached) " >&6 4644else 4645 ac_cv_header_libintl_h=$ac_header_preproc 4646fi 4647{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4648$as_echo "$ac_cv_header_libintl_h" >&6; } 4649 4650fi 4651if test "x$ac_cv_header_libintl_h" = x""yes; then 4652 gt_cv_func_dgettext_libintl="no" 4653 libintl_extra_libs="" 4654 4655 # 4656 # First check in libc 4657 # 4658 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5 4659$as_echo_n "checking for ngettext in libc... " >&6; } 4660if test "${gt_cv_func_ngettext_libc+set}" = set; then 4661 $as_echo_n "(cached) " >&6 4662else 4663 cat >conftest.$ac_ext <<_ACEOF 4664/* confdefs.h. */ 4665_ACEOF 4666cat confdefs.h >>conftest.$ac_ext 4667cat >>conftest.$ac_ext <<_ACEOF 4668/* end confdefs.h. */ 4669 4670#include <libintl.h> 4671 4672int 4673main () 4674{ 4675return !ngettext ("","", 1) 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680rm -f conftest.$ac_objext conftest$ac_exeext 4681if { (ac_try="$ac_link" 4682case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4687$as_echo "$ac_try_echo") >&5 4688 (eval "$ac_link") 2>conftest.er1 4689 ac_status=$? 4690 grep -v '^ *+' conftest.er1 >conftest.err 4691 rm -f conftest.er1 4692 cat conftest.err >&5 4693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); } && { 4695 test -z "$ac_c_werror_flag" || 4696 test ! -s conftest.err 4697 } && test -s conftest$ac_exeext && { 4698 test "$cross_compiling" = yes || 4699 $as_test_x conftest$ac_exeext 4700 }; then 4701 gt_cv_func_ngettext_libc=yes 4702else 4703 $as_echo "$as_me: failed program was:" >&5 4704sed 's/^/| /' conftest.$ac_ext >&5 4705 4706 gt_cv_func_ngettext_libc=no 4707fi 4708 4709rm -rf conftest.dSYM 4710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4711 conftest$ac_exeext conftest.$ac_ext 4712 4713fi 4714{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 4715$as_echo "$gt_cv_func_ngettext_libc" >&6; } 4716 4717 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4718 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5 4719$as_echo_n "checking for dgettext in libc... " >&6; } 4720if test "${gt_cv_func_dgettext_libc+set}" = set; then 4721 $as_echo_n "(cached) " >&6 4722else 4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ 4729 4730#include <libintl.h> 4731 4732int 4733main () 4734{ 4735return !dgettext ("","") 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740rm -f conftest.$ac_objext conftest$ac_exeext 4741if { (ac_try="$ac_link" 4742case "(($ac_try" in 4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4744 *) ac_try_echo=$ac_try;; 4745esac 4746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4747$as_echo "$ac_try_echo") >&5 4748 (eval "$ac_link") 2>conftest.er1 4749 ac_status=$? 4750 grep -v '^ *+' conftest.er1 >conftest.err 4751 rm -f conftest.er1 4752 cat conftest.err >&5 4753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); } && { 4755 test -z "$ac_c_werror_flag" || 4756 test ! -s conftest.err 4757 } && test -s conftest$ac_exeext && { 4758 test "$cross_compiling" = yes || 4759 $as_test_x conftest$ac_exeext 4760 }; then 4761 gt_cv_func_dgettext_libc=yes 4762else 4763 $as_echo "$as_me: failed program was:" >&5 4764sed 's/^/| /' conftest.$ac_ext >&5 4765 4766 gt_cv_func_dgettext_libc=no 4767fi 4768 4769rm -rf conftest.dSYM 4770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4771 conftest$ac_exeext conftest.$ac_ext 4772 4773fi 4774{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 4775$as_echo "$gt_cv_func_dgettext_libc" >&6; } 4776 fi 4777 4778 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4779 4780for ac_func in bind_textdomain_codeset 4781do 4782as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4783{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 4784$as_echo_n "checking for $ac_func... " >&6; } 4785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4786 $as_echo_n "(cached) " >&6 4787else 4788 cat >conftest.$ac_ext <<_ACEOF 4789/* confdefs.h. */ 4790_ACEOF 4791cat confdefs.h >>conftest.$ac_ext 4792cat >>conftest.$ac_ext <<_ACEOF 4793/* end confdefs.h. */ 4794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4796#define $ac_func innocuous_$ac_func 4797 4798/* System header to define __stub macros and hopefully few prototypes, 4799 which can conflict with char $ac_func (); below. 4800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4801 <limits.h> exists even on freestanding compilers. */ 4802 4803#ifdef __STDC__ 4804# include <limits.h> 4805#else 4806# include <assert.h> 4807#endif 4808 4809#undef $ac_func 4810 4811/* Override any GCC internal prototype to avoid an error. 4812 Use char because int might match the return type of a GCC 4813 builtin and then its argument prototype would still apply. */ 4814#ifdef __cplusplus 4815extern "C" 4816#endif 4817char $ac_func (); 4818/* The GNU C library defines this for functions which it implements 4819 to always fail with ENOSYS. Some functions are actually named 4820 something starting with __ and the normal name is an alias. */ 4821#if defined __stub_$ac_func || defined __stub___$ac_func 4822choke me 4823#endif 4824 4825int 4826main () 4827{ 4828return $ac_func (); 4829 ; 4830 return 0; 4831} 4832_ACEOF 4833rm -f conftest.$ac_objext conftest$ac_exeext 4834if { (ac_try="$ac_link" 4835case "(($ac_try" in 4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4837 *) ac_try_echo=$ac_try;; 4838esac 4839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4840$as_echo "$ac_try_echo") >&5 4841 (eval "$ac_link") 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && { 4848 test -z "$ac_c_werror_flag" || 4849 test ! -s conftest.err 4850 } && test -s conftest$ac_exeext && { 4851 test "$cross_compiling" = yes || 4852 $as_test_x conftest$ac_exeext 4853 }; then 4854 eval "$as_ac_var=yes" 4855else 4856 $as_echo "$as_me: failed program was:" >&5 4857sed 's/^/| /' conftest.$ac_ext >&5 4858 4859 eval "$as_ac_var=no" 4860fi 4861 4862rm -rf conftest.dSYM 4863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4864 conftest$ac_exeext conftest.$ac_ext 4865fi 4866ac_res=`eval 'as_val=${'$as_ac_var'} 4867 $as_echo "$as_val"'` 4868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4869$as_echo "$ac_res" >&6; } 4870as_val=`eval 'as_val=${'$as_ac_var'} 4871 $as_echo "$as_val"'` 4872 if test "x$as_val" = x""yes; then 4873 cat >>confdefs.h <<_ACEOF 4874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4875_ACEOF 4876 4877fi 4878done 4879 4880 fi 4881 4882 # 4883 # If we don't have everything we want, check in libintl 4884 # 4885 if test "$gt_cv_func_dgettext_libc" != "yes" \ 4886 || test "$gt_cv_func_ngettext_libc" != "yes" \ 4887 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 4888 4889 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 4890$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 4891if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 4892 $as_echo_n "(cached) " >&6 4893else 4894 ac_check_lib_save_LIBS=$LIBS 4895LIBS="-lintl $LIBS" 4896cat >conftest.$ac_ext <<_ACEOF 4897/* confdefs.h. */ 4898_ACEOF 4899cat confdefs.h >>conftest.$ac_ext 4900cat >>conftest.$ac_ext <<_ACEOF 4901/* end confdefs.h. */ 4902 4903/* Override any GCC internal prototype to avoid an error. 4904 Use char because int might match the return type of a GCC 4905 builtin and then its argument prototype would still apply. */ 4906#ifdef __cplusplus 4907extern "C" 4908#endif 4909char bindtextdomain (); 4910int 4911main () 4912{ 4913return bindtextdomain (); 4914 ; 4915 return 0; 4916} 4917_ACEOF 4918rm -f conftest.$ac_objext conftest$ac_exeext 4919if { (ac_try="$ac_link" 4920case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923esac 4924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4925$as_echo "$ac_try_echo") >&5 4926 (eval "$ac_link") 2>conftest.er1 4927 ac_status=$? 4928 grep -v '^ *+' conftest.er1 >conftest.err 4929 rm -f conftest.er1 4930 cat conftest.err >&5 4931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); } && { 4933 test -z "$ac_c_werror_flag" || 4934 test ! -s conftest.err 4935 } && test -s conftest$ac_exeext && { 4936 test "$cross_compiling" = yes || 4937 $as_test_x conftest$ac_exeext 4938 }; then 4939 ac_cv_lib_intl_bindtextdomain=yes 4940else 4941 $as_echo "$as_me: failed program was:" >&5 4942sed 's/^/| /' conftest.$ac_ext >&5 4943 4944 ac_cv_lib_intl_bindtextdomain=no 4945fi 4946 4947rm -rf conftest.dSYM 4948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4949 conftest$ac_exeext conftest.$ac_ext 4950LIBS=$ac_check_lib_save_LIBS 4951fi 4952{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 4953$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 4954if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then 4955 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 4956$as_echo_n "checking for ngettext in -lintl... " >&6; } 4957if test "${ac_cv_lib_intl_ngettext+set}" = set; then 4958 $as_echo_n "(cached) " >&6 4959else 4960 ac_check_lib_save_LIBS=$LIBS 4961LIBS="-lintl $LIBS" 4962cat >conftest.$ac_ext <<_ACEOF 4963/* confdefs.h. */ 4964_ACEOF 4965cat confdefs.h >>conftest.$ac_ext 4966cat >>conftest.$ac_ext <<_ACEOF 4967/* end confdefs.h. */ 4968 4969/* Override any GCC internal prototype to avoid an error. 4970 Use char because int might match the return type of a GCC 4971 builtin and then its argument prototype would still apply. */ 4972#ifdef __cplusplus 4973extern "C" 4974#endif 4975char ngettext (); 4976int 4977main () 4978{ 4979return ngettext (); 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984rm -f conftest.$ac_objext conftest$ac_exeext 4985if { (ac_try="$ac_link" 4986case "(($ac_try" in 4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4988 *) ac_try_echo=$ac_try;; 4989esac 4990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4991$as_echo "$ac_try_echo") >&5 4992 (eval "$ac_link") 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && { 4999 test -z "$ac_c_werror_flag" || 5000 test ! -s conftest.err 5001 } && test -s conftest$ac_exeext && { 5002 test "$cross_compiling" = yes || 5003 $as_test_x conftest$ac_exeext 5004 }; then 5005 ac_cv_lib_intl_ngettext=yes 5006else 5007 $as_echo "$as_me: failed program was:" >&5 5008sed 's/^/| /' conftest.$ac_ext >&5 5009 5010 ac_cv_lib_intl_ngettext=no 5011fi 5012 5013rm -rf conftest.dSYM 5014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5015 conftest$ac_exeext conftest.$ac_ext 5016LIBS=$ac_check_lib_save_LIBS 5017fi 5018{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 5019$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 5020if test "x$ac_cv_lib_intl_ngettext" = x""yes; then 5021 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 5022$as_echo_n "checking for dgettext in -lintl... " >&6; } 5023if test "${ac_cv_lib_intl_dgettext+set}" = set; then 5024 $as_echo_n "(cached) " >&6 5025else 5026 ac_check_lib_save_LIBS=$LIBS 5027LIBS="-lintl $LIBS" 5028cat >conftest.$ac_ext <<_ACEOF 5029/* confdefs.h. */ 5030_ACEOF 5031cat confdefs.h >>conftest.$ac_ext 5032cat >>conftest.$ac_ext <<_ACEOF 5033/* end confdefs.h. */ 5034 5035/* Override any GCC internal prototype to avoid an error. 5036 Use char because int might match the return type of a GCC 5037 builtin and then its argument prototype would still apply. */ 5038#ifdef __cplusplus 5039extern "C" 5040#endif 5041char dgettext (); 5042int 5043main () 5044{ 5045return dgettext (); 5046 ; 5047 return 0; 5048} 5049_ACEOF 5050rm -f conftest.$ac_objext conftest$ac_exeext 5051if { (ac_try="$ac_link" 5052case "(($ac_try" in 5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5054 *) ac_try_echo=$ac_try;; 5055esac 5056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5057$as_echo "$ac_try_echo") >&5 5058 (eval "$ac_link") 2>conftest.er1 5059 ac_status=$? 5060 grep -v '^ *+' conftest.er1 >conftest.err 5061 rm -f conftest.er1 5062 cat conftest.err >&5 5063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); } && { 5065 test -z "$ac_c_werror_flag" || 5066 test ! -s conftest.err 5067 } && test -s conftest$ac_exeext && { 5068 test "$cross_compiling" = yes || 5069 $as_test_x conftest$ac_exeext 5070 }; then 5071 ac_cv_lib_intl_dgettext=yes 5072else 5073 $as_echo "$as_me: failed program was:" >&5 5074sed 's/^/| /' conftest.$ac_ext >&5 5075 5076 ac_cv_lib_intl_dgettext=no 5077fi 5078 5079rm -rf conftest.dSYM 5080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5081 conftest$ac_exeext conftest.$ac_ext 5082LIBS=$ac_check_lib_save_LIBS 5083fi 5084{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 5085$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 5086if test "x$ac_cv_lib_intl_dgettext" = x""yes; then 5087 gt_cv_func_dgettext_libintl=yes 5088fi 5089 5090fi 5091 5092fi 5093 5094 5095 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 5096 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 5097$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 5098 { $as_echo "$as_me:$LINENO: result: " >&5 5099$as_echo "" >&6; } 5100 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 5101$as_echo_n "checking for ngettext in -lintl... " >&6; } 5102if test "${ac_cv_lib_intl_ngettext+set}" = set; then 5103 $as_echo_n "(cached) " >&6 5104else 5105 ac_check_lib_save_LIBS=$LIBS 5106LIBS="-lintl -liconv $LIBS" 5107cat >conftest.$ac_ext <<_ACEOF 5108/* confdefs.h. */ 5109_ACEOF 5110cat confdefs.h >>conftest.$ac_ext 5111cat >>conftest.$ac_ext <<_ACEOF 5112/* end confdefs.h. */ 5113 5114/* Override any GCC internal prototype to avoid an error. 5115 Use char because int might match the return type of a GCC 5116 builtin and then its argument prototype would still apply. */ 5117#ifdef __cplusplus 5118extern "C" 5119#endif 5120char ngettext (); 5121int 5122main () 5123{ 5124return ngettext (); 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129rm -f conftest.$ac_objext conftest$ac_exeext 5130if { (ac_try="$ac_link" 5131case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134esac 5135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5136$as_echo "$ac_try_echo") >&5 5137 (eval "$ac_link") 2>conftest.er1 5138 ac_status=$? 5139 grep -v '^ *+' conftest.er1 >conftest.err 5140 rm -f conftest.er1 5141 cat conftest.err >&5 5142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); } && { 5144 test -z "$ac_c_werror_flag" || 5145 test ! -s conftest.err 5146 } && test -s conftest$ac_exeext && { 5147 test "$cross_compiling" = yes || 5148 $as_test_x conftest$ac_exeext 5149 }; then 5150 ac_cv_lib_intl_ngettext=yes 5151else 5152 $as_echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_cv_lib_intl_ngettext=no 5156fi 5157 5158rm -rf conftest.dSYM 5159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5160 conftest$ac_exeext conftest.$ac_ext 5161LIBS=$ac_check_lib_save_LIBS 5162fi 5163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 5164$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 5165if test "x$ac_cv_lib_intl_ngettext" = x""yes; then 5166 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 5167$as_echo_n "checking for dcgettext in -lintl... " >&6; } 5168if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 5169 $as_echo_n "(cached) " >&6 5170else 5171 ac_check_lib_save_LIBS=$LIBS 5172LIBS="-lintl -liconv $LIBS" 5173cat >conftest.$ac_ext <<_ACEOF 5174/* confdefs.h. */ 5175_ACEOF 5176cat confdefs.h >>conftest.$ac_ext 5177cat >>conftest.$ac_ext <<_ACEOF 5178/* end confdefs.h. */ 5179 5180/* Override any GCC internal prototype to avoid an error. 5181 Use char because int might match the return type of a GCC 5182 builtin and then its argument prototype would still apply. */ 5183#ifdef __cplusplus 5184extern "C" 5185#endif 5186char dcgettext (); 5187int 5188main () 5189{ 5190return dcgettext (); 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195rm -f conftest.$ac_objext conftest$ac_exeext 5196if { (ac_try="$ac_link" 5197case "(($ac_try" in 5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5199 *) ac_try_echo=$ac_try;; 5200esac 5201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5202$as_echo "$ac_try_echo") >&5 5203 (eval "$ac_link") 2>conftest.er1 5204 ac_status=$? 5205 grep -v '^ *+' conftest.er1 >conftest.err 5206 rm -f conftest.er1 5207 cat conftest.err >&5 5208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); } && { 5210 test -z "$ac_c_werror_flag" || 5211 test ! -s conftest.err 5212 } && test -s conftest$ac_exeext && { 5213 test "$cross_compiling" = yes || 5214 $as_test_x conftest$ac_exeext 5215 }; then 5216 ac_cv_lib_intl_dcgettext=yes 5217else 5218 $as_echo "$as_me: failed program was:" >&5 5219sed 's/^/| /' conftest.$ac_ext >&5 5220 5221 ac_cv_lib_intl_dcgettext=no 5222fi 5223 5224rm -rf conftest.dSYM 5225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5226 conftest$ac_exeext conftest.$ac_ext 5227LIBS=$ac_check_lib_save_LIBS 5228fi 5229{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 5230$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 5231if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then 5232 gt_cv_func_dgettext_libintl=yes 5233 libintl_extra_libs=-liconv 5234else 5235 : 5236fi 5237 5238else 5239 : 5240fi 5241 5242 fi 5243 5244 # 5245 # If we found libintl, then check in it for bind_textdomain_codeset(); 5246 # we'll prefer libc if neither have bind_textdomain_codeset(), 5247 # and both have dgettext and ngettext 5248 # 5249 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 5250 glib_save_LIBS="$LIBS" 5251 LIBS="$LIBS -lintl $libintl_extra_libs" 5252 unset ac_cv_func_bind_textdomain_codeset 5253 5254for ac_func in bind_textdomain_codeset 5255do 5256as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5257{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5258$as_echo_n "checking for $ac_func... " >&6; } 5259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5260 $as_echo_n "(cached) " >&6 5261else 5262 cat >conftest.$ac_ext <<_ACEOF 5263/* confdefs.h. */ 5264_ACEOF 5265cat confdefs.h >>conftest.$ac_ext 5266cat >>conftest.$ac_ext <<_ACEOF 5267/* end confdefs.h. */ 5268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5269 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5270#define $ac_func innocuous_$ac_func 5271 5272/* System header to define __stub macros and hopefully few prototypes, 5273 which can conflict with char $ac_func (); below. 5274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5275 <limits.h> exists even on freestanding compilers. */ 5276 5277#ifdef __STDC__ 5278# include <limits.h> 5279#else 5280# include <assert.h> 5281#endif 5282 5283#undef $ac_func 5284 5285/* Override any GCC internal prototype to avoid an error. 5286 Use char because int might match the return type of a GCC 5287 builtin and then its argument prototype would still apply. */ 5288#ifdef __cplusplus 5289extern "C" 5290#endif 5291char $ac_func (); 5292/* The GNU C library defines this for functions which it implements 5293 to always fail with ENOSYS. Some functions are actually named 5294 something starting with __ and the normal name is an alias. */ 5295#if defined __stub_$ac_func || defined __stub___$ac_func 5296choke me 5297#endif 5298 5299int 5300main () 5301{ 5302return $ac_func (); 5303 ; 5304 return 0; 5305} 5306_ACEOF 5307rm -f conftest.$ac_objext conftest$ac_exeext 5308if { (ac_try="$ac_link" 5309case "(($ac_try" in 5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5311 *) ac_try_echo=$ac_try;; 5312esac 5313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5314$as_echo "$ac_try_echo") >&5 5315 (eval "$ac_link") 2>conftest.er1 5316 ac_status=$? 5317 grep -v '^ *+' conftest.er1 >conftest.err 5318 rm -f conftest.er1 5319 cat conftest.err >&5 5320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); } && { 5322 test -z "$ac_c_werror_flag" || 5323 test ! -s conftest.err 5324 } && test -s conftest$ac_exeext && { 5325 test "$cross_compiling" = yes || 5326 $as_test_x conftest$ac_exeext 5327 }; then 5328 eval "$as_ac_var=yes" 5329else 5330 $as_echo "$as_me: failed program was:" >&5 5331sed 's/^/| /' conftest.$ac_ext >&5 5332 5333 eval "$as_ac_var=no" 5334fi 5335 5336rm -rf conftest.dSYM 5337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5338 conftest$ac_exeext conftest.$ac_ext 5339fi 5340ac_res=`eval 'as_val=${'$as_ac_var'} 5341 $as_echo "$as_val"'` 5342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5343$as_echo "$ac_res" >&6; } 5344as_val=`eval 'as_val=${'$as_ac_var'} 5345 $as_echo "$as_val"'` 5346 if test "x$as_val" = x""yes; then 5347 cat >>confdefs.h <<_ACEOF 5348#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5349_ACEOF 5350 5351fi 5352done 5353 5354 LIBS="$glib_save_LIBS" 5355 5356 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 5357 gt_cv_func_dgettext_libc=no 5358 else 5359 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5360 && test "$gt_cv_func_ngettext_libc" = "yes"; then 5361 gt_cv_func_dgettext_libintl=no 5362 fi 5363 fi 5364 fi 5365 fi 5366 5367 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5368 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 5369 gt_cv_have_gettext=yes 5370 fi 5371 5372 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 5373 INTLLIBS="-lintl $libintl_extra_libs" 5374 fi 5375 5376 if test "$gt_cv_have_gettext" = "yes"; then 5377 5378cat >>confdefs.h <<\_ACEOF 5379#define HAVE_GETTEXT 1 5380_ACEOF 5381 5382 # Extract the first word of "msgfmt", so it can be a program name with args. 5383set dummy msgfmt; ac_word=$2 5384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5385$as_echo_n "checking for $ac_word... " >&6; } 5386if test "${ac_cv_path_MSGFMT+set}" = set; then 5387 $as_echo_n "(cached) " >&6 5388else 5389 case "$MSGFMT" in 5390 /*) 5391 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5392 ;; 5393 *) 5394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5395 for ac_dir in $PATH; do 5396 test -z "$ac_dir" && ac_dir=. 5397 if test -f $ac_dir/$ac_word; then 5398 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 5399 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 5400 break 5401 fi 5402 fi 5403 done 5404 IFS="$ac_save_ifs" 5405 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 5406 ;; 5407esac 5408fi 5409MSGFMT="$ac_cv_path_MSGFMT" 5410if test "$MSGFMT" != "no"; then 5411 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 5412$as_echo "$MSGFMT" >&6; } 5413else 5414 { $as_echo "$as_me:$LINENO: result: no" >&5 5415$as_echo "no" >&6; } 5416fi 5417 if test "$MSGFMT" != "no"; then 5418 glib_save_LIBS="$LIBS" 5419 LIBS="$LIBS $INTLLIBS" 5420 5421for ac_func in dcgettext 5422do 5423as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5424{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5425$as_echo_n "checking for $ac_func... " >&6; } 5426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5427 $as_echo_n "(cached) " >&6 5428else 5429 cat >conftest.$ac_ext <<_ACEOF 5430/* confdefs.h. */ 5431_ACEOF 5432cat confdefs.h >>conftest.$ac_ext 5433cat >>conftest.$ac_ext <<_ACEOF 5434/* end confdefs.h. */ 5435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5436 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5437#define $ac_func innocuous_$ac_func 5438 5439/* System header to define __stub macros and hopefully few prototypes, 5440 which can conflict with char $ac_func (); below. 5441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5442 <limits.h> exists even on freestanding compilers. */ 5443 5444#ifdef __STDC__ 5445# include <limits.h> 5446#else 5447# include <assert.h> 5448#endif 5449 5450#undef $ac_func 5451 5452/* Override any GCC internal prototype to avoid an error. 5453 Use char because int might match the return type of a GCC 5454 builtin and then its argument prototype would still apply. */ 5455#ifdef __cplusplus 5456extern "C" 5457#endif 5458char $ac_func (); 5459/* The GNU C library defines this for functions which it implements 5460 to always fail with ENOSYS. Some functions are actually named 5461 something starting with __ and the normal name is an alias. */ 5462#if defined __stub_$ac_func || defined __stub___$ac_func 5463choke me 5464#endif 5465 5466int 5467main () 5468{ 5469return $ac_func (); 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474rm -f conftest.$ac_objext conftest$ac_exeext 5475if { (ac_try="$ac_link" 5476case "(($ac_try" in 5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5478 *) ac_try_echo=$ac_try;; 5479esac 5480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5481$as_echo "$ac_try_echo") >&5 5482 (eval "$ac_link") 2>conftest.er1 5483 ac_status=$? 5484 grep -v '^ *+' conftest.er1 >conftest.err 5485 rm -f conftest.er1 5486 cat conftest.err >&5 5487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); } && { 5489 test -z "$ac_c_werror_flag" || 5490 test ! -s conftest.err 5491 } && test -s conftest$ac_exeext && { 5492 test "$cross_compiling" = yes || 5493 $as_test_x conftest$ac_exeext 5494 }; then 5495 eval "$as_ac_var=yes" 5496else 5497 $as_echo "$as_me: failed program was:" >&5 5498sed 's/^/| /' conftest.$ac_ext >&5 5499 5500 eval "$as_ac_var=no" 5501fi 5502 5503rm -rf conftest.dSYM 5504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5505 conftest$ac_exeext conftest.$ac_ext 5506fi 5507ac_res=`eval 'as_val=${'$as_ac_var'} 5508 $as_echo "$as_val"'` 5509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5510$as_echo "$ac_res" >&6; } 5511as_val=`eval 'as_val=${'$as_ac_var'} 5512 $as_echo "$as_val"'` 5513 if test "x$as_val" = x""yes; then 5514 cat >>confdefs.h <<_ACEOF 5515#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5516_ACEOF 5517 5518fi 5519done 5520 5521 MSGFMT_OPTS= 5522 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 5523$as_echo_n "checking if msgfmt accepts -c... " >&6; } 5524 cat >conftest.foo <<_ACEOF 5525 5526msgid "" 5527msgstr "" 5528"Content-Type: text/plain; charset=UTF-8\n" 5529"Project-Id-Version: test 1.0\n" 5530"PO-Revision-Date: 2007-02-15 12:01+0100\n" 5531"Last-Translator: test <foo@bar.xx>\n" 5532"Language-Team: C <LL@li.org>\n" 5533"MIME-Version: 1.0\n" 5534"Content-Transfer-Encoding: 8bit\n" 5535 5536_ACEOF 5537if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5 5538 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 5539 ac_status=$? 5540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); }; then 5542 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5 5543$as_echo "yes" >&6; } 5544else { $as_echo "$as_me:$LINENO: result: no" >&5 5545$as_echo "no" >&6; } 5546echo "$as_me: failed input was:" >&5 5547sed 's/^/| /' conftest.foo >&5 5548fi 5549 5550 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5551set dummy gmsgfmt; ac_word=$2 5552{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5553$as_echo_n "checking for $ac_word... " >&6; } 5554if test "${ac_cv_path_GMSGFMT+set}" = set; then 5555 $as_echo_n "(cached) " >&6 5556else 5557 case $GMSGFMT in 5558 [\\/]* | ?:[\\/]*) 5559 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5560 ;; 5561 *) 5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5563for as_dir in $PATH 5564do 5565 IFS=$as_save_IFS 5566 test -z "$as_dir" && as_dir=. 5567 for ac_exec_ext in '' $ac_executable_extensions; do 5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5569 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5571 break 2 5572 fi 5573done 5574done 5575IFS=$as_save_IFS 5576 5577 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5578 ;; 5579esac 5580fi 5581GMSGFMT=$ac_cv_path_GMSGFMT 5582if test -n "$GMSGFMT"; then 5583 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 5584$as_echo "$GMSGFMT" >&6; } 5585else 5586 { $as_echo "$as_me:$LINENO: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 5591 # Extract the first word of "xgettext", so it can be a program name with args. 5592set dummy xgettext; ac_word=$2 5593{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5594$as_echo_n "checking for $ac_word... " >&6; } 5595if test "${ac_cv_path_XGETTEXT+set}" = set; then 5596 $as_echo_n "(cached) " >&6 5597else 5598 case "$XGETTEXT" in 5599 /*) 5600 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5601 ;; 5602 *) 5603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5604 for ac_dir in $PATH; do 5605 test -z "$ac_dir" && ac_dir=. 5606 if test -f $ac_dir/$ac_word; then 5607 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 5608 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 5609 break 5610 fi 5611 fi 5612 done 5613 IFS="$ac_save_ifs" 5614 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5615 ;; 5616esac 5617fi 5618XGETTEXT="$ac_cv_path_XGETTEXT" 5619if test "$XGETTEXT" != ":"; then 5620 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 5621$as_echo "$XGETTEXT" >&6; } 5622else 5623 { $as_echo "$as_me:$LINENO: result: no" >&5 5624$as_echo "no" >&6; } 5625fi 5626 5627 cat >conftest.$ac_ext <<_ACEOF 5628/* confdefs.h. */ 5629_ACEOF 5630cat confdefs.h >>conftest.$ac_ext 5631cat >>conftest.$ac_ext <<_ACEOF 5632/* end confdefs.h. */ 5633 5634int 5635main () 5636{ 5637extern int _nl_msg_cat_cntr; 5638 return _nl_msg_cat_cntr 5639 ; 5640 return 0; 5641} 5642_ACEOF 5643rm -f conftest.$ac_objext conftest$ac_exeext 5644if { (ac_try="$ac_link" 5645case "(($ac_try" in 5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5647 *) ac_try_echo=$ac_try;; 5648esac 5649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5650$as_echo "$ac_try_echo") >&5 5651 (eval "$ac_link") 2>conftest.er1 5652 ac_status=$? 5653 grep -v '^ *+' conftest.er1 >conftest.err 5654 rm -f conftest.er1 5655 cat conftest.err >&5 5656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5657 (exit $ac_status); } && { 5658 test -z "$ac_c_werror_flag" || 5659 test ! -s conftest.err 5660 } && test -s conftest$ac_exeext && { 5661 test "$cross_compiling" = yes || 5662 $as_test_x conftest$ac_exeext 5663 }; then 5664 CATOBJEXT=.gmo 5665 DATADIRNAME=share 5666else 5667 $as_echo "$as_me: failed program was:" >&5 5668sed 's/^/| /' conftest.$ac_ext >&5 5669 5670 case $host in 5671 *-*-solaris*) 5672 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 5673$as_echo_n "checking for bind_textdomain_codeset... " >&6; } 5674if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 5675 $as_echo_n "(cached) " >&6 5676else 5677 cat >conftest.$ac_ext <<_ACEOF 5678/* confdefs.h. */ 5679_ACEOF 5680cat confdefs.h >>conftest.$ac_ext 5681cat >>conftest.$ac_ext <<_ACEOF 5682/* end confdefs.h. */ 5683/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 5684 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5685#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 5686 5687/* System header to define __stub macros and hopefully few prototypes, 5688 which can conflict with char bind_textdomain_codeset (); below. 5689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5690 <limits.h> exists even on freestanding compilers. */ 5691 5692#ifdef __STDC__ 5693# include <limits.h> 5694#else 5695# include <assert.h> 5696#endif 5697 5698#undef bind_textdomain_codeset 5699 5700/* Override any GCC internal prototype to avoid an error. 5701 Use char because int might match the return type of a GCC 5702 builtin and then its argument prototype would still apply. */ 5703#ifdef __cplusplus 5704extern "C" 5705#endif 5706char bind_textdomain_codeset (); 5707/* The GNU C library defines this for functions which it implements 5708 to always fail with ENOSYS. Some functions are actually named 5709 something starting with __ and the normal name is an alias. */ 5710#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 5711choke me 5712#endif 5713 5714int 5715main () 5716{ 5717return bind_textdomain_codeset (); 5718 ; 5719 return 0; 5720} 5721_ACEOF 5722rm -f conftest.$ac_objext conftest$ac_exeext 5723if { (ac_try="$ac_link" 5724case "(($ac_try" in 5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5726 *) ac_try_echo=$ac_try;; 5727esac 5728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5729$as_echo "$ac_try_echo") >&5 5730 (eval "$ac_link") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } && { 5737 test -z "$ac_c_werror_flag" || 5738 test ! -s conftest.err 5739 } && test -s conftest$ac_exeext && { 5740 test "$cross_compiling" = yes || 5741 $as_test_x conftest$ac_exeext 5742 }; then 5743 ac_cv_func_bind_textdomain_codeset=yes 5744else 5745 $as_echo "$as_me: failed program was:" >&5 5746sed 's/^/| /' conftest.$ac_ext >&5 5747 5748 ac_cv_func_bind_textdomain_codeset=no 5749fi 5750 5751rm -rf conftest.dSYM 5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5753 conftest$ac_exeext conftest.$ac_ext 5754fi 5755{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 5756$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; } 5757if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then 5758 CATOBJEXT=.gmo 5759 DATADIRNAME=share 5760else 5761 CATOBJEXT=.mo 5762 DATADIRNAME=lib 5763fi 5764 5765 ;; 5766 *) 5767 CATOBJEXT=.mo 5768 DATADIRNAME=lib 5769 ;; 5770 esac 5771fi 5772 5773rm -rf conftest.dSYM 5774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5775 conftest$ac_exeext conftest.$ac_ext 5776 LIBS="$glib_save_LIBS" 5777 INSTOBJEXT=.mo 5778 else 5779 gt_cv_have_gettext=no 5780 fi 5781 fi 5782 5783fi 5784 5785 5786 5787 if test "$gt_cv_have_gettext" = "yes" ; then 5788 5789cat >>confdefs.h <<\_ACEOF 5790#define ENABLE_NLS 1 5791_ACEOF 5792 5793 fi 5794 5795 if test "$XGETTEXT" != ":"; then 5796 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 5797 : ; 5798 else 5799 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 5800$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5801 XGETTEXT=":" 5802 fi 5803 fi 5804 5805 # We need to process the po/ directory. 5806 POSUB=po 5807 5808 ac_config_commands="$ac_config_commands default-1" 5809 5810 5811 for lang in $ALL_LINGUAS; do 5812 GMOFILES="$GMOFILES $lang.gmo" 5813 POFILES="$POFILES $lang.po" 5814 done 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 if test "$gt_cv_have_gettext" = "yes"; then 5829 if test "x$ALL_LINGUAS" = "x"; then 5830 LINGUAS= 5831 else 5832 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 5833$as_echo_n "checking for catalogs to be installed... " >&6; } 5834 NEW_LINGUAS= 5835 for presentlang in $ALL_LINGUAS; do 5836 useit=no 5837 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 5838 desiredlanguages="$LINGUAS" 5839 else 5840 desiredlanguages="$ALL_LINGUAS" 5841 fi 5842 for desiredlang in $desiredlanguages; do 5843 # Use the presentlang catalog if desiredlang is 5844 # a. equal to presentlang, or 5845 # b. a variant of presentlang (because in this case, 5846 # presentlang can be used as a fallback for messages 5847 # which are not translated in the desiredlang catalog). 5848 case "$desiredlang" in 5849 "$presentlang"*) useit=yes;; 5850 esac 5851 done 5852 if test $useit = yes; then 5853 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 5854 fi 5855 done 5856 LINGUAS=$NEW_LINGUAS 5857 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5 5858$as_echo "$LINGUAS" >&6; } 5859 fi 5860 5861 if test -n "$LINGUAS"; then 5862 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 5863 fi 5864 fi 5865 5866 MKINSTALLDIRS= 5867 if test -n "$ac_aux_dir"; then 5868 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 5869 fi 5870 if test -z "$MKINSTALLDIRS"; then 5871 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5872 fi 5873 5874 5875 test -d po || mkdir po 5876 if test "x$srcdir" != "x."; then 5877 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 5878 posrcprefix="$srcdir/" 5879 else 5880 posrcprefix="../$srcdir/" 5881 fi 5882 else 5883 posrcprefix="../" 5884 fi 5885 rm -f po/POTFILES 5886 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 5887 < $srcdir/po/POTFILES.in > po/POTFILES 5888 5889 5890 5891{ $as_echo "$as_me:$LINENO: checking for X" >&5 5892$as_echo_n "checking for X... " >&6; } 5893 5894 5895# Check whether --with-x was given. 5896if test "${with_x+set}" = set; then 5897 withval=$with_x; 5898fi 5899 5900# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5901if test "x$with_x" = xno; then 5902 # The user explicitly disabled X. 5903 have_x=disabled 5904else 5905 case $x_includes,$x_libraries in #( 5906 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 5907$as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 5908 { (exit 1); exit 1; }; };; #( 5909 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 5910 $as_echo_n "(cached) " >&6 5911else 5912 # One or both of the vars are not set, and there is no cached value. 5913ac_x_includes=no ac_x_libraries=no 5914rm -f -r conftest.dir 5915if mkdir conftest.dir; then 5916 cd conftest.dir 5917 cat >Imakefile <<'_ACEOF' 5918incroot: 5919 @echo incroot='${INCROOT}' 5920usrlibdir: 5921 @echo usrlibdir='${USRLIBDIR}' 5922libdir: 5923 @echo libdir='${LIBDIR}' 5924_ACEOF 5925 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5927 for ac_var in incroot usrlibdir libdir; do 5928 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5929 done 5930 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5931 for ac_extension in a so sl dylib la dll; do 5932 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5933 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5934 ac_im_usrlibdir=$ac_im_libdir; break 5935 fi 5936 done 5937 # Screen out bogus values from the imake configuration. They are 5938 # bogus both because they are the default anyway, and because 5939 # using them would break gcc on systems where it needs fixed includes. 5940 case $ac_im_incroot in 5941 /usr/include) ac_x_includes= ;; 5942 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5943 esac 5944 case $ac_im_usrlibdir in 5945 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 5946 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5947 esac 5948 fi 5949 cd .. 5950 rm -f -r conftest.dir 5951fi 5952 5953# Standard set of common directories for X headers. 5954# Check X11 before X11Rn because it is often a symlink to the current release. 5955ac_x_header_dirs=' 5956/usr/X11/include 5957/usr/X11R6/include 5958/usr/X11R5/include 5959/usr/X11R4/include 5960 5961/usr/include/X11 5962/usr/include/X11R6 5963/usr/include/X11R5 5964/usr/include/X11R4 5965 5966/usr/local/X11/include 5967/usr/local/X11R6/include 5968/usr/local/X11R5/include 5969/usr/local/X11R4/include 5970 5971/usr/local/include/X11 5972/usr/local/include/X11R6 5973/usr/local/include/X11R5 5974/usr/local/include/X11R4 5975 5976/usr/X386/include 5977/usr/x386/include 5978/usr/XFree86/include/X11 5979 5980/usr/include 5981/usr/local/include 5982/usr/unsupported/include 5983/usr/athena/include 5984/usr/local/x11r5/include 5985/usr/lpp/Xamples/include 5986 5987/usr/openwin/include 5988/usr/openwin/share/include' 5989 5990if test "$ac_x_includes" = no; then 5991 # Guess where to find include files, by looking for Xlib.h. 5992 # First, try using that file with no special directory specified. 5993 cat >conftest.$ac_ext <<_ACEOF 5994/* confdefs.h. */ 5995_ACEOF 5996cat confdefs.h >>conftest.$ac_ext 5997cat >>conftest.$ac_ext <<_ACEOF 5998/* end confdefs.h. */ 5999#include <X11/Xlib.h> 6000_ACEOF 6001if { (ac_try="$ac_cpp conftest.$ac_ext" 6002case "(($ac_try" in 6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6004 *) ac_try_echo=$ac_try;; 6005esac 6006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6007$as_echo "$ac_try_echo") >&5 6008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6009 ac_status=$? 6010 grep -v '^ *+' conftest.er1 >conftest.err 6011 rm -f conftest.er1 6012 cat conftest.err >&5 6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6014 (exit $ac_status); } >/dev/null && { 6015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6016 test ! -s conftest.err 6017 }; then 6018 # We can compile using X headers with no special include directory. 6019ac_x_includes= 6020else 6021 $as_echo "$as_me: failed program was:" >&5 6022sed 's/^/| /' conftest.$ac_ext >&5 6023 6024 for ac_dir in $ac_x_header_dirs; do 6025 if test -r "$ac_dir/X11/Xlib.h"; then 6026 ac_x_includes=$ac_dir 6027 break 6028 fi 6029done 6030fi 6031 6032rm -f conftest.err conftest.$ac_ext 6033fi # $ac_x_includes = no 6034 6035if test "$ac_x_libraries" = no; then 6036 # Check for the libraries. 6037 # See if we find them without any special options. 6038 # Don't add to $LIBS permanently. 6039 ac_save_LIBS=$LIBS 6040 LIBS="-lX11 $LIBS" 6041 cat >conftest.$ac_ext <<_ACEOF 6042/* confdefs.h. */ 6043_ACEOF 6044cat confdefs.h >>conftest.$ac_ext 6045cat >>conftest.$ac_ext <<_ACEOF 6046/* end confdefs.h. */ 6047#include <X11/Xlib.h> 6048int 6049main () 6050{ 6051XrmInitialize () 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056rm -f conftest.$ac_objext conftest$ac_exeext 6057if { (ac_try="$ac_link" 6058case "(($ac_try" in 6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6060 *) ac_try_echo=$ac_try;; 6061esac 6062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6063$as_echo "$ac_try_echo") >&5 6064 (eval "$ac_link") 2>conftest.er1 6065 ac_status=$? 6066 grep -v '^ *+' conftest.er1 >conftest.err 6067 rm -f conftest.er1 6068 cat conftest.err >&5 6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6070 (exit $ac_status); } && { 6071 test -z "$ac_c_werror_flag" || 6072 test ! -s conftest.err 6073 } && test -s conftest$ac_exeext && { 6074 test "$cross_compiling" = yes || 6075 $as_test_x conftest$ac_exeext 6076 }; then 6077 LIBS=$ac_save_LIBS 6078# We can link X programs with no special library path. 6079ac_x_libraries= 6080else 6081 $as_echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084 LIBS=$ac_save_LIBS 6085for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6086do 6087 # Don't even attempt the hair of trying to link an X program! 6088 for ac_extension in a so sl dylib la dll; do 6089 if test -r "$ac_dir/libX11.$ac_extension"; then 6090 ac_x_libraries=$ac_dir 6091 break 2 6092 fi 6093 done 6094done 6095fi 6096 6097rm -rf conftest.dSYM 6098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6099 conftest$ac_exeext conftest.$ac_ext 6100fi # $ac_x_libraries = no 6101 6102case $ac_x_includes,$ac_x_libraries in #( 6103 no,* | *,no | *\'*) 6104 # Didn't find X, or a directory has "'" in its name. 6105 ac_cv_have_x="have_x=no";; #( 6106 *) 6107 # Record where we found X for the cache. 6108 ac_cv_have_x="have_x=yes\ 6109 ac_x_includes='$ac_x_includes'\ 6110 ac_x_libraries='$ac_x_libraries'" 6111esac 6112fi 6113;; #( 6114 *) have_x=yes;; 6115 esac 6116 eval "$ac_cv_have_x" 6117fi # $with_x != no 6118 6119if test "$have_x" != yes; then 6120 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 6121$as_echo "$have_x" >&6; } 6122 no_x=yes 6123else 6124 # If each of the values was on the command line, it overrides each guess. 6125 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6126 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6127 # Update the cache value to reflect the command line values. 6128 ac_cv_have_x="have_x=yes\ 6129 ac_x_includes='$x_includes'\ 6130 ac_x_libraries='$x_libraries'" 6131 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 6132$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6133fi 6134 6135if test "$no_x" = yes; then 6136 # Not all programs may use this symbol, but it does not hurt to define it. 6137 6138cat >>confdefs.h <<\_ACEOF 6139#define X_DISPLAY_MISSING 1 6140_ACEOF 6141 6142 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6143else 6144 if test -n "$x_includes"; then 6145 X_CFLAGS="$X_CFLAGS -I$x_includes" 6146 fi 6147 6148 # It would also be nice to do this for all -L options, not just this one. 6149 if test -n "$x_libraries"; then 6150 X_LIBS="$X_LIBS -L$x_libraries" 6151 # For Solaris; some versions of Sun CC require a space after -R and 6152 # others require no space. Words are not sufficient . . . . 6153 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 6154$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6155 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6156 ac_xsave_c_werror_flag=$ac_c_werror_flag 6157 ac_c_werror_flag=yes 6158 cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164 6165int 6166main () 6167{ 6168 6169 ; 6170 return 0; 6171} 6172_ACEOF 6173rm -f conftest.$ac_objext conftest$ac_exeext 6174if { (ac_try="$ac_link" 6175case "(($ac_try" in 6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6177 *) ac_try_echo=$ac_try;; 6178esac 6179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6180$as_echo "$ac_try_echo") >&5 6181 (eval "$ac_link") 2>conftest.er1 6182 ac_status=$? 6183 grep -v '^ *+' conftest.er1 >conftest.err 6184 rm -f conftest.er1 6185 cat conftest.err >&5 6186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6187 (exit $ac_status); } && { 6188 test -z "$ac_c_werror_flag" || 6189 test ! -s conftest.err 6190 } && test -s conftest$ac_exeext && { 6191 test "$cross_compiling" = yes || 6192 $as_test_x conftest$ac_exeext 6193 }; then 6194 { $as_echo "$as_me:$LINENO: result: no" >&5 6195$as_echo "no" >&6; } 6196 X_LIBS="$X_LIBS -R$x_libraries" 6197else 6198 $as_echo "$as_me: failed program was:" >&5 6199sed 's/^/| /' conftest.$ac_ext >&5 6200 6201 LIBS="$ac_xsave_LIBS -R $x_libraries" 6202 cat >conftest.$ac_ext <<_ACEOF 6203/* confdefs.h. */ 6204_ACEOF 6205cat confdefs.h >>conftest.$ac_ext 6206cat >>conftest.$ac_ext <<_ACEOF 6207/* end confdefs.h. */ 6208 6209int 6210main () 6211{ 6212 6213 ; 6214 return 0; 6215} 6216_ACEOF 6217rm -f conftest.$ac_objext conftest$ac_exeext 6218if { (ac_try="$ac_link" 6219case "(($ac_try" in 6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6221 *) ac_try_echo=$ac_try;; 6222esac 6223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6224$as_echo "$ac_try_echo") >&5 6225 (eval "$ac_link") 2>conftest.er1 6226 ac_status=$? 6227 grep -v '^ *+' conftest.er1 >conftest.err 6228 rm -f conftest.er1 6229 cat conftest.err >&5 6230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6231 (exit $ac_status); } && { 6232 test -z "$ac_c_werror_flag" || 6233 test ! -s conftest.err 6234 } && test -s conftest$ac_exeext && { 6235 test "$cross_compiling" = yes || 6236 $as_test_x conftest$ac_exeext 6237 }; then 6238 { $as_echo "$as_me:$LINENO: result: yes" >&5 6239$as_echo "yes" >&6; } 6240 X_LIBS="$X_LIBS -R $x_libraries" 6241else 6242 $as_echo "$as_me: failed program was:" >&5 6243sed 's/^/| /' conftest.$ac_ext >&5 6244 6245 { $as_echo "$as_me:$LINENO: result: neither works" >&5 6246$as_echo "neither works" >&6; } 6247fi 6248 6249rm -rf conftest.dSYM 6250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6251 conftest$ac_exeext conftest.$ac_ext 6252fi 6253 6254rm -rf conftest.dSYM 6255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6256 conftest$ac_exeext conftest.$ac_ext 6257 ac_c_werror_flag=$ac_xsave_c_werror_flag 6258 LIBS=$ac_xsave_LIBS 6259 fi 6260 6261 # Check for system-dependent libraries X programs must link with. 6262 # Do this before checking for the system-independent R6 libraries 6263 # (-lICE), since we may need -lsocket or whatever for X linking. 6264 6265 if test "$ISC" = yes; then 6266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6267 else 6268 # Martyn Johnson says this is needed for Ultrix, if the X 6269 # libraries were built with DECnet support. And Karl Berry says 6270 # the Alpha needs dnet_stub (dnet does not exist). 6271 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6272 cat >conftest.$ac_ext <<_ACEOF 6273/* confdefs.h. */ 6274_ACEOF 6275cat confdefs.h >>conftest.$ac_ext 6276cat >>conftest.$ac_ext <<_ACEOF 6277/* end confdefs.h. */ 6278 6279/* Override any GCC internal prototype to avoid an error. 6280 Use char because int might match the return type of a GCC 6281 builtin and then its argument prototype would still apply. */ 6282#ifdef __cplusplus 6283extern "C" 6284#endif 6285char XOpenDisplay (); 6286int 6287main () 6288{ 6289return XOpenDisplay (); 6290 ; 6291 return 0; 6292} 6293_ACEOF 6294rm -f conftest.$ac_objext conftest$ac_exeext 6295if { (ac_try="$ac_link" 6296case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299esac 6300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6301$as_echo "$ac_try_echo") >&5 6302 (eval "$ac_link") 2>conftest.er1 6303 ac_status=$? 6304 grep -v '^ *+' conftest.er1 >conftest.err 6305 rm -f conftest.er1 6306 cat conftest.err >&5 6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6308 (exit $ac_status); } && { 6309 test -z "$ac_c_werror_flag" || 6310 test ! -s conftest.err 6311 } && test -s conftest$ac_exeext && { 6312 test "$cross_compiling" = yes || 6313 $as_test_x conftest$ac_exeext 6314 }; then 6315 : 6316else 6317 $as_echo "$as_me: failed program was:" >&5 6318sed 's/^/| /' conftest.$ac_ext >&5 6319 6320 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 6321$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6322if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6323 $as_echo_n "(cached) " >&6 6324else 6325 ac_check_lib_save_LIBS=$LIBS 6326LIBS="-ldnet $LIBS" 6327cat >conftest.$ac_ext <<_ACEOF 6328/* confdefs.h. */ 6329_ACEOF 6330cat confdefs.h >>conftest.$ac_ext 6331cat >>conftest.$ac_ext <<_ACEOF 6332/* end confdefs.h. */ 6333 6334/* Override any GCC internal prototype to avoid an error. 6335 Use char because int might match the return type of a GCC 6336 builtin and then its argument prototype would still apply. */ 6337#ifdef __cplusplus 6338extern "C" 6339#endif 6340char dnet_ntoa (); 6341int 6342main () 6343{ 6344return dnet_ntoa (); 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349rm -f conftest.$ac_objext conftest$ac_exeext 6350if { (ac_try="$ac_link" 6351case "(($ac_try" in 6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6353 *) ac_try_echo=$ac_try;; 6354esac 6355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6356$as_echo "$ac_try_echo") >&5 6357 (eval "$ac_link") 2>conftest.er1 6358 ac_status=$? 6359 grep -v '^ *+' conftest.er1 >conftest.err 6360 rm -f conftest.er1 6361 cat conftest.err >&5 6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && { 6364 test -z "$ac_c_werror_flag" || 6365 test ! -s conftest.err 6366 } && test -s conftest$ac_exeext && { 6367 test "$cross_compiling" = yes || 6368 $as_test_x conftest$ac_exeext 6369 }; then 6370 ac_cv_lib_dnet_dnet_ntoa=yes 6371else 6372 $as_echo "$as_me: failed program was:" >&5 6373sed 's/^/| /' conftest.$ac_ext >&5 6374 6375 ac_cv_lib_dnet_dnet_ntoa=no 6376fi 6377 6378rm -rf conftest.dSYM 6379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6380 conftest$ac_exeext conftest.$ac_ext 6381LIBS=$ac_check_lib_save_LIBS 6382fi 6383{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6384$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6385if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then 6386 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6387fi 6388 6389 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6390 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6391$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6392if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6393 $as_echo_n "(cached) " >&6 6394else 6395 ac_check_lib_save_LIBS=$LIBS 6396LIBS="-ldnet_stub $LIBS" 6397cat >conftest.$ac_ext <<_ACEOF 6398/* confdefs.h. */ 6399_ACEOF 6400cat confdefs.h >>conftest.$ac_ext 6401cat >>conftest.$ac_ext <<_ACEOF 6402/* end confdefs.h. */ 6403 6404/* Override any GCC internal prototype to avoid an error. 6405 Use char because int might match the return type of a GCC 6406 builtin and then its argument prototype would still apply. */ 6407#ifdef __cplusplus 6408extern "C" 6409#endif 6410char dnet_ntoa (); 6411int 6412main () 6413{ 6414return dnet_ntoa (); 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419rm -f conftest.$ac_objext conftest$ac_exeext 6420if { (ac_try="$ac_link" 6421case "(($ac_try" in 6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6423 *) ac_try_echo=$ac_try;; 6424esac 6425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6426$as_echo "$ac_try_echo") >&5 6427 (eval "$ac_link") 2>conftest.er1 6428 ac_status=$? 6429 grep -v '^ *+' conftest.er1 >conftest.err 6430 rm -f conftest.er1 6431 cat conftest.err >&5 6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); } && { 6434 test -z "$ac_c_werror_flag" || 6435 test ! -s conftest.err 6436 } && test -s conftest$ac_exeext && { 6437 test "$cross_compiling" = yes || 6438 $as_test_x conftest$ac_exeext 6439 }; then 6440 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6441else 6442 $as_echo "$as_me: failed program was:" >&5 6443sed 's/^/| /' conftest.$ac_ext >&5 6444 6445 ac_cv_lib_dnet_stub_dnet_ntoa=no 6446fi 6447 6448rm -rf conftest.dSYM 6449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6450 conftest$ac_exeext conftest.$ac_ext 6451LIBS=$ac_check_lib_save_LIBS 6452fi 6453{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6454$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6455if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then 6456 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6457fi 6458 6459 fi 6460fi 6461 6462rm -rf conftest.dSYM 6463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6464 conftest$ac_exeext conftest.$ac_ext 6465 LIBS="$ac_xsave_LIBS" 6466 6467 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6468 # to get the SysV transport functions. 6469 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6470 # needs -lnsl. 6471 # The nsl library prevents programs from opening the X display 6472 # on Irix 5.2, according to T.E. Dickey. 6473 # The functions gethostbyname, getservbyname, and inet_addr are 6474 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6475 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 6476$as_echo_n "checking for gethostbyname... " >&6; } 6477if test "${ac_cv_func_gethostbyname+set}" = set; then 6478 $as_echo_n "(cached) " >&6 6479else 6480 cat >conftest.$ac_ext <<_ACEOF 6481/* confdefs.h. */ 6482_ACEOF 6483cat confdefs.h >>conftest.$ac_ext 6484cat >>conftest.$ac_ext <<_ACEOF 6485/* end confdefs.h. */ 6486/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 6487 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6488#define gethostbyname innocuous_gethostbyname 6489 6490/* System header to define __stub macros and hopefully few prototypes, 6491 which can conflict with char gethostbyname (); below. 6492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6493 <limits.h> exists even on freestanding compilers. */ 6494 6495#ifdef __STDC__ 6496# include <limits.h> 6497#else 6498# include <assert.h> 6499#endif 6500 6501#undef gethostbyname 6502 6503/* Override any GCC internal prototype to avoid an error. 6504 Use char because int might match the return type of a GCC 6505 builtin and then its argument prototype would still apply. */ 6506#ifdef __cplusplus 6507extern "C" 6508#endif 6509char gethostbyname (); 6510/* The GNU C library defines this for functions which it implements 6511 to always fail with ENOSYS. Some functions are actually named 6512 something starting with __ and the normal name is an alias. */ 6513#if defined __stub_gethostbyname || defined __stub___gethostbyname 6514choke me 6515#endif 6516 6517int 6518main () 6519{ 6520return gethostbyname (); 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525rm -f conftest.$ac_objext conftest$ac_exeext 6526if { (ac_try="$ac_link" 6527case "(($ac_try" in 6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6529 *) ac_try_echo=$ac_try;; 6530esac 6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6532$as_echo "$ac_try_echo") >&5 6533 (eval "$ac_link") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } && { 6540 test -z "$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 } && test -s conftest$ac_exeext && { 6543 test "$cross_compiling" = yes || 6544 $as_test_x conftest$ac_exeext 6545 }; then 6546 ac_cv_func_gethostbyname=yes 6547else 6548 $as_echo "$as_me: failed program was:" >&5 6549sed 's/^/| /' conftest.$ac_ext >&5 6550 6551 ac_cv_func_gethostbyname=no 6552fi 6553 6554rm -rf conftest.dSYM 6555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6556 conftest$ac_exeext conftest.$ac_ext 6557fi 6558{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 6559$as_echo "$ac_cv_func_gethostbyname" >&6; } 6560 6561 if test $ac_cv_func_gethostbyname = no; then 6562 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6563$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6564if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6565 $as_echo_n "(cached) " >&6 6566else 6567 ac_check_lib_save_LIBS=$LIBS 6568LIBS="-lnsl $LIBS" 6569cat >conftest.$ac_ext <<_ACEOF 6570/* confdefs.h. */ 6571_ACEOF 6572cat confdefs.h >>conftest.$ac_ext 6573cat >>conftest.$ac_ext <<_ACEOF 6574/* end confdefs.h. */ 6575 6576/* Override any GCC internal prototype to avoid an error. 6577 Use char because int might match the return type of a GCC 6578 builtin and then its argument prototype would still apply. */ 6579#ifdef __cplusplus 6580extern "C" 6581#endif 6582char gethostbyname (); 6583int 6584main () 6585{ 6586return gethostbyname (); 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591rm -f conftest.$ac_objext conftest$ac_exeext 6592if { (ac_try="$ac_link" 6593case "(($ac_try" in 6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6595 *) ac_try_echo=$ac_try;; 6596esac 6597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6598$as_echo "$ac_try_echo") >&5 6599 (eval "$ac_link") 2>conftest.er1 6600 ac_status=$? 6601 grep -v '^ *+' conftest.er1 >conftest.err 6602 rm -f conftest.er1 6603 cat conftest.err >&5 6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6605 (exit $ac_status); } && { 6606 test -z "$ac_c_werror_flag" || 6607 test ! -s conftest.err 6608 } && test -s conftest$ac_exeext && { 6609 test "$cross_compiling" = yes || 6610 $as_test_x conftest$ac_exeext 6611 }; then 6612 ac_cv_lib_nsl_gethostbyname=yes 6613else 6614 $as_echo "$as_me: failed program was:" >&5 6615sed 's/^/| /' conftest.$ac_ext >&5 6616 6617 ac_cv_lib_nsl_gethostbyname=no 6618fi 6619 6620rm -rf conftest.dSYM 6621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6622 conftest$ac_exeext conftest.$ac_ext 6623LIBS=$ac_check_lib_save_LIBS 6624fi 6625{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6626$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6627if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 6628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6629fi 6630 6631 if test $ac_cv_lib_nsl_gethostbyname = no; then 6632 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6633$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6634if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6635 $as_echo_n "(cached) " >&6 6636else 6637 ac_check_lib_save_LIBS=$LIBS 6638LIBS="-lbsd $LIBS" 6639cat >conftest.$ac_ext <<_ACEOF 6640/* confdefs.h. */ 6641_ACEOF 6642cat confdefs.h >>conftest.$ac_ext 6643cat >>conftest.$ac_ext <<_ACEOF 6644/* end confdefs.h. */ 6645 6646/* Override any GCC internal prototype to avoid an error. 6647 Use char because int might match the return type of a GCC 6648 builtin and then its argument prototype would still apply. */ 6649#ifdef __cplusplus 6650extern "C" 6651#endif 6652char gethostbyname (); 6653int 6654main () 6655{ 6656return gethostbyname (); 6657 ; 6658 return 0; 6659} 6660_ACEOF 6661rm -f conftest.$ac_objext conftest$ac_exeext 6662if { (ac_try="$ac_link" 6663case "(($ac_try" in 6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6665 *) ac_try_echo=$ac_try;; 6666esac 6667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6668$as_echo "$ac_try_echo") >&5 6669 (eval "$ac_link") 2>conftest.er1 6670 ac_status=$? 6671 grep -v '^ *+' conftest.er1 >conftest.err 6672 rm -f conftest.er1 6673 cat conftest.err >&5 6674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6675 (exit $ac_status); } && { 6676 test -z "$ac_c_werror_flag" || 6677 test ! -s conftest.err 6678 } && test -s conftest$ac_exeext && { 6679 test "$cross_compiling" = yes || 6680 $as_test_x conftest$ac_exeext 6681 }; then 6682 ac_cv_lib_bsd_gethostbyname=yes 6683else 6684 $as_echo "$as_me: failed program was:" >&5 6685sed 's/^/| /' conftest.$ac_ext >&5 6686 6687 ac_cv_lib_bsd_gethostbyname=no 6688fi 6689 6690rm -rf conftest.dSYM 6691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6692 conftest$ac_exeext conftest.$ac_ext 6693LIBS=$ac_check_lib_save_LIBS 6694fi 6695{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6696$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6697if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then 6698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6699fi 6700 6701 fi 6702 fi 6703 6704 # lieder@skyler.mavd.honeywell.com says without -lsocket, 6705 # socket/setsockopt and other routines are undefined under SCO ODT 6706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6707 # on later versions), says Simon Leinen: it contains gethostby* 6708 # variants that don't use the name server (or something). -lsocket 6709 # must be given before -lnsl if both are needed. We assume that 6710 # if connect needs -lnsl, so does gethostbyname. 6711 { $as_echo "$as_me:$LINENO: checking for connect" >&5 6712$as_echo_n "checking for connect... " >&6; } 6713if test "${ac_cv_func_connect+set}" = set; then 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat >conftest.$ac_ext <<_ACEOF 6717/* confdefs.h. */ 6718_ACEOF 6719cat confdefs.h >>conftest.$ac_ext 6720cat >>conftest.$ac_ext <<_ACEOF 6721/* end confdefs.h. */ 6722/* Define connect to an innocuous variant, in case <limits.h> declares connect. 6723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6724#define connect innocuous_connect 6725 6726/* System header to define __stub macros and hopefully few prototypes, 6727 which can conflict with char connect (); below. 6728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6729 <limits.h> exists even on freestanding compilers. */ 6730 6731#ifdef __STDC__ 6732# include <limits.h> 6733#else 6734# include <assert.h> 6735#endif 6736 6737#undef connect 6738 6739/* Override any GCC internal prototype to avoid an error. 6740 Use char because int might match the return type of a GCC 6741 builtin and then its argument prototype would still apply. */ 6742#ifdef __cplusplus 6743extern "C" 6744#endif 6745char connect (); 6746/* The GNU C library defines this for functions which it implements 6747 to always fail with ENOSYS. Some functions are actually named 6748 something starting with __ and the normal name is an alias. */ 6749#if defined __stub_connect || defined __stub___connect 6750choke me 6751#endif 6752 6753int 6754main () 6755{ 6756return connect (); 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761rm -f conftest.$ac_objext conftest$ac_exeext 6762if { (ac_try="$ac_link" 6763case "(($ac_try" in 6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6765 *) ac_try_echo=$ac_try;; 6766esac 6767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6768$as_echo "$ac_try_echo") >&5 6769 (eval "$ac_link") 2>conftest.er1 6770 ac_status=$? 6771 grep -v '^ *+' conftest.er1 >conftest.err 6772 rm -f conftest.er1 6773 cat conftest.err >&5 6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); } && { 6776 test -z "$ac_c_werror_flag" || 6777 test ! -s conftest.err 6778 } && test -s conftest$ac_exeext && { 6779 test "$cross_compiling" = yes || 6780 $as_test_x conftest$ac_exeext 6781 }; then 6782 ac_cv_func_connect=yes 6783else 6784 $as_echo "$as_me: failed program was:" >&5 6785sed 's/^/| /' conftest.$ac_ext >&5 6786 6787 ac_cv_func_connect=no 6788fi 6789 6790rm -rf conftest.dSYM 6791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6792 conftest$ac_exeext conftest.$ac_ext 6793fi 6794{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6795$as_echo "$ac_cv_func_connect" >&6; } 6796 6797 if test $ac_cv_func_connect = no; then 6798 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6799$as_echo_n "checking for connect in -lsocket... " >&6; } 6800if test "${ac_cv_lib_socket_connect+set}" = set; then 6801 $as_echo_n "(cached) " >&6 6802else 6803 ac_check_lib_save_LIBS=$LIBS 6804LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6805cat >conftest.$ac_ext <<_ACEOF 6806/* confdefs.h. */ 6807_ACEOF 6808cat confdefs.h >>conftest.$ac_ext 6809cat >>conftest.$ac_ext <<_ACEOF 6810/* end confdefs.h. */ 6811 6812/* Override any GCC internal prototype to avoid an error. 6813 Use char because int might match the return type of a GCC 6814 builtin and then its argument prototype would still apply. */ 6815#ifdef __cplusplus 6816extern "C" 6817#endif 6818char connect (); 6819int 6820main () 6821{ 6822return connect (); 6823 ; 6824 return 0; 6825} 6826_ACEOF 6827rm -f conftest.$ac_objext conftest$ac_exeext 6828if { (ac_try="$ac_link" 6829case "(($ac_try" in 6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6831 *) ac_try_echo=$ac_try;; 6832esac 6833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6834$as_echo "$ac_try_echo") >&5 6835 (eval "$ac_link") 2>conftest.er1 6836 ac_status=$? 6837 grep -v '^ *+' conftest.er1 >conftest.err 6838 rm -f conftest.er1 6839 cat conftest.err >&5 6840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6841 (exit $ac_status); } && { 6842 test -z "$ac_c_werror_flag" || 6843 test ! -s conftest.err 6844 } && test -s conftest$ac_exeext && { 6845 test "$cross_compiling" = yes || 6846 $as_test_x conftest$ac_exeext 6847 }; then 6848 ac_cv_lib_socket_connect=yes 6849else 6850 $as_echo "$as_me: failed program was:" >&5 6851sed 's/^/| /' conftest.$ac_ext >&5 6852 6853 ac_cv_lib_socket_connect=no 6854fi 6855 6856rm -rf conftest.dSYM 6857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6858 conftest$ac_exeext conftest.$ac_ext 6859LIBS=$ac_check_lib_save_LIBS 6860fi 6861{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6862$as_echo "$ac_cv_lib_socket_connect" >&6; } 6863if test "x$ac_cv_lib_socket_connect" = x""yes; then 6864 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6865fi 6866 6867 fi 6868 6869 # Guillermo Gomez says -lposix is necessary on A/UX. 6870 { $as_echo "$as_me:$LINENO: checking for remove" >&5 6871$as_echo_n "checking for remove... " >&6; } 6872if test "${ac_cv_func_remove+set}" = set; then 6873 $as_echo_n "(cached) " >&6 6874else 6875 cat >conftest.$ac_ext <<_ACEOF 6876/* confdefs.h. */ 6877_ACEOF 6878cat confdefs.h >>conftest.$ac_ext 6879cat >>conftest.$ac_ext <<_ACEOF 6880/* end confdefs.h. */ 6881/* Define remove to an innocuous variant, in case <limits.h> declares remove. 6882 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6883#define remove innocuous_remove 6884 6885/* System header to define __stub macros and hopefully few prototypes, 6886 which can conflict with char remove (); below. 6887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6888 <limits.h> exists even on freestanding compilers. */ 6889 6890#ifdef __STDC__ 6891# include <limits.h> 6892#else 6893# include <assert.h> 6894#endif 6895 6896#undef remove 6897 6898/* Override any GCC internal prototype to avoid an error. 6899 Use char because int might match the return type of a GCC 6900 builtin and then its argument prototype would still apply. */ 6901#ifdef __cplusplus 6902extern "C" 6903#endif 6904char remove (); 6905/* The GNU C library defines this for functions which it implements 6906 to always fail with ENOSYS. Some functions are actually named 6907 something starting with __ and the normal name is an alias. */ 6908#if defined __stub_remove || defined __stub___remove 6909choke me 6910#endif 6911 6912int 6913main () 6914{ 6915return remove (); 6916 ; 6917 return 0; 6918} 6919_ACEOF 6920rm -f conftest.$ac_objext conftest$ac_exeext 6921if { (ac_try="$ac_link" 6922case "(($ac_try" in 6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6924 *) ac_try_echo=$ac_try;; 6925esac 6926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6927$as_echo "$ac_try_echo") >&5 6928 (eval "$ac_link") 2>conftest.er1 6929 ac_status=$? 6930 grep -v '^ *+' conftest.er1 >conftest.err 6931 rm -f conftest.er1 6932 cat conftest.err >&5 6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6934 (exit $ac_status); } && { 6935 test -z "$ac_c_werror_flag" || 6936 test ! -s conftest.err 6937 } && test -s conftest$ac_exeext && { 6938 test "$cross_compiling" = yes || 6939 $as_test_x conftest$ac_exeext 6940 }; then 6941 ac_cv_func_remove=yes 6942else 6943 $as_echo "$as_me: failed program was:" >&5 6944sed 's/^/| /' conftest.$ac_ext >&5 6945 6946 ac_cv_func_remove=no 6947fi 6948 6949rm -rf conftest.dSYM 6950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6951 conftest$ac_exeext conftest.$ac_ext 6952fi 6953{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 6954$as_echo "$ac_cv_func_remove" >&6; } 6955 6956 if test $ac_cv_func_remove = no; then 6957 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6958$as_echo_n "checking for remove in -lposix... " >&6; } 6959if test "${ac_cv_lib_posix_remove+set}" = set; then 6960 $as_echo_n "(cached) " >&6 6961else 6962 ac_check_lib_save_LIBS=$LIBS 6963LIBS="-lposix $LIBS" 6964cat >conftest.$ac_ext <<_ACEOF 6965/* confdefs.h. */ 6966_ACEOF 6967cat confdefs.h >>conftest.$ac_ext 6968cat >>conftest.$ac_ext <<_ACEOF 6969/* end confdefs.h. */ 6970 6971/* Override any GCC internal prototype to avoid an error. 6972 Use char because int might match the return type of a GCC 6973 builtin and then its argument prototype would still apply. */ 6974#ifdef __cplusplus 6975extern "C" 6976#endif 6977char remove (); 6978int 6979main () 6980{ 6981return remove (); 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986rm -f conftest.$ac_objext conftest$ac_exeext 6987if { (ac_try="$ac_link" 6988case "(($ac_try" in 6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6990 *) ac_try_echo=$ac_try;; 6991esac 6992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6993$as_echo "$ac_try_echo") >&5 6994 (eval "$ac_link") 2>conftest.er1 6995 ac_status=$? 6996 grep -v '^ *+' conftest.er1 >conftest.err 6997 rm -f conftest.er1 6998 cat conftest.err >&5 6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); } && { 7001 test -z "$ac_c_werror_flag" || 7002 test ! -s conftest.err 7003 } && test -s conftest$ac_exeext && { 7004 test "$cross_compiling" = yes || 7005 $as_test_x conftest$ac_exeext 7006 }; then 7007 ac_cv_lib_posix_remove=yes 7008else 7009 $as_echo "$as_me: failed program was:" >&5 7010sed 's/^/| /' conftest.$ac_ext >&5 7011 7012 ac_cv_lib_posix_remove=no 7013fi 7014 7015rm -rf conftest.dSYM 7016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7017 conftest$ac_exeext conftest.$ac_ext 7018LIBS=$ac_check_lib_save_LIBS 7019fi 7020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 7021$as_echo "$ac_cv_lib_posix_remove" >&6; } 7022if test "x$ac_cv_lib_posix_remove" = x""yes; then 7023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7024fi 7025 7026 fi 7027 7028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7029 { $as_echo "$as_me:$LINENO: checking for shmat" >&5 7030$as_echo_n "checking for shmat... " >&6; } 7031if test "${ac_cv_func_shmat+set}" = set; then 7032 $as_echo_n "(cached) " >&6 7033else 7034 cat >conftest.$ac_ext <<_ACEOF 7035/* confdefs.h. */ 7036_ACEOF 7037cat confdefs.h >>conftest.$ac_ext 7038cat >>conftest.$ac_ext <<_ACEOF 7039/* end confdefs.h. */ 7040/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 7041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7042#define shmat innocuous_shmat 7043 7044/* System header to define __stub macros and hopefully few prototypes, 7045 which can conflict with char shmat (); below. 7046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7047 <limits.h> exists even on freestanding compilers. */ 7048 7049#ifdef __STDC__ 7050# include <limits.h> 7051#else 7052# include <assert.h> 7053#endif 7054 7055#undef shmat 7056 7057/* Override any GCC internal prototype to avoid an error. 7058 Use char because int might match the return type of a GCC 7059 builtin and then its argument prototype would still apply. */ 7060#ifdef __cplusplus 7061extern "C" 7062#endif 7063char shmat (); 7064/* The GNU C library defines this for functions which it implements 7065 to always fail with ENOSYS. Some functions are actually named 7066 something starting with __ and the normal name is an alias. */ 7067#if defined __stub_shmat || defined __stub___shmat 7068choke me 7069#endif 7070 7071int 7072main () 7073{ 7074return shmat (); 7075 ; 7076 return 0; 7077} 7078_ACEOF 7079rm -f conftest.$ac_objext conftest$ac_exeext 7080if { (ac_try="$ac_link" 7081case "(($ac_try" in 7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7083 *) ac_try_echo=$ac_try;; 7084esac 7085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7086$as_echo "$ac_try_echo") >&5 7087 (eval "$ac_link") 2>conftest.er1 7088 ac_status=$? 7089 grep -v '^ *+' conftest.er1 >conftest.err 7090 rm -f conftest.er1 7091 cat conftest.err >&5 7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); } && { 7094 test -z "$ac_c_werror_flag" || 7095 test ! -s conftest.err 7096 } && test -s conftest$ac_exeext && { 7097 test "$cross_compiling" = yes || 7098 $as_test_x conftest$ac_exeext 7099 }; then 7100 ac_cv_func_shmat=yes 7101else 7102 $as_echo "$as_me: failed program was:" >&5 7103sed 's/^/| /' conftest.$ac_ext >&5 7104 7105 ac_cv_func_shmat=no 7106fi 7107 7108rm -rf conftest.dSYM 7109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7110 conftest$ac_exeext conftest.$ac_ext 7111fi 7112{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 7113$as_echo "$ac_cv_func_shmat" >&6; } 7114 7115 if test $ac_cv_func_shmat = no; then 7116 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 7117$as_echo_n "checking for shmat in -lipc... " >&6; } 7118if test "${ac_cv_lib_ipc_shmat+set}" = set; then 7119 $as_echo_n "(cached) " >&6 7120else 7121 ac_check_lib_save_LIBS=$LIBS 7122LIBS="-lipc $LIBS" 7123cat >conftest.$ac_ext <<_ACEOF 7124/* confdefs.h. */ 7125_ACEOF 7126cat confdefs.h >>conftest.$ac_ext 7127cat >>conftest.$ac_ext <<_ACEOF 7128/* end confdefs.h. */ 7129 7130/* Override any GCC internal prototype to avoid an error. 7131 Use char because int might match the return type of a GCC 7132 builtin and then its argument prototype would still apply. */ 7133#ifdef __cplusplus 7134extern "C" 7135#endif 7136char shmat (); 7137int 7138main () 7139{ 7140return shmat (); 7141 ; 7142 return 0; 7143} 7144_ACEOF 7145rm -f conftest.$ac_objext conftest$ac_exeext 7146if { (ac_try="$ac_link" 7147case "(($ac_try" in 7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7149 *) ac_try_echo=$ac_try;; 7150esac 7151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7152$as_echo "$ac_try_echo") >&5 7153 (eval "$ac_link") 2>conftest.er1 7154 ac_status=$? 7155 grep -v '^ *+' conftest.er1 >conftest.err 7156 rm -f conftest.er1 7157 cat conftest.err >&5 7158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); } && { 7160 test -z "$ac_c_werror_flag" || 7161 test ! -s conftest.err 7162 } && test -s conftest$ac_exeext && { 7163 test "$cross_compiling" = yes || 7164 $as_test_x conftest$ac_exeext 7165 }; then 7166 ac_cv_lib_ipc_shmat=yes 7167else 7168 $as_echo "$as_me: failed program was:" >&5 7169sed 's/^/| /' conftest.$ac_ext >&5 7170 7171 ac_cv_lib_ipc_shmat=no 7172fi 7173 7174rm -rf conftest.dSYM 7175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7176 conftest$ac_exeext conftest.$ac_ext 7177LIBS=$ac_check_lib_save_LIBS 7178fi 7179{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 7180$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 7181if test "x$ac_cv_lib_ipc_shmat" = x""yes; then 7182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7183fi 7184 7185 fi 7186 fi 7187 7188 # Check for libraries that X11R6 Xt/Xaw programs need. 7189 ac_save_LDFLAGS=$LDFLAGS 7190 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7191 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7192 # check for ICE first), but we must link in the order -lSM -lICE or 7193 # we get undefined symbols. So assume we have SM if we have ICE. 7194 # These have to be linked with before -lX11, unlike the other 7195 # libraries we check for below, so use a different variable. 7196 # John Interrante, Karl Berry 7197 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 7198$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 7199if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 7200 $as_echo_n "(cached) " >&6 7201else 7202 ac_check_lib_save_LIBS=$LIBS 7203LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7204cat >conftest.$ac_ext <<_ACEOF 7205/* confdefs.h. */ 7206_ACEOF 7207cat confdefs.h >>conftest.$ac_ext 7208cat >>conftest.$ac_ext <<_ACEOF 7209/* end confdefs.h. */ 7210 7211/* Override any GCC internal prototype to avoid an error. 7212 Use char because int might match the return type of a GCC 7213 builtin and then its argument prototype would still apply. */ 7214#ifdef __cplusplus 7215extern "C" 7216#endif 7217char IceConnectionNumber (); 7218int 7219main () 7220{ 7221return IceConnectionNumber (); 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226rm -f conftest.$ac_objext conftest$ac_exeext 7227if { (ac_try="$ac_link" 7228case "(($ac_try" in 7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7230 *) ac_try_echo=$ac_try;; 7231esac 7232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7233$as_echo "$ac_try_echo") >&5 7234 (eval "$ac_link") 2>conftest.er1 7235 ac_status=$? 7236 grep -v '^ *+' conftest.er1 >conftest.err 7237 rm -f conftest.er1 7238 cat conftest.err >&5 7239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7240 (exit $ac_status); } && { 7241 test -z "$ac_c_werror_flag" || 7242 test ! -s conftest.err 7243 } && test -s conftest$ac_exeext && { 7244 test "$cross_compiling" = yes || 7245 $as_test_x conftest$ac_exeext 7246 }; then 7247 ac_cv_lib_ICE_IceConnectionNumber=yes 7248else 7249 $as_echo "$as_me: failed program was:" >&5 7250sed 's/^/| /' conftest.$ac_ext >&5 7251 7252 ac_cv_lib_ICE_IceConnectionNumber=no 7253fi 7254 7255rm -rf conftest.dSYM 7256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7257 conftest$ac_exeext conftest.$ac_ext 7258LIBS=$ac_check_lib_save_LIBS 7259fi 7260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7261$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7262if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then 7263 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7264fi 7265 7266 LDFLAGS=$ac_save_LDFLAGS 7267 7268fi 7269 7270 7271 7272 7273if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7274 if test -n "$ac_tool_prefix"; then 7275 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7276set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7278$as_echo_n "checking for $ac_word... " >&6; } 7279if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7280 $as_echo_n "(cached) " >&6 7281else 7282 case $PKG_CONFIG in 7283 [\\/]* | ?:[\\/]*) 7284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7285 ;; 7286 *) 7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299done 7300IFS=$as_save_IFS 7301 7302 ;; 7303esac 7304fi 7305PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7306if test -n "$PKG_CONFIG"; then 7307 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7308$as_echo "$PKG_CONFIG" >&6; } 7309else 7310 { $as_echo "$as_me:$LINENO: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 7315fi 7316if test -z "$ac_cv_path_PKG_CONFIG"; then 7317 ac_pt_PKG_CONFIG=$PKG_CONFIG 7318 # Extract the first word of "pkg-config", so it can be a program name with args. 7319set dummy pkg-config; ac_word=$2 7320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 7323 $as_echo_n "(cached) " >&6 7324else 7325 case $ac_pt_PKG_CONFIG in 7326 [\\/]* | ?:[\\/]*) 7327 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7328 ;; 7329 *) 7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7337 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342done 7343IFS=$as_save_IFS 7344 7345 ;; 7346esac 7347fi 7348ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7349if test -n "$ac_pt_PKG_CONFIG"; then 7350 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 7351$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7352else 7353 { $as_echo "$as_me:$LINENO: result: no" >&5 7354$as_echo "no" >&6; } 7355fi 7356 7357 if test "x$ac_pt_PKG_CONFIG" = x; then 7358 PKG_CONFIG="" 7359 else 7360 case $cross_compiling:$ac_tool_warned in 7361yes:) 7362{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7364ac_tool_warned=yes ;; 7365esac 7366 PKG_CONFIG=$ac_pt_PKG_CONFIG 7367 fi 7368else 7369 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7370fi 7371 7372fi 7373if test -n "$PKG_CONFIG"; then 7374 _pkg_min_version=0.9.0 7375 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 7376$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7377 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7378 { $as_echo "$as_me:$LINENO: result: yes" >&5 7379$as_echo "yes" >&6; } 7380 else 7381 { $as_echo "$as_me:$LINENO: result: no" >&5 7382$as_echo "no" >&6; } 7383 PKG_CONFIG="" 7384 fi 7385 7386fi 7387 7388pkg_failed=no 7389{ $as_echo "$as_me:$LINENO: checking for GTK2" >&5 7390$as_echo_n "checking for GTK2... " >&6; } 7391 7392if test -n "$GTK2_CFLAGS"; then 7393 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" 7394 elif test -n "$PKG_CONFIG"; then 7395 if test -n "$PKG_CONFIG" && \ 7396 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.12.0\"") >&5 7397 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.12.0") 2>&5 7398 ac_status=$? 7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7400 (exit $ac_status); }; then 7401 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.12.0" 2>/dev/null` 7402else 7403 pkg_failed=yes 7404fi 7405 else 7406 pkg_failed=untried 7407fi 7408if test -n "$GTK2_LIBS"; then 7409 pkg_cv_GTK2_LIBS="$GTK2_LIBS" 7410 elif test -n "$PKG_CONFIG"; then 7411 if test -n "$PKG_CONFIG" && \ 7412 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.12.0\"") >&5 7413 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.12.0") 2>&5 7414 ac_status=$? 7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7416 (exit $ac_status); }; then 7417 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.12.0" 2>/dev/null` 7418else 7419 pkg_failed=yes 7420fi 7421 else 7422 pkg_failed=untried 7423fi 7424 7425 7426 7427if test $pkg_failed = yes; then 7428 7429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7430 _pkg_short_errors_supported=yes 7431else 7432 _pkg_short_errors_supported=no 7433fi 7434 if test $_pkg_short_errors_supported = yes; then 7435 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.12.0" 2>&1` 7436 else 7437 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.12.0" 2>&1` 7438 fi 7439 # Put the nasty error message in config.log where it belongs 7440 echo "$GTK2_PKG_ERRORS" >&5 7441 7442 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.12.0) were not met: 7443 7444$GTK2_PKG_ERRORS 7445 7446Consider adjusting the PKG_CONFIG_PATH environment variable if you 7447installed software in a non-standard prefix. 7448 7449Alternatively, you may set the environment variables GTK2_CFLAGS 7450and GTK2_LIBS to avoid the need to call pkg-config. 7451See the pkg-config man page for more details. 7452" >&5 7453$as_echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.12.0) were not met: 7454 7455$GTK2_PKG_ERRORS 7456 7457Consider adjusting the PKG_CONFIG_PATH environment variable if you 7458installed software in a non-standard prefix. 7459 7460Alternatively, you may set the environment variables GTK2_CFLAGS 7461and GTK2_LIBS to avoid the need to call pkg-config. 7462See the pkg-config man page for more details. 7463" >&2;} 7464 { (exit 1); exit 1; }; } 7465elif test $pkg_failed = untried; then 7466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7468{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 7469is in your PATH or set the PKG_CONFIG environment variable to the full 7470path to pkg-config. 7471 7472Alternatively, you may set the environment variables GTK2_CFLAGS 7473and GTK2_LIBS to avoid the need to call pkg-config. 7474See the pkg-config man page for more details. 7475 7476To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7477See \`config.log' for more details." >&5 7478$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 7479is in your PATH or set the PKG_CONFIG environment variable to the full 7480path to pkg-config. 7481 7482Alternatively, you may set the environment variables GTK2_CFLAGS 7483and GTK2_LIBS to avoid the need to call pkg-config. 7484See the pkg-config man page for more details. 7485 7486To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7487See \`config.log' for more details." >&2;} 7488 { (exit 1); exit 1; }; }; } 7489else 7490 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS 7491 GTK2_LIBS=$pkg_cv_GTK2_LIBS 7492 { $as_echo "$as_me:$LINENO: result: yes" >&5 7493$as_echo "yes" >&6; } 7494 : 7495fi 7496 7497 7498 7499 7500pkg_failed=no 7501{ $as_echo "$as_me:$LINENO: checking for GDKPIX" >&5 7502$as_echo_n "checking for GDKPIX... " >&6; } 7503 7504if test -n "$GDKPIX_CFLAGS"; then 7505 pkg_cv_GDKPIX_CFLAGS="$GDKPIX_CFLAGS" 7506 elif test -n "$PKG_CONFIG"; then 7507 if test -n "$PKG_CONFIG" && \ 7508 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5 7509 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5 7510 ac_status=$? 7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7512 (exit $ac_status); }; then 7513 pkg_cv_GDKPIX_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null` 7514else 7515 pkg_failed=yes 7516fi 7517 else 7518 pkg_failed=untried 7519fi 7520if test -n "$GDKPIX_LIBS"; then 7521 pkg_cv_GDKPIX_LIBS="$GDKPIX_LIBS" 7522 elif test -n "$PKG_CONFIG"; then 7523 if test -n "$PKG_CONFIG" && \ 7524 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\"") >&5 7525 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5 7526 ac_status=$? 7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7528 (exit $ac_status); }; then 7529 pkg_cv_GDKPIX_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null` 7530else 7531 pkg_failed=yes 7532fi 7533 else 7534 pkg_failed=untried 7535fi 7536 7537 7538 7539if test $pkg_failed = yes; then 7540 7541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7542 _pkg_short_errors_supported=yes 7543else 7544 _pkg_short_errors_supported=no 7545fi 7546 if test $_pkg_short_errors_supported = yes; then 7547 GDKPIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-pixbuf-2.0" 2>&1` 7548 else 7549 GDKPIX_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-pixbuf-2.0" 2>&1` 7550 fi 7551 # Put the nasty error message in config.log where it belongs 7552 echo "$GDKPIX_PKG_ERRORS" >&5 7553 7554 { { $as_echo "$as_me:$LINENO: error: Package requirements (gdk-pixbuf-2.0) were not met: 7555 7556$GDKPIX_PKG_ERRORS 7557 7558Consider adjusting the PKG_CONFIG_PATH environment variable if you 7559installed software in a non-standard prefix. 7560 7561Alternatively, you may set the environment variables GDKPIX_CFLAGS 7562and GDKPIX_LIBS to avoid the need to call pkg-config. 7563See the pkg-config man page for more details. 7564" >&5 7565$as_echo "$as_me: error: Package requirements (gdk-pixbuf-2.0) were not met: 7566 7567$GDKPIX_PKG_ERRORS 7568 7569Consider adjusting the PKG_CONFIG_PATH environment variable if you 7570installed software in a non-standard prefix. 7571 7572Alternatively, you may set the environment variables GDKPIX_CFLAGS 7573and GDKPIX_LIBS to avoid the need to call pkg-config. 7574See the pkg-config man page for more details. 7575" >&2;} 7576 { (exit 1); exit 1; }; } 7577elif test $pkg_failed = untried; then 7578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7580{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 7581is in your PATH or set the PKG_CONFIG environment variable to the full 7582path to pkg-config. 7583 7584Alternatively, you may set the environment variables GDKPIX_CFLAGS 7585and GDKPIX_LIBS to avoid the need to call pkg-config. 7586See the pkg-config man page for more details. 7587 7588To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7589See \`config.log' for more details." >&5 7590$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 7591is in your PATH or set the PKG_CONFIG environment variable to the full 7592path to pkg-config. 7593 7594Alternatively, you may set the environment variables GDKPIX_CFLAGS 7595and GDKPIX_LIBS to avoid the need to call pkg-config. 7596See the pkg-config man page for more details. 7597 7598To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7599See \`config.log' for more details." >&2;} 7600 { (exit 1); exit 1; }; }; } 7601else 7602 GDKPIX_CFLAGS=$pkg_cv_GDKPIX_CFLAGS 7603 GDKPIX_LIBS=$pkg_cv_GDKPIX_LIBS 7604 { $as_echo "$as_me:$LINENO: result: yes" >&5 7605$as_echo "yes" >&6; } 7606 : 7607fi 7608 7609 7610 7611 7612pkg_failed=no 7613{ $as_echo "$as_me:$LINENO: checking for LIBGRG" >&5 7614$as_echo_n "checking for LIBGRG... " >&6; } 7615 7616if test -n "$LIBGRG_CFLAGS"; then 7617 pkg_cv_LIBGRG_CFLAGS="$LIBGRG_CFLAGS" 7618 elif test -n "$PKG_CONFIG"; then 7619 if test -n "$PKG_CONFIG" && \ 7620 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgringotts >= 1.2.0\"") >&5 7621 ($PKG_CONFIG --exists --print-errors "libgringotts >= 1.2.0") 2>&5 7622 ac_status=$? 7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 (exit $ac_status); }; then 7625 pkg_cv_LIBGRG_CFLAGS=`$PKG_CONFIG --cflags "libgringotts >= 1.2.0" 2>/dev/null` 7626else 7627 pkg_failed=yes 7628fi 7629 else 7630 pkg_failed=untried 7631fi 7632if test -n "$LIBGRG_LIBS"; then 7633 pkg_cv_LIBGRG_LIBS="$LIBGRG_LIBS" 7634 elif test -n "$PKG_CONFIG"; then 7635 if test -n "$PKG_CONFIG" && \ 7636 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgringotts >= 1.2.0\"") >&5 7637 ($PKG_CONFIG --exists --print-errors "libgringotts >= 1.2.0") 2>&5 7638 ac_status=$? 7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7640 (exit $ac_status); }; then 7641 pkg_cv_LIBGRG_LIBS=`$PKG_CONFIG --libs "libgringotts >= 1.2.0" 2>/dev/null` 7642else 7643 pkg_failed=yes 7644fi 7645 else 7646 pkg_failed=untried 7647fi 7648 7649 7650 7651if test $pkg_failed = yes; then 7652 7653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7654 _pkg_short_errors_supported=yes 7655else 7656 _pkg_short_errors_supported=no 7657fi 7658 if test $_pkg_short_errors_supported = yes; then 7659 LIBGRG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgringotts >= 1.2.0" 2>&1` 7660 else 7661 LIBGRG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgringotts >= 1.2.0" 2>&1` 7662 fi 7663 # Put the nasty error message in config.log where it belongs 7664 echo "$LIBGRG_PKG_ERRORS" >&5 7665 7666 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgringotts >= 1.2.0) were not met: 7667 7668$LIBGRG_PKG_ERRORS 7669 7670Consider adjusting the PKG_CONFIG_PATH environment variable if you 7671installed software in a non-standard prefix. 7672 7673Alternatively, you may set the environment variables LIBGRG_CFLAGS 7674and LIBGRG_LIBS to avoid the need to call pkg-config. 7675See the pkg-config man page for more details. 7676" >&5 7677$as_echo "$as_me: error: Package requirements (libgringotts >= 1.2.0) were not met: 7678 7679$LIBGRG_PKG_ERRORS 7680 7681Consider adjusting the PKG_CONFIG_PATH environment variable if you 7682installed software in a non-standard prefix. 7683 7684Alternatively, you may set the environment variables LIBGRG_CFLAGS 7685and LIBGRG_LIBS to avoid the need to call pkg-config. 7686See the pkg-config man page for more details. 7687" >&2;} 7688 { (exit 1); exit 1; }; } 7689elif test $pkg_failed = untried; then 7690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7692{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 7693is in your PATH or set the PKG_CONFIG environment variable to the full 7694path to pkg-config. 7695 7696Alternatively, you may set the environment variables LIBGRG_CFLAGS 7697and LIBGRG_LIBS to avoid the need to call pkg-config. 7698See the pkg-config man page for more details. 7699 7700To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7701See \`config.log' for more details." >&5 7702$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 7703is in your PATH or set the PKG_CONFIG environment variable to the full 7704path to pkg-config. 7705 7706Alternatively, you may set the environment variables LIBGRG_CFLAGS 7707and LIBGRG_LIBS to avoid the need to call pkg-config. 7708See the pkg-config man page for more details. 7709 7710To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7711See \`config.log' for more details." >&2;} 7712 { (exit 1); exit 1; }; }; } 7713else 7714 LIBGRG_CFLAGS=$pkg_cv_LIBGRG_CFLAGS 7715 LIBGRG_LIBS=$pkg_cv_LIBGRG_LIBS 7716 { $as_echo "$as_me:$LINENO: result: yes" >&5 7717$as_echo "yes" >&6; } 7718 : 7719fi 7720 7721 7722 7723{ $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 7724$as_echo_n "checking for poptGetContext in -lpopt... " >&6; } 7725if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then 7726 $as_echo_n "(cached) " >&6 7727else 7728 ac_check_lib_save_LIBS=$LIBS 7729LIBS="-lpopt $LIBS" 7730cat >conftest.$ac_ext <<_ACEOF 7731/* confdefs.h. */ 7732_ACEOF 7733cat confdefs.h >>conftest.$ac_ext 7734cat >>conftest.$ac_ext <<_ACEOF 7735/* end confdefs.h. */ 7736 7737/* Override any GCC internal prototype to avoid an error. 7738 Use char because int might match the return type of a GCC 7739 builtin and then its argument prototype would still apply. */ 7740#ifdef __cplusplus 7741extern "C" 7742#endif 7743char poptGetContext (); 7744int 7745main () 7746{ 7747return poptGetContext (); 7748 ; 7749 return 0; 7750} 7751_ACEOF 7752rm -f conftest.$ac_objext conftest$ac_exeext 7753if { (ac_try="$ac_link" 7754case "(($ac_try" in 7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7756 *) ac_try_echo=$ac_try;; 7757esac 7758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7759$as_echo "$ac_try_echo") >&5 7760 (eval "$ac_link") 2>conftest.er1 7761 ac_status=$? 7762 grep -v '^ *+' conftest.er1 >conftest.err 7763 rm -f conftest.er1 7764 cat conftest.err >&5 7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7766 (exit $ac_status); } && { 7767 test -z "$ac_c_werror_flag" || 7768 test ! -s conftest.err 7769 } && test -s conftest$ac_exeext && { 7770 test "$cross_compiling" = yes || 7771 $as_test_x conftest$ac_exeext 7772 }; then 7773 ac_cv_lib_popt_poptGetContext=yes 7774else 7775 $as_echo "$as_me: failed program was:" >&5 7776sed 's/^/| /' conftest.$ac_ext >&5 7777 7778 ac_cv_lib_popt_poptGetContext=no 7779fi 7780 7781rm -rf conftest.dSYM 7782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7783 conftest$ac_exeext conftest.$ac_ext 7784LIBS=$ac_check_lib_save_LIBS 7785fi 7786{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 7787$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; } 7788if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then 7789 if test "${ac_cv_header_popt_h+set}" = set; then 7790 { $as_echo "$as_me:$LINENO: checking for popt.h" >&5 7791$as_echo_n "checking for popt.h... " >&6; } 7792if test "${ac_cv_header_popt_h+set}" = set; then 7793 $as_echo_n "(cached) " >&6 7794fi 7795{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5 7796$as_echo "$ac_cv_header_popt_h" >&6; } 7797else 7798 # Is the header compilable? 7799{ $as_echo "$as_me:$LINENO: checking popt.h usability" >&5 7800$as_echo_n "checking popt.h usability... " >&6; } 7801cat >conftest.$ac_ext <<_ACEOF 7802/* confdefs.h. */ 7803_ACEOF 7804cat confdefs.h >>conftest.$ac_ext 7805cat >>conftest.$ac_ext <<_ACEOF 7806/* end confdefs.h. */ 7807$ac_includes_default 7808#include <popt.h> 7809_ACEOF 7810rm -f conftest.$ac_objext 7811if { (ac_try="$ac_compile" 7812case "(($ac_try" in 7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7814 *) ac_try_echo=$ac_try;; 7815esac 7816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7817$as_echo "$ac_try_echo") >&5 7818 (eval "$ac_compile") 2>conftest.er1 7819 ac_status=$? 7820 grep -v '^ *+' conftest.er1 >conftest.err 7821 rm -f conftest.er1 7822 cat conftest.err >&5 7823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 (exit $ac_status); } && { 7825 test -z "$ac_c_werror_flag" || 7826 test ! -s conftest.err 7827 } && test -s conftest.$ac_objext; then 7828 ac_header_compiler=yes 7829else 7830 $as_echo "$as_me: failed program was:" >&5 7831sed 's/^/| /' conftest.$ac_ext >&5 7832 7833 ac_header_compiler=no 7834fi 7835 7836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7837{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7838$as_echo "$ac_header_compiler" >&6; } 7839 7840# Is the header present? 7841{ $as_echo "$as_me:$LINENO: checking popt.h presence" >&5 7842$as_echo_n "checking popt.h presence... " >&6; } 7843cat >conftest.$ac_ext <<_ACEOF 7844/* confdefs.h. */ 7845_ACEOF 7846cat confdefs.h >>conftest.$ac_ext 7847cat >>conftest.$ac_ext <<_ACEOF 7848/* end confdefs.h. */ 7849#include <popt.h> 7850_ACEOF 7851if { (ac_try="$ac_cpp conftest.$ac_ext" 7852case "(($ac_try" in 7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7854 *) ac_try_echo=$ac_try;; 7855esac 7856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7857$as_echo "$ac_try_echo") >&5 7858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7859 ac_status=$? 7860 grep -v '^ *+' conftest.er1 >conftest.err 7861 rm -f conftest.er1 7862 cat conftest.err >&5 7863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7864 (exit $ac_status); } >/dev/null && { 7865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7866 test ! -s conftest.err 7867 }; then 7868 ac_header_preproc=yes 7869else 7870 $as_echo "$as_me: failed program was:" >&5 7871sed 's/^/| /' conftest.$ac_ext >&5 7872 7873 ac_header_preproc=no 7874fi 7875 7876rm -f conftest.err conftest.$ac_ext 7877{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7878$as_echo "$ac_header_preproc" >&6; } 7879 7880# So? What about this header? 7881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7882 yes:no: ) 7883 { $as_echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5 7884$as_echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7885 { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5 7886$as_echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;} 7887 ac_header_preproc=yes 7888 ;; 7889 no:yes:* ) 7890 { $as_echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5 7891$as_echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;} 7892 { $as_echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5 7893$as_echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;} 7894 { $as_echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5 7895$as_echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;} 7896 { $as_echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5 7897$as_echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;} 7898 { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5 7899$as_echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;} 7900 { $as_echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5 7901$as_echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;} 7902 ( cat <<\_ASBOX 7903## ---------------------------------- ## 7904## Report this to shlomif@iglu.org.il ## 7905## ---------------------------------- ## 7906_ASBOX 7907 ) | sed "s/^/$as_me: WARNING: /" >&2 7908 ;; 7909esac 7910{ $as_echo "$as_me:$LINENO: checking for popt.h" >&5 7911$as_echo_n "checking for popt.h... " >&6; } 7912if test "${ac_cv_header_popt_h+set}" = set; then 7913 $as_echo_n "(cached) " >&6 7914else 7915 ac_cv_header_popt_h=$ac_header_preproc 7916fi 7917{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5 7918$as_echo "$ac_cv_header_popt_h" >&6; } 7919 7920fi 7921if test "x$ac_cv_header_popt_h" = x""yes; then 7922 POPT='-lpopt' 7923else 7924 { { $as_echo "$as_me:$LINENO: error: *** ERROR: POPT header files not found ***" >&5 7925$as_echo "$as_me: error: *** ERROR: POPT header files not found ***" >&2;} 7926 { (exit 1); exit 1; }; } 7927fi 7928 7929 7930else 7931 { { $as_echo "$as_me:$LINENO: error: *** ERROR: POPT library not found ***" >&5 7932$as_echo "$as_me: error: *** ERROR: POPT library not found ***" >&2;} 7933 { (exit 1); exit 1; }; } 7934fi 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944for ac_func in mlockall tcgetattr clearenv environ isatty ttyname 7945do 7946as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7947{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7948$as_echo_n "checking for $ac_func... " >&6; } 7949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat >conftest.$ac_ext <<_ACEOF 7953/* confdefs.h. */ 7954_ACEOF 7955cat confdefs.h >>conftest.$ac_ext 7956cat >>conftest.$ac_ext <<_ACEOF 7957/* end confdefs.h. */ 7958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7959 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7960#define $ac_func innocuous_$ac_func 7961 7962/* System header to define __stub macros and hopefully few prototypes, 7963 which can conflict with char $ac_func (); below. 7964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7965 <limits.h> exists even on freestanding compilers. */ 7966 7967#ifdef __STDC__ 7968# include <limits.h> 7969#else 7970# include <assert.h> 7971#endif 7972 7973#undef $ac_func 7974 7975/* Override any GCC internal prototype to avoid an error. 7976 Use char because int might match the return type of a GCC 7977 builtin and then its argument prototype would still apply. */ 7978#ifdef __cplusplus 7979extern "C" 7980#endif 7981char $ac_func (); 7982/* The GNU C library defines this for functions which it implements 7983 to always fail with ENOSYS. Some functions are actually named 7984 something starting with __ and the normal name is an alias. */ 7985#if defined __stub_$ac_func || defined __stub___$ac_func 7986choke me 7987#endif 7988 7989int 7990main () 7991{ 7992return $ac_func (); 7993 ; 7994 return 0; 7995} 7996_ACEOF 7997rm -f conftest.$ac_objext conftest$ac_exeext 7998if { (ac_try="$ac_link" 7999case "(($ac_try" in 8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8001 *) ac_try_echo=$ac_try;; 8002esac 8003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8004$as_echo "$ac_try_echo") >&5 8005 (eval "$ac_link") 2>conftest.er1 8006 ac_status=$? 8007 grep -v '^ *+' conftest.er1 >conftest.err 8008 rm -f conftest.er1 8009 cat conftest.err >&5 8010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); } && { 8012 test -z "$ac_c_werror_flag" || 8013 test ! -s conftest.err 8014 } && test -s conftest$ac_exeext && { 8015 test "$cross_compiling" = yes || 8016 $as_test_x conftest$ac_exeext 8017 }; then 8018 eval "$as_ac_var=yes" 8019else 8020 $as_echo "$as_me: failed program was:" >&5 8021sed 's/^/| /' conftest.$ac_ext >&5 8022 8023 eval "$as_ac_var=no" 8024fi 8025 8026rm -rf conftest.dSYM 8027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8028 conftest$ac_exeext conftest.$ac_ext 8029fi 8030ac_res=`eval 'as_val=${'$as_ac_var'} 8031 $as_echo "$as_val"'` 8032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8033$as_echo "$ac_res" >&6; } 8034as_val=`eval 'as_val=${'$as_ac_var'} 8035 $as_echo "$as_val"'` 8036 if test "x$as_val" = x""yes; then 8037 cat >>confdefs.h <<_ACEOF 8038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8039_ACEOF 8040 8041fi 8042done 8043 8044 8045{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 8046$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 8047if test "${ac_cv_header_stat_broken+set}" = set; then 8048 $as_echo_n "(cached) " >&6 8049else 8050 cat >conftest.$ac_ext <<_ACEOF 8051/* confdefs.h. */ 8052_ACEOF 8053cat confdefs.h >>conftest.$ac_ext 8054cat >>conftest.$ac_ext <<_ACEOF 8055/* end confdefs.h. */ 8056#include <sys/types.h> 8057#include <sys/stat.h> 8058 8059#if defined S_ISBLK && defined S_IFDIR 8060extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 8061#endif 8062 8063#if defined S_ISBLK && defined S_IFCHR 8064extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 8065#endif 8066 8067#if defined S_ISLNK && defined S_IFREG 8068extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 8069#endif 8070 8071#if defined S_ISSOCK && defined S_IFREG 8072extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 8073#endif 8074 8075_ACEOF 8076rm -f conftest.$ac_objext 8077if { (ac_try="$ac_compile" 8078case "(($ac_try" in 8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8080 *) ac_try_echo=$ac_try;; 8081esac 8082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8083$as_echo "$ac_try_echo") >&5 8084 (eval "$ac_compile") 2>conftest.er1 8085 ac_status=$? 8086 grep -v '^ *+' conftest.er1 >conftest.err 8087 rm -f conftest.er1 8088 cat conftest.err >&5 8089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8090 (exit $ac_status); } && { 8091 test -z "$ac_c_werror_flag" || 8092 test ! -s conftest.err 8093 } && test -s conftest.$ac_objext; then 8094 ac_cv_header_stat_broken=no 8095else 8096 $as_echo "$as_me: failed program was:" >&5 8097sed 's/^/| /' conftest.$ac_ext >&5 8098 8099 ac_cv_header_stat_broken=yes 8100fi 8101 8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8103fi 8104{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 8105$as_echo "$ac_cv_header_stat_broken" >&6; } 8106if test $ac_cv_header_stat_broken = yes; then 8107 8108cat >>confdefs.h <<\_ACEOF 8109#define STAT_MACROS_BROKEN 1 8110_ACEOF 8111 8112fi 8113 8114{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 8115$as_echo_n "checking for ANSI C header files... " >&6; } 8116if test "${ac_cv_header_stdc+set}" = set; then 8117 $as_echo_n "(cached) " >&6 8118else 8119 cat >conftest.$ac_ext <<_ACEOF 8120/* confdefs.h. */ 8121_ACEOF 8122cat confdefs.h >>conftest.$ac_ext 8123cat >>conftest.$ac_ext <<_ACEOF 8124/* end confdefs.h. */ 8125#include <stdlib.h> 8126#include <stdarg.h> 8127#include <string.h> 8128#include <float.h> 8129 8130int 8131main () 8132{ 8133 8134 ; 8135 return 0; 8136} 8137_ACEOF 8138rm -f conftest.$ac_objext 8139if { (ac_try="$ac_compile" 8140case "(($ac_try" in 8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8142 *) ac_try_echo=$ac_try;; 8143esac 8144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8145$as_echo "$ac_try_echo") >&5 8146 (eval "$ac_compile") 2>conftest.er1 8147 ac_status=$? 8148 grep -v '^ *+' conftest.er1 >conftest.err 8149 rm -f conftest.er1 8150 cat conftest.err >&5 8151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8152 (exit $ac_status); } && { 8153 test -z "$ac_c_werror_flag" || 8154 test ! -s conftest.err 8155 } && test -s conftest.$ac_objext; then 8156 ac_cv_header_stdc=yes 8157else 8158 $as_echo "$as_me: failed program was:" >&5 8159sed 's/^/| /' conftest.$ac_ext >&5 8160 8161 ac_cv_header_stdc=no 8162fi 8163 8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8165 8166if test $ac_cv_header_stdc = yes; then 8167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8168 cat >conftest.$ac_ext <<_ACEOF 8169/* confdefs.h. */ 8170_ACEOF 8171cat confdefs.h >>conftest.$ac_ext 8172cat >>conftest.$ac_ext <<_ACEOF 8173/* end confdefs.h. */ 8174#include <string.h> 8175 8176_ACEOF 8177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8178 $EGREP "memchr" >/dev/null 2>&1; then 8179 : 8180else 8181 ac_cv_header_stdc=no 8182fi 8183rm -f conftest* 8184 8185fi 8186 8187if test $ac_cv_header_stdc = yes; then 8188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8189 cat >conftest.$ac_ext <<_ACEOF 8190/* confdefs.h. */ 8191_ACEOF 8192cat confdefs.h >>conftest.$ac_ext 8193cat >>conftest.$ac_ext <<_ACEOF 8194/* end confdefs.h. */ 8195#include <stdlib.h> 8196 8197_ACEOF 8198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8199 $EGREP "free" >/dev/null 2>&1; then 8200 : 8201else 8202 ac_cv_header_stdc=no 8203fi 8204rm -f conftest* 8205 8206fi 8207 8208if test $ac_cv_header_stdc = yes; then 8209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8210 if test "$cross_compiling" = yes; then 8211 : 8212else 8213 cat >conftest.$ac_ext <<_ACEOF 8214/* confdefs.h. */ 8215_ACEOF 8216cat confdefs.h >>conftest.$ac_ext 8217cat >>conftest.$ac_ext <<_ACEOF 8218/* end confdefs.h. */ 8219#include <ctype.h> 8220#include <stdlib.h> 8221#if ((' ' & 0x0FF) == 0x020) 8222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8224#else 8225# define ISLOWER(c) \ 8226 (('a' <= (c) && (c) <= 'i') \ 8227 || ('j' <= (c) && (c) <= 'r') \ 8228 || ('s' <= (c) && (c) <= 'z')) 8229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8230#endif 8231 8232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8233int 8234main () 8235{ 8236 int i; 8237 for (i = 0; i < 256; i++) 8238 if (XOR (islower (i), ISLOWER (i)) 8239 || toupper (i) != TOUPPER (i)) 8240 return 2; 8241 return 0; 8242} 8243_ACEOF 8244rm -f conftest$ac_exeext 8245if { (ac_try="$ac_link" 8246case "(($ac_try" in 8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8248 *) ac_try_echo=$ac_try;; 8249esac 8250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8251$as_echo "$ac_try_echo") >&5 8252 (eval "$ac_link") 2>&5 8253 ac_status=$? 8254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8256 { (case "(($ac_try" in 8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8258 *) ac_try_echo=$ac_try;; 8259esac 8260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8261$as_echo "$ac_try_echo") >&5 8262 (eval "$ac_try") 2>&5 8263 ac_status=$? 8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); }; }; then 8266 : 8267else 8268 $as_echo "$as_me: program exited with status $ac_status" >&5 8269$as_echo "$as_me: failed program was:" >&5 8270sed 's/^/| /' conftest.$ac_ext >&5 8271 8272( exit $ac_status ) 8273ac_cv_header_stdc=no 8274fi 8275rm -rf conftest.dSYM 8276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8277fi 8278 8279 8280fi 8281fi 8282{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 8283$as_echo "$ac_cv_header_stdc" >&6; } 8284if test $ac_cv_header_stdc = yes; then 8285 8286cat >>confdefs.h <<\_ACEOF 8287#define STDC_HEADERS 1 8288_ACEOF 8289 8290fi 8291 8292 8293for ac_header in sys/fsuid.h 8294do 8295as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8298$as_echo_n "checking for $ac_header... " >&6; } 8299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8300 $as_echo_n "(cached) " >&6 8301fi 8302ac_res=`eval 'as_val=${'$as_ac_Header'} 8303 $as_echo "$as_val"'` 8304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8305$as_echo "$ac_res" >&6; } 8306else 8307 # Is the header compilable? 8308{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 8309$as_echo_n "checking $ac_header usability... " >&6; } 8310cat >conftest.$ac_ext <<_ACEOF 8311/* confdefs.h. */ 8312_ACEOF 8313cat confdefs.h >>conftest.$ac_ext 8314cat >>conftest.$ac_ext <<_ACEOF 8315/* end confdefs.h. */ 8316$ac_includes_default 8317#include <$ac_header> 8318_ACEOF 8319rm -f conftest.$ac_objext 8320if { (ac_try="$ac_compile" 8321case "(($ac_try" in 8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8323 *) ac_try_echo=$ac_try;; 8324esac 8325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8326$as_echo "$ac_try_echo") >&5 8327 (eval "$ac_compile") 2>conftest.er1 8328 ac_status=$? 8329 grep -v '^ *+' conftest.er1 >conftest.err 8330 rm -f conftest.er1 8331 cat conftest.err >&5 8332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 (exit $ac_status); } && { 8334 test -z "$ac_c_werror_flag" || 8335 test ! -s conftest.err 8336 } && test -s conftest.$ac_objext; then 8337 ac_header_compiler=yes 8338else 8339 $as_echo "$as_me: failed program was:" >&5 8340sed 's/^/| /' conftest.$ac_ext >&5 8341 8342 ac_header_compiler=no 8343fi 8344 8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8347$as_echo "$ac_header_compiler" >&6; } 8348 8349# Is the header present? 8350{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 8351$as_echo_n "checking $ac_header presence... " >&6; } 8352cat >conftest.$ac_ext <<_ACEOF 8353/* confdefs.h. */ 8354_ACEOF 8355cat confdefs.h >>conftest.$ac_ext 8356cat >>conftest.$ac_ext <<_ACEOF 8357/* end confdefs.h. */ 8358#include <$ac_header> 8359_ACEOF 8360if { (ac_try="$ac_cpp conftest.$ac_ext" 8361case "(($ac_try" in 8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8363 *) ac_try_echo=$ac_try;; 8364esac 8365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8366$as_echo "$ac_try_echo") >&5 8367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8368 ac_status=$? 8369 grep -v '^ *+' conftest.er1 >conftest.err 8370 rm -f conftest.er1 8371 cat conftest.err >&5 8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); } >/dev/null && { 8374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8375 test ! -s conftest.err 8376 }; then 8377 ac_header_preproc=yes 8378else 8379 $as_echo "$as_me: failed program was:" >&5 8380sed 's/^/| /' conftest.$ac_ext >&5 8381 8382 ac_header_preproc=no 8383fi 8384 8385rm -f conftest.err conftest.$ac_ext 8386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8387$as_echo "$ac_header_preproc" >&6; } 8388 8389# So? What about this header? 8390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8391 yes:no: ) 8392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8393$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8395$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8396 ac_header_preproc=yes 8397 ;; 8398 no:yes:* ) 8399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8400$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8402$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8404$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8406$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8408$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8410$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8411 ( cat <<\_ASBOX 8412## ---------------------------------- ## 8413## Report this to shlomif@iglu.org.il ## 8414## ---------------------------------- ## 8415_ASBOX 8416 ) | sed "s/^/$as_me: WARNING: /" >&2 8417 ;; 8418esac 8419{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8420$as_echo_n "checking for $ac_header... " >&6; } 8421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8422 $as_echo_n "(cached) " >&6 8423else 8424 eval "$as_ac_Header=\$ac_header_preproc" 8425fi 8426ac_res=`eval 'as_val=${'$as_ac_Header'} 8427 $as_echo "$as_val"'` 8428 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8429$as_echo "$ac_res" >&6; } 8430 8431fi 8432as_val=`eval 'as_val=${'$as_ac_Header'} 8433 $as_echo "$as_val"'` 8434 if test "x$as_val" = x""yes; then 8435 cat >>confdefs.h <<_ACEOF 8436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8437_ACEOF 8438 8439fi 8440 8441done 8442 8443 8444for ac_header in linux/fd.h 8445do 8446as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8448 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8449$as_echo_n "checking for $ac_header... " >&6; } 8450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8451 $as_echo_n "(cached) " >&6 8452fi 8453ac_res=`eval 'as_val=${'$as_ac_Header'} 8454 $as_echo "$as_val"'` 8455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8456$as_echo "$ac_res" >&6; } 8457else 8458 # Is the header compilable? 8459{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 8460$as_echo_n "checking $ac_header usability... " >&6; } 8461cat >conftest.$ac_ext <<_ACEOF 8462/* confdefs.h. */ 8463_ACEOF 8464cat confdefs.h >>conftest.$ac_ext 8465cat >>conftest.$ac_ext <<_ACEOF 8466/* end confdefs.h. */ 8467$ac_includes_default 8468#include <$ac_header> 8469_ACEOF 8470rm -f conftest.$ac_objext 8471if { (ac_try="$ac_compile" 8472case "(($ac_try" in 8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8474 *) ac_try_echo=$ac_try;; 8475esac 8476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8477$as_echo "$ac_try_echo") >&5 8478 (eval "$ac_compile") 2>conftest.er1 8479 ac_status=$? 8480 grep -v '^ *+' conftest.er1 >conftest.err 8481 rm -f conftest.er1 8482 cat conftest.err >&5 8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8484 (exit $ac_status); } && { 8485 test -z "$ac_c_werror_flag" || 8486 test ! -s conftest.err 8487 } && test -s conftest.$ac_objext; then 8488 ac_header_compiler=yes 8489else 8490 $as_echo "$as_me: failed program was:" >&5 8491sed 's/^/| /' conftest.$ac_ext >&5 8492 8493 ac_header_compiler=no 8494fi 8495 8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8497{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8498$as_echo "$ac_header_compiler" >&6; } 8499 8500# Is the header present? 8501{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 8502$as_echo_n "checking $ac_header presence... " >&6; } 8503cat >conftest.$ac_ext <<_ACEOF 8504/* confdefs.h. */ 8505_ACEOF 8506cat confdefs.h >>conftest.$ac_ext 8507cat >>conftest.$ac_ext <<_ACEOF 8508/* end confdefs.h. */ 8509#include <$ac_header> 8510_ACEOF 8511if { (ac_try="$ac_cpp conftest.$ac_ext" 8512case "(($ac_try" in 8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8514 *) ac_try_echo=$ac_try;; 8515esac 8516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8517$as_echo "$ac_try_echo") >&5 8518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8519 ac_status=$? 8520 grep -v '^ *+' conftest.er1 >conftest.err 8521 rm -f conftest.er1 8522 cat conftest.err >&5 8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8524 (exit $ac_status); } >/dev/null && { 8525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8526 test ! -s conftest.err 8527 }; then 8528 ac_header_preproc=yes 8529else 8530 $as_echo "$as_me: failed program was:" >&5 8531sed 's/^/| /' conftest.$ac_ext >&5 8532 8533 ac_header_preproc=no 8534fi 8535 8536rm -f conftest.err conftest.$ac_ext 8537{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8538$as_echo "$ac_header_preproc" >&6; } 8539 8540# So? What about this header? 8541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8542 yes:no: ) 8543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8544$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8546$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8547 ac_header_preproc=yes 8548 ;; 8549 no:yes:* ) 8550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8551$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8553$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8555$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8557$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8559$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8561$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8562 ( cat <<\_ASBOX 8563## ---------------------------------- ## 8564## Report this to shlomif@iglu.org.il ## 8565## ---------------------------------- ## 8566_ASBOX 8567 ) | sed "s/^/$as_me: WARNING: /" >&2 8568 ;; 8569esac 8570{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8571$as_echo_n "checking for $ac_header... " >&6; } 8572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8573 $as_echo_n "(cached) " >&6 8574else 8575 eval "$as_ac_Header=\$ac_header_preproc" 8576fi 8577ac_res=`eval 'as_val=${'$as_ac_Header'} 8578 $as_echo "$as_val"'` 8579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8580$as_echo "$ac_res" >&6; } 8581 8582fi 8583as_val=`eval 'as_val=${'$as_ac_Header'} 8584 $as_echo "$as_val"'` 8585 if test "x$as_val" = x""yes; then 8586 cat >>confdefs.h <<_ACEOF 8587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8588_ACEOF 8589 8590fi 8591 8592done 8593 8594 8595{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8596$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8597if test "${ac_cv_c_const+set}" = set; then 8598 $as_echo_n "(cached) " >&6 8599else 8600 cat >conftest.$ac_ext <<_ACEOF 8601/* confdefs.h. */ 8602_ACEOF 8603cat confdefs.h >>conftest.$ac_ext 8604cat >>conftest.$ac_ext <<_ACEOF 8605/* end confdefs.h. */ 8606 8607int 8608main () 8609{ 8610/* FIXME: Include the comments suggested by Paul. */ 8611#ifndef __cplusplus 8612 /* Ultrix mips cc rejects this. */ 8613 typedef int charset[2]; 8614 const charset cs; 8615 /* SunOS 4.1.1 cc rejects this. */ 8616 char const *const *pcpcc; 8617 char **ppc; 8618 /* NEC SVR4.0.2 mips cc rejects this. */ 8619 struct point {int x, y;}; 8620 static struct point const zero = {0,0}; 8621 /* AIX XL C 1.02.0.0 rejects this. 8622 It does not let you subtract one const X* pointer from another in 8623 an arm of an if-expression whose if-part is not a constant 8624 expression */ 8625 const char *g = "string"; 8626 pcpcc = &g + (g ? g-g : 0); 8627 /* HPUX 7.0 cc rejects these. */ 8628 ++pcpcc; 8629 ppc = (char**) pcpcc; 8630 pcpcc = (char const *const *) ppc; 8631 { /* SCO 3.2v4 cc rejects this. */ 8632 char *t; 8633 char const *s = 0 ? (char *) 0 : (char const *) 0; 8634 8635 *t++ = 0; 8636 if (s) return 0; 8637 } 8638 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8639 int x[] = {25, 17}; 8640 const int *foo = &x[0]; 8641 ++foo; 8642 } 8643 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8644 typedef const int *iptr; 8645 iptr p = 0; 8646 ++p; 8647 } 8648 { /* AIX XL C 1.02.0.0 rejects this saying 8649 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8650 struct s { int j; const int *ap[3]; }; 8651 struct s *b; b->j = 5; 8652 } 8653 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8654 const int foo = 10; 8655 if (!foo) return 0; 8656 } 8657 return !cs[0] && !zero.x; 8658#endif 8659 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664rm -f conftest.$ac_objext 8665if { (ac_try="$ac_compile" 8666case "(($ac_try" in 8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8668 *) ac_try_echo=$ac_try;; 8669esac 8670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8671$as_echo "$ac_try_echo") >&5 8672 (eval "$ac_compile") 2>conftest.er1 8673 ac_status=$? 8674 grep -v '^ *+' conftest.er1 >conftest.err 8675 rm -f conftest.er1 8676 cat conftest.err >&5 8677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8678 (exit $ac_status); } && { 8679 test -z "$ac_c_werror_flag" || 8680 test ! -s conftest.err 8681 } && test -s conftest.$ac_objext; then 8682 ac_cv_c_const=yes 8683else 8684 $as_echo "$as_me: failed program was:" >&5 8685sed 's/^/| /' conftest.$ac_ext >&5 8686 8687 ac_cv_c_const=no 8688fi 8689 8690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8691fi 8692{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8693$as_echo "$ac_cv_c_const" >&6; } 8694if test $ac_cv_c_const = no; then 8695 8696cat >>confdefs.h <<\_ACEOF 8697#define const /**/ 8698_ACEOF 8699 8700fi 8701 8702 8703 8704ac_config_files="$ac_config_files Makefile" 8705 8706ac_config_files="$ac_config_files src/Makefile" 8707 8708ac_config_files="$ac_config_files pixmaps/Makefile" 8709 8710ac_config_files="$ac_config_files po/Makefile.in" 8711 8712ac_config_files="$ac_config_files gringotts.spec" 8713 8714ac_config_files="$ac_config_files gringotts.desktop" 8715 8716cat >confcache <<\_ACEOF 8717# This file is a shell script that caches the results of configure 8718# tests run on this system so they can be shared between configure 8719# scripts and configure runs, see configure's option --config-cache. 8720# It is not useful on other systems. If it contains results you don't 8721# want to keep, you may remove or edit it. 8722# 8723# config.status only pays attention to the cache file if you give it 8724# the --recheck option to rerun configure. 8725# 8726# `ac_cv_env_foo' variables (set or unset) will be overridden when 8727# loading this file, other *unset* `ac_cv_foo' will be assigned the 8728# following values. 8729 8730_ACEOF 8731 8732# The following way of writing the cache mishandles newlines in values, 8733# but we know of no workaround that is simple, portable, and efficient. 8734# So, we kill variables containing newlines. 8735# Ultrix sh set writes to stderr and can't be redirected directly, 8736# and sets the high bit in the cache file unless we assign to the vars. 8737( 8738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8739 eval ac_val=\$$ac_var 8740 case $ac_val in #( 8741 *${as_nl}*) 8742 case $ac_var in #( 8743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 8744$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8745 esac 8746 case $ac_var in #( 8747 _ | IFS | as_nl) ;; #( 8748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8749 *) $as_unset $ac_var ;; 8750 esac ;; 8751 esac 8752 done 8753 8754 (set) 2>&1 | 8755 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8756 *${as_nl}ac_space=\ *) 8757 # `set' does not quote correctly, so add quotes (double-quote 8758 # substitution turns \\\\ into \\, and sed turns \\ into \). 8759 sed -n \ 8760 "s/'/'\\\\''/g; 8761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8762 ;; #( 8763 *) 8764 # `set' quotes correctly as required by POSIX, so do not add quotes. 8765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8766 ;; 8767 esac | 8768 sort 8769) | 8770 sed ' 8771 /^ac_cv_env_/b end 8772 t clear 8773 :clear 8774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8775 t end 8776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8777 :end' >>confcache 8778if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8779 if test -w "$cache_file"; then 8780 test "x$cache_file" != "x/dev/null" && 8781 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 8782$as_echo "$as_me: updating cache $cache_file" >&6;} 8783 cat confcache >$cache_file 8784 else 8785 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8786$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8787 fi 8788fi 8789rm -f confcache 8790 8791test "x$prefix" = xNONE && prefix=$ac_default_prefix 8792# Let make expand exec_prefix. 8793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8794 8795DEFS=-DHAVE_CONFIG_H 8796 8797ac_libobjs= 8798ac_ltlibobjs= 8799for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8800 # 1. Remove the extension, and $U if already installed. 8801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8804 # will be set to the directory where LIBOBJS objects are built. 8805 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8806 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8807done 8808LIBOBJS=$ac_libobjs 8809 8810LTLIBOBJS=$ac_ltlibobjs 8811 8812 8813if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8814 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 8815Usually this means the macro was only invoked conditionally." >&5 8816$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 8817Usually this means the macro was only invoked conditionally." >&2;} 8818 { (exit 1); exit 1; }; } 8819fi 8820if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8821 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 8822Usually this means the macro was only invoked conditionally." >&5 8823$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 8824Usually this means the macro was only invoked conditionally." >&2;} 8825 { (exit 1); exit 1; }; } 8826fi 8827 8828: ${CONFIG_STATUS=./config.status} 8829ac_write_fail=0 8830ac_clean_files_save=$ac_clean_files 8831ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8832{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8833$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8834cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8835#! $SHELL 8836# Generated by $as_me. 8837# Run this file to recreate the current configuration. 8838# Compiler output produced by configure, useful for debugging 8839# configure, is in config.log if it exists. 8840 8841debug=false 8842ac_cs_recheck=false 8843ac_cs_silent=false 8844SHELL=\${CONFIG_SHELL-$SHELL} 8845_ACEOF 8846 8847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8848## --------------------- ## 8849## M4sh Initialization. ## 8850## --------------------- ## 8851 8852# Be more Bourne compatible 8853DUALCASE=1; export DUALCASE # for MKS sh 8854if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8855 emulate sh 8856 NULLCMD=: 8857 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8858 # is contrary to our usage. Disable this feature. 8859 alias -g '${1+"$@"}'='"$@"' 8860 setopt NO_GLOB_SUBST 8861else 8862 case `(set -o) 2>/dev/null` in 8863 *posix*) set -o posix ;; 8864esac 8865 8866fi 8867 8868 8869 8870 8871# PATH needs CR 8872# Avoid depending upon Character Ranges. 8873as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8875as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8876as_cr_digits='0123456789' 8877as_cr_alnum=$as_cr_Letters$as_cr_digits 8878 8879as_nl=' 8880' 8881export as_nl 8882# Printing a long string crashes Solaris 7 /usr/bin/printf. 8883as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8884as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8886if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8887 as_echo='printf %s\n' 8888 as_echo_n='printf %s' 8889else 8890 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8891 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8892 as_echo_n='/usr/ucb/echo -n' 8893 else 8894 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8895 as_echo_n_body='eval 8896 arg=$1; 8897 case $arg in 8898 *"$as_nl"*) 8899 expr "X$arg" : "X\\(.*\\)$as_nl"; 8900 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8901 esac; 8902 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8903 ' 8904 export as_echo_n_body 8905 as_echo_n='sh -c $as_echo_n_body as_echo' 8906 fi 8907 export as_echo_body 8908 as_echo='sh -c $as_echo_body as_echo' 8909fi 8910 8911# The user is always right. 8912if test "${PATH_SEPARATOR+set}" != set; then 8913 PATH_SEPARATOR=: 8914 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8915 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8916 PATH_SEPARATOR=';' 8917 } 8918fi 8919 8920# Support unset when possible. 8921if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8922 as_unset=unset 8923else 8924 as_unset=false 8925fi 8926 8927 8928# IFS 8929# We need space, tab and new line, in precisely that order. Quoting is 8930# there to prevent editors from complaining about space-tab. 8931# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8932# splitting by setting IFS to empty value.) 8933IFS=" "" $as_nl" 8934 8935# Find who we are. Look in the path if we contain no directory separator. 8936case $0 in 8937 *[\\/]* ) as_myself=$0 ;; 8938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8939for as_dir in $PATH 8940do 8941 IFS=$as_save_IFS 8942 test -z "$as_dir" && as_dir=. 8943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8944done 8945IFS=$as_save_IFS 8946 8947 ;; 8948esac 8949# We did not find ourselves, most probably we were run as `sh COMMAND' 8950# in which case we are not to be found in the path. 8951if test "x$as_myself" = x; then 8952 as_myself=$0 8953fi 8954if test ! -f "$as_myself"; then 8955 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8956 { (exit 1); exit 1; } 8957fi 8958 8959# Work around bugs in pre-3.0 UWIN ksh. 8960for as_var in ENV MAIL MAILPATH 8961do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8962done 8963PS1='$ ' 8964PS2='> ' 8965PS4='+ ' 8966 8967# NLS nuisances. 8968LC_ALL=C 8969export LC_ALL 8970LANGUAGE=C 8971export LANGUAGE 8972 8973# Required to use basename. 8974if expr a : '\(a\)' >/dev/null 2>&1 && 8975 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8976 as_expr=expr 8977else 8978 as_expr=false 8979fi 8980 8981if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8982 as_basename=basename 8983else 8984 as_basename=false 8985fi 8986 8987 8988# Name of the executable. 8989as_me=`$as_basename -- "$0" || 8990$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8991 X"$0" : 'X\(//\)$' \| \ 8992 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8993$as_echo X/"$0" | 8994 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8995 s//\1/ 8996 q 8997 } 8998 /^X\/\(\/\/\)$/{ 8999 s//\1/ 9000 q 9001 } 9002 /^X\/\(\/\).*/{ 9003 s//\1/ 9004 q 9005 } 9006 s/.*/./; q'` 9007 9008# CDPATH. 9009$as_unset CDPATH 9010 9011 9012 9013 as_lineno_1=$LINENO 9014 as_lineno_2=$LINENO 9015 test "x$as_lineno_1" != "x$as_lineno_2" && 9016 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 9017 9018 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9019 # uniformly replaced by the line number. The first 'sed' inserts a 9020 # line-number line after each line using $LINENO; the second 'sed' 9021 # does the real work. The second script uses 'N' to pair each 9022 # line-number line with the line containing $LINENO, and appends 9023 # trailing '-' during substitution so that $LINENO is not a special 9024 # case at line end. 9025 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9026 # scripts with optimization help from Paolo Bonzini. Blame Lee 9027 # E. McMahon (1931-1989) for sed's syntax. :-) 9028 sed -n ' 9029 p 9030 /[$]LINENO/= 9031 ' <$as_myself | 9032 sed ' 9033 s/[$]LINENO.*/&-/ 9034 t lineno 9035 b 9036 :lineno 9037 N 9038 :loop 9039 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 9040 t loop 9041 s/-\n.*// 9042 ' >$as_me.lineno && 9043 chmod +x "$as_me.lineno" || 9044 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 9045 { (exit 1); exit 1; }; } 9046 9047 # Don't try to exec as it changes $[0], causing all sort of problems 9048 # (the dirname of $[0] is not the place where we might find the 9049 # original and so on. Autoconf is especially sensitive to this). 9050 . "./$as_me.lineno" 9051 # Exit status is that of the last command. 9052 exit 9053} 9054 9055 9056if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9057 as_dirname=dirname 9058else 9059 as_dirname=false 9060fi 9061 9062ECHO_C= ECHO_N= ECHO_T= 9063case `echo -n x` in 9064-n*) 9065 case `echo 'x\c'` in 9066 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9067 *) ECHO_C='\c';; 9068 esac;; 9069*) 9070 ECHO_N='-n';; 9071esac 9072if expr a : '\(a\)' >/dev/null 2>&1 && 9073 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9074 as_expr=expr 9075else 9076 as_expr=false 9077fi 9078 9079rm -f conf$$ conf$$.exe conf$$.file 9080if test -d conf$$.dir; then 9081 rm -f conf$$.dir/conf$$.file 9082else 9083 rm -f conf$$.dir 9084 mkdir conf$$.dir 2>/dev/null 9085fi 9086if (echo >conf$$.file) 2>/dev/null; then 9087 if ln -s conf$$.file conf$$ 2>/dev/null; then 9088 as_ln_s='ln -s' 9089 # ... but there are two gotchas: 9090 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9091 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9092 # In both cases, we have to default to `cp -p'. 9093 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9094 as_ln_s='cp -p' 9095 elif ln conf$$.file conf$$ 2>/dev/null; then 9096 as_ln_s=ln 9097 else 9098 as_ln_s='cp -p' 9099 fi 9100else 9101 as_ln_s='cp -p' 9102fi 9103rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9104rmdir conf$$.dir 2>/dev/null 9105 9106if mkdir -p . 2>/dev/null; then 9107 as_mkdir_p=: 9108else 9109 test -d ./-p && rmdir ./-p 9110 as_mkdir_p=false 9111fi 9112 9113if test -x / >/dev/null 2>&1; then 9114 as_test_x='test -x' 9115else 9116 if ls -dL / >/dev/null 2>&1; then 9117 as_ls_L_option=L 9118 else 9119 as_ls_L_option= 9120 fi 9121 as_test_x=' 9122 eval sh -c '\'' 9123 if test -d "$1"; then 9124 test -d "$1/."; 9125 else 9126 case $1 in 9127 -*)set "./$1";; 9128 esac; 9129 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 9130 ???[sx]*):;;*)false;;esac;fi 9131 '\'' sh 9132 ' 9133fi 9134as_executable_p=$as_test_x 9135 9136# Sed expression to map a string onto a valid CPP name. 9137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9138 9139# Sed expression to map a string onto a valid variable name. 9140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9141 9142 9143exec 6>&1 9144 9145# Save the log message, to keep $[0] and so on meaningful, and to 9146# report actual input values of CONFIG_FILES etc. instead of their 9147# values after options handling. 9148ac_log=" 9149This file was extended by gringotts $as_me 1.2.10, which was 9150generated by GNU Autoconf 2.63. Invocation command line was 9151 9152 CONFIG_FILES = $CONFIG_FILES 9153 CONFIG_HEADERS = $CONFIG_HEADERS 9154 CONFIG_LINKS = $CONFIG_LINKS 9155 CONFIG_COMMANDS = $CONFIG_COMMANDS 9156 $ $0 $@ 9157 9158on `(hostname || uname -n) 2>/dev/null | sed 1q` 9159" 9160 9161_ACEOF 9162 9163case $ac_config_files in *" 9164"*) set x $ac_config_files; shift; ac_config_files=$*;; 9165esac 9166 9167case $ac_config_headers in *" 9168"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9169esac 9170 9171 9172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9173# Files that config.status was made for. 9174config_files="`echo $ac_config_files`" 9175config_headers="`echo $ac_config_headers`" 9176config_commands="`echo $ac_config_commands`" 9177 9178_ACEOF 9179 9180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9181ac_cs_usage="\ 9182\`$as_me' instantiates files from templates according to the 9183current configuration. 9184 9185Usage: $0 [OPTION]... [FILE]... 9186 9187 -h, --help print this help, then exit 9188 -V, --version print version number and configuration settings, then exit 9189 -q, --quiet, --silent 9190 do not print progress messages 9191 -d, --debug don't remove temporary files 9192 --recheck update $as_me by reconfiguring in the same conditions 9193 --file=FILE[:TEMPLATE] 9194 instantiate the configuration file FILE 9195 --header=FILE[:TEMPLATE] 9196 instantiate the configuration header FILE 9197 9198Configuration files: 9199$config_files 9200 9201Configuration headers: 9202$config_headers 9203 9204Configuration commands: 9205$config_commands 9206 9207Report bugs to <bug-autoconf@gnu.org>." 9208 9209_ACEOF 9210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9211ac_cs_version="\\ 9212gringotts config.status 1.2.10 9213configured by $0, generated by GNU Autoconf 2.63, 9214 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 9215 9216Copyright (C) 2008 Free Software Foundation, Inc. 9217This config.status script is free software; the Free Software Foundation 9218gives unlimited permission to copy, distribute and modify it." 9219 9220ac_pwd='$ac_pwd' 9221srcdir='$srcdir' 9222INSTALL='$INSTALL' 9223MKDIR_P='$MKDIR_P' 9224AWK='$AWK' 9225test -n "\$AWK" || AWK=awk 9226_ACEOF 9227 9228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9229# The default lists apply if the user does not specify any file. 9230ac_need_defaults=: 9231while test $# != 0 9232do 9233 case $1 in 9234 --*=*) 9235 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9237 ac_shift=: 9238 ;; 9239 *) 9240 ac_option=$1 9241 ac_optarg=$2 9242 ac_shift=shift 9243 ;; 9244 esac 9245 9246 case $ac_option in 9247 # Handling of the options. 9248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9249 ac_cs_recheck=: ;; 9250 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9251 $as_echo "$ac_cs_version"; exit ;; 9252 --debug | --debu | --deb | --de | --d | -d ) 9253 debug=: ;; 9254 --file | --fil | --fi | --f ) 9255 $ac_shift 9256 case $ac_optarg in 9257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9258 esac 9259 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 9260 ac_need_defaults=false;; 9261 --header | --heade | --head | --hea ) 9262 $ac_shift 9263 case $ac_optarg in 9264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9265 esac 9266 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 9267 ac_need_defaults=false;; 9268 --he | --h) 9269 # Conflict between --help and --header 9270 { $as_echo "$as_me: error: ambiguous option: $1 9271Try \`$0 --help' for more information." >&2 9272 { (exit 1); exit 1; }; };; 9273 --help | --hel | -h ) 9274 $as_echo "$ac_cs_usage"; exit ;; 9275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9276 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9277 ac_cs_silent=: ;; 9278 9279 # This is an error. 9280 -*) { $as_echo "$as_me: error: unrecognized option: $1 9281Try \`$0 --help' for more information." >&2 9282 { (exit 1); exit 1; }; } ;; 9283 9284 *) ac_config_targets="$ac_config_targets $1" 9285 ac_need_defaults=false ;; 9286 9287 esac 9288 shift 9289done 9290 9291ac_configure_extra_args= 9292 9293if $ac_cs_silent; then 9294 exec 6>/dev/null 9295 ac_configure_extra_args="$ac_configure_extra_args --silent" 9296fi 9297 9298_ACEOF 9299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9300if \$ac_cs_recheck; then 9301 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9302 shift 9303 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9304 CONFIG_SHELL='$SHELL' 9305 export CONFIG_SHELL 9306 exec "\$@" 9307fi 9308 9309_ACEOF 9310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9311exec 5>>config.log 9312{ 9313 echo 9314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9315## Running $as_me. ## 9316_ASBOX 9317 $as_echo "$ac_log" 9318} >&5 9319 9320_ACEOF 9321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9322# 9323# INIT-COMMANDS 9324# 9325AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9326 9327 9328_ACEOF 9329 9330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9331 9332# Handling of arguments. 9333for ac_config_target in $ac_config_targets 9334do 9335 case $ac_config_target in 9336 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9338 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 9339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9340 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 9341 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 9342 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 9343 "gringotts.spec") CONFIG_FILES="$CONFIG_FILES gringotts.spec" ;; 9344 "gringotts.desktop") CONFIG_FILES="$CONFIG_FILES gringotts.desktop" ;; 9345 9346 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9347$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9348 { (exit 1); exit 1; }; };; 9349 esac 9350done 9351 9352 9353# If the user did not use the arguments to specify the items to instantiate, 9354# then the envvar interface is used. Set only those that are not. 9355# We use the long form for the default assignment because of an extremely 9356# bizarre bug on SunOS 4.1.3. 9357if $ac_need_defaults; then 9358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9360 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9361fi 9362 9363# Have a temporary directory for convenience. Make it in the build tree 9364# simply because there is no reason against having it here, and in addition, 9365# creating and moving files from /tmp can sometimes cause problems. 9366# Hook for its removal unless debugging. 9367# Note that there is a small window in which the directory will not be cleaned: 9368# after its creation but before its name has been assigned to `$tmp'. 9369$debug || 9370{ 9371 tmp= 9372 trap 'exit_status=$? 9373 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9374' 0 9375 trap '{ (exit 1); exit 1; }' 1 2 13 15 9376} 9377# Create a (secure) tmp directory for tmp files. 9378 9379{ 9380 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9381 test -n "$tmp" && test -d "$tmp" 9382} || 9383{ 9384 tmp=./conf$$-$RANDOM 9385 (umask 077 && mkdir "$tmp") 9386} || 9387{ 9388 $as_echo "$as_me: cannot create a temporary directory in ." >&2 9389 { (exit 1); exit 1; } 9390} 9391 9392# Set up the scripts for CONFIG_FILES section. 9393# No need to generate them if there are no CONFIG_FILES. 9394# This happens for instance with `./config.status config.h'. 9395if test -n "$CONFIG_FILES"; then 9396 9397 9398ac_cr=' 9399' 9400ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9401if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9402 ac_cs_awk_cr='\\r' 9403else 9404 ac_cs_awk_cr=$ac_cr 9405fi 9406 9407echo 'BEGIN {' >"$tmp/subs1.awk" && 9408_ACEOF 9409 9410 9411{ 9412 echo "cat >conf$$subs.awk <<_ACEOF" && 9413 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9414 echo "_ACEOF" 9415} >conf$$subs.sh || 9416 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 9417$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 9418 { (exit 1); exit 1; }; } 9419ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 9420ac_delim='%!_!# ' 9421for ac_last_try in false false false false false :; do 9422 . ./conf$$subs.sh || 9423 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 9424$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 9425 { (exit 1); exit 1; }; } 9426 9427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9428 if test $ac_delim_n = $ac_delim_num; then 9429 break 9430 elif $ac_last_try; then 9431 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 9432$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 9433 { (exit 1); exit 1; }; } 9434 else 9435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9436 fi 9437done 9438rm -f conf$$subs.sh 9439 9440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9441cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 9442_ACEOF 9443sed -n ' 9444h 9445s/^/S["/; s/!.*/"]=/ 9446p 9447g 9448s/^[^!]*!// 9449:repl 9450t repl 9451s/'"$ac_delim"'$// 9452t delim 9453:nl 9454h 9455s/\(.\{148\}\).*/\1/ 9456t more1 9457s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9458p 9459n 9460b repl 9461:more1 9462s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9463p 9464g 9465s/.\{148\}// 9466t nl 9467:delim 9468h 9469s/\(.\{148\}\).*/\1/ 9470t more2 9471s/["\\]/\\&/g; s/^/"/; s/$/"/ 9472p 9473b 9474:more2 9475s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9476p 9477g 9478s/.\{148\}// 9479t delim 9480' <conf$$subs.awk | sed ' 9481/^[^""]/{ 9482 N 9483 s/\n// 9484} 9485' >>$CONFIG_STATUS || ac_write_fail=1 9486rm -f conf$$subs.awk 9487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9488_ACAWK 9489cat >>"\$tmp/subs1.awk" <<_ACAWK && 9490 for (key in S) S_is_set[key] = 1 9491 FS = "" 9492 9493} 9494{ 9495 line = $ 0 9496 nfields = split(line, field, "@") 9497 substed = 0 9498 len = length(field[1]) 9499 for (i = 2; i < nfields; i++) { 9500 key = field[i] 9501 keylen = length(key) 9502 if (S_is_set[key]) { 9503 value = S[key] 9504 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9505 len += length(value) + length(field[++i]) 9506 substed = 1 9507 } else 9508 len += 1 + keylen 9509 } 9510 9511 print line 9512} 9513 9514_ACAWK 9515_ACEOF 9516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9517if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9518 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9519else 9520 cat 9521fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 9522 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 9523$as_echo "$as_me: error: could not setup config files machinery" >&2;} 9524 { (exit 1); exit 1; }; } 9525_ACEOF 9526 9527# VPATH may cause trouble with some makes, so we remove $(srcdir), 9528# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9529# trailing colons and then remove the whole line if VPATH becomes empty 9530# (actually we leave an empty line to preserve line numbers). 9531if test "x$srcdir" = x.; then 9532 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9533s/:*\$(srcdir):*/:/ 9534s/:*\${srcdir}:*/:/ 9535s/:*@srcdir@:*/:/ 9536s/^\([^=]*=[ ]*\):*/\1/ 9537s/:*$// 9538s/^[^=]*=[ ]*$// 9539}' 9540fi 9541 9542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9543fi # test -n "$CONFIG_FILES" 9544 9545# Set up the scripts for CONFIG_HEADERS section. 9546# No need to generate them if there are no CONFIG_HEADERS. 9547# This happens for instance with `./config.status Makefile'. 9548if test -n "$CONFIG_HEADERS"; then 9549cat >"$tmp/defines.awk" <<\_ACAWK || 9550BEGIN { 9551_ACEOF 9552 9553# Transform confdefs.h into an awk script `defines.awk', embedded as 9554# here-document in config.status, that substitutes the proper values into 9555# config.h.in to produce config.h. 9556 9557# Create a delimiter string that does not exist in confdefs.h, to ease 9558# handling of long lines. 9559ac_delim='%!_!# ' 9560for ac_last_try in false false :; do 9561 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 9562 if test -z "$ac_t"; then 9563 break 9564 elif $ac_last_try; then 9565 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 9566$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 9567 { (exit 1); exit 1; }; } 9568 else 9569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9570 fi 9571done 9572 9573# For the awk script, D is an array of macro values keyed by name, 9574# likewise P contains macro parameters if any. Preserve backslash 9575# newline sequences. 9576 9577ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9578sed -n ' 9579s/.\{148\}/&'"$ac_delim"'/g 9580t rset 9581:rset 9582s/^[ ]*#[ ]*define[ ][ ]*/ / 9583t def 9584d 9585:def 9586s/\\$// 9587t bsnl 9588s/["\\]/\\&/g 9589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9590D["\1"]=" \3"/p 9591s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9592d 9593:bsnl 9594s/["\\]/\\&/g 9595s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9596D["\1"]=" \3\\\\\\n"\\/p 9597t cont 9598s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9599t cont 9600d 9601:cont 9602n 9603s/.\{148\}/&'"$ac_delim"'/g 9604t clear 9605:clear 9606s/\\$// 9607t bsnlc 9608s/["\\]/\\&/g; s/^/"/; s/$/"/p 9609d 9610:bsnlc 9611s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9612b cont 9613' <confdefs.h | sed ' 9614s/'"$ac_delim"'/"\\\ 9615"/g' >>$CONFIG_STATUS || ac_write_fail=1 9616 9617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9618 for (key in D) D_is_set[key] = 1 9619 FS = "" 9620} 9621/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9622 line = \$ 0 9623 split(line, arg, " ") 9624 if (arg[1] == "#") { 9625 defundef = arg[2] 9626 mac1 = arg[3] 9627 } else { 9628 defundef = substr(arg[1], 2) 9629 mac1 = arg[2] 9630 } 9631 split(mac1, mac2, "(") #) 9632 macro = mac2[1] 9633 prefix = substr(line, 1, index(line, defundef) - 1) 9634 if (D_is_set[macro]) { 9635 # Preserve the white space surrounding the "#". 9636 print prefix "define", macro P[macro] D[macro] 9637 next 9638 } else { 9639 # Replace #undef with comments. This is necessary, for example, 9640 # in the case of _POSIX_SOURCE, which is predefined and required 9641 # on some systems where configure will not decide to define it. 9642 if (defundef == "undef") { 9643 print "/*", prefix defundef, macro, "*/" 9644 next 9645 } 9646 } 9647} 9648{ print } 9649_ACAWK 9650_ACEOF 9651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9652 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 9653$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 9654 { (exit 1); exit 1; }; } 9655fi # test -n "$CONFIG_HEADERS" 9656 9657 9658eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9659shift 9660for ac_tag 9661do 9662 case $ac_tag in 9663 :[FHLC]) ac_mode=$ac_tag; continue;; 9664 esac 9665 case $ac_mode$ac_tag in 9666 :[FHL]*:*);; 9667 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 9668$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 9669 { (exit 1); exit 1; }; };; 9670 :[FH]-) ac_tag=-:-;; 9671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9672 esac 9673 ac_save_IFS=$IFS 9674 IFS=: 9675 set x $ac_tag 9676 IFS=$ac_save_IFS 9677 shift 9678 ac_file=$1 9679 shift 9680 9681 case $ac_mode in 9682 :L) ac_source=$1;; 9683 :[FH]) 9684 ac_file_inputs= 9685 for ac_f 9686 do 9687 case $ac_f in 9688 -) ac_f="$tmp/stdin";; 9689 *) # Look for the file first in the build tree, then in the source tree 9690 # (if the path is not absolute). The absolute path cannot be DOS-style, 9691 # because $ac_f cannot contain `:'. 9692 test -f "$ac_f" || 9693 case $ac_f in 9694 [\\/$]*) false;; 9695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9696 esac || 9697 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 9698$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 9699 { (exit 1); exit 1; }; };; 9700 esac 9701 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9702 ac_file_inputs="$ac_file_inputs '$ac_f'" 9703 done 9704 9705 # Let's still pretend it is `configure' which instantiates (i.e., don't 9706 # use $as_me), people would be surprised to read: 9707 # /* config.h. Generated by config.status. */ 9708 configure_input='Generated from '` 9709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9710 `' by configure.' 9711 if test x"$ac_file" != x-; then 9712 configure_input="$ac_file. $configure_input" 9713 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 9714$as_echo "$as_me: creating $ac_file" >&6;} 9715 fi 9716 # Neutralize special characters interpreted by sed in replacement strings. 9717 case $configure_input in #( 9718 *\&* | *\|* | *\\* ) 9719 ac_sed_conf_input=`$as_echo "$configure_input" | 9720 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9721 *) ac_sed_conf_input=$configure_input;; 9722 esac 9723 9724 case $ac_tag in 9725 *:-:* | *:-) cat >"$tmp/stdin" \ 9726 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 9727$as_echo "$as_me: error: could not create $ac_file" >&2;} 9728 { (exit 1); exit 1; }; } ;; 9729 esac 9730 ;; 9731 esac 9732 9733 ac_dir=`$as_dirname -- "$ac_file" || 9734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9735 X"$ac_file" : 'X\(//\)[^/]' \| \ 9736 X"$ac_file" : 'X\(//\)$' \| \ 9737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9738$as_echo X"$ac_file" | 9739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9740 s//\1/ 9741 q 9742 } 9743 /^X\(\/\/\)[^/].*/{ 9744 s//\1/ 9745 q 9746 } 9747 /^X\(\/\/\)$/{ 9748 s//\1/ 9749 q 9750 } 9751 /^X\(\/\).*/{ 9752 s//\1/ 9753 q 9754 } 9755 s/.*/./; q'` 9756 { as_dir="$ac_dir" 9757 case $as_dir in #( 9758 -*) as_dir=./$as_dir;; 9759 esac 9760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 9761 as_dirs= 9762 while :; do 9763 case $as_dir in #( 9764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9765 *) as_qdir=$as_dir;; 9766 esac 9767 as_dirs="'$as_qdir' $as_dirs" 9768 as_dir=`$as_dirname -- "$as_dir" || 9769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9770 X"$as_dir" : 'X\(//\)[^/]' \| \ 9771 X"$as_dir" : 'X\(//\)$' \| \ 9772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9773$as_echo X"$as_dir" | 9774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9775 s//\1/ 9776 q 9777 } 9778 /^X\(\/\/\)[^/].*/{ 9779 s//\1/ 9780 q 9781 } 9782 /^X\(\/\/\)$/{ 9783 s//\1/ 9784 q 9785 } 9786 /^X\(\/\).*/{ 9787 s//\1/ 9788 q 9789 } 9790 s/.*/./; q'` 9791 test -d "$as_dir" && break 9792 done 9793 test -z "$as_dirs" || eval "mkdir $as_dirs" 9794 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9795$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 9796 { (exit 1); exit 1; }; }; } 9797 ac_builddir=. 9798 9799case "$ac_dir" in 9800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9801*) 9802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9803 # A ".." for each directory in $ac_dir_suffix. 9804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9805 case $ac_top_builddir_sub in 9806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9808 esac ;; 9809esac 9810ac_abs_top_builddir=$ac_pwd 9811ac_abs_builddir=$ac_pwd$ac_dir_suffix 9812# for backward compatibility: 9813ac_top_builddir=$ac_top_build_prefix 9814 9815case $srcdir in 9816 .) # We are building in place. 9817 ac_srcdir=. 9818 ac_top_srcdir=$ac_top_builddir_sub 9819 ac_abs_top_srcdir=$ac_pwd ;; 9820 [\\/]* | ?:[\\/]* ) # Absolute name. 9821 ac_srcdir=$srcdir$ac_dir_suffix; 9822 ac_top_srcdir=$srcdir 9823 ac_abs_top_srcdir=$srcdir ;; 9824 *) # Relative name. 9825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9826 ac_top_srcdir=$ac_top_build_prefix$srcdir 9827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9828esac 9829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9830 9831 9832 case $ac_mode in 9833 :F) 9834 # 9835 # CONFIG_FILE 9836 # 9837 9838 case $INSTALL in 9839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9841 esac 9842 ac_MKDIR_P=$MKDIR_P 9843 case $MKDIR_P in 9844 [\\/$]* | ?:[\\/]* ) ;; 9845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 9846 esac 9847_ACEOF 9848 9849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9850# If the template does not know about datarootdir, expand it. 9851# FIXME: This hack should be removed a few years after 2.60. 9852ac_datarootdir_hack=; ac_datarootdir_seen= 9853 9854ac_sed_dataroot=' 9855/datarootdir/ { 9856 p 9857 q 9858} 9859/@datadir@/p 9860/@docdir@/p 9861/@infodir@/p 9862/@localedir@/p 9863/@mandir@/p 9864' 9865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9866*datarootdir*) ac_datarootdir_seen=yes;; 9867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9869$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9870_ACEOF 9871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9872 ac_datarootdir_hack=' 9873 s&@datadir@&$datadir&g 9874 s&@docdir@&$docdir&g 9875 s&@infodir@&$infodir&g 9876 s&@localedir@&$localedir&g 9877 s&@mandir@&$mandir&g 9878 s&\\\${datarootdir}&$datarootdir&g' ;; 9879esac 9880_ACEOF 9881 9882# Neutralize VPATH when `$srcdir' = `.'. 9883# Shell code in configure.ac might set extrasub. 9884# FIXME: do we really want to maintain this feature? 9885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9886ac_sed_extra="$ac_vpsub 9887$extrasub 9888_ACEOF 9889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9890:t 9891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9892s|@configure_input@|$ac_sed_conf_input|;t t 9893s&@top_builddir@&$ac_top_builddir_sub&;t t 9894s&@top_build_prefix@&$ac_top_build_prefix&;t t 9895s&@srcdir@&$ac_srcdir&;t t 9896s&@abs_srcdir@&$ac_abs_srcdir&;t t 9897s&@top_srcdir@&$ac_top_srcdir&;t t 9898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9899s&@builddir@&$ac_builddir&;t t 9900s&@abs_builddir@&$ac_abs_builddir&;t t 9901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9902s&@INSTALL@&$ac_INSTALL&;t t 9903s&@MKDIR_P@&$ac_MKDIR_P&;t t 9904$ac_datarootdir_hack 9905" 9906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 9907 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 9908$as_echo "$as_me: error: could not create $ac_file" >&2;} 9909 { (exit 1); exit 1; }; } 9910 9911test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9912 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9915which seems to be undefined. Please make sure it is defined." >&5 9916$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9917which seems to be undefined. Please make sure it is defined." >&2;} 9918 9919 rm -f "$tmp/stdin" 9920 case $ac_file in 9921 -) cat "$tmp/out" && rm -f "$tmp/out";; 9922 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 9923 esac \ 9924 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 9925$as_echo "$as_me: error: could not create $ac_file" >&2;} 9926 { (exit 1); exit 1; }; } 9927 ;; 9928 :H) 9929 # 9930 # CONFIG_HEADER 9931 # 9932 if test x"$ac_file" != x-; then 9933 { 9934 $as_echo "/* $configure_input */" \ 9935 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 9936 } >"$tmp/config.h" \ 9937 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 9938$as_echo "$as_me: error: could not create $ac_file" >&2;} 9939 { (exit 1); exit 1; }; } 9940 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 9941 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9942$as_echo "$as_me: $ac_file is unchanged" >&6;} 9943 else 9944 rm -f "$ac_file" 9945 mv "$tmp/config.h" "$ac_file" \ 9946 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 9947$as_echo "$as_me: error: could not create $ac_file" >&2;} 9948 { (exit 1); exit 1; }; } 9949 fi 9950 else 9951 $as_echo "/* $configure_input */" \ 9952 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 9953 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 9954$as_echo "$as_me: error: could not create -" >&2;} 9955 { (exit 1); exit 1; }; } 9956 fi 9957# Compute "$ac_file"'s index in $config_headers. 9958_am_arg="$ac_file" 9959_am_stamp_count=1 9960for _am_header in $config_headers :; do 9961 case $_am_header in 9962 $_am_arg | $_am_arg:* ) 9963 break ;; 9964 * ) 9965 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9966 esac 9967done 9968echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 9969$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9970 X"$_am_arg" : 'X\(//\)[^/]' \| \ 9971 X"$_am_arg" : 'X\(//\)$' \| \ 9972 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 9973$as_echo X"$_am_arg" | 9974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9975 s//\1/ 9976 q 9977 } 9978 /^X\(\/\/\)[^/].*/{ 9979 s//\1/ 9980 q 9981 } 9982 /^X\(\/\/\)$/{ 9983 s//\1/ 9984 q 9985 } 9986 /^X\(\/\).*/{ 9987 s//\1/ 9988 q 9989 } 9990 s/.*/./; q'`/stamp-h$_am_stamp_count 9991 ;; 9992 9993 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 9994$as_echo "$as_me: executing $ac_file commands" >&6;} 9995 ;; 9996 esac 9997 9998 9999 case $ac_file$ac_mode in 10000 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 10001 # Strip MF so we end up with the name of the file. 10002 mf=`echo "$mf" | sed -e 's/:.*$//'` 10003 # Check whether this is an Automake generated Makefile or not. 10004 # We used to match only the files named `Makefile.in', but 10005 # some people rename them; so instead we look at the file content. 10006 # Grep'ing the first line is not enough: some people post-process 10007 # each Makefile.in and add a new line on top of each file to say so. 10008 # Grep'ing the whole file is not good either: AIX grep has a line 10009 # limit of 2048, but all sed's we know have understand at least 4000. 10010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10011 dirpart=`$as_dirname -- "$mf" || 10012$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10013 X"$mf" : 'X\(//\)[^/]' \| \ 10014 X"$mf" : 'X\(//\)$' \| \ 10015 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 10016$as_echo X"$mf" | 10017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10018 s//\1/ 10019 q 10020 } 10021 /^X\(\/\/\)[^/].*/{ 10022 s//\1/ 10023 q 10024 } 10025 /^X\(\/\/\)$/{ 10026 s//\1/ 10027 q 10028 } 10029 /^X\(\/\).*/{ 10030 s//\1/ 10031 q 10032 } 10033 s/.*/./; q'` 10034 else 10035 continue 10036 fi 10037 # Extract the definition of DEPDIR, am__include, and am__quote 10038 # from the Makefile without running `make'. 10039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10040 test -z "$DEPDIR" && continue 10041 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10042 test -z "am__include" && continue 10043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10044 # When using ansi2knr, U may be empty or an underscore; expand it 10045 U=`sed -n 's/^U = //p' < "$mf"` 10046 # Find all dependency output files, they are included files with 10047 # $(DEPDIR) in their names. We invoke sed twice because it is the 10048 # simplest approach to changing $(DEPDIR) to its actual value in the 10049 # expansion. 10050 for file in `sed -n " 10051 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10052 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10053 # Make sure the directory exists. 10054 test -f "$dirpart/$file" && continue 10055 fdir=`$as_dirname -- "$file" || 10056$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10057 X"$file" : 'X\(//\)[^/]' \| \ 10058 X"$file" : 'X\(//\)$' \| \ 10059 X"$file" : 'X\(/\)' \| . 2>/dev/null || 10060$as_echo X"$file" | 10061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10062 s//\1/ 10063 q 10064 } 10065 /^X\(\/\/\)[^/].*/{ 10066 s//\1/ 10067 q 10068 } 10069 /^X\(\/\/\)$/{ 10070 s//\1/ 10071 q 10072 } 10073 /^X\(\/\).*/{ 10074 s//\1/ 10075 q 10076 } 10077 s/.*/./; q'` 10078 { as_dir=$dirpart/$fdir 10079 case $as_dir in #( 10080 -*) as_dir=./$as_dir;; 10081 esac 10082 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 10083 as_dirs= 10084 while :; do 10085 case $as_dir in #( 10086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10087 *) as_qdir=$as_dir;; 10088 esac 10089 as_dirs="'$as_qdir' $as_dirs" 10090 as_dir=`$as_dirname -- "$as_dir" || 10091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10092 X"$as_dir" : 'X\(//\)[^/]' \| \ 10093 X"$as_dir" : 'X\(//\)$' \| \ 10094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10095$as_echo X"$as_dir" | 10096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10097 s//\1/ 10098 q 10099 } 10100 /^X\(\/\/\)[^/].*/{ 10101 s//\1/ 10102 q 10103 } 10104 /^X\(\/\/\)$/{ 10105 s//\1/ 10106 q 10107 } 10108 /^X\(\/\).*/{ 10109 s//\1/ 10110 q 10111 } 10112 s/.*/./; q'` 10113 test -d "$as_dir" && break 10114 done 10115 test -z "$as_dirs" || eval "mkdir $as_dirs" 10116 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 10117$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 10118 { (exit 1); exit 1; }; }; } 10119 # echo "creating $dirpart/$file" 10120 echo '# dummy' > "$dirpart/$file" 10121 done 10122done 10123 ;; 10124 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 10125 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 10126 esac ;; 10127 10128 esac 10129done # for ac_tag 10130 10131 10132{ (exit 0); exit 0; } 10133_ACEOF 10134chmod +x $CONFIG_STATUS 10135ac_clean_files=$ac_clean_files_save 10136 10137test $ac_write_fail = 0 || 10138 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 10139$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 10140 { (exit 1); exit 1; }; } 10141 10142 10143# configure is writing to config.log, and then calls config.status. 10144# config.status does its own redirection, appending to config.log. 10145# Unfortunately, on DOS this fails, as config.log is still kept open 10146# by configure, so config.status won't be able to write to it; its 10147# output is simply discarded. So we exec the FD to /dev/null, 10148# effectively closing config.log, so it can be properly (re)opened and 10149# appended to by config.status. When coming back to configure, we 10150# need to make the FD available again. 10151if test "$no_create" != yes; then 10152 ac_cs_success=: 10153 ac_config_status_args= 10154 test "$silent" = yes && 10155 ac_config_status_args="$ac_config_status_args --quiet" 10156 exec 5>/dev/null 10157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10158 exec 5>>config.log 10159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10160 # would make configure fail if this is the last instruction. 10161 $ac_cs_success || { (exit 1); exit 1; } 10162fi 10163if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10164 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10165$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10166fi 10167 10168