1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for pnm2ppa 1.13. 4# 5# Report bugs to <pnm2ppa-users@lists.sourceforge.net>. 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='pnm2ppa' 598PACKAGE_TARNAME='pnm2ppa' 599PACKAGE_VERSION='1.13' 600PACKAGE_STRING='pnm2ppa 1.13' 601PACKAGE_BUGREPORT='pnm2ppa-users@lists.sourceforge.net' 602 603ac_unique_file="ppa.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='SHELL 641PATH_SEPARATOR 642PACKAGE_NAME 643PACKAGE_TARNAME 644PACKAGE_VERSION 645PACKAGE_STRING 646PACKAGE_BUGREPORT 647exec_prefix 648prefix 649program_transform_name 650bindir 651sbindir 652libexecdir 653datarootdir 654datadir 655sysconfdir 656sharedstatedir 657localstatedir 658includedir 659oldincludedir 660docdir 661infodir 662htmldir 663dvidir 664pdfdir 665psdir 666libdir 667localedir 668mandir 669DEFS 670ECHO_C 671ECHO_N 672ECHO_T 673LIBS 674build_alias 675host_alias 676target_alias 677build 678build_cpu 679build_vendor 680build_os 681host 682host_cpu 683host_vendor 684host_os 685MAINTAINER_MODE_TRUE 686MAINTAINER_MODE_FALSE 687MAINT 688INSTALL_PROGRAM 689INSTALL_SCRIPT 690INSTALL_DATA 691am__isrc 692CYGPATH_W 693PACKAGE 694VERSION 695ACLOCAL 696AUTOCONF 697AUTOMAKE 698AUTOHEADER 699MAKEINFO 700install_sh 701STRIP 702INSTALL_STRIP_PROGRAM 703MKDIR_P 704mkdir_p 705AWK 706SET_MAKE 707am__leading_dot 708AMTAR 709am__tar 710am__untar 711CC 712CFLAGS 713LDFLAGS 714CPPFLAGS 715ac_ct_CC 716EXEEXT 717OBJEXT 718DEPDIR 719am__include 720am__quote 721AMDEP_TRUE 722AMDEP_FALSE 723AMDEPBACKSLASH 724CCDEPMODE 725am__fastdepCC_TRUE 726am__fastdepCC_FALSE 727CC_FOR_BUILD 728CPP 729GREP 730EGREP 731LIBOBJS 732PNM2PPA_DEBUG_TRUE 733PNM2PPA_DEBUG_FALSE 734BUILD_PARSE_VLINK_TRUE 735BUILD_PARSE_VLINK_FALSE 736LTLIBOBJS' 737ac_subst_files='' 738ac_user_opts=' 739enable_option_checking 740enable_maintainer_mode 741enable_dependency_tracking 742enable_syslog 743enable_debug 744with_language 745enable_vlink 746' 747 ac_precious_vars='build_alias 748host_alias 749target_alias 750CC 751CFLAGS 752LDFLAGS 753LIBS 754CPPFLAGS 755CPP' 756 757 758# Initialize some variables set by options. 759ac_init_help= 760ac_init_version=false 761ac_unrecognized_opts= 762ac_unrecognized_sep= 763# The variables have the same names as the options, with 764# dashes changed to underlines. 765cache_file=/dev/null 766exec_prefix=NONE 767no_create= 768no_recursion= 769prefix=NONE 770program_prefix=NONE 771program_suffix=NONE 772program_transform_name=s,x,x, 773silent= 774site= 775srcdir= 776verbose= 777x_includes=NONE 778x_libraries=NONE 779 780# Installation directory options. 781# These are left unexpanded so users can "make install exec_prefix=/foo" 782# and all the variables that are supposed to be based on exec_prefix 783# by default will actually change. 784# Use braces instead of parens because sh, perl, etc. also accept them. 785# (The list follows the same order as the GNU Coding Standards.) 786bindir='${exec_prefix}/bin' 787sbindir='${exec_prefix}/sbin' 788libexecdir='${exec_prefix}/libexec' 789datarootdir='${prefix}/share' 790datadir='${datarootdir}' 791sysconfdir='${prefix}/etc' 792sharedstatedir='${prefix}/com' 793localstatedir='${prefix}/var' 794includedir='${prefix}/include' 795oldincludedir='/usr/include' 796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 797infodir='${datarootdir}/info' 798htmldir='${docdir}' 799dvidir='${docdir}' 800pdfdir='${docdir}' 801psdir='${docdir}' 802libdir='${exec_prefix}/lib' 803localedir='${datarootdir}/locale' 804mandir='${datarootdir}/man' 805 806ac_prev= 807ac_dashdash= 808for ac_option 809do 810 # If the previous option needs an argument, assign it. 811 if test -n "$ac_prev"; then 812 eval $ac_prev=\$ac_option 813 ac_prev= 814 continue 815 fi 816 817 case $ac_option in 818 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 819 *) ac_optarg=yes ;; 820 esac 821 822 # Accept the important Cygnus configure options, so we can diagnose typos. 823 824 case $ac_dashdash$ac_option in 825 --) 826 ac_dashdash=yes ;; 827 828 -bindir | --bindir | --bindi | --bind | --bin | --bi) 829 ac_prev=bindir ;; 830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 831 bindir=$ac_optarg ;; 832 833 -build | --build | --buil | --bui | --bu) 834 ac_prev=build_alias ;; 835 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 836 build_alias=$ac_optarg ;; 837 838 -cache-file | --cache-file | --cache-fil | --cache-fi \ 839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 840 ac_prev=cache_file ;; 841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 843 cache_file=$ac_optarg ;; 844 845 --config-cache | -C) 846 cache_file=config.cache ;; 847 848 -datadir | --datadir | --datadi | --datad) 849 ac_prev=datadir ;; 850 -datadir=* | --datadir=* | --datadi=* | --datad=*) 851 datadir=$ac_optarg ;; 852 853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 854 | --dataroo | --dataro | --datar) 855 ac_prev=datarootdir ;; 856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 858 datarootdir=$ac_optarg ;; 859 860 -disable-* | --disable-*) 861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 862 # Reject names that are not valid shell variable names. 863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 864 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 865 { (exit 1); exit 1; }; } 866 ac_useropt_orig=$ac_useropt 867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 868 case $ac_user_opts in 869 *" 870"enable_$ac_useropt" 871"*) ;; 872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 873 ac_unrecognized_sep=', ';; 874 esac 875 eval enable_$ac_useropt=no ;; 876 877 -docdir | --docdir | --docdi | --doc | --do) 878 ac_prev=docdir ;; 879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 880 docdir=$ac_optarg ;; 881 882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 883 ac_prev=dvidir ;; 884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 885 dvidir=$ac_optarg ;; 886 887 -enable-* | --enable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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--enable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=\$ac_optarg ;; 903 904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906 | --exec | --exe | --ex) 907 ac_prev=exec_prefix ;; 908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910 | --exec=* | --exe=* | --ex=*) 911 exec_prefix=$ac_optarg ;; 912 913 -gas | --gas | --ga | --g) 914 # Obsolete; use --with-gas. 915 with_gas=yes ;; 916 917 -help | --help | --hel | --he | -h) 918 ac_init_help=long ;; 919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920 ac_init_help=recursive ;; 921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922 ac_init_help=short ;; 923 924 -host | --host | --hos | --ho) 925 ac_prev=host_alias ;; 926 -host=* | --host=* | --hos=* | --ho=*) 927 host_alias=$ac_optarg ;; 928 929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930 ac_prev=htmldir ;; 931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932 | --ht=*) 933 htmldir=$ac_optarg ;; 934 935 -includedir | --includedir | --includedi | --included | --include \ 936 | --includ | --inclu | --incl | --inc) 937 ac_prev=includedir ;; 938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939 | --includ=* | --inclu=* | --incl=* | --inc=*) 940 includedir=$ac_optarg ;; 941 942 -infodir | --infodir | --infodi | --infod | --info | --inf) 943 ac_prev=infodir ;; 944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945 infodir=$ac_optarg ;; 946 947 -libdir | --libdir | --libdi | --libd) 948 ac_prev=libdir ;; 949 -libdir=* | --libdir=* | --libdi=* | --libd=*) 950 libdir=$ac_optarg ;; 951 952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953 | --libexe | --libex | --libe) 954 ac_prev=libexecdir ;; 955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956 | --libexe=* | --libex=* | --libe=*) 957 libexecdir=$ac_optarg ;; 958 959 -localedir | --localedir | --localedi | --localed | --locale) 960 ac_prev=localedir ;; 961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962 localedir=$ac_optarg ;; 963 964 -localstatedir | --localstatedir | --localstatedi | --localstated \ 965 | --localstate | --localstat | --localsta | --localst | --locals) 966 ac_prev=localstatedir ;; 967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969 localstatedir=$ac_optarg ;; 970 971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972 ac_prev=mandir ;; 973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974 mandir=$ac_optarg ;; 975 976 -nfp | --nfp | --nf) 977 # Obsolete; use --without-fp. 978 with_fp=no ;; 979 980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981 | --no-cr | --no-c | -n) 982 no_create=yes ;; 983 984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986 no_recursion=yes ;; 987 988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990 | --oldin | --oldi | --old | --ol | --o) 991 ac_prev=oldincludedir ;; 992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995 oldincludedir=$ac_optarg ;; 996 997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998 ac_prev=prefix ;; 999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000 prefix=$ac_optarg ;; 1001 1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003 | --program-pre | --program-pr | --program-p) 1004 ac_prev=program_prefix ;; 1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007 program_prefix=$ac_optarg ;; 1008 1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010 | --program-suf | --program-su | --program-s) 1011 ac_prev=program_suffix ;; 1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014 program_suffix=$ac_optarg ;; 1015 1016 -program-transform-name | --program-transform-name \ 1017 | --program-transform-nam | --program-transform-na \ 1018 | --program-transform-n | --program-transform- \ 1019 | --program-transform | --program-transfor \ 1020 | --program-transfo | --program-transf \ 1021 | --program-trans | --program-tran \ 1022 | --progr-tra | --program-tr | --program-t) 1023 ac_prev=program_transform_name ;; 1024 -program-transform-name=* | --program-transform-name=* \ 1025 | --program-transform-nam=* | --program-transform-na=* \ 1026 | --program-transform-n=* | --program-transform-=* \ 1027 | --program-transform=* | --program-transfor=* \ 1028 | --program-transfo=* | --program-transf=* \ 1029 | --program-trans=* | --program-tran=* \ 1030 | --progr-tra=* | --program-tr=* | --program-t=*) 1031 program_transform_name=$ac_optarg ;; 1032 1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034 ac_prev=pdfdir ;; 1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036 pdfdir=$ac_optarg ;; 1037 1038 -psdir | --psdir | --psdi | --psd | --ps) 1039 ac_prev=psdir ;; 1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041 psdir=$ac_optarg ;; 1042 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 silent=yes ;; 1046 1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048 ac_prev=sbindir ;; 1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050 | --sbi=* | --sb=*) 1051 sbindir=$ac_optarg ;; 1052 1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055 | --sharedst | --shareds | --shared | --share | --shar \ 1056 | --sha | --sh) 1057 ac_prev=sharedstatedir ;; 1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061 | --sha=* | --sh=*) 1062 sharedstatedir=$ac_optarg ;; 1063 1064 -site | --site | --sit) 1065 ac_prev=site ;; 1066 -site=* | --site=* | --sit=*) 1067 site=$ac_optarg ;; 1068 1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070 ac_prev=srcdir ;; 1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072 srcdir=$ac_optarg ;; 1073 1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075 | --syscon | --sysco | --sysc | --sys | --sy) 1076 ac_prev=sysconfdir ;; 1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079 sysconfdir=$ac_optarg ;; 1080 1081 -target | --target | --targe | --targ | --tar | --ta | --t) 1082 ac_prev=target_alias ;; 1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084 target_alias=$ac_optarg ;; 1085 1086 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087 verbose=yes ;; 1088 1089 -version | --version | --versio | --versi | --vers | -V) 1090 ac_init_version=: ;; 1091 1092 -with-* | --with-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1097 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"with_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval with_$ac_useropt=\$ac_optarg ;; 1108 1109 -without-* | --without-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1114 { (exit 1); exit 1; }; } 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"with_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval with_$ac_useropt=no ;; 1125 1126 --x) 1127 # Obsolete; use --with-x. 1128 with_x=yes ;; 1129 1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1131 | --x-incl | --x-inc | --x-in | --x-i) 1132 ac_prev=x_includes ;; 1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1135 x_includes=$ac_optarg ;; 1136 1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1139 ac_prev=x_libraries ;; 1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1142 x_libraries=$ac_optarg ;; 1143 1144 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1145Try \`$0 --help' for more information." >&2 1146 { (exit 1); exit 1; }; } 1147 ;; 1148 1149 *=*) 1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1153 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1154 { (exit 1); exit 1; }; } 1155 eval $ac_envvar=\$ac_optarg 1156 export $ac_envvar ;; 1157 1158 *) 1159 # FIXME: should be removed in autoconf 3.0. 1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1164 ;; 1165 1166 esac 1167done 1168 1169if test -n "$ac_prev"; then 1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1171 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1172 { (exit 1); exit 1; }; } 1173fi 1174 1175if test -n "$ac_unrecognized_opts"; then 1176 case $enable_option_checking in 1177 no) ;; 1178 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1179 { (exit 1); exit 1; }; } ;; 1180 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1181 esac 1182fi 1183 1184# Check all directory arguments for consistency. 1185for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1186 datadir sysconfdir sharedstatedir localstatedir includedir \ 1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1188 libdir localedir mandir 1189do 1190 eval ac_val=\$$ac_var 1191 # Remove trailing slashes. 1192 case $ac_val in 1193 */ ) 1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1195 eval $ac_var=\$ac_val;; 1196 esac 1197 # Be sure to have absolute directory names. 1198 case $ac_val in 1199 [\\/$]* | ?:[\\/]* ) continue;; 1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1201 esac 1202 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1203 { (exit 1); exit 1; }; } 1204done 1205 1206# There might be people who depend on the old broken behavior: `$host' 1207# used to hold the argument of --host etc. 1208# FIXME: To remove some day. 1209build=$build_alias 1210host=$host_alias 1211target=$target_alias 1212 1213# FIXME: To remove some day. 1214if test "x$host_alias" != x; then 1215 if test "x$build_alias" = x; then 1216 cross_compiling=maybe 1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1218 If a cross compiler is detected then cross compile mode will be used." >&2 1219 elif test "x$build_alias" != "x$host_alias"; then 1220 cross_compiling=yes 1221 fi 1222fi 1223 1224ac_tool_prefix= 1225test -n "$host_alias" && ac_tool_prefix=$host_alias- 1226 1227test "$silent" = yes && exec 6>/dev/null 1228 1229 1230ac_pwd=`pwd` && test -n "$ac_pwd" && 1231ac_ls_di=`ls -di .` && 1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1233 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1234 { (exit 1); exit 1; }; } 1235test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1236 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1237 { (exit 1); exit 1; }; } 1238 1239 1240# Find the source files, if location was not specified. 1241if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249$as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271else 1272 ac_srcdir_defaulted=no 1273fi 1274if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1280ac_abs_confdir=`( 1281 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1282 { (exit 1); exit 1; }; } 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures pnm2ppa 1.13 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --libdir=DIR object code libraries [EPREFIX/lib] 1349 --includedir=DIR C header files [PREFIX/include] 1350 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1353 --infodir=DIR info documentation [DATAROOTDIR/info] 1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1355 --mandir=DIR man documentation [DATAROOTDIR/man] 1356 --docdir=DIR documentation root [DATAROOTDIR/doc/pnm2ppa] 1357 --htmldir=DIR html documentation [DOCDIR] 1358 --dvidir=DIR dvi documentation [DOCDIR] 1359 --pdfdir=DIR pdf documentation [DOCDIR] 1360 --psdir=DIR ps documentation [DOCDIR] 1361_ACEOF 1362 1363 cat <<\_ACEOF 1364 1365Program names: 1366 --program-prefix=PREFIX prepend PREFIX to installed program names 1367 --program-suffix=SUFFIX append SUFFIX to installed program names 1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373_ACEOF 1374fi 1375 1376if test -n "$ac_init_help"; then 1377 case $ac_init_help in 1378 short | recursive ) echo "Configuration of pnm2ppa 1.13:";; 1379 esac 1380 cat <<\_ACEOF 1381 1382Optional Features: 1383 --disable-option-checking ignore unrecognized --enable/--with options 1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1386 --enable-maintainer-mode enable make rules and dependencies not useful 1387 (and sometimes confusing) to the casual installer 1388 --disable-dependency-tracking speeds up one-time build 1389 --enable-dependency-tracking do not reject slow dependency extractors 1390 --enable-syslog enable syslog [default=yes] 1391 --enable-debug enable debugging [default=no] 1392 --enable-vlink enable building parse_vlink [default=no] 1393 1394Optional Packages: 1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1397 --with-language=EN | CZ | ES | FR | IT | NL 1398 Compiled in language 1399 1400Some influential environment variables: 1401 CC C compiler command 1402 CFLAGS C compiler flags 1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1404 nonstandard directory <lib dir> 1405 LIBS libraries to pass to the linker, e.g. -l<library> 1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1407 you have headers in a nonstandard directory <include dir> 1408 CPP C preprocessor 1409 1410Use these variables to override the choices made by `configure' or to help 1411it to find libraries and programs with nonstandard names/locations. 1412 1413Report bugs to <pnm2ppa-users@lists.sourceforge.net>. 1414_ACEOF 1415ac_status=$? 1416fi 1417 1418if test "$ac_init_help" = "recursive"; then 1419 # If there are subdirs, report their specific --help. 1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1421 test -d "$ac_dir" || 1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1423 continue 1424 ac_builddir=. 1425 1426case "$ac_dir" in 1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428*) 1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1430 # A ".." for each directory in $ac_dir_suffix. 1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1432 case $ac_top_builddir_sub in 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1435 esac ;; 1436esac 1437ac_abs_top_builddir=$ac_pwd 1438ac_abs_builddir=$ac_pwd$ac_dir_suffix 1439# for backward compatibility: 1440ac_top_builddir=$ac_top_build_prefix 1441 1442case $srcdir in 1443 .) # We are building in place. 1444 ac_srcdir=. 1445 ac_top_srcdir=$ac_top_builddir_sub 1446 ac_abs_top_srcdir=$ac_pwd ;; 1447 [\\/]* | ?:[\\/]* ) # Absolute name. 1448 ac_srcdir=$srcdir$ac_dir_suffix; 1449 ac_top_srcdir=$srcdir 1450 ac_abs_top_srcdir=$srcdir ;; 1451 *) # Relative name. 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1455esac 1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1457 1458 cd "$ac_dir" || { ac_status=$?; continue; } 1459 # Check for guested configure. 1460 if test -f "$ac_srcdir/configure.gnu"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1463 elif test -f "$ac_srcdir/configure"; then 1464 echo && 1465 $SHELL "$ac_srcdir/configure" --help=recursive 1466 else 1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1468 fi || ac_status=$? 1469 cd "$ac_pwd" || { ac_status=$?; break; } 1470 done 1471fi 1472 1473test -n "$ac_init_help" && exit $ac_status 1474if $ac_init_version; then 1475 cat <<\_ACEOF 1476pnm2ppa configure 1.13 1477generated by GNU Autoconf 2.62 1478 1479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14802002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1481This configure script is free software; the Free Software Foundation 1482gives unlimited permission to copy, distribute and modify it. 1483_ACEOF 1484 exit 1485fi 1486cat >config.log <<_ACEOF 1487This file contains any messages produced by compilers while 1488running configure, to aid debugging if configure makes a mistake. 1489 1490It was created by pnm2ppa $as_me 1.13, which was 1491generated by GNU Autoconf 2.62. Invocation command line was 1492 1493 $ $0 $@ 1494 1495_ACEOF 1496exec 5>>config.log 1497{ 1498cat <<_ASUNAME 1499## --------- ## 1500## Platform. ## 1501## --------- ## 1502 1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1504uname -m = `(uname -m) 2>/dev/null || echo unknown` 1505uname -r = `(uname -r) 2>/dev/null || echo unknown` 1506uname -s = `(uname -s) 2>/dev/null || echo unknown` 1507uname -v = `(uname -v) 2>/dev/null || echo unknown` 1508 1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1511 1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1519 1520_ASUNAME 1521 1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1523for as_dir in $PATH 1524do 1525 IFS=$as_save_IFS 1526 test -z "$as_dir" && as_dir=. 1527 $as_echo "PATH: $as_dir" 1528done 1529IFS=$as_save_IFS 1530 1531} >&5 1532 1533cat >&5 <<_ACEOF 1534 1535 1536## ----------- ## 1537## Core tests. ## 1538## ----------- ## 1539 1540_ACEOF 1541 1542 1543# Keep a trace of the command line. 1544# Strip out --no-create and --no-recursion so they do not pile up. 1545# Strip out --silent because we don't want to record it for future runs. 1546# Also quote any args containing shell meta-characters. 1547# Make two passes to allow for proper duplicate-argument suppression. 1548ac_configure_args= 1549ac_configure_args0= 1550ac_configure_args1= 1551ac_must_keep_next=false 1552for ac_pass in 1 2 1553do 1554 for ac_arg 1555 do 1556 case $ac_arg in 1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1559 | -silent | --silent | --silen | --sile | --sil) 1560 continue ;; 1561 *\'*) 1562 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1563 esac 1564 case $ac_pass in 1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1566 2) 1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1568 if test $ac_must_keep_next = true; then 1569 ac_must_keep_next=false # Got value, back to normal. 1570 else 1571 case $ac_arg in 1572 *=* | --config-cache | -C | -disable-* | --disable-* \ 1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1575 | -with-* | --with-* | -without-* | --without-* | --x) 1576 case "$ac_configure_args0 " in 1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1578 esac 1579 ;; 1580 -* ) ac_must_keep_next=true ;; 1581 esac 1582 fi 1583 ac_configure_args="$ac_configure_args '$ac_arg'" 1584 ;; 1585 esac 1586 done 1587done 1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1590 1591# When interrupted or exit'd, cleanup temporary files, and complete 1592# config.log. We remove comments because anyway the quotes in there 1593# would cause problems or look ugly. 1594# WARNING: Use '\'' to represent an apostrophe within the trap. 1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1596trap 'exit_status=$? 1597 # Save into config.log some information that might help in debugging. 1598 { 1599 echo 1600 1601 cat <<\_ASBOX 1602## ---------------- ## 1603## Cache variables. ## 1604## ---------------- ## 1605_ASBOX 1606 echo 1607 # The following way of writing the cache mishandles newlines in values, 1608( 1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1610 eval ac_val=\$$ac_var 1611 case $ac_val in #( 1612 *${as_nl}*) 1613 case $ac_var in #( 1614 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1615$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1616 esac 1617 case $ac_var in #( 1618 _ | IFS | as_nl) ;; #( 1619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1620 *) $as_unset $ac_var ;; 1621 esac ;; 1622 esac 1623 done 1624 (set) 2>&1 | 1625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1626 *${as_nl}ac_space=\ *) 1627 sed -n \ 1628 "s/'\''/'\''\\\\'\'''\''/g; 1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1630 ;; #( 1631 *) 1632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1633 ;; 1634 esac | 1635 sort 1636) 1637 echo 1638 1639 cat <<\_ASBOX 1640## ----------------- ## 1641## Output variables. ## 1642## ----------------- ## 1643_ASBOX 1644 echo 1645 for ac_var in $ac_subst_vars 1646 do 1647 eval ac_val=\$$ac_var 1648 case $ac_val in 1649 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1650 esac 1651 $as_echo "$ac_var='\''$ac_val'\''" 1652 done | sort 1653 echo 1654 1655 if test -n "$ac_subst_files"; then 1656 cat <<\_ASBOX 1657## ------------------- ## 1658## File substitutions. ## 1659## ------------------- ## 1660_ASBOX 1661 echo 1662 for ac_var in $ac_subst_files 1663 do 1664 eval ac_val=\$$ac_var 1665 case $ac_val in 1666 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1667 esac 1668 $as_echo "$ac_var='\''$ac_val'\''" 1669 done | sort 1670 echo 1671 fi 1672 1673 if test -s confdefs.h; then 1674 cat <<\_ASBOX 1675## ----------- ## 1676## confdefs.h. ## 1677## ----------- ## 1678_ASBOX 1679 echo 1680 cat confdefs.h 1681 echo 1682 fi 1683 test "$ac_signal" != 0 && 1684 $as_echo "$as_me: caught signal $ac_signal" 1685 $as_echo "$as_me: exit $exit_status" 1686 } >&5 1687 rm -f core *.core core.conftest.* && 1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1689 exit $exit_status 1690' 0 1691for ac_signal in 1 2 13 15; do 1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1693done 1694ac_signal=0 1695 1696# confdefs.h avoids OS command line length limits that DEFS can exceed. 1697rm -f -r conftest* confdefs.h 1698 1699# Predefined preprocessor variables. 1700 1701cat >>confdefs.h <<_ACEOF 1702#define PACKAGE_NAME "$PACKAGE_NAME" 1703_ACEOF 1704 1705 1706cat >>confdefs.h <<_ACEOF 1707#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1708_ACEOF 1709 1710 1711cat >>confdefs.h <<_ACEOF 1712#define PACKAGE_VERSION "$PACKAGE_VERSION" 1713_ACEOF 1714 1715 1716cat >>confdefs.h <<_ACEOF 1717#define PACKAGE_STRING "$PACKAGE_STRING" 1718_ACEOF 1719 1720 1721cat >>confdefs.h <<_ACEOF 1722#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1723_ACEOF 1724 1725 1726# Let the site file select an alternate cache file if it wants to. 1727# Prefer an explicitly selected file to automatically selected ones. 1728ac_site_file1=NONE 1729ac_site_file2=NONE 1730if test -n "$CONFIG_SITE"; then 1731 ac_site_file1=$CONFIG_SITE 1732elif test "x$prefix" != xNONE; then 1733 ac_site_file1=$prefix/share/config.site 1734 ac_site_file2=$prefix/etc/config.site 1735else 1736 ac_site_file1=$ac_default_prefix/share/config.site 1737 ac_site_file2=$ac_default_prefix/etc/config.site 1738fi 1739for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1740do 1741 test "x$ac_site_file" = xNONE && continue 1742 if test -r "$ac_site_file"; then 1743 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1744$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1745 sed 's/^/| /' "$ac_site_file" >&5 1746 . "$ac_site_file" 1747 fi 1748done 1749 1750if test -r "$cache_file"; then 1751 # Some versions of bash will fail to source /dev/null (special 1752 # files actually), so we avoid doing that. 1753 if test -f "$cache_file"; then 1754 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1755$as_echo "$as_me: loading cache $cache_file" >&6;} 1756 case $cache_file in 1757 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1758 *) . "./$cache_file";; 1759 esac 1760 fi 1761else 1762 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1763$as_echo "$as_me: creating cache $cache_file" >&6;} 1764 >$cache_file 1765fi 1766 1767# Check that the precious variables saved in the cache have kept the same 1768# value. 1769ac_cache_corrupted=false 1770for ac_var in $ac_precious_vars; do 1771 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1772 eval ac_new_set=\$ac_env_${ac_var}_set 1773 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1774 eval ac_new_val=\$ac_env_${ac_var}_value 1775 case $ac_old_set,$ac_new_set in 1776 set,) 1777 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1778$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1779 ac_cache_corrupted=: ;; 1780 ,set) 1781 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1782$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1783 ac_cache_corrupted=: ;; 1784 ,);; 1785 *) 1786 if test "x$ac_old_val" != "x$ac_new_val"; then 1787 # differences in whitespace do not lead to failure. 1788 ac_old_val_w=`echo x $ac_old_val` 1789 ac_new_val_w=`echo x $ac_new_val` 1790 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1791 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1792$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1793 ac_cache_corrupted=: 1794 else 1795 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1796$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1797 eval $ac_var=\$ac_old_val 1798 fi 1799 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1800$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1801 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1802$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1803 fi;; 1804 esac 1805 # Pass precious variables to config.status. 1806 if test "$ac_new_set" = set; then 1807 case $ac_new_val in 1808 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1809 *) ac_arg=$ac_var=$ac_new_val ;; 1810 esac 1811 case " $ac_configure_args " in 1812 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1813 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1814 esac 1815 fi 1816done 1817if $ac_cache_corrupted; then 1818 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1819$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1820 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1821$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1822 { (exit 1); exit 1; }; } 1823fi 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849ac_ext=c 1850ac_cpp='$CPP $CPPFLAGS' 1851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1853ac_compiler_gnu=$ac_cv_c_compiler_gnu 1854 1855 1856ac_config_headers="$ac_config_headers config.h" 1857 1858 1859ac_aux_dir= 1860for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1861 if test -f "$ac_dir/install-sh"; then 1862 ac_aux_dir=$ac_dir 1863 ac_install_sh="$ac_aux_dir/install-sh -c" 1864 break 1865 elif test -f "$ac_dir/install.sh"; then 1866 ac_aux_dir=$ac_dir 1867 ac_install_sh="$ac_aux_dir/install.sh -c" 1868 break 1869 elif test -f "$ac_dir/shtool"; then 1870 ac_aux_dir=$ac_dir 1871 ac_install_sh="$ac_aux_dir/shtool install -c" 1872 break 1873 fi 1874done 1875if test -z "$ac_aux_dir"; then 1876 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1877$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1878 { (exit 1); exit 1; }; } 1879fi 1880 1881# These three variables are undocumented and unsupported, 1882# and are intended to be withdrawn in a future Autoconf release. 1883# They can cause serious problems if a builder's source tree is in a directory 1884# whose full name contains unusual characters. 1885ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1886ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1887ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1888 1889 1890# Make sure we can run config.sub. 1891$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1892 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1893$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1894 { (exit 1); exit 1; }; } 1895 1896{ $as_echo "$as_me:$LINENO: checking build system type" >&5 1897$as_echo_n "checking build system type... " >&6; } 1898if test "${ac_cv_build+set}" = set; then 1899 $as_echo_n "(cached) " >&6 1900else 1901 ac_build_alias=$build_alias 1902test "x$ac_build_alias" = x && 1903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1904test "x$ac_build_alias" = x && 1905 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1906$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1907 { (exit 1); exit 1; }; } 1908ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1909 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1910$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1911 { (exit 1); exit 1; }; } 1912 1913fi 1914{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1915$as_echo "$ac_cv_build" >&6; } 1916case $ac_cv_build in 1917*-*-*) ;; 1918*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1919$as_echo "$as_me: error: invalid value of canonical build" >&2;} 1920 { (exit 1); exit 1; }; };; 1921esac 1922build=$ac_cv_build 1923ac_save_IFS=$IFS; IFS='-' 1924set x $ac_cv_build 1925shift 1926build_cpu=$1 1927build_vendor=$2 1928shift; shift 1929# Remember, the first character of IFS is used to create $*, 1930# except with old shells: 1931build_os=$* 1932IFS=$ac_save_IFS 1933case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1934 1935 1936{ $as_echo "$as_me:$LINENO: checking host system type" >&5 1937$as_echo_n "checking host system type... " >&6; } 1938if test "${ac_cv_host+set}" = set; then 1939 $as_echo_n "(cached) " >&6 1940else 1941 if test "x$host_alias" = x; then 1942 ac_cv_host=$ac_cv_build 1943else 1944 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1945 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1946$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1947 { (exit 1); exit 1; }; } 1948fi 1949 1950fi 1951{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1952$as_echo "$ac_cv_host" >&6; } 1953case $ac_cv_host in 1954*-*-*) ;; 1955*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1956$as_echo "$as_me: error: invalid value of canonical host" >&2;} 1957 { (exit 1); exit 1; }; };; 1958esac 1959host=$ac_cv_host 1960ac_save_IFS=$IFS; IFS='-' 1961set x $ac_cv_host 1962shift 1963host_cpu=$1 1964host_vendor=$2 1965shift; shift 1966# Remember, the first character of IFS is used to create $*, 1967# except with old shells: 1968host_os=$* 1969IFS=$ac_save_IFS 1970case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1971 1972 1973 1974{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1975$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 1976 # Check whether --enable-maintainer-mode was given. 1977if test "${enable_maintainer_mode+set}" = set; then 1978 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 1979else 1980 USE_MAINTAINER_MODE=no 1981fi 1982 1983 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1984$as_echo "$USE_MAINTAINER_MODE" >&6; } 1985 if test $USE_MAINTAINER_MODE = yes; then 1986 MAINTAINER_MODE_TRUE= 1987 MAINTAINER_MODE_FALSE='#' 1988else 1989 MAINTAINER_MODE_TRUE='#' 1990 MAINTAINER_MODE_FALSE= 1991fi 1992 1993 MAINT=$MAINTAINER_MODE_TRUE 1994 1995 1996am__api_version='1.10' 1997 1998# Find a good install program. We prefer a C program (faster), 1999# so one script is as good as another. But avoid the broken or 2000# incompatible versions: 2001# SysV /etc/install, /usr/sbin/install 2002# SunOS /usr/etc/install 2003# IRIX /sbin/install 2004# AIX /bin/install 2005# AmigaOS /C/install, which installs bootblocks on floppy discs 2006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2007# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2009# OS/2's system install, which has a completely different semantic 2010# ./install, which can be erroneously created by make from ./install.sh. 2011# Reject install programs that cannot install multiple files. 2012{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2013$as_echo_n "checking for a BSD-compatible install... " >&6; } 2014if test -z "$INSTALL"; then 2015if test "${ac_cv_path_install+set}" = set; then 2016 $as_echo_n "(cached) " >&6 2017else 2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019for as_dir in $PATH 2020do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 # Account for people who put trailing slashes in PATH elements. 2024case $as_dir/ in 2025 ./ | .// | /cC/* | \ 2026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2028 /usr/ucb/* ) ;; 2029 *) 2030 # OSF1 and SCO ODT 3.0 have their own names for install. 2031 # Don't use installbsd from OSF since it installs stuff as root 2032 # by default. 2033 for ac_prog in ginstall scoinst install; do 2034 for ac_exec_ext in '' $ac_executable_extensions; do 2035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2036 if test $ac_prog = install && 2037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2038 # AIX install. It has an incompatible calling convention. 2039 : 2040 elif test $ac_prog = install && 2041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2042 # program-specific install script used by HP pwplus--don't use. 2043 : 2044 else 2045 rm -rf conftest.one conftest.two conftest.dir 2046 echo one > conftest.one 2047 echo two > conftest.two 2048 mkdir conftest.dir 2049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2050 test -s conftest.one && test -s conftest.two && 2051 test -s conftest.dir/conftest.one && 2052 test -s conftest.dir/conftest.two 2053 then 2054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2055 break 3 2056 fi 2057 fi 2058 fi 2059 done 2060 done 2061 ;; 2062esac 2063 2064done 2065IFS=$as_save_IFS 2066 2067rm -rf conftest.one conftest.two conftest.dir 2068 2069fi 2070 if test "${ac_cv_path_install+set}" = set; then 2071 INSTALL=$ac_cv_path_install 2072 else 2073 # As a last resort, use the slow shell script. Don't cache a 2074 # value for INSTALL within a source directory, because that will 2075 # break other packages using the cache if that directory is 2076 # removed, or if the value is a relative name. 2077 INSTALL=$ac_install_sh 2078 fi 2079fi 2080{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2081$as_echo "$INSTALL" >&6; } 2082 2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2084# It thinks the first close brace ends the variable substitution. 2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2086 2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2088 2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2090 2091{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2092$as_echo_n "checking whether build environment is sane... " >&6; } 2093# Just in case 2094sleep 1 2095echo timestamp > conftest.file 2096# Do `set' in a subshell so we don't clobber the current shell's 2097# arguments. Must try -L first in case configure is actually a 2098# symlink; some systems play weird games with the mod time of symlinks 2099# (eg FreeBSD returns the mod time of the symlink's containing 2100# directory). 2101if ( 2102 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2103 if test "$*" = "X"; then 2104 # -L didn't work. 2105 set X `ls -t $srcdir/configure conftest.file` 2106 fi 2107 rm -f conftest.file 2108 if test "$*" != "X $srcdir/configure conftest.file" \ 2109 && test "$*" != "X conftest.file $srcdir/configure"; then 2110 2111 # If neither matched, then we have a broken ls. This can happen 2112 # if, for instance, CONFIG_SHELL is bash and it inherits a 2113 # broken ls alias from the environment. This has actually 2114 # happened. Such a system could not be considered "sane". 2115 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2116alias in your environment" >&5 2117$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2118alias in your environment" >&2;} 2119 { (exit 1); exit 1; }; } 2120 fi 2121 2122 test "$2" = conftest.file 2123 ) 2124then 2125 # Ok. 2126 : 2127else 2128 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2129Check your system clock" >&5 2130$as_echo "$as_me: error: newly created file is older than distributed files! 2131Check your system clock" >&2;} 2132 { (exit 1); exit 1; }; } 2133fi 2134{ $as_echo "$as_me:$LINENO: result: yes" >&5 2135$as_echo "yes" >&6; } 2136test "$program_prefix" != NONE && 2137 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2138# Use a double $ so make ignores it. 2139test "$program_suffix" != NONE && 2140 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2141# Double any \ or $. 2142# By default was `s,x,x', remove it if useless. 2143ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2144program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2145 2146# expand $ac_aux_dir to an absolute path 2147am_aux_dir=`cd $ac_aux_dir && pwd` 2148 2149test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2150# Use eval to expand $SHELL 2151if eval "$MISSING --run true"; then 2152 am_missing_run="$MISSING --run " 2153else 2154 am_missing_run= 2155 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2156$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2157fi 2158 2159{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2160$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2161if test -z "$MKDIR_P"; then 2162 if test "${ac_cv_path_mkdir+set}" = set; then 2163 $as_echo_n "(cached) " >&6 2164else 2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2166for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2167do 2168 IFS=$as_save_IFS 2169 test -z "$as_dir" && as_dir=. 2170 for ac_prog in mkdir gmkdir; do 2171 for ac_exec_ext in '' $ac_executable_extensions; do 2172 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2173 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2174 'mkdir (GNU coreutils) '* | \ 2175 'mkdir (coreutils) '* | \ 2176 'mkdir (fileutils) '4.1*) 2177 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2178 break 3;; 2179 esac 2180 done 2181 done 2182done 2183IFS=$as_save_IFS 2184 2185fi 2186 2187 if test "${ac_cv_path_mkdir+set}" = set; then 2188 MKDIR_P="$ac_cv_path_mkdir -p" 2189 else 2190 # As a last resort, use the slow shell script. Don't cache a 2191 # value for MKDIR_P within a source directory, because that will 2192 # break other packages using the cache if that directory is 2193 # removed, or if the value is a relative name. 2194 test -d ./--version && rmdir ./--version 2195 MKDIR_P="$ac_install_sh -d" 2196 fi 2197fi 2198{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2199$as_echo "$MKDIR_P" >&6; } 2200 2201mkdir_p="$MKDIR_P" 2202case $mkdir_p in 2203 [\\/$]* | ?:[\\/]*) ;; 2204 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2205esac 2206 2207for ac_prog in gawk mawk nawk awk 2208do 2209 # Extract the first word of "$ac_prog", so it can be a program name with args. 2210set dummy $ac_prog; ac_word=$2 2211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2212$as_echo_n "checking for $ac_word... " >&6; } 2213if test "${ac_cv_prog_AWK+set}" = set; then 2214 $as_echo_n "(cached) " >&6 2215else 2216 if test -n "$AWK"; then 2217 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2218else 2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2220for as_dir in $PATH 2221do 2222 IFS=$as_save_IFS 2223 test -z "$as_dir" && as_dir=. 2224 for ac_exec_ext in '' $ac_executable_extensions; do 2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2226 ac_cv_prog_AWK="$ac_prog" 2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2228 break 2 2229 fi 2230done 2231done 2232IFS=$as_save_IFS 2233 2234fi 2235fi 2236AWK=$ac_cv_prog_AWK 2237if test -n "$AWK"; then 2238 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2239$as_echo "$AWK" >&6; } 2240else 2241 { $as_echo "$as_me:$LINENO: result: no" >&5 2242$as_echo "no" >&6; } 2243fi 2244 2245 2246 test -n "$AWK" && break 2247done 2248 2249{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2250$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2251set x ${MAKE-make} 2252ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2253if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2254 $as_echo_n "(cached) " >&6 2255else 2256 cat >conftest.make <<\_ACEOF 2257SHELL = /bin/sh 2258all: 2259 @echo '@@@%%%=$(MAKE)=@@@%%%' 2260_ACEOF 2261# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2262case `${MAKE-make} -f conftest.make 2>/dev/null` in 2263 *@@@%%%=?*=@@@%%%*) 2264 eval ac_cv_prog_make_${ac_make}_set=yes;; 2265 *) 2266 eval ac_cv_prog_make_${ac_make}_set=no;; 2267esac 2268rm -f conftest.make 2269fi 2270if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2271 { $as_echo "$as_me:$LINENO: result: yes" >&5 2272$as_echo "yes" >&6; } 2273 SET_MAKE= 2274else 2275 { $as_echo "$as_me:$LINENO: result: no" >&5 2276$as_echo "no" >&6; } 2277 SET_MAKE="MAKE=${MAKE-make}" 2278fi 2279 2280rm -rf .tst 2>/dev/null 2281mkdir .tst 2>/dev/null 2282if test -d .tst; then 2283 am__leading_dot=. 2284else 2285 am__leading_dot=_ 2286fi 2287rmdir .tst 2>/dev/null 2288 2289if test "`cd $srcdir && pwd`" != "`pwd`"; then 2290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2291 # is not polluted with repeated "-I." 2292 am__isrc=' -I$(srcdir)' 2293 # test to see if srcdir already configured 2294 if test -f $srcdir/config.status; then 2295 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2296$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2297 { (exit 1); exit 1; }; } 2298 fi 2299fi 2300 2301# test whether we have cygpath 2302if test -z "$CYGPATH_W"; then 2303 if (cygpath --version) >/dev/null 2>/dev/null; then 2304 CYGPATH_W='cygpath -w' 2305 else 2306 CYGPATH_W=echo 2307 fi 2308fi 2309 2310 2311# Define the identity of the package. 2312 PACKAGE='pnm2ppa' 2313 VERSION='1.13' 2314 2315 2316cat >>confdefs.h <<_ACEOF 2317#define PACKAGE "$PACKAGE" 2318_ACEOF 2319 2320 2321cat >>confdefs.h <<_ACEOF 2322#define VERSION "$VERSION" 2323_ACEOF 2324 2325# Some tools Automake needs. 2326 2327ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2328 2329 2330AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2331 2332 2333AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2334 2335 2336AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2337 2338 2339MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2340 2341install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2342 2343# Installed binaries are usually stripped using `strip' when the user 2344# run `make install-strip'. However `strip' might not be the right 2345# tool to use in cross-compilation environments, therefore Automake 2346# will honor the `STRIP' environment variable to overrule this program. 2347if test "$cross_compiling" != no; then 2348 if test -n "$ac_tool_prefix"; then 2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2350set dummy ${ac_tool_prefix}strip; ac_word=$2 2351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2352$as_echo_n "checking for $ac_word... " >&6; } 2353if test "${ac_cv_prog_STRIP+set}" = set; then 2354 $as_echo_n "(cached) " >&6 2355else 2356 if test -n "$STRIP"; then 2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2358else 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370done 2371done 2372IFS=$as_save_IFS 2373 2374fi 2375fi 2376STRIP=$ac_cv_prog_STRIP 2377if test -n "$STRIP"; then 2378 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2379$as_echo "$STRIP" >&6; } 2380else 2381 { $as_echo "$as_me:$LINENO: result: no" >&5 2382$as_echo "no" >&6; } 2383fi 2384 2385 2386fi 2387if test -z "$ac_cv_prog_STRIP"; then 2388 ac_ct_STRIP=$STRIP 2389 # Extract the first word of "strip", so it can be a program name with args. 2390set dummy strip; ac_word=$2 2391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2392$as_echo_n "checking for $ac_word... " >&6; } 2393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2394 $as_echo_n "(cached) " >&6 2395else 2396 if test -n "$ac_ct_STRIP"; then 2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2398else 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2406 ac_cv_prog_ac_ct_STRIP="strip" 2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410done 2411done 2412IFS=$as_save_IFS 2413 2414fi 2415fi 2416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2417if test -n "$ac_ct_STRIP"; then 2418 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2419$as_echo "$ac_ct_STRIP" >&6; } 2420else 2421 { $as_echo "$as_me:$LINENO: result: no" >&5 2422$as_echo "no" >&6; } 2423fi 2424 2425 if test "x$ac_ct_STRIP" = x; then 2426 STRIP=":" 2427 else 2428 case $cross_compiling:$ac_tool_warned in 2429yes:) 2430{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2431whose name does not start with the host triplet. If you think this 2432configuration is useful to you, please write to autoconf@gnu.org." >&5 2433$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2434whose name does not start with the host triplet. If you think this 2435configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2436ac_tool_warned=yes ;; 2437esac 2438 STRIP=$ac_ct_STRIP 2439 fi 2440else 2441 STRIP="$ac_cv_prog_STRIP" 2442fi 2443 2444fi 2445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2446 2447# We need awk for the "check" target. The system "awk" is bad on 2448# some platforms. 2449# Always define AMTAR for backward compatibility. 2450 2451AMTAR=${AMTAR-"${am_missing_run}tar"} 2452 2453am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2454 2455 2456 2457 2458 2459 2460CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wfloat-equal -Wformat-security" 2461 2462# Checks for programs. 2463ac_ext=c 2464ac_cpp='$CPP $CPPFLAGS' 2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2467ac_compiler_gnu=$ac_cv_c_compiler_gnu 2468if test -n "$ac_tool_prefix"; then 2469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2470set dummy ${ac_tool_prefix}gcc; ac_word=$2 2471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2472$as_echo_n "checking for $ac_word... " >&6; } 2473if test "${ac_cv_prog_CC+set}" = set; then 2474 $as_echo_n "(cached) " >&6 2475else 2476 if test -n "$CC"; then 2477 ac_cv_prog_CC="$CC" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496CC=$ac_cv_prog_CC 2497if test -n "$CC"; then 2498 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2499$as_echo "$CC" >&6; } 2500else 2501 { $as_echo "$as_me:$LINENO: result: no" >&5 2502$as_echo "no" >&6; } 2503fi 2504 2505 2506fi 2507if test -z "$ac_cv_prog_CC"; then 2508 ac_ct_CC=$CC 2509 # Extract the first word of "gcc", so it can be a program name with args. 2510set dummy gcc; ac_word=$2 2511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2512$as_echo_n "checking for $ac_word... " >&6; } 2513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2514 $as_echo_n "(cached) " >&6 2515else 2516 if test -n "$ac_ct_CC"; then 2517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2518else 2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 for ac_exec_ext in '' $ac_executable_extensions; do 2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2526 ac_cv_prog_ac_ct_CC="gcc" 2527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2528 break 2 2529 fi 2530done 2531done 2532IFS=$as_save_IFS 2533 2534fi 2535fi 2536ac_ct_CC=$ac_cv_prog_ac_ct_CC 2537if test -n "$ac_ct_CC"; then 2538 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2539$as_echo "$ac_ct_CC" >&6; } 2540else 2541 { $as_echo "$as_me:$LINENO: result: no" >&5 2542$as_echo "no" >&6; } 2543fi 2544 2545 if test "x$ac_ct_CC" = x; then 2546 CC="" 2547 else 2548 case $cross_compiling:$ac_tool_warned in 2549yes:) 2550{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2551whose name does not start with the host triplet. If you think this 2552configuration is useful to you, please write to autoconf@gnu.org." >&5 2553$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2554whose name does not start with the host triplet. If you think this 2555configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2556ac_tool_warned=yes ;; 2557esac 2558 CC=$ac_ct_CC 2559 fi 2560else 2561 CC="$ac_cv_prog_CC" 2562fi 2563 2564if test -z "$CC"; then 2565 if test -n "$ac_tool_prefix"; then 2566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2567set dummy ${ac_tool_prefix}cc; ac_word=$2 2568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2569$as_echo_n "checking for $ac_word... " >&6; } 2570if test "${ac_cv_prog_CC+set}" = set; then 2571 $as_echo_n "(cached) " >&6 2572else 2573 if test -n "$CC"; then 2574 ac_cv_prog_CC="$CC" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2583 ac_cv_prog_CC="${ac_tool_prefix}cc" 2584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593CC=$ac_cv_prog_CC 2594if test -n "$CC"; then 2595 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2596$as_echo "$CC" >&6; } 2597else 2598 { $as_echo "$as_me:$LINENO: result: no" >&5 2599$as_echo "no" >&6; } 2600fi 2601 2602 2603 fi 2604fi 2605if test -z "$CC"; then 2606 # Extract the first word of "cc", so it can be a program name with args. 2607set dummy cc; ac_word=$2 2608{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if test "${ac_cv_prog_CC+set}" = set; then 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$CC"; then 2614 ac_cv_prog_CC="$CC" # Let the user override the test. 2615else 2616 ac_prog_rejected=no 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2625 ac_prog_rejected=yes 2626 continue 2627 fi 2628 ac_cv_prog_CC="cc" 2629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636if test $ac_prog_rejected = yes; then 2637 # We found a bogon in the path, so make sure we never use it. 2638 set dummy $ac_cv_prog_CC 2639 shift 2640 if test $# != 0; then 2641 # We chose a different compiler from the bogus one. 2642 # However, it has the same basename, so the bogon will be chosen 2643 # first if we set CC to just the basename; use the full file name. 2644 shift 2645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2646 fi 2647fi 2648fi 2649fi 2650CC=$ac_cv_prog_CC 2651if test -n "$CC"; then 2652 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2653$as_echo "$CC" >&6; } 2654else 2655 { $as_echo "$as_me:$LINENO: result: no" >&5 2656$as_echo "no" >&6; } 2657fi 2658 2659 2660fi 2661if test -z "$CC"; then 2662 if test -n "$ac_tool_prefix"; then 2663 for ac_prog in cl.exe 2664 do 2665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2666set dummy $ac_tool_prefix$ac_prog; 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$ac_prog" 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 test -n "$CC" && break 2703 done 2704fi 2705if test -z "$CC"; then 2706 ac_ct_CC=$CC 2707 for ac_prog in cl.exe 2708do 2709 # Extract the first word of "$ac_prog", so it can be a program name with args. 2710set dummy $ac_prog; ac_word=$2 2711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$ac_ct_CC"; then 2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2726 ac_cv_prog_ac_ct_CC="$ac_prog" 2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736ac_ct_CC=$ac_cv_prog_ac_ct_CC 2737if test -n "$ac_ct_CC"; then 2738 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2739$as_echo "$ac_ct_CC" >&6; } 2740else 2741 { $as_echo "$as_me:$LINENO: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 2746 test -n "$ac_ct_CC" && break 2747done 2748 2749 if test "x$ac_ct_CC" = x; then 2750 CC="" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2755whose name does not start with the host triplet. If you think this 2756configuration is useful to you, please write to autoconf@gnu.org." >&5 2757$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2758whose name does not start with the host triplet. If you think this 2759configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2760ac_tool_warned=yes ;; 2761esac 2762 CC=$ac_ct_CC 2763 fi 2764fi 2765 2766fi 2767 2768 2769test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2770See \`config.log' for more details." >&5 2771$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2772See \`config.log' for more details." >&2;} 2773 { (exit 1); exit 1; }; } 2774 2775# Provide some information about the compiler. 2776$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2777set X $ac_compile 2778ac_compiler=$2 2779{ (ac_try="$ac_compiler --version >&5" 2780case "(($ac_try" in 2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2782 *) ac_try_echo=$ac_try;; 2783esac 2784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2785$as_echo "$ac_try_echo") >&5 2786 (eval "$ac_compiler --version >&5") 2>&5 2787 ac_status=$? 2788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2789 (exit $ac_status); } 2790{ (ac_try="$ac_compiler -v >&5" 2791case "(($ac_try" in 2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2793 *) ac_try_echo=$ac_try;; 2794esac 2795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2796$as_echo "$ac_try_echo") >&5 2797 (eval "$ac_compiler -v >&5") 2>&5 2798 ac_status=$? 2799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } 2801{ (ac_try="$ac_compiler -V >&5" 2802case "(($ac_try" in 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2804 *) ac_try_echo=$ac_try;; 2805esac 2806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2807$as_echo "$ac_try_echo") >&5 2808 (eval "$ac_compiler -V >&5") 2>&5 2809 ac_status=$? 2810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); } 2812 2813cat >conftest.$ac_ext <<_ACEOF 2814/* confdefs.h. */ 2815_ACEOF 2816cat confdefs.h >>conftest.$ac_ext 2817cat >>conftest.$ac_ext <<_ACEOF 2818/* end confdefs.h. */ 2819 2820int 2821main () 2822{ 2823 2824 ; 2825 return 0; 2826} 2827_ACEOF 2828ac_clean_files_save=$ac_clean_files 2829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2830# Try to create an executable without -o first, disregard a.out. 2831# It will help us diagnose broken compilers, and finding out an intuition 2832# of exeext. 2833{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2834$as_echo_n "checking for C compiler default output file name... " >&6; } 2835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2836 2837# The possible output files: 2838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2839 2840ac_rmfiles= 2841for ac_file in $ac_files 2842do 2843 case $ac_file in 2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2845 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2846 esac 2847done 2848rm -f $ac_rmfiles 2849 2850if { (ac_try="$ac_link_default" 2851case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854esac 2855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2856$as_echo "$ac_try_echo") >&5 2857 (eval "$ac_link_default") 2>&5 2858 ac_status=$? 2859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); }; then 2861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2863# in a Makefile. We should not override ac_cv_exeext if it was cached, 2864# so that the user can short-circuit this test for compilers unknown to 2865# Autoconf. 2866for ac_file in $ac_files '' 2867do 2868 test -f "$ac_file" || continue 2869 case $ac_file in 2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2871 ;; 2872 [ab].out ) 2873 # We found the default executable, but exeext='' is most 2874 # certainly right. 2875 break;; 2876 *.* ) 2877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2878 then :; else 2879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2880 fi 2881 # We set ac_cv_exeext here because the later test for it is not 2882 # safe: cross compilers may not add the suffix if given an `-o' 2883 # argument, so we may need to know it at that point already. 2884 # Even if this section looks crufty: it has the advantage of 2885 # actually working. 2886 break;; 2887 * ) 2888 break;; 2889 esac 2890done 2891test "$ac_cv_exeext" = no && ac_cv_exeext= 2892 2893else 2894 ac_file='' 2895fi 2896 2897{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2898$as_echo "$ac_file" >&6; } 2899if test -z "$ac_file"; then 2900 $as_echo "$as_me: failed program was:" >&5 2901sed 's/^/| /' conftest.$ac_ext >&5 2902 2903{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2904See \`config.log' for more details." >&5 2905$as_echo "$as_me: error: C compiler cannot create executables 2906See \`config.log' for more details." >&2;} 2907 { (exit 77); exit 77; }; } 2908fi 2909 2910ac_exeext=$ac_cv_exeext 2911 2912# Check that the compiler produces executables we can run. If not, either 2913# the compiler is broken, or we cross compile. 2914{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2915$as_echo_n "checking whether the C compiler works... " >&6; } 2916# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2917# If not cross compiling, check that we can run a simple program. 2918if test "$cross_compiling" != yes; then 2919 if { ac_try='./$ac_file' 2920 { (case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2925$as_echo "$ac_try_echo") >&5 2926 (eval "$ac_try") 2>&5 2927 ac_status=$? 2928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); }; }; then 2930 cross_compiling=no 2931 else 2932 if test "$cross_compiling" = maybe; then 2933 cross_compiling=yes 2934 else 2935 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2936If you meant to cross compile, use \`--host'. 2937See \`config.log' for more details." >&5 2938$as_echo "$as_me: error: cannot run C compiled programs. 2939If you meant to cross compile, use \`--host'. 2940See \`config.log' for more details." >&2;} 2941 { (exit 1); exit 1; }; } 2942 fi 2943 fi 2944fi 2945{ $as_echo "$as_me:$LINENO: result: yes" >&5 2946$as_echo "yes" >&6; } 2947 2948rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2949ac_clean_files=$ac_clean_files_save 2950# Check that the compiler produces executables we can run. If not, either 2951# the compiler is broken, or we cross compile. 2952{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2953$as_echo_n "checking whether we are cross compiling... " >&6; } 2954{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2955$as_echo "$cross_compiling" >&6; } 2956 2957{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2958$as_echo_n "checking for suffix of executables... " >&6; } 2959if { (ac_try="$ac_link" 2960case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963esac 2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2965$as_echo "$ac_try_echo") >&5 2966 (eval "$ac_link") 2>&5 2967 ac_status=$? 2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); }; then 2970 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2971# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2972# work properly (i.e., refer to `conftest.exe'), while it won't with 2973# `rm'. 2974for ac_file in conftest.exe conftest conftest.*; do 2975 test -f "$ac_file" || continue 2976 case $ac_file in 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2979 break;; 2980 * ) break;; 2981 esac 2982done 2983else 2984 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2985See \`config.log' for more details." >&5 2986$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2987See \`config.log' for more details." >&2;} 2988 { (exit 1); exit 1; }; } 2989fi 2990 2991rm -f conftest$ac_cv_exeext 2992{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2993$as_echo "$ac_cv_exeext" >&6; } 2994 2995rm -f conftest.$ac_ext 2996EXEEXT=$ac_cv_exeext 2997ac_exeext=$EXEEXT 2998{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2999$as_echo_n "checking for suffix of object files... " >&6; } 3000if test "${ac_cv_objext+set}" = set; then 3001 $as_echo_n "(cached) " >&6 3002else 3003 cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009 3010int 3011main () 3012{ 3013 3014 ; 3015 return 0; 3016} 3017_ACEOF 3018rm -f conftest.o conftest.obj 3019if { (ac_try="$ac_compile" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3025$as_echo "$ac_try_echo") >&5 3026 (eval "$ac_compile") 2>&5 3027 ac_status=$? 3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); }; then 3030 for ac_file in conftest.o conftest.obj conftest.*; do 3031 test -f "$ac_file" || continue; 3032 case $ac_file in 3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3035 break;; 3036 esac 3037done 3038else 3039 $as_echo "$as_me: failed program was:" >&5 3040sed 's/^/| /' conftest.$ac_ext >&5 3041 3042{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3043See \`config.log' for more details." >&5 3044$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3045See \`config.log' for more details." >&2;} 3046 { (exit 1); exit 1; }; } 3047fi 3048 3049rm -f conftest.$ac_cv_objext conftest.$ac_ext 3050fi 3051{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3052$as_echo "$ac_cv_objext" >&6; } 3053OBJEXT=$ac_cv_objext 3054ac_objext=$OBJEXT 3055{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3056$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3057if test "${ac_cv_c_compiler_gnu+set}" = set; then 3058 $as_echo_n "(cached) " >&6 3059else 3060 cat >conftest.$ac_ext <<_ACEOF 3061/* confdefs.h. */ 3062_ACEOF 3063cat confdefs.h >>conftest.$ac_ext 3064cat >>conftest.$ac_ext <<_ACEOF 3065/* end confdefs.h. */ 3066 3067int 3068main () 3069{ 3070#ifndef __GNUC__ 3071 choke me 3072#endif 3073 3074 ; 3075 return 0; 3076} 3077_ACEOF 3078rm -f conftest.$ac_objext 3079if { (ac_try="$ac_compile" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3085$as_echo "$ac_try_echo") >&5 3086 (eval "$ac_compile") 2>conftest.er1 3087 ac_status=$? 3088 grep -v '^ *+' conftest.er1 >conftest.err 3089 rm -f conftest.er1 3090 cat conftest.err >&5 3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } && { 3093 test -z "$ac_c_werror_flag" || 3094 test ! -s conftest.err 3095 } && test -s conftest.$ac_objext; then 3096 ac_compiler_gnu=yes 3097else 3098 $as_echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101 ac_compiler_gnu=no 3102fi 3103 3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3105ac_cv_c_compiler_gnu=$ac_compiler_gnu 3106 3107fi 3108{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3109$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3110if test $ac_compiler_gnu = yes; then 3111 GCC=yes 3112else 3113 GCC= 3114fi 3115ac_test_CFLAGS=${CFLAGS+set} 3116ac_save_CFLAGS=$CFLAGS 3117{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3118$as_echo_n "checking whether $CC accepts -g... " >&6; } 3119if test "${ac_cv_prog_cc_g+set}" = set; then 3120 $as_echo_n "(cached) " >&6 3121else 3122 ac_save_c_werror_flag=$ac_c_werror_flag 3123 ac_c_werror_flag=yes 3124 ac_cv_prog_cc_g=no 3125 CFLAGS="-g" 3126 cat >conftest.$ac_ext <<_ACEOF 3127/* confdefs.h. */ 3128_ACEOF 3129cat confdefs.h >>conftest.$ac_ext 3130cat >>conftest.$ac_ext <<_ACEOF 3131/* end confdefs.h. */ 3132 3133int 3134main () 3135{ 3136 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141rm -f conftest.$ac_objext 3142if { (ac_try="$ac_compile" 3143case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3148$as_echo "$ac_try_echo") >&5 3149 (eval "$ac_compile") 2>conftest.er1 3150 ac_status=$? 3151 grep -v '^ *+' conftest.er1 >conftest.err 3152 rm -f conftest.er1 3153 cat conftest.err >&5 3154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); } && { 3156 test -z "$ac_c_werror_flag" || 3157 test ! -s conftest.err 3158 } && test -s conftest.$ac_objext; then 3159 ac_cv_prog_cc_g=yes 3160else 3161 $as_echo "$as_me: failed program was:" >&5 3162sed 's/^/| /' conftest.$ac_ext >&5 3163 3164 CFLAGS="" 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 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180rm -f conftest.$ac_objext 3181if { (ac_try="$ac_compile" 3182case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3187$as_echo "$ac_try_echo") >&5 3188 (eval "$ac_compile") 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } && { 3195 test -z "$ac_c_werror_flag" || 3196 test ! -s conftest.err 3197 } && test -s conftest.$ac_objext; then 3198 : 3199else 3200 $as_echo "$as_me: failed program was:" >&5 3201sed 's/^/| /' conftest.$ac_ext >&5 3202 3203 ac_c_werror_flag=$ac_save_c_werror_flag 3204 CFLAGS="-g" 3205 cat >conftest.$ac_ext <<_ACEOF 3206/* confdefs.h. */ 3207_ACEOF 3208cat confdefs.h >>conftest.$ac_ext 3209cat >>conftest.$ac_ext <<_ACEOF 3210/* end confdefs.h. */ 3211 3212int 3213main () 3214{ 3215 3216 ; 3217 return 0; 3218} 3219_ACEOF 3220rm -f conftest.$ac_objext 3221if { (ac_try="$ac_compile" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3227$as_echo "$ac_try_echo") >&5 3228 (eval "$ac_compile") 2>conftest.er1 3229 ac_status=$? 3230 grep -v '^ *+' conftest.er1 >conftest.err 3231 rm -f conftest.er1 3232 cat conftest.err >&5 3233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } && { 3235 test -z "$ac_c_werror_flag" || 3236 test ! -s conftest.err 3237 } && test -s conftest.$ac_objext; then 3238 ac_cv_prog_cc_g=yes 3239else 3240 $as_echo "$as_me: failed program was:" >&5 3241sed 's/^/| /' conftest.$ac_ext >&5 3242 3243 3244fi 3245 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247fi 3248 3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3250fi 3251 3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253 ac_c_werror_flag=$ac_save_c_werror_flag 3254fi 3255{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3256$as_echo "$ac_cv_prog_cc_g" >&6; } 3257if test "$ac_test_CFLAGS" = set; then 3258 CFLAGS=$ac_save_CFLAGS 3259elif test $ac_cv_prog_cc_g = yes; then 3260 if test "$GCC" = yes; then 3261 CFLAGS="-g -O2" 3262 else 3263 CFLAGS="-g" 3264 fi 3265else 3266 if test "$GCC" = yes; then 3267 CFLAGS="-O2" 3268 else 3269 CFLAGS= 3270 fi 3271fi 3272{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3273$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3274if test "${ac_cv_prog_cc_c89+set}" = set; then 3275 $as_echo_n "(cached) " >&6 3276else 3277 ac_cv_prog_cc_c89=no 3278ac_save_CC=$CC 3279cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285#include <stdarg.h> 3286#include <stdio.h> 3287#include <sys/types.h> 3288#include <sys/stat.h> 3289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3290struct buf { int x; }; 3291FILE * (*rcsopen) (struct buf *, struct stat *, int); 3292static char *e (p, i) 3293 char **p; 3294 int i; 3295{ 3296 return p[i]; 3297} 3298static char *f (char * (*g) (char **, int), char **p, ...) 3299{ 3300 char *s; 3301 va_list v; 3302 va_start (v,p); 3303 s = g (p, va_arg (v,int)); 3304 va_end (v); 3305 return s; 3306} 3307 3308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3309 function prototypes and stuff, but not '\xHH' hex character constants. 3310 These don't provoke an error unfortunately, instead are silently treated 3311 as 'x'. The following induces an error, until -std is added to get 3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3313 array size at least. It's necessary to write '\x00'==0 to get something 3314 that's true only with -std. */ 3315int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3316 3317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3318 inside strings and character constants. */ 3319#define FOO(x) 'x' 3320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3321 3322int test (int i, double x); 3323struct s1 {int (*f) (int a);}; 3324struct s2 {int (*f) (double a);}; 3325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3326int argc; 3327char **argv; 3328int 3329main () 3330{ 3331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3338do 3339 CC="$ac_save_CC $ac_arg" 3340 rm -f conftest.$ac_objext 3341if { (ac_try="$ac_compile" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3347$as_echo "$ac_try_echo") >&5 3348 (eval "$ac_compile") 2>conftest.er1 3349 ac_status=$? 3350 grep -v '^ *+' conftest.er1 >conftest.err 3351 rm -f conftest.er1 3352 cat conftest.err >&5 3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3354 (exit $ac_status); } && { 3355 test -z "$ac_c_werror_flag" || 3356 test ! -s conftest.err 3357 } && test -s conftest.$ac_objext; then 3358 ac_cv_prog_cc_c89=$ac_arg 3359else 3360 $as_echo "$as_me: failed program was:" >&5 3361sed 's/^/| /' conftest.$ac_ext >&5 3362 3363 3364fi 3365 3366rm -f core conftest.err conftest.$ac_objext 3367 test "x$ac_cv_prog_cc_c89" != "xno" && break 3368done 3369rm -f conftest.$ac_ext 3370CC=$ac_save_CC 3371 3372fi 3373# AC_CACHE_VAL 3374case "x$ac_cv_prog_cc_c89" in 3375 x) 3376 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3377$as_echo "none needed" >&6; } ;; 3378 xno) 3379 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3380$as_echo "unsupported" >&6; } ;; 3381 *) 3382 CC="$CC $ac_cv_prog_cc_c89" 3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3384$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3385esac 3386 3387 3388ac_ext=c 3389ac_cpp='$CPP $CPPFLAGS' 3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3392ac_compiler_gnu=$ac_cv_c_compiler_gnu 3393DEPDIR="${am__leading_dot}deps" 3394 3395ac_config_commands="$ac_config_commands depfiles" 3396 3397 3398am_make=${MAKE-make} 3399cat > confinc << 'END' 3400am__doit: 3401 @echo done 3402.PHONY: am__doit 3403END 3404# If we don't find an include directive, just comment out the code. 3405{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3406$as_echo_n "checking for style of include used by $am_make... " >&6; } 3407am__include="#" 3408am__quote= 3409_am_result=none 3410# First try GNU make style include. 3411echo "include confinc" > confmf 3412# We grep out `Entering directory' and `Leaving directory' 3413# messages which can occur if `w' ends up in MAKEFLAGS. 3414# In particular we don't look at `^make:' because GNU make might 3415# be invoked under some other name (usually "gmake"), in which 3416# case it prints its new name instead of `make'. 3417if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3418 am__include=include 3419 am__quote= 3420 _am_result=GNU 3421fi 3422# Now try BSD make style include. 3423if test "$am__include" = "#"; then 3424 echo '.include "confinc"' > confmf 3425 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3426 am__include=.include 3427 am__quote="\"" 3428 _am_result=BSD 3429 fi 3430fi 3431 3432 3433{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3434$as_echo "$_am_result" >&6; } 3435rm -f confinc confmf 3436 3437# Check whether --enable-dependency-tracking was given. 3438if test "${enable_dependency_tracking+set}" = set; then 3439 enableval=$enable_dependency_tracking; 3440fi 3441 3442if test "x$enable_dependency_tracking" != xno; then 3443 am_depcomp="$ac_aux_dir/depcomp" 3444 AMDEPBACKSLASH='\' 3445fi 3446 if test "x$enable_dependency_tracking" != xno; then 3447 AMDEP_TRUE= 3448 AMDEP_FALSE='#' 3449else 3450 AMDEP_TRUE='#' 3451 AMDEP_FALSE= 3452fi 3453 3454 3455 3456depcc="$CC" am_compiler_list= 3457 3458{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3459$as_echo_n "checking dependency style of $depcc... " >&6; } 3460if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3461 $as_echo_n "(cached) " >&6 3462else 3463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3464 # We make a subdir and do the tests there. Otherwise we can end up 3465 # making bogus files that we don't know about and never remove. For 3466 # instance it was reported that on HP-UX the gcc test will end up 3467 # making a dummy file named `D' -- because `-MD' means `put the output 3468 # in D'. 3469 mkdir conftest.dir 3470 # Copy depcomp to subdir because otherwise we won't find it if we're 3471 # using a relative directory. 3472 cp "$am_depcomp" conftest.dir 3473 cd conftest.dir 3474 # We will build objects and dependencies in a subdirectory because 3475 # it helps to detect inapplicable dependency modes. For instance 3476 # both Tru64's cc and ICC support -MD to output dependencies as a 3477 # side effect of compilation, but ICC will put the dependencies in 3478 # the current directory while Tru64 will put them in the object 3479 # directory. 3480 mkdir sub 3481 3482 am_cv_CC_dependencies_compiler_type=none 3483 if test "$am_compiler_list" = ""; then 3484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3485 fi 3486 for depmode in $am_compiler_list; do 3487 # Setup a source with many dependencies, because some compilers 3488 # like to wrap large dependency lists on column 80 (with \), and 3489 # we should not choose a depcomp mode which is confused by this. 3490 # 3491 # We need to recreate these files for each test, as the compiler may 3492 # overwrite some of them when testing with obscure command lines. 3493 # This happens at least with the AIX C compiler. 3494 : > sub/conftest.c 3495 for i in 1 2 3 4 5 6; do 3496 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3497 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3498 # Solaris 8's {/usr,}/bin/sh. 3499 touch sub/conftst$i.h 3500 done 3501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3502 3503 case $depmode in 3504 nosideeffect) 3505 # after this tag, mechanisms are not by side-effect, so they'll 3506 # only be used when explicitly requested 3507 if test "x$enable_dependency_tracking" = xyes; then 3508 continue 3509 else 3510 break 3511 fi 3512 ;; 3513 none) break ;; 3514 esac 3515 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3516 # mode. It turns out that the SunPro C++ compiler does not properly 3517 # handle `-M -o', and we need to detect this. 3518 if depmode=$depmode \ 3519 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3521 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3522 >/dev/null 2>conftest.err && 3523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3525 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3527 # icc doesn't choke on unknown options, it will just issue warnings 3528 # or remarks (even with -Werror). So we grep stderr for any message 3529 # that says an option was ignored or not supported. 3530 # When given -MP, icc 7.0 and 7.1 complain thusly: 3531 # icc: Command line warning: ignoring option '-M'; no argument required 3532 # The diagnosis changed in icc 8.0: 3533 # icc: Command line remark: option '-MP' not supported 3534 if (grep 'ignoring option' conftest.err || 3535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3536 am_cv_CC_dependencies_compiler_type=$depmode 3537 break 3538 fi 3539 fi 3540 done 3541 3542 cd .. 3543 rm -rf conftest.dir 3544else 3545 am_cv_CC_dependencies_compiler_type=none 3546fi 3547 3548fi 3549{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3550$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3551CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3552 3553 if 3554 test "x$enable_dependency_tracking" != xno \ 3555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3556 am__fastdepCC_TRUE= 3557 am__fastdepCC_FALSE='#' 3558else 3559 am__fastdepCC_TRUE='#' 3560 am__fastdepCC_FALSE= 3561fi 3562 3563 3564 3565{ $as_echo "$as_me:$LINENO: checking if cross compiling" >&5 3566$as_echo_n "checking if cross compiling... " >&6; } 3567if test "x$cross_compiling" = "xno"; then 3568 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}} 3569 { $as_echo "$as_me:$LINENO: result: no" >&5 3570$as_echo "no" >&6; } 3571else 3572 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 3573 { $as_echo "$as_me:$LINENO: result: yes" >&5 3574$as_echo "yes" >&6; } 3575fi 3576 3577 3578 3579# 3580# do we need libm for 'sqrt' and 'pow'? 3581# 3582 3583{ $as_echo "$as_me:$LINENO: checking for library containing sqrt" >&5 3584$as_echo_n "checking for library containing sqrt... " >&6; } 3585if test "${ac_cv_search_sqrt+set}" = set; then 3586 $as_echo_n "(cached) " >&6 3587else 3588 ac_func_search_save_LIBS=$LIBS 3589cat >conftest.$ac_ext <<_ACEOF 3590/* confdefs.h. */ 3591_ACEOF 3592cat confdefs.h >>conftest.$ac_ext 3593cat >>conftest.$ac_ext <<_ACEOF 3594/* end confdefs.h. */ 3595 3596/* Override any GCC internal prototype to avoid an error. 3597 Use char because int might match the return type of a GCC 3598 builtin and then its argument prototype would still apply. */ 3599#ifdef __cplusplus 3600extern "C" 3601#endif 3602char sqrt (); 3603int 3604main () 3605{ 3606return sqrt (); 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611for ac_lib in '' m; do 3612 if test -z "$ac_lib"; then 3613 ac_res="none required" 3614 else 3615 ac_res=-l$ac_lib 3616 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3617 fi 3618 rm -f conftest.$ac_objext conftest$ac_exeext 3619if { (ac_try="$ac_link" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3625$as_echo "$ac_try_echo") >&5 3626 (eval "$ac_link") 2>conftest.er1 3627 ac_status=$? 3628 grep -v '^ *+' conftest.er1 >conftest.err 3629 rm -f conftest.er1 3630 cat conftest.err >&5 3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } && { 3633 test -z "$ac_c_werror_flag" || 3634 test ! -s conftest.err 3635 } && test -s conftest$ac_exeext && { 3636 test "$cross_compiling" = yes || 3637 $as_test_x conftest$ac_exeext 3638 }; then 3639 ac_cv_search_sqrt=$ac_res 3640else 3641 $as_echo "$as_me: failed program was:" >&5 3642sed 's/^/| /' conftest.$ac_ext >&5 3643 3644 3645fi 3646 3647rm -rf conftest.dSYM 3648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3649 conftest$ac_exeext 3650 if test "${ac_cv_search_sqrt+set}" = set; then 3651 break 3652fi 3653done 3654if test "${ac_cv_search_sqrt+set}" = set; then 3655 : 3656else 3657 ac_cv_search_sqrt=no 3658fi 3659rm conftest.$ac_ext 3660LIBS=$ac_func_search_save_LIBS 3661fi 3662{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5 3663$as_echo "$ac_cv_search_sqrt" >&6; } 3664ac_res=$ac_cv_search_sqrt 3665if test "$ac_res" != no; then 3666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3667 3668fi 3669 3670{ $as_echo "$as_me:$LINENO: checking for library containing pow" >&5 3671$as_echo_n "checking for library containing pow... " >&6; } 3672if test "${ac_cv_search_pow+set}" = set; then 3673 $as_echo_n "(cached) " >&6 3674else 3675 ac_func_search_save_LIBS=$LIBS 3676cat >conftest.$ac_ext <<_ACEOF 3677/* confdefs.h. */ 3678_ACEOF 3679cat confdefs.h >>conftest.$ac_ext 3680cat >>conftest.$ac_ext <<_ACEOF 3681/* end confdefs.h. */ 3682 3683/* Override any GCC internal prototype to avoid an error. 3684 Use char because int might match the return type of a GCC 3685 builtin and then its argument prototype would still apply. */ 3686#ifdef __cplusplus 3687extern "C" 3688#endif 3689char pow (); 3690int 3691main () 3692{ 3693return pow (); 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698for ac_lib in '' m; do 3699 if test -z "$ac_lib"; then 3700 ac_res="none required" 3701 else 3702 ac_res=-l$ac_lib 3703 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3704 fi 3705 rm -f conftest.$ac_objext conftest$ac_exeext 3706if { (ac_try="$ac_link" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3712$as_echo "$ac_try_echo") >&5 3713 (eval "$ac_link") 2>conftest.er1 3714 ac_status=$? 3715 grep -v '^ *+' conftest.er1 >conftest.err 3716 rm -f conftest.er1 3717 cat conftest.err >&5 3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3719 (exit $ac_status); } && { 3720 test -z "$ac_c_werror_flag" || 3721 test ! -s conftest.err 3722 } && test -s conftest$ac_exeext && { 3723 test "$cross_compiling" = yes || 3724 $as_test_x conftest$ac_exeext 3725 }; then 3726 ac_cv_search_pow=$ac_res 3727else 3728 $as_echo "$as_me: failed program was:" >&5 3729sed 's/^/| /' conftest.$ac_ext >&5 3730 3731 3732fi 3733 3734rm -rf conftest.dSYM 3735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3736 conftest$ac_exeext 3737 if test "${ac_cv_search_pow+set}" = set; then 3738 break 3739fi 3740done 3741if test "${ac_cv_search_pow+set}" = set; then 3742 : 3743else 3744 ac_cv_search_pow=no 3745fi 3746rm conftest.$ac_ext 3747LIBS=$ac_func_search_save_LIBS 3748fi 3749{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5 3750$as_echo "$ac_cv_search_pow" >&6; } 3751ac_res=$ac_cv_search_pow 3752if test "$ac_res" != no; then 3753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3754 3755fi 3756 3757 3758# 3759# other things we rely on 3760# 3761 3762 3763 3764 3765 3766for ac_func in memmove memset strcasecmp strchr strdup 3767do 3768as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 3769{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 3770$as_echo_n "checking for $ac_func... " >&6; } 3771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 3772 $as_echo_n "(cached) " >&6 3773else 3774 cat >conftest.$ac_ext <<_ACEOF 3775/* confdefs.h. */ 3776_ACEOF 3777cat confdefs.h >>conftest.$ac_ext 3778cat >>conftest.$ac_ext <<_ACEOF 3779/* end confdefs.h. */ 3780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3781 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3782#define $ac_func innocuous_$ac_func 3783 3784/* System header to define __stub macros and hopefully few prototypes, 3785 which can conflict with char $ac_func (); below. 3786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3787 <limits.h> exists even on freestanding compilers. */ 3788 3789#ifdef __STDC__ 3790# include <limits.h> 3791#else 3792# include <assert.h> 3793#endif 3794 3795#undef $ac_func 3796 3797/* Override any GCC internal prototype to avoid an error. 3798 Use char because int might match the return type of a GCC 3799 builtin and then its argument prototype would still apply. */ 3800#ifdef __cplusplus 3801extern "C" 3802#endif 3803char $ac_func (); 3804/* The GNU C library defines this for functions which it implements 3805 to always fail with ENOSYS. Some functions are actually named 3806 something starting with __ and the normal name is an alias. */ 3807#if defined __stub_$ac_func || defined __stub___$ac_func 3808choke me 3809#endif 3810 3811int 3812main () 3813{ 3814return $ac_func (); 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819rm -f conftest.$ac_objext conftest$ac_exeext 3820if { (ac_try="$ac_link" 3821case "(($ac_try" in 3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3823 *) ac_try_echo=$ac_try;; 3824esac 3825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3826$as_echo "$ac_try_echo") >&5 3827 (eval "$ac_link") 2>conftest.er1 3828 ac_status=$? 3829 grep -v '^ *+' conftest.er1 >conftest.err 3830 rm -f conftest.er1 3831 cat conftest.err >&5 3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 (exit $ac_status); } && { 3834 test -z "$ac_c_werror_flag" || 3835 test ! -s conftest.err 3836 } && test -s conftest$ac_exeext && { 3837 test "$cross_compiling" = yes || 3838 $as_test_x conftest$ac_exeext 3839 }; then 3840 eval "$as_ac_var=yes" 3841else 3842 $as_echo "$as_me: failed program was:" >&5 3843sed 's/^/| /' conftest.$ac_ext >&5 3844 3845 eval "$as_ac_var=no" 3846fi 3847 3848rm -rf conftest.dSYM 3849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3850 conftest$ac_exeext conftest.$ac_ext 3851fi 3852ac_res=`eval 'as_val=${'$as_ac_var'} 3853 $as_echo "$as_val"'` 3854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3855$as_echo "$ac_res" >&6; } 3856if test `eval 'as_val=${'$as_ac_var'} 3857 $as_echo "$as_val"'` = yes; then 3858 cat >>confdefs.h <<_ACEOF 3859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 3860_ACEOF 3861 3862fi 3863done 3864 3865ac_ext=c 3866ac_cpp='$CPP $CPPFLAGS' 3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3869ac_compiler_gnu=$ac_cv_c_compiler_gnu 3870{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3871$as_echo_n "checking how to run the C preprocessor... " >&6; } 3872# On Suns, sometimes $CPP names a directory. 3873if test -n "$CPP" && test -d "$CPP"; then 3874 CPP= 3875fi 3876if test -z "$CPP"; then 3877 if test "${ac_cv_prog_CPP+set}" = set; then 3878 $as_echo_n "(cached) " >&6 3879else 3880 # Double quotes because CPP needs to be expanded 3881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3882 do 3883 ac_preproc_ok=false 3884for ac_c_preproc_warn_flag in '' yes 3885do 3886 # Use a header file that comes with gcc, so configuring glibc 3887 # with a fresh cross-compiler works. 3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3889 # <limits.h> exists even on freestanding compilers. 3890 # On the NeXT, cc -E runs the code through the compiler's parser, 3891 # not just through cpp. "Syntax error" is here to catch this case. 3892 cat >conftest.$ac_ext <<_ACEOF 3893/* confdefs.h. */ 3894_ACEOF 3895cat confdefs.h >>conftest.$ac_ext 3896cat >>conftest.$ac_ext <<_ACEOF 3897/* end confdefs.h. */ 3898#ifdef __STDC__ 3899# include <limits.h> 3900#else 3901# include <assert.h> 3902#endif 3903 Syntax error 3904_ACEOF 3905if { (ac_try="$ac_cpp conftest.$ac_ext" 3906case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3911$as_echo "$ac_try_echo") >&5 3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3913 ac_status=$? 3914 grep -v '^ *+' conftest.er1 >conftest.err 3915 rm -f conftest.er1 3916 cat conftest.err >&5 3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 (exit $ac_status); } >/dev/null && { 3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3920 test ! -s conftest.err 3921 }; then 3922 : 3923else 3924 $as_echo "$as_me: failed program was:" >&5 3925sed 's/^/| /' conftest.$ac_ext >&5 3926 3927 # Broken: fails on valid input. 3928continue 3929fi 3930 3931rm -f conftest.err conftest.$ac_ext 3932 3933 # OK, works on sane cases. Now check whether nonexistent headers 3934 # can be detected and how. 3935 cat >conftest.$ac_ext <<_ACEOF 3936/* confdefs.h. */ 3937_ACEOF 3938cat confdefs.h >>conftest.$ac_ext 3939cat >>conftest.$ac_ext <<_ACEOF 3940/* end confdefs.h. */ 3941#include <ac_nonexistent.h> 3942_ACEOF 3943if { (ac_try="$ac_cpp conftest.$ac_ext" 3944case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947esac 3948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3949$as_echo "$ac_try_echo") >&5 3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3951 ac_status=$? 3952 grep -v '^ *+' conftest.er1 >conftest.err 3953 rm -f conftest.er1 3954 cat conftest.err >&5 3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3956 (exit $ac_status); } >/dev/null && { 3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3958 test ! -s conftest.err 3959 }; then 3960 # Broken: success on invalid input. 3961continue 3962else 3963 $as_echo "$as_me: failed program was:" >&5 3964sed 's/^/| /' conftest.$ac_ext >&5 3965 3966 # Passes both tests. 3967ac_preproc_ok=: 3968break 3969fi 3970 3971rm -f conftest.err conftest.$ac_ext 3972 3973done 3974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3975rm -f conftest.err conftest.$ac_ext 3976if $ac_preproc_ok; then 3977 break 3978fi 3979 3980 done 3981 ac_cv_prog_CPP=$CPP 3982 3983fi 3984 CPP=$ac_cv_prog_CPP 3985else 3986 ac_cv_prog_CPP=$CPP 3987fi 3988{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3989$as_echo "$CPP" >&6; } 3990ac_preproc_ok=false 3991for ac_c_preproc_warn_flag in '' yes 3992do 3993 # Use a header file that comes with gcc, so configuring glibc 3994 # with a fresh cross-compiler works. 3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3996 # <limits.h> exists even on freestanding compilers. 3997 # On the NeXT, cc -E runs the code through the compiler's parser, 3998 # not just through cpp. "Syntax error" is here to catch this case. 3999 cat >conftest.$ac_ext <<_ACEOF 4000/* confdefs.h. */ 4001_ACEOF 4002cat confdefs.h >>conftest.$ac_ext 4003cat >>conftest.$ac_ext <<_ACEOF 4004/* end confdefs.h. */ 4005#ifdef __STDC__ 4006# include <limits.h> 4007#else 4008# include <assert.h> 4009#endif 4010 Syntax error 4011_ACEOF 4012if { (ac_try="$ac_cpp conftest.$ac_ext" 4013case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4018$as_echo "$ac_try_echo") >&5 4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4020 ac_status=$? 4021 grep -v '^ *+' conftest.er1 >conftest.err 4022 rm -f conftest.er1 4023 cat conftest.err >&5 4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); } >/dev/null && { 4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4027 test ! -s conftest.err 4028 }; then 4029 : 4030else 4031 $as_echo "$as_me: failed program was:" >&5 4032sed 's/^/| /' conftest.$ac_ext >&5 4033 4034 # Broken: fails on valid input. 4035continue 4036fi 4037 4038rm -f conftest.err conftest.$ac_ext 4039 4040 # OK, works on sane cases. Now check whether nonexistent headers 4041 # can be detected and how. 4042 cat >conftest.$ac_ext <<_ACEOF 4043/* confdefs.h. */ 4044_ACEOF 4045cat confdefs.h >>conftest.$ac_ext 4046cat >>conftest.$ac_ext <<_ACEOF 4047/* end confdefs.h. */ 4048#include <ac_nonexistent.h> 4049_ACEOF 4050if { (ac_try="$ac_cpp conftest.$ac_ext" 4051case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4056$as_echo "$ac_try_echo") >&5 4057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4058 ac_status=$? 4059 grep -v '^ *+' conftest.er1 >conftest.err 4060 rm -f conftest.er1 4061 cat conftest.err >&5 4062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4063 (exit $ac_status); } >/dev/null && { 4064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4065 test ! -s conftest.err 4066 }; then 4067 # Broken: success on invalid input. 4068continue 4069else 4070 $as_echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073 # Passes both tests. 4074ac_preproc_ok=: 4075break 4076fi 4077 4078rm -f conftest.err conftest.$ac_ext 4079 4080done 4081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4082rm -f conftest.err conftest.$ac_ext 4083if $ac_preproc_ok; then 4084 : 4085else 4086 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4087See \`config.log' for more details." >&5 4088$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4089See \`config.log' for more details." >&2;} 4090 { (exit 1); exit 1; }; } 4091fi 4092 4093ac_ext=c 4094ac_cpp='$CPP $CPPFLAGS' 4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4097ac_compiler_gnu=$ac_cv_c_compiler_gnu 4098 4099 4100{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4101$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4102if test "${ac_cv_path_GREP+set}" = set; then 4103 $as_echo_n "(cached) " >&6 4104else 4105 if test -z "$GREP"; then 4106 ac_path_GREP_found=false 4107 # Loop through the user's path and test for each of PROGNAME-LIST 4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4110do 4111 IFS=$as_save_IFS 4112 test -z "$as_dir" && as_dir=. 4113 for ac_prog in grep ggrep; do 4114 for ac_exec_ext in '' $ac_executable_extensions; do 4115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4117# Check for GNU ac_path_GREP and select it if it is found. 4118 # Check for GNU $ac_path_GREP 4119case `"$ac_path_GREP" --version 2>&1` in 4120*GNU*) 4121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4122*) 4123 ac_count=0 4124 $as_echo_n 0123456789 >"conftest.in" 4125 while : 4126 do 4127 cat "conftest.in" "conftest.in" >"conftest.tmp" 4128 mv "conftest.tmp" "conftest.in" 4129 cp "conftest.in" "conftest.nl" 4130 $as_echo 'GREP' >> "conftest.nl" 4131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4133 ac_count=`expr $ac_count + 1` 4134 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4135 # Best one so far, save it but keep looking for a better one 4136 ac_cv_path_GREP="$ac_path_GREP" 4137 ac_path_GREP_max=$ac_count 4138 fi 4139 # 10*(2^10) chars as input seems more than enough 4140 test $ac_count -gt 10 && break 4141 done 4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4143esac 4144 4145 $ac_path_GREP_found && break 3 4146 done 4147 done 4148done 4149IFS=$as_save_IFS 4150 if test -z "$ac_cv_path_GREP"; then 4151 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4152$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4153 { (exit 1); exit 1; }; } 4154 fi 4155else 4156 ac_cv_path_GREP=$GREP 4157fi 4158 4159fi 4160{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4161$as_echo "$ac_cv_path_GREP" >&6; } 4162 GREP="$ac_cv_path_GREP" 4163 4164 4165{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4166$as_echo_n "checking for egrep... " >&6; } 4167if test "${ac_cv_path_EGREP+set}" = set; then 4168 $as_echo_n "(cached) " >&6 4169else 4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4171 then ac_cv_path_EGREP="$GREP -E" 4172 else 4173 if test -z "$EGREP"; then 4174 ac_path_EGREP_found=false 4175 # Loop through the user's path and test for each of PROGNAME-LIST 4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_prog in egrep; do 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4185# Check for GNU ac_path_EGREP and select it if it is found. 4186 # Check for GNU $ac_path_EGREP 4187case `"$ac_path_EGREP" --version 2>&1` in 4188*GNU*) 4189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4190*) 4191 ac_count=0 4192 $as_echo_n 0123456789 >"conftest.in" 4193 while : 4194 do 4195 cat "conftest.in" "conftest.in" >"conftest.tmp" 4196 mv "conftest.tmp" "conftest.in" 4197 cp "conftest.in" "conftest.nl" 4198 $as_echo 'EGREP' >> "conftest.nl" 4199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4201 ac_count=`expr $ac_count + 1` 4202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4203 # Best one so far, save it but keep looking for a better one 4204 ac_cv_path_EGREP="$ac_path_EGREP" 4205 ac_path_EGREP_max=$ac_count 4206 fi 4207 # 10*(2^10) chars as input seems more than enough 4208 test $ac_count -gt 10 && break 4209 done 4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4211esac 4212 4213 $ac_path_EGREP_found && break 3 4214 done 4215 done 4216done 4217IFS=$as_save_IFS 4218 if test -z "$ac_cv_path_EGREP"; then 4219 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4220$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4221 { (exit 1); exit 1; }; } 4222 fi 4223else 4224 ac_cv_path_EGREP=$EGREP 4225fi 4226 4227 fi 4228fi 4229{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4230$as_echo "$ac_cv_path_EGREP" >&6; } 4231 EGREP="$ac_cv_path_EGREP" 4232 4233 4234{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4235$as_echo_n "checking for ANSI C header files... " >&6; } 4236if test "${ac_cv_header_stdc+set}" = set; then 4237 $as_echo_n "(cached) " >&6 4238else 4239 cat >conftest.$ac_ext <<_ACEOF 4240/* confdefs.h. */ 4241_ACEOF 4242cat confdefs.h >>conftest.$ac_ext 4243cat >>conftest.$ac_ext <<_ACEOF 4244/* end confdefs.h. */ 4245#include <stdlib.h> 4246#include <stdarg.h> 4247#include <string.h> 4248#include <float.h> 4249 4250int 4251main () 4252{ 4253 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258rm -f conftest.$ac_objext 4259if { (ac_try="$ac_compile" 4260case "(($ac_try" in 4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4262 *) ac_try_echo=$ac_try;; 4263esac 4264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4265$as_echo "$ac_try_echo") >&5 4266 (eval "$ac_compile") 2>conftest.er1 4267 ac_status=$? 4268 grep -v '^ *+' conftest.er1 >conftest.err 4269 rm -f conftest.er1 4270 cat conftest.err >&5 4271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); } && { 4273 test -z "$ac_c_werror_flag" || 4274 test ! -s conftest.err 4275 } && test -s conftest.$ac_objext; then 4276 ac_cv_header_stdc=yes 4277else 4278 $as_echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281 ac_cv_header_stdc=no 4282fi 4283 4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4285 4286if test $ac_cv_header_stdc = yes; then 4287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4288 cat >conftest.$ac_ext <<_ACEOF 4289/* confdefs.h. */ 4290_ACEOF 4291cat confdefs.h >>conftest.$ac_ext 4292cat >>conftest.$ac_ext <<_ACEOF 4293/* end confdefs.h. */ 4294#include <string.h> 4295 4296_ACEOF 4297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4298 $EGREP "memchr" >/dev/null 2>&1; then 4299 : 4300else 4301 ac_cv_header_stdc=no 4302fi 4303rm -f conftest* 4304 4305fi 4306 4307if test $ac_cv_header_stdc = yes; then 4308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4309 cat >conftest.$ac_ext <<_ACEOF 4310/* confdefs.h. */ 4311_ACEOF 4312cat confdefs.h >>conftest.$ac_ext 4313cat >>conftest.$ac_ext <<_ACEOF 4314/* end confdefs.h. */ 4315#include <stdlib.h> 4316 4317_ACEOF 4318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4319 $EGREP "free" >/dev/null 2>&1; then 4320 : 4321else 4322 ac_cv_header_stdc=no 4323fi 4324rm -f conftest* 4325 4326fi 4327 4328if test $ac_cv_header_stdc = yes; then 4329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4330 if test "$cross_compiling" = yes; then 4331 : 4332else 4333 cat >conftest.$ac_ext <<_ACEOF 4334/* confdefs.h. */ 4335_ACEOF 4336cat confdefs.h >>conftest.$ac_ext 4337cat >>conftest.$ac_ext <<_ACEOF 4338/* end confdefs.h. */ 4339#include <ctype.h> 4340#include <stdlib.h> 4341#if ((' ' & 0x0FF) == 0x020) 4342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4344#else 4345# define ISLOWER(c) \ 4346 (('a' <= (c) && (c) <= 'i') \ 4347 || ('j' <= (c) && (c) <= 'r') \ 4348 || ('s' <= (c) && (c) <= 'z')) 4349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4350#endif 4351 4352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4353int 4354main () 4355{ 4356 int i; 4357 for (i = 0; i < 256; i++) 4358 if (XOR (islower (i), ISLOWER (i)) 4359 || toupper (i) != TOUPPER (i)) 4360 return 2; 4361 return 0; 4362} 4363_ACEOF 4364rm -f conftest$ac_exeext 4365if { (ac_try="$ac_link" 4366case "(($ac_try" in 4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4368 *) ac_try_echo=$ac_try;; 4369esac 4370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4371$as_echo "$ac_try_echo") >&5 4372 (eval "$ac_link") 2>&5 4373 ac_status=$? 4374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4376 { (case "(($ac_try" in 4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4378 *) ac_try_echo=$ac_try;; 4379esac 4380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4381$as_echo "$ac_try_echo") >&5 4382 (eval "$ac_try") 2>&5 4383 ac_status=$? 4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); }; }; then 4386 : 4387else 4388 $as_echo "$as_me: program exited with status $ac_status" >&5 4389$as_echo "$as_me: failed program was:" >&5 4390sed 's/^/| /' conftest.$ac_ext >&5 4391 4392( exit $ac_status ) 4393ac_cv_header_stdc=no 4394fi 4395rm -rf conftest.dSYM 4396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4397fi 4398 4399 4400fi 4401fi 4402{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4403$as_echo "$ac_cv_header_stdc" >&6; } 4404if test $ac_cv_header_stdc = yes; then 4405 4406cat >>confdefs.h <<\_ACEOF 4407#define STDC_HEADERS 1 4408_ACEOF 4409 4410fi 4411 4412# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4423 inttypes.h stdint.h unistd.h 4424do 4425as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4426{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4427$as_echo_n "checking for $ac_header... " >&6; } 4428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4429 $as_echo_n "(cached) " >&6 4430else 4431 cat >conftest.$ac_ext <<_ACEOF 4432/* confdefs.h. */ 4433_ACEOF 4434cat confdefs.h >>conftest.$ac_ext 4435cat >>conftest.$ac_ext <<_ACEOF 4436/* end confdefs.h. */ 4437$ac_includes_default 4438 4439#include <$ac_header> 4440_ACEOF 4441rm -f conftest.$ac_objext 4442if { (ac_try="$ac_compile" 4443case "(($ac_try" in 4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4445 *) ac_try_echo=$ac_try;; 4446esac 4447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4448$as_echo "$ac_try_echo") >&5 4449 (eval "$ac_compile") 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } && { 4456 test -z "$ac_c_werror_flag" || 4457 test ! -s conftest.err 4458 } && test -s conftest.$ac_objext; then 4459 eval "$as_ac_Header=yes" 4460else 4461 $as_echo "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464 eval "$as_ac_Header=no" 4465fi 4466 4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4468fi 4469ac_res=`eval 'as_val=${'$as_ac_Header'} 4470 $as_echo "$as_val"'` 4471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4472$as_echo "$ac_res" >&6; } 4473if test `eval 'as_val=${'$as_ac_Header'} 4474 $as_echo "$as_val"'` = yes; then 4475 cat >>confdefs.h <<_ACEOF 4476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4477_ACEOF 4478 4479fi 4480 4481done 4482 4483 4484 4485for ac_header in sys/param.h 4486do 4487as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4490$as_echo_n "checking for $ac_header... " >&6; } 4491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4492 $as_echo_n "(cached) " >&6 4493fi 4494ac_res=`eval 'as_val=${'$as_ac_Header'} 4495 $as_echo "$as_val"'` 4496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4497$as_echo "$ac_res" >&6; } 4498else 4499 # Is the header compilable? 4500{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4501$as_echo_n "checking $ac_header usability... " >&6; } 4502cat >conftest.$ac_ext <<_ACEOF 4503/* confdefs.h. */ 4504_ACEOF 4505cat confdefs.h >>conftest.$ac_ext 4506cat >>conftest.$ac_ext <<_ACEOF 4507/* end confdefs.h. */ 4508$ac_includes_default 4509#include <$ac_header> 4510_ACEOF 4511rm -f conftest.$ac_objext 4512if { (ac_try="$ac_compile" 4513case "(($ac_try" in 4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4515 *) ac_try_echo=$ac_try;; 4516esac 4517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4518$as_echo "$ac_try_echo") >&5 4519 (eval "$ac_compile") 2>conftest.er1 4520 ac_status=$? 4521 grep -v '^ *+' conftest.er1 >conftest.err 4522 rm -f conftest.er1 4523 cat conftest.err >&5 4524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } && { 4526 test -z "$ac_c_werror_flag" || 4527 test ! -s conftest.err 4528 } && test -s conftest.$ac_objext; then 4529 ac_header_compiler=yes 4530else 4531 $as_echo "$as_me: failed program was:" >&5 4532sed 's/^/| /' conftest.$ac_ext >&5 4533 4534 ac_header_compiler=no 4535fi 4536 4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4538{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4539$as_echo "$ac_header_compiler" >&6; } 4540 4541# Is the header present? 4542{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4543$as_echo_n "checking $ac_header presence... " >&6; } 4544cat >conftest.$ac_ext <<_ACEOF 4545/* confdefs.h. */ 4546_ACEOF 4547cat confdefs.h >>conftest.$ac_ext 4548cat >>conftest.$ac_ext <<_ACEOF 4549/* end confdefs.h. */ 4550#include <$ac_header> 4551_ACEOF 4552if { (ac_try="$ac_cpp conftest.$ac_ext" 4553case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556esac 4557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4558$as_echo "$ac_try_echo") >&5 4559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4560 ac_status=$? 4561 grep -v '^ *+' conftest.er1 >conftest.err 4562 rm -f conftest.er1 4563 cat conftest.err >&5 4564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); } >/dev/null && { 4566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4567 test ! -s conftest.err 4568 }; then 4569 ac_header_preproc=yes 4570else 4571 $as_echo "$as_me: failed program was:" >&5 4572sed 's/^/| /' conftest.$ac_ext >&5 4573 4574 ac_header_preproc=no 4575fi 4576 4577rm -f conftest.err conftest.$ac_ext 4578{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4579$as_echo "$ac_header_preproc" >&6; } 4580 4581# So? What about this header? 4582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4583 yes:no: ) 4584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4585$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4587$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4588 ac_header_preproc=yes 4589 ;; 4590 no:yes:* ) 4591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4592$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4594$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4596$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4598$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4600$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4602$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4603 ( cat <<\_ASBOX 4604## -------------------------------------------------- ## 4605## Report this to pnm2ppa-users@lists.sourceforge.net ## 4606## -------------------------------------------------- ## 4607_ASBOX 4608 ) | sed "s/^/$as_me: WARNING: /" >&2 4609 ;; 4610esac 4611{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4612$as_echo_n "checking for $ac_header... " >&6; } 4613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4614 $as_echo_n "(cached) " >&6 4615else 4616 eval "$as_ac_Header=\$ac_header_preproc" 4617fi 4618ac_res=`eval 'as_val=${'$as_ac_Header'} 4619 $as_echo "$as_val"'` 4620 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4621$as_echo "$ac_res" >&6; } 4622 4623fi 4624if test `eval 'as_val=${'$as_ac_Header'} 4625 $as_echo "$as_val"'` = yes; then 4626 cat >>confdefs.h <<_ACEOF 4627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4628_ACEOF 4629 4630fi 4631 4632done 4633 4634{ $as_echo "$as_me:$LINENO: checking for inline" >&5 4635$as_echo_n "checking for inline... " >&6; } 4636if test "${ac_cv_c_inline+set}" = set; then 4637 $as_echo_n "(cached) " >&6 4638else 4639 ac_cv_c_inline=no 4640for ac_kw in inline __inline__ __inline; do 4641 cat >conftest.$ac_ext <<_ACEOF 4642/* confdefs.h. */ 4643_ACEOF 4644cat confdefs.h >>conftest.$ac_ext 4645cat >>conftest.$ac_ext <<_ACEOF 4646/* end confdefs.h. */ 4647#ifndef __cplusplus 4648typedef int foo_t; 4649static $ac_kw foo_t static_foo () {return 0; } 4650$ac_kw foo_t foo () {return 0; } 4651#endif 4652 4653_ACEOF 4654rm -f conftest.$ac_objext 4655if { (ac_try="$ac_compile" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4661$as_echo "$ac_try_echo") >&5 4662 (eval "$ac_compile") 2>conftest.er1 4663 ac_status=$? 4664 grep -v '^ *+' conftest.er1 >conftest.err 4665 rm -f conftest.er1 4666 cat conftest.err >&5 4667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); } && { 4669 test -z "$ac_c_werror_flag" || 4670 test ! -s conftest.err 4671 } && test -s conftest.$ac_objext; then 4672 ac_cv_c_inline=$ac_kw 4673else 4674 $as_echo "$as_me: failed program was:" >&5 4675sed 's/^/| /' conftest.$ac_ext >&5 4676 4677 4678fi 4679 4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4681 test "$ac_cv_c_inline" != no && break 4682done 4683 4684fi 4685{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4686$as_echo "$ac_cv_c_inline" >&6; } 4687 4688 4689case $ac_cv_c_inline in 4690 inline | yes) ;; 4691 *) 4692 case $ac_cv_c_inline in 4693 no) ac_val=;; 4694 *) ac_val=$ac_cv_c_inline;; 4695 esac 4696 cat >>confdefs.h <<_ACEOF 4697#ifndef __cplusplus 4698#define inline $ac_val 4699#endif 4700_ACEOF 4701 ;; 4702esac 4703 4704 4705for ac_header in stdlib.h 4706do 4707as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4710$as_echo_n "checking for $ac_header... " >&6; } 4711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4712 $as_echo_n "(cached) " >&6 4713fi 4714ac_res=`eval 'as_val=${'$as_ac_Header'} 4715 $as_echo "$as_val"'` 4716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4717$as_echo "$ac_res" >&6; } 4718else 4719 # Is the header compilable? 4720{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 4721$as_echo_n "checking $ac_header usability... " >&6; } 4722cat >conftest.$ac_ext <<_ACEOF 4723/* confdefs.h. */ 4724_ACEOF 4725cat confdefs.h >>conftest.$ac_ext 4726cat >>conftest.$ac_ext <<_ACEOF 4727/* end confdefs.h. */ 4728$ac_includes_default 4729#include <$ac_header> 4730_ACEOF 4731rm -f conftest.$ac_objext 4732if { (ac_try="$ac_compile" 4733case "(($ac_try" in 4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4735 *) ac_try_echo=$ac_try;; 4736esac 4737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4738$as_echo "$ac_try_echo") >&5 4739 (eval "$ac_compile") 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } && { 4746 test -z "$ac_c_werror_flag" || 4747 test ! -s conftest.err 4748 } && test -s conftest.$ac_objext; then 4749 ac_header_compiler=yes 4750else 4751 $as_echo "$as_me: failed program was:" >&5 4752sed 's/^/| /' conftest.$ac_ext >&5 4753 4754 ac_header_compiler=no 4755fi 4756 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4759$as_echo "$ac_header_compiler" >&6; } 4760 4761# Is the header present? 4762{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 4763$as_echo_n "checking $ac_header presence... " >&6; } 4764cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770#include <$ac_header> 4771_ACEOF 4772if { (ac_try="$ac_cpp conftest.$ac_ext" 4773case "(($ac_try" in 4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4775 *) ac_try_echo=$ac_try;; 4776esac 4777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4778$as_echo "$ac_try_echo") >&5 4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4780 ac_status=$? 4781 grep -v '^ *+' conftest.er1 >conftest.err 4782 rm -f conftest.er1 4783 cat conftest.err >&5 4784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); } >/dev/null && { 4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4787 test ! -s conftest.err 4788 }; then 4789 ac_header_preproc=yes 4790else 4791 $as_echo "$as_me: failed program was:" >&5 4792sed 's/^/| /' conftest.$ac_ext >&5 4793 4794 ac_header_preproc=no 4795fi 4796 4797rm -f conftest.err conftest.$ac_ext 4798{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4799$as_echo "$ac_header_preproc" >&6; } 4800 4801# So? What about this header? 4802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4803 yes:no: ) 4804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4805$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4807$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4808 ac_header_preproc=yes 4809 ;; 4810 no:yes:* ) 4811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4812$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4814$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4816$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4818$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4820$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4822$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4823 ( cat <<\_ASBOX 4824## -------------------------------------------------- ## 4825## Report this to pnm2ppa-users@lists.sourceforge.net ## 4826## -------------------------------------------------- ## 4827_ASBOX 4828 ) | sed "s/^/$as_me: WARNING: /" >&2 4829 ;; 4830esac 4831{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4832$as_echo_n "checking for $ac_header... " >&6; } 4833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4834 $as_echo_n "(cached) " >&6 4835else 4836 eval "$as_ac_Header=\$ac_header_preproc" 4837fi 4838ac_res=`eval 'as_val=${'$as_ac_Header'} 4839 $as_echo "$as_val"'` 4840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4841$as_echo "$ac_res" >&6; } 4842 4843fi 4844if test `eval 'as_val=${'$as_ac_Header'} 4845 $as_echo "$as_val"'` = yes; then 4846 cat >>confdefs.h <<_ACEOF 4847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4848_ACEOF 4849 4850fi 4851 4852done 4853 4854{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 4855$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 4856if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 4857 $as_echo_n "(cached) " >&6 4858else 4859 if test "$cross_compiling" = yes; then 4860 ac_cv_func_malloc_0_nonnull=no 4861else 4862 cat >conftest.$ac_ext <<_ACEOF 4863/* confdefs.h. */ 4864_ACEOF 4865cat confdefs.h >>conftest.$ac_ext 4866cat >>conftest.$ac_ext <<_ACEOF 4867/* end confdefs.h. */ 4868#if defined STDC_HEADERS || defined HAVE_STDLIB_H 4869# include <stdlib.h> 4870#else 4871char *malloc (); 4872#endif 4873 4874int 4875main () 4876{ 4877return ! malloc (0); 4878 ; 4879 return 0; 4880} 4881_ACEOF 4882rm -f conftest$ac_exeext 4883if { (ac_try="$ac_link" 4884case "(($ac_try" in 4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4886 *) ac_try_echo=$ac_try;; 4887esac 4888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4889$as_echo "$ac_try_echo") >&5 4890 (eval "$ac_link") 2>&5 4891 ac_status=$? 4892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4894 { (case "(($ac_try" in 4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4896 *) ac_try_echo=$ac_try;; 4897esac 4898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4899$as_echo "$ac_try_echo") >&5 4900 (eval "$ac_try") 2>&5 4901 ac_status=$? 4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4903 (exit $ac_status); }; }; then 4904 ac_cv_func_malloc_0_nonnull=yes 4905else 4906 $as_echo "$as_me: program exited with status $ac_status" >&5 4907$as_echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910( exit $ac_status ) 4911ac_cv_func_malloc_0_nonnull=no 4912fi 4913rm -rf conftest.dSYM 4914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4915fi 4916 4917 4918fi 4919{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 4920$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 4921if test $ac_cv_func_malloc_0_nonnull = yes; then 4922 4923cat >>confdefs.h <<\_ACEOF 4924#define HAVE_MALLOC 1 4925_ACEOF 4926 4927else 4928 cat >>confdefs.h <<\_ACEOF 4929#define HAVE_MALLOC 0 4930_ACEOF 4931 4932 case " $LIBOBJS " in 4933 *" malloc.$ac_objext "* ) ;; 4934 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 4935 ;; 4936esac 4937 4938 4939cat >>confdefs.h <<\_ACEOF 4940#define malloc rpl_malloc 4941_ACEOF 4942 4943fi 4944 4945 4946 4947{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 4948$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 4949if test "${ac_cv_header_stdbool_h+set}" = set; then 4950 $as_echo_n "(cached) " >&6 4951else 4952 cat >conftest.$ac_ext <<_ACEOF 4953/* confdefs.h. */ 4954_ACEOF 4955cat confdefs.h >>conftest.$ac_ext 4956cat >>conftest.$ac_ext <<_ACEOF 4957/* end confdefs.h. */ 4958 4959#include <stdbool.h> 4960#ifndef bool 4961 "error: bool is not defined" 4962#endif 4963#ifndef false 4964 "error: false is not defined" 4965#endif 4966#if false 4967 "error: false is not 0" 4968#endif 4969#ifndef true 4970 "error: true is not defined" 4971#endif 4972#if true != 1 4973 "error: true is not 1" 4974#endif 4975#ifndef __bool_true_false_are_defined 4976 "error: __bool_true_false_are_defined is not defined" 4977#endif 4978 4979 struct s { _Bool s: 1; _Bool t; } s; 4980 4981 char a[true == 1 ? 1 : -1]; 4982 char b[false == 0 ? 1 : -1]; 4983 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4984 char d[(bool) 0.5 == true ? 1 : -1]; 4985 bool e = &s; 4986 char f[(_Bool) 0.0 == false ? 1 : -1]; 4987 char g[true]; 4988 char h[sizeof (_Bool)]; 4989 char i[sizeof s.t]; 4990 enum { j = false, k = true, l = false * true, m = true * 256 }; 4991 /* The following fails for 4992 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 4993 _Bool n[m]; 4994 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 4995 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 4996# if defined __xlc__ || defined __GNUC__ 4997 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 4998 reported by James Lemley on 2005-10-05; see 4999 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 5000 This test is not quite right, since xlc is allowed to 5001 reject this program, as the initializer for xlcbug is 5002 not one of the forms that C requires support for. 5003 However, doing the test right would require a runtime 5004 test, and that would make cross-compilation harder. 5005 Let us hope that IBM fixes the xlc bug, and also adds 5006 support for this kind of constant expression. In the 5007 meantime, this test will reject xlc, which is OK, since 5008 our stdbool.h substitute should suffice. We also test 5009 this with GCC, where it should work, to detect more 5010 quickly whether someone messes up the test in the 5011 future. */ 5012 char digs[] = "0123456789"; 5013 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 5014# endif 5015 /* Catch a bug in an HP-UX C compiler. See 5016 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 5017 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 5018 */ 5019 _Bool q = true; 5020 _Bool *pq = &q; 5021 5022int 5023main () 5024{ 5025 5026 *pq |= q; 5027 *pq |= ! q; 5028 /* Refer to every declared value, to avoid compiler optimizations. */ 5029 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 5030 + !m + !n + !o + !p + !q + !pq); 5031 5032 ; 5033 return 0; 5034} 5035_ACEOF 5036rm -f conftest.$ac_objext 5037if { (ac_try="$ac_compile" 5038case "(($ac_try" in 5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5040 *) ac_try_echo=$ac_try;; 5041esac 5042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5043$as_echo "$ac_try_echo") >&5 5044 (eval "$ac_compile") 2>conftest.er1 5045 ac_status=$? 5046 grep -v '^ *+' conftest.er1 >conftest.err 5047 rm -f conftest.er1 5048 cat conftest.err >&5 5049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); } && { 5051 test -z "$ac_c_werror_flag" || 5052 test ! -s conftest.err 5053 } && test -s conftest.$ac_objext; then 5054 ac_cv_header_stdbool_h=yes 5055else 5056 $as_echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059 ac_cv_header_stdbool_h=no 5060fi 5061 5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5063fi 5064{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 5065$as_echo "$ac_cv_header_stdbool_h" >&6; } 5066{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5 5067$as_echo_n "checking for _Bool... " >&6; } 5068if test "${ac_cv_type__Bool+set}" = set; then 5069 $as_echo_n "(cached) " >&6 5070else 5071 ac_cv_type__Bool=no 5072cat >conftest.$ac_ext <<_ACEOF 5073/* confdefs.h. */ 5074_ACEOF 5075cat confdefs.h >>conftest.$ac_ext 5076cat >>conftest.$ac_ext <<_ACEOF 5077/* end confdefs.h. */ 5078$ac_includes_default 5079int 5080main () 5081{ 5082if (sizeof (_Bool)) 5083 return 0; 5084 ; 5085 return 0; 5086} 5087_ACEOF 5088rm -f conftest.$ac_objext 5089if { (ac_try="$ac_compile" 5090case "(($ac_try" in 5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5092 *) ac_try_echo=$ac_try;; 5093esac 5094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5095$as_echo "$ac_try_echo") >&5 5096 (eval "$ac_compile") 2>conftest.er1 5097 ac_status=$? 5098 grep -v '^ *+' conftest.er1 >conftest.err 5099 rm -f conftest.er1 5100 cat conftest.err >&5 5101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 (exit $ac_status); } && { 5103 test -z "$ac_c_werror_flag" || 5104 test ! -s conftest.err 5105 } && test -s conftest.$ac_objext; then 5106 cat >conftest.$ac_ext <<_ACEOF 5107/* confdefs.h. */ 5108_ACEOF 5109cat confdefs.h >>conftest.$ac_ext 5110cat >>conftest.$ac_ext <<_ACEOF 5111/* end confdefs.h. */ 5112$ac_includes_default 5113int 5114main () 5115{ 5116if (sizeof ((_Bool))) 5117 return 0; 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122rm -f conftest.$ac_objext 5123if { (ac_try="$ac_compile" 5124case "(($ac_try" in 5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5126 *) ac_try_echo=$ac_try;; 5127esac 5128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5129$as_echo "$ac_try_echo") >&5 5130 (eval "$ac_compile") 2>conftest.er1 5131 ac_status=$? 5132 grep -v '^ *+' conftest.er1 >conftest.err 5133 rm -f conftest.er1 5134 cat conftest.err >&5 5135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5136 (exit $ac_status); } && { 5137 test -z "$ac_c_werror_flag" || 5138 test ! -s conftest.err 5139 } && test -s conftest.$ac_objext; then 5140 : 5141else 5142 $as_echo "$as_me: failed program was:" >&5 5143sed 's/^/| /' conftest.$ac_ext >&5 5144 5145 ac_cv_type__Bool=yes 5146fi 5147 5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149else 5150 $as_echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153 5154fi 5155 5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5157fi 5158{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 5159$as_echo "$ac_cv_type__Bool" >&6; } 5160if test $ac_cv_type__Bool = yes; then 5161 5162cat >>confdefs.h <<_ACEOF 5163#define HAVE__BOOL 1 5164_ACEOF 5165 5166 5167fi 5168 5169if test $ac_cv_header_stdbool_h = yes; then 5170 5171cat >>confdefs.h <<\_ACEOF 5172#define HAVE_STDBOOL_H 1 5173_ACEOF 5174 5175fi 5176 5177{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 5178$as_echo_n "checking for size_t... " >&6; } 5179if test "${ac_cv_type_size_t+set}" = set; then 5180 $as_echo_n "(cached) " >&6 5181else 5182 ac_cv_type_size_t=no 5183cat >conftest.$ac_ext <<_ACEOF 5184/* confdefs.h. */ 5185_ACEOF 5186cat confdefs.h >>conftest.$ac_ext 5187cat >>conftest.$ac_ext <<_ACEOF 5188/* end confdefs.h. */ 5189$ac_includes_default 5190int 5191main () 5192{ 5193if (sizeof (size_t)) 5194 return 0; 5195 ; 5196 return 0; 5197} 5198_ACEOF 5199rm -f conftest.$ac_objext 5200if { (ac_try="$ac_compile" 5201case "(($ac_try" in 5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5203 *) ac_try_echo=$ac_try;; 5204esac 5205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5206$as_echo "$ac_try_echo") >&5 5207 (eval "$ac_compile") 2>conftest.er1 5208 ac_status=$? 5209 grep -v '^ *+' conftest.er1 >conftest.err 5210 rm -f conftest.er1 5211 cat conftest.err >&5 5212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5213 (exit $ac_status); } && { 5214 test -z "$ac_c_werror_flag" || 5215 test ! -s conftest.err 5216 } && test -s conftest.$ac_objext; then 5217 cat >conftest.$ac_ext <<_ACEOF 5218/* confdefs.h. */ 5219_ACEOF 5220cat confdefs.h >>conftest.$ac_ext 5221cat >>conftest.$ac_ext <<_ACEOF 5222/* end confdefs.h. */ 5223$ac_includes_default 5224int 5225main () 5226{ 5227if (sizeof ((size_t))) 5228 return 0; 5229 ; 5230 return 0; 5231} 5232_ACEOF 5233rm -f conftest.$ac_objext 5234if { (ac_try="$ac_compile" 5235case "(($ac_try" in 5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5237 *) ac_try_echo=$ac_try;; 5238esac 5239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5240$as_echo "$ac_try_echo") >&5 5241 (eval "$ac_compile") 2>conftest.er1 5242 ac_status=$? 5243 grep -v '^ *+' conftest.er1 >conftest.err 5244 rm -f conftest.er1 5245 cat conftest.err >&5 5246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 (exit $ac_status); } && { 5248 test -z "$ac_c_werror_flag" || 5249 test ! -s conftest.err 5250 } && test -s conftest.$ac_objext; then 5251 : 5252else 5253 $as_echo "$as_me: failed program was:" >&5 5254sed 's/^/| /' conftest.$ac_ext >&5 5255 5256 ac_cv_type_size_t=yes 5257fi 5258 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5260else 5261 $as_echo "$as_me: failed program was:" >&5 5262sed 's/^/| /' conftest.$ac_ext >&5 5263 5264 5265fi 5266 5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5268fi 5269{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5270$as_echo "$ac_cv_type_size_t" >&6; } 5271if test $ac_cv_type_size_t = yes; then 5272 : 5273else 5274 5275cat >>confdefs.h <<_ACEOF 5276#define size_t unsigned int 5277_ACEOF 5278 5279fi 5280 5281 5282# 5283# Some systems need a special library for 'getopt_long' 5284# (for example MacOS and FreeBSD). 5285# 5286{ $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5 5287$as_echo_n "checking for library containing getopt_long... " >&6; } 5288if test "${ac_cv_search_getopt_long+set}" = set; then 5289 $as_echo_n "(cached) " >&6 5290else 5291 ac_func_search_save_LIBS=$LIBS 5292cat >conftest.$ac_ext <<_ACEOF 5293/* confdefs.h. */ 5294_ACEOF 5295cat confdefs.h >>conftest.$ac_ext 5296cat >>conftest.$ac_ext <<_ACEOF 5297/* end confdefs.h. */ 5298 5299/* Override any GCC internal prototype to avoid an error. 5300 Use char because int might match the return type of a GCC 5301 builtin and then its argument prototype would still apply. */ 5302#ifdef __cplusplus 5303extern "C" 5304#endif 5305char getopt_long (); 5306int 5307main () 5308{ 5309return getopt_long (); 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314for ac_lib in '' gnugetopt iberty; do 5315 if test -z "$ac_lib"; then 5316 ac_res="none required" 5317 else 5318 ac_res=-l$ac_lib 5319 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5320 fi 5321 rm -f conftest.$ac_objext conftest$ac_exeext 5322if { (ac_try="$ac_link" 5323case "(($ac_try" in 5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5325 *) ac_try_echo=$ac_try;; 5326esac 5327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5328$as_echo "$ac_try_echo") >&5 5329 (eval "$ac_link") 2>conftest.er1 5330 ac_status=$? 5331 grep -v '^ *+' conftest.er1 >conftest.err 5332 rm -f conftest.er1 5333 cat conftest.err >&5 5334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); } && { 5336 test -z "$ac_c_werror_flag" || 5337 test ! -s conftest.err 5338 } && test -s conftest$ac_exeext && { 5339 test "$cross_compiling" = yes || 5340 $as_test_x conftest$ac_exeext 5341 }; then 5342 ac_cv_search_getopt_long=$ac_res 5343else 5344 $as_echo "$as_me: failed program was:" >&5 5345sed 's/^/| /' conftest.$ac_ext >&5 5346 5347 5348fi 5349 5350rm -rf conftest.dSYM 5351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5352 conftest$ac_exeext 5353 if test "${ac_cv_search_getopt_long+set}" = set; then 5354 break 5355fi 5356done 5357if test "${ac_cv_search_getopt_long+set}" = set; then 5358 : 5359else 5360 ac_cv_search_getopt_long=no 5361fi 5362rm conftest.$ac_ext 5363LIBS=$ac_func_search_save_LIBS 5364fi 5365{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5 5366$as_echo "$ac_cv_search_getopt_long" >&6; } 5367ac_res=$ac_cv_search_getopt_long 5368if test "$ac_res" != no; then 5369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5370 5371fi 5372 5373 5374# 5375# check if the syslog feature is present 5376# On some systems other than the libc is required to use this feature 5377# 5378{ $as_echo "$as_me:$LINENO: checking for library containing syslog" >&5 5379$as_echo_n "checking for library containing syslog... " >&6; } 5380if test "${ac_cv_search_syslog+set}" = set; then 5381 $as_echo_n "(cached) " >&6 5382else 5383 ac_func_search_save_LIBS=$LIBS 5384cat >conftest.$ac_ext <<_ACEOF 5385/* confdefs.h. */ 5386_ACEOF 5387cat confdefs.h >>conftest.$ac_ext 5388cat >>conftest.$ac_ext <<_ACEOF 5389/* end confdefs.h. */ 5390 5391/* Override any GCC internal prototype to avoid an error. 5392 Use char because int might match the return type of a GCC 5393 builtin and then its argument prototype would still apply. */ 5394#ifdef __cplusplus 5395extern "C" 5396#endif 5397char syslog (); 5398int 5399main () 5400{ 5401return syslog (); 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406for ac_lib in '' bsd socket inet; do 5407 if test -z "$ac_lib"; then 5408 ac_res="none required" 5409 else 5410 ac_res=-l$ac_lib 5411 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5412 fi 5413 rm -f conftest.$ac_objext conftest$ac_exeext 5414if { (ac_try="$ac_link" 5415case "(($ac_try" in 5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5417 *) ac_try_echo=$ac_try;; 5418esac 5419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5420$as_echo "$ac_try_echo") >&5 5421 (eval "$ac_link") 2>conftest.er1 5422 ac_status=$? 5423 grep -v '^ *+' conftest.er1 >conftest.err 5424 rm -f conftest.er1 5425 cat conftest.err >&5 5426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); } && { 5428 test -z "$ac_c_werror_flag" || 5429 test ! -s conftest.err 5430 } && test -s conftest$ac_exeext && { 5431 test "$cross_compiling" = yes || 5432 $as_test_x conftest$ac_exeext 5433 }; then 5434 ac_cv_search_syslog=$ac_res 5435else 5436 $as_echo "$as_me: failed program was:" >&5 5437sed 's/^/| /' conftest.$ac_ext >&5 5438 5439 5440fi 5441 5442rm -rf conftest.dSYM 5443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5444 conftest$ac_exeext 5445 if test "${ac_cv_search_syslog+set}" = set; then 5446 break 5447fi 5448done 5449if test "${ac_cv_search_syslog+set}" = set; then 5450 : 5451else 5452 ac_cv_search_syslog=no 5453fi 5454rm conftest.$ac_ext 5455LIBS=$ac_func_search_save_LIBS 5456fi 5457{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5 5458$as_echo "$ac_cv_search_syslog" >&6; } 5459ac_res=$ac_cv_search_syslog 5460if test "$ac_res" != no; then 5461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5462 5463fi 5464 5465 5466# do we have a syslog feature? 5467if test "${ac_cv_search_syslog}" = "no"; then 5468 # disable its usage 5469 5470cat >>confdefs.h <<\_ACEOF 5471#define __NO_SYSLOG__ 1 5472_ACEOF 5473 5474else 5475 # 5476 # okay, 'syslog' is present. But should we use it? 5477 # 5478 { $as_echo "$as_me:$LINENO: checking whether to enable syslog" >&5 5479$as_echo_n "checking whether to enable syslog... " >&6; } 5480 # Check whether --enable-syslog was given. 5481if test "${enable_syslog+set}" = set; then 5482 enableval=$enable_syslog; case "$enableval" in 5483 y | yes) CONFIG_SYSLOG=yes ;; 5484 *) CONFIG_SYSLOG=no ;; 5485 esac 5486else 5487 CONFIG_SYSLOG=yes 5488fi 5489 5490 { $as_echo "$as_me:$LINENO: result: ${CONFIG_SYSLOG}" >&5 5491$as_echo "${CONFIG_SYSLOG}" >&6; } 5492 5493 if test "${CONFIG_SYSLOG}" = "yes"; then 5494 5495cat >>confdefs.h <<\_ACEOF 5496#define USE_SYSLOG 1 5497_ACEOF 5498 5499 else 5500 5501cat >>confdefs.h <<\_ACEOF 5502#define __NO_SYSLOG__ 1 5503_ACEOF 5504 5505 fi 5506fi 5507 5508# 5509# Some things have to be done in accordance to the operating system 5510# 5511{ $as_echo "$as_me:$LINENO: checking operating system" >&5 5512$as_echo_n "checking operating system... " >&6; } 5513case $host in 5514 *-linux*) 5515 { $as_echo "$as_me:$LINENO: result: Linux" >&5 5516$as_echo "Linux" >&6; } 5517 ;; 5518 *-solaris*) 5519 { $as_echo "$as_me:$LINENO: result: SOLARIS" >&5 5520$as_echo "SOLARIS" >&6; } 5521 5522cat >>confdefs.h <<\_ACEOF 5523#define __NO_LOG_PERROR__ /**/ 5524_ACEOF 5525 5526 ;; 5527 *-BeOS*) 5528 { $as_echo "$as_me:$LINENO: result: BeOS" >&5 5529$as_echo "BeOS" >&6; } 5530 # On BeOS the LDFLAGS should not be used. 5531 AM_LDFLAGS="" 5532 ;; 5533 *-darwin*) 5534 { $as_echo "$as_me:$LINENO: result: Darwin/MacOS X" >&5 5535$as_echo "Darwin/MacOS X" >&6; } 5536 CFLAGS="${CFLAGS} -no-cpp-precomp -traditional-cpp" 5537 ;; 5538 *-bsd*) 5539 { $as_echo "$as_me:$LINENO: result: FreeBSD" >&5 5540$as_echo "FreeBSD" >&6; } 5541 ;; 5542 *) 5543 { $as_echo "$as_me:$LINENO: result: unsupported operating system, pnm2ppa may fail" >&5 5544$as_echo "unsupported operating system, pnm2ppa may fail" >&6; } 5545esac 5546 5547# 5548# Debugging 5549# 5550{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 5551$as_echo_n "checking whether to enable debugging... " >&6; } 5552# Check whether --enable-debug was given. 5553if test "${enable_debug+set}" = set; then 5554 enableval=$enable_debug; case "$enableval" in 5555 y | yes) CONFIG_DEBUG=yes ;; 5556 *) CONFIG_DEBUG=no ;; 5557 esac 5558else 5559 CONFIG_DEBUG=no 5560fi 5561 5562{ $as_echo "$as_me:$LINENO: result: ${CONFIG_DEBUG}" >&5 5563$as_echo "${CONFIG_DEBUG}" >&6; } 5564if test "${CONFIG_DEBUG}" = "yes"; then 5565 5566cat >>confdefs.h <<\_ACEOF 5567#define DEBUG 1 5568_ACEOF 5569 5570 if true; then 5571 PNM2PPA_DEBUG_TRUE= 5572 PNM2PPA_DEBUG_FALSE='#' 5573else 5574 PNM2PPA_DEBUG_TRUE='#' 5575 PNM2PPA_DEBUG_FALSE= 5576fi 5577 5578 CFLAGS="${CFLAGS} -O1" 5579else 5580 CFLAGS="${CFLAGS} -DNDEBUG" 5581 if false; then 5582 PNM2PPA_DEBUG_TRUE= 5583 PNM2PPA_DEBUG_FALSE='#' 5584else 5585 PNM2PPA_DEBUG_TRUE='#' 5586 PNM2PPA_DEBUG_FALSE= 5587fi 5588 5589fi 5590 5591# 5592# define the compiled in language 5593# 5594{ $as_echo "$as_me:$LINENO: checking which language is to be used" >&5 5595$as_echo_n "checking which language is to be used... " >&6; } 5596 5597# Check whether --with-language was given. 5598if test "${with_language+set}" = set; then 5599 withval=$with_language; ppa_language="$withval" 5600fi 5601 5602 5603# english language is the default 5604if test -z "${ppa_language}"; then 5605 # default is english 5606 ppa_language=EN 5607fi 5608 5609case "${ppa_language}" in 5610 EN | en) 5611 5612cat >>confdefs.h <<\_ACEOF 5613#define LANG_EN /**/ 5614_ACEOF 5615 5616 used_language="english" 5617 ;; 5618 CZ | en) 5619 5620cat >>confdefs.h <<\_ACEOF 5621#define LANG_CZ /**/ 5622_ACEOF 5623 5624 used_language="cech" 5625 ;; 5626 ES | es) 5627 5628cat >>confdefs.h <<\_ACEOF 5629#define LANG_ES /**/ 5630_ACEOF 5631 5632 used_language="espanol" 5633 ;; 5634 FR | fr) 5635 5636cat >>confdefs.h <<\_ACEOF 5637#define LANG_FR /**/ 5638_ACEOF 5639 5640 used_language="french" 5641 ;; 5642 IT | it) 5643 5644cat >>confdefs.h <<\_ACEOF 5645#define LANG_IT /**/ 5646_ACEOF 5647 5648 used_language="italian" 5649 ;; 5650 NL | nl) 5651 5652cat >>confdefs.h <<\_ACEOF 5653#define LANG_NL /**/ 5654_ACEOF 5655 5656 used_language="dutch" 5657 ;; 5658 *) 5659 { { $as_echo "$as_me:$LINENO: error: Unsupported language" >&5 5660$as_echo "$as_me: error: Unsupported language" >&2;} 5661 { (exit 1); exit 1; }; } 5662 ;; 5663esac 5664 5665{ $as_echo "$as_me:$LINENO: result: ${used_language}" >&5 5666$as_echo "${used_language}" >&6; } 5667 5668{ $as_echo "$as_me:$LINENO: checking whether to build the 'parse_vlink' tool" >&5 5669$as_echo_n "checking whether to build the 'parse_vlink' tool... " >&6; } 5670# Check whether --enable-vlink was given. 5671if test "${enable_vlink+set}" = set; then 5672 enableval=$enable_vlink; case "$enableval" in 5673 y | yes) CONFIG_VLINK=yes ;; 5674 *) CONFIG_VLINK=no ;; 5675 esac 5676else 5677 CONFIG_VLINK=no 5678fi 5679 5680{ $as_echo "$as_me:$LINENO: result: ${CONFIG_VLINK}" >&5 5681$as_echo "${CONFIG_VLINK}" >&6; } 5682 5683if test "${CONFIG_VLINK}" = "yes"; then 5684 if true; then 5685 BUILD_PARSE_VLINK_TRUE= 5686 BUILD_PARSE_VLINK_FALSE='#' 5687else 5688 BUILD_PARSE_VLINK_TRUE='#' 5689 BUILD_PARSE_VLINK_FALSE= 5690fi 5691 5692else 5693 if false; then 5694 BUILD_PARSE_VLINK_TRUE= 5695 BUILD_PARSE_VLINK_FALSE='#' 5696else 5697 BUILD_PARSE_VLINK_TRUE='#' 5698 BUILD_PARSE_VLINK_FALSE= 5699fi 5700 5701fi 5702 5703ac_config_files="$ac_config_files Makefile ppa_protocol/Makefile" 5704 5705cat >confcache <<\_ACEOF 5706# This file is a shell script that caches the results of configure 5707# tests run on this system so they can be shared between configure 5708# scripts and configure runs, see configure's option --config-cache. 5709# It is not useful on other systems. If it contains results you don't 5710# want to keep, you may remove or edit it. 5711# 5712# config.status only pays attention to the cache file if you give it 5713# the --recheck option to rerun configure. 5714# 5715# `ac_cv_env_foo' variables (set or unset) will be overridden when 5716# loading this file, other *unset* `ac_cv_foo' will be assigned the 5717# following values. 5718 5719_ACEOF 5720 5721# The following way of writing the cache mishandles newlines in values, 5722# but we know of no workaround that is simple, portable, and efficient. 5723# So, we kill variables containing newlines. 5724# Ultrix sh set writes to stderr and can't be redirected directly, 5725# and sets the high bit in the cache file unless we assign to the vars. 5726( 5727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5728 eval ac_val=\$$ac_var 5729 case $ac_val in #( 5730 *${as_nl}*) 5731 case $ac_var in #( 5732 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 5733$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 5734 esac 5735 case $ac_var in #( 5736 _ | IFS | as_nl) ;; #( 5737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5738 *) $as_unset $ac_var ;; 5739 esac ;; 5740 esac 5741 done 5742 5743 (set) 2>&1 | 5744 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5745 *${as_nl}ac_space=\ *) 5746 # `set' does not quote correctly, so add quotes (double-quote 5747 # substitution turns \\\\ into \\, and sed turns \\ into \). 5748 sed -n \ 5749 "s/'/'\\\\''/g; 5750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5751 ;; #( 5752 *) 5753 # `set' quotes correctly as required by POSIX, so do not add quotes. 5754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5755 ;; 5756 esac | 5757 sort 5758) | 5759 sed ' 5760 /^ac_cv_env_/b end 5761 t clear 5762 :clear 5763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5764 t end 5765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5766 :end' >>confcache 5767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5768 if test -w "$cache_file"; then 5769 test "x$cache_file" != "x/dev/null" && 5770 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 5771$as_echo "$as_me: updating cache $cache_file" >&6;} 5772 cat confcache >$cache_file 5773 else 5774 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5775$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5776 fi 5777fi 5778rm -f confcache 5779 5780test "x$prefix" = xNONE && prefix=$ac_default_prefix 5781# Let make expand exec_prefix. 5782test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5783 5784DEFS=-DHAVE_CONFIG_H 5785 5786ac_libobjs= 5787ac_ltlibobjs= 5788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5789 # 1. Remove the extension, and $U if already installed. 5790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5793 # will be set to the directory where LIBOBJS objects are built. 5794 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5795 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5796done 5797LIBOBJS=$ac_libobjs 5798 5799LTLIBOBJS=$ac_ltlibobjs 5800 5801 5802if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5803 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 5804Usually this means the macro was only invoked conditionally." >&5 5805$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 5806Usually this means the macro was only invoked conditionally." >&2;} 5807 { (exit 1); exit 1; }; } 5808fi 5809if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5810 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 5811Usually this means the macro was only invoked conditionally." >&5 5812$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 5813Usually this means the macro was only invoked conditionally." >&2;} 5814 { (exit 1); exit 1; }; } 5815fi 5816if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5817 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5818Usually this means the macro was only invoked conditionally." >&5 5819$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5820Usually this means the macro was only invoked conditionally." >&2;} 5821 { (exit 1); exit 1; }; } 5822fi 5823if test -z "${PNM2PPA_DEBUG_TRUE}" && test -z "${PNM2PPA_DEBUG_FALSE}"; then 5824 { { $as_echo "$as_me:$LINENO: error: conditional \"PNM2PPA_DEBUG\" was never defined. 5825Usually this means the macro was only invoked conditionally." >&5 5826$as_echo "$as_me: error: conditional \"PNM2PPA_DEBUG\" was never defined. 5827Usually this means the macro was only invoked conditionally." >&2;} 5828 { (exit 1); exit 1; }; } 5829fi 5830if test -z "${PNM2PPA_DEBUG_TRUE}" && test -z "${PNM2PPA_DEBUG_FALSE}"; then 5831 { { $as_echo "$as_me:$LINENO: error: conditional \"PNM2PPA_DEBUG\" was never defined. 5832Usually this means the macro was only invoked conditionally." >&5 5833$as_echo "$as_me: error: conditional \"PNM2PPA_DEBUG\" was never defined. 5834Usually this means the macro was only invoked conditionally." >&2;} 5835 { (exit 1); exit 1; }; } 5836fi 5837if test -z "${BUILD_PARSE_VLINK_TRUE}" && test -z "${BUILD_PARSE_VLINK_FALSE}"; then 5838 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARSE_VLINK\" was never defined. 5839Usually this means the macro was only invoked conditionally." >&5 5840$as_echo "$as_me: error: conditional \"BUILD_PARSE_VLINK\" was never defined. 5841Usually this means the macro was only invoked conditionally." >&2;} 5842 { (exit 1); exit 1; }; } 5843fi 5844if test -z "${BUILD_PARSE_VLINK_TRUE}" && test -z "${BUILD_PARSE_VLINK_FALSE}"; then 5845 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARSE_VLINK\" was never defined. 5846Usually this means the macro was only invoked conditionally." >&5 5847$as_echo "$as_me: error: conditional \"BUILD_PARSE_VLINK\" was never defined. 5848Usually this means the macro was only invoked conditionally." >&2;} 5849 { (exit 1); exit 1; }; } 5850fi 5851 5852: ${CONFIG_STATUS=./config.status} 5853ac_write_fail=0 5854ac_clean_files_save=$ac_clean_files 5855ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5856{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5857$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5858cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5859#! $SHELL 5860# Generated by $as_me. 5861# Run this file to recreate the current configuration. 5862# Compiler output produced by configure, useful for debugging 5863# configure, is in config.log if it exists. 5864 5865debug=false 5866ac_cs_recheck=false 5867ac_cs_silent=false 5868SHELL=\${CONFIG_SHELL-$SHELL} 5869_ACEOF 5870 5871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5872## --------------------- ## 5873## M4sh Initialization. ## 5874## --------------------- ## 5875 5876# Be more Bourne compatible 5877DUALCASE=1; export DUALCASE # for MKS sh 5878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5879 emulate sh 5880 NULLCMD=: 5881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5882 # is contrary to our usage. Disable this feature. 5883 alias -g '${1+"$@"}'='"$@"' 5884 setopt NO_GLOB_SUBST 5885else 5886 case `(set -o) 2>/dev/null` in 5887 *posix*) set -o posix ;; 5888esac 5889 5890fi 5891 5892 5893 5894 5895# PATH needs CR 5896# Avoid depending upon Character Ranges. 5897as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5898as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5899as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5900as_cr_digits='0123456789' 5901as_cr_alnum=$as_cr_Letters$as_cr_digits 5902 5903as_nl=' 5904' 5905export as_nl 5906# Printing a long string crashes Solaris 7 /usr/bin/printf. 5907as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5908as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5909as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5910if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5911 as_echo='printf %s\n' 5912 as_echo_n='printf %s' 5913else 5914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5916 as_echo_n='/usr/ucb/echo -n' 5917 else 5918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5919 as_echo_n_body='eval 5920 arg=$1; 5921 case $arg in 5922 *"$as_nl"*) 5923 expr "X$arg" : "X\\(.*\\)$as_nl"; 5924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5925 esac; 5926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5927 ' 5928 export as_echo_n_body 5929 as_echo_n='sh -c $as_echo_n_body as_echo' 5930 fi 5931 export as_echo_body 5932 as_echo='sh -c $as_echo_body as_echo' 5933fi 5934 5935# The user is always right. 5936if test "${PATH_SEPARATOR+set}" != set; then 5937 PATH_SEPARATOR=: 5938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5940 PATH_SEPARATOR=';' 5941 } 5942fi 5943 5944# Support unset when possible. 5945if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5946 as_unset=unset 5947else 5948 as_unset=false 5949fi 5950 5951 5952# IFS 5953# We need space, tab and new line, in precisely that order. Quoting is 5954# there to prevent editors from complaining about space-tab. 5955# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5956# splitting by setting IFS to empty value.) 5957IFS=" "" $as_nl" 5958 5959# Find who we are. Look in the path if we contain no directory separator. 5960case $0 in 5961 *[\\/]* ) as_myself=$0 ;; 5962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5968done 5969IFS=$as_save_IFS 5970 5971 ;; 5972esac 5973# We did not find ourselves, most probably we were run as `sh COMMAND' 5974# in which case we are not to be found in the path. 5975if test "x$as_myself" = x; then 5976 as_myself=$0 5977fi 5978if test ! -f "$as_myself"; then 5979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5980 { (exit 1); exit 1; } 5981fi 5982 5983# Work around bugs in pre-3.0 UWIN ksh. 5984for as_var in ENV MAIL MAILPATH 5985do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5986done 5987PS1='$ ' 5988PS2='> ' 5989PS4='+ ' 5990 5991# NLS nuisances. 5992LC_ALL=C 5993export LC_ALL 5994LANGUAGE=C 5995export LANGUAGE 5996 5997# Required to use basename. 5998if expr a : '\(a\)' >/dev/null 2>&1 && 5999 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6000 as_expr=expr 6001else 6002 as_expr=false 6003fi 6004 6005if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6006 as_basename=basename 6007else 6008 as_basename=false 6009fi 6010 6011 6012# Name of the executable. 6013as_me=`$as_basename -- "$0" || 6014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6015 X"$0" : 'X\(//\)$' \| \ 6016 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6017$as_echo X/"$0" | 6018 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6019 s//\1/ 6020 q 6021 } 6022 /^X\/\(\/\/\)$/{ 6023 s//\1/ 6024 q 6025 } 6026 /^X\/\(\/\).*/{ 6027 s//\1/ 6028 q 6029 } 6030 s/.*/./; q'` 6031 6032# CDPATH. 6033$as_unset CDPATH 6034 6035 6036 6037 as_lineno_1=$LINENO 6038 as_lineno_2=$LINENO 6039 test "x$as_lineno_1" != "x$as_lineno_2" && 6040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 6041 6042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6043 # uniformly replaced by the line number. The first 'sed' inserts a 6044 # line-number line after each line using $LINENO; the second 'sed' 6045 # does the real work. The second script uses 'N' to pair each 6046 # line-number line with the line containing $LINENO, and appends 6047 # trailing '-' during substitution so that $LINENO is not a special 6048 # case at line end. 6049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6050 # scripts with optimization help from Paolo Bonzini. Blame Lee 6051 # E. McMahon (1931-1989) for sed's syntax. :-) 6052 sed -n ' 6053 p 6054 /[$]LINENO/= 6055 ' <$as_myself | 6056 sed ' 6057 s/[$]LINENO.*/&-/ 6058 t lineno 6059 b 6060 :lineno 6061 N 6062 :loop 6063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 6064 t loop 6065 s/-\n.*// 6066 ' >$as_me.lineno && 6067 chmod +x "$as_me.lineno" || 6068 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 6069 { (exit 1); exit 1; }; } 6070 6071 # Don't try to exec as it changes $[0], causing all sort of problems 6072 # (the dirname of $[0] is not the place where we might find the 6073 # original and so on. Autoconf is especially sensitive to this). 6074 . "./$as_me.lineno" 6075 # Exit status is that of the last command. 6076 exit 6077} 6078 6079 6080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6081 as_dirname=dirname 6082else 6083 as_dirname=false 6084fi 6085 6086ECHO_C= ECHO_N= ECHO_T= 6087case `echo -n x` in 6088-n*) 6089 case `echo 'x\c'` in 6090 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6091 *) ECHO_C='\c';; 6092 esac;; 6093*) 6094 ECHO_N='-n';; 6095esac 6096if expr a : '\(a\)' >/dev/null 2>&1 && 6097 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6098 as_expr=expr 6099else 6100 as_expr=false 6101fi 6102 6103rm -f conf$$ conf$$.exe conf$$.file 6104if test -d conf$$.dir; then 6105 rm -f conf$$.dir/conf$$.file 6106else 6107 rm -f conf$$.dir 6108 mkdir conf$$.dir 2>/dev/null 6109fi 6110if (echo >conf$$.file) 2>/dev/null; then 6111 if ln -s conf$$.file conf$$ 2>/dev/null; then 6112 as_ln_s='ln -s' 6113 # ... but there are two gotchas: 6114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6116 # In both cases, we have to default to `cp -p'. 6117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6118 as_ln_s='cp -p' 6119 elif ln conf$$.file conf$$ 2>/dev/null; then 6120 as_ln_s=ln 6121 else 6122 as_ln_s='cp -p' 6123 fi 6124else 6125 as_ln_s='cp -p' 6126fi 6127rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6128rmdir conf$$.dir 2>/dev/null 6129 6130if mkdir -p . 2>/dev/null; then 6131 as_mkdir_p=: 6132else 6133 test -d ./-p && rmdir ./-p 6134 as_mkdir_p=false 6135fi 6136 6137if test -x / >/dev/null 2>&1; then 6138 as_test_x='test -x' 6139else 6140 if ls -dL / >/dev/null 2>&1; then 6141 as_ls_L_option=L 6142 else 6143 as_ls_L_option= 6144 fi 6145 as_test_x=' 6146 eval sh -c '\'' 6147 if test -d "$1"; then 6148 test -d "$1/."; 6149 else 6150 case $1 in 6151 -*)set "./$1";; 6152 esac; 6153 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 6154 ???[sx]*):;;*)false;;esac;fi 6155 '\'' sh 6156 ' 6157fi 6158as_executable_p=$as_test_x 6159 6160# Sed expression to map a string onto a valid CPP name. 6161as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6162 6163# Sed expression to map a string onto a valid variable name. 6164as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6165 6166 6167exec 6>&1 6168 6169# Save the log message, to keep $[0] and so on meaningful, and to 6170# report actual input values of CONFIG_FILES etc. instead of their 6171# values after options handling. 6172ac_log=" 6173This file was extended by pnm2ppa $as_me 1.13, which was 6174generated by GNU Autoconf 2.62. Invocation command line was 6175 6176 CONFIG_FILES = $CONFIG_FILES 6177 CONFIG_HEADERS = $CONFIG_HEADERS 6178 CONFIG_LINKS = $CONFIG_LINKS 6179 CONFIG_COMMANDS = $CONFIG_COMMANDS 6180 $ $0 $@ 6181 6182on `(hostname || uname -n) 2>/dev/null | sed 1q` 6183" 6184 6185_ACEOF 6186 6187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6188# Files that config.status was made for. 6189config_files="$ac_config_files" 6190config_headers="$ac_config_headers" 6191config_commands="$ac_config_commands" 6192 6193_ACEOF 6194 6195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6196ac_cs_usage="\ 6197\`$as_me' instantiates files from templates according to the 6198current configuration. 6199 6200Usage: $0 [OPTIONS] [FILE]... 6201 6202 -h, --help print this help, then exit 6203 -V, --version print version number and configuration settings, then exit 6204 -q, --quiet do not print progress messages 6205 -d, --debug don't remove temporary files 6206 --recheck update $as_me by reconfiguring in the same conditions 6207 --file=FILE[:TEMPLATE] 6208 instantiate the configuration file FILE 6209 --header=FILE[:TEMPLATE] 6210 instantiate the configuration header FILE 6211 6212Configuration files: 6213$config_files 6214 6215Configuration headers: 6216$config_headers 6217 6218Configuration commands: 6219$config_commands 6220 6221Report bugs to <bug-autoconf@gnu.org>." 6222 6223_ACEOF 6224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6225ac_cs_version="\\ 6226pnm2ppa config.status 1.13 6227configured by $0, generated by GNU Autoconf 2.62, 6228 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 6229 6230Copyright (C) 2008 Free Software Foundation, Inc. 6231This config.status script is free software; the Free Software Foundation 6232gives unlimited permission to copy, distribute and modify it." 6233 6234ac_pwd='$ac_pwd' 6235srcdir='$srcdir' 6236INSTALL='$INSTALL' 6237MKDIR_P='$MKDIR_P' 6238AWK='$AWK' 6239test -n "\$AWK" || AWK=awk 6240_ACEOF 6241 6242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6243# The default lists apply if the user does not specify any file. 6244ac_need_defaults=: 6245while test $# != 0 6246do 6247 case $1 in 6248 --*=*) 6249 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6251 ac_shift=: 6252 ;; 6253 *) 6254 ac_option=$1 6255 ac_optarg=$2 6256 ac_shift=shift 6257 ;; 6258 esac 6259 6260 case $ac_option in 6261 # Handling of the options. 6262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6263 ac_cs_recheck=: ;; 6264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6265 $as_echo "$ac_cs_version"; exit ;; 6266 --debug | --debu | --deb | --de | --d | -d ) 6267 debug=: ;; 6268 --file | --fil | --fi | --f ) 6269 $ac_shift 6270 case $ac_optarg in 6271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6272 esac 6273 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 6274 ac_need_defaults=false;; 6275 --header | --heade | --head | --hea ) 6276 $ac_shift 6277 case $ac_optarg in 6278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6279 esac 6280 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 6281 ac_need_defaults=false;; 6282 --he | --h) 6283 # Conflict between --help and --header 6284 { $as_echo "$as_me: error: ambiguous option: $1 6285Try \`$0 --help' for more information." >&2 6286 { (exit 1); exit 1; }; };; 6287 --help | --hel | -h ) 6288 $as_echo "$ac_cs_usage"; exit ;; 6289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6290 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6291 ac_cs_silent=: ;; 6292 6293 # This is an error. 6294 -*) { $as_echo "$as_me: error: unrecognized option: $1 6295Try \`$0 --help' for more information." >&2 6296 { (exit 1); exit 1; }; } ;; 6297 6298 *) ac_config_targets="$ac_config_targets $1" 6299 ac_need_defaults=false ;; 6300 6301 esac 6302 shift 6303done 6304 6305ac_configure_extra_args= 6306 6307if $ac_cs_silent; then 6308 exec 6>/dev/null 6309 ac_configure_extra_args="$ac_configure_extra_args --silent" 6310fi 6311 6312_ACEOF 6313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6314if \$ac_cs_recheck; then 6315 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6316 shift 6317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6318 CONFIG_SHELL='$SHELL' 6319 export CONFIG_SHELL 6320 exec "\$@" 6321fi 6322 6323_ACEOF 6324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6325exec 5>>config.log 6326{ 6327 echo 6328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6329## Running $as_me. ## 6330_ASBOX 6331 $as_echo "$ac_log" 6332} >&5 6333 6334_ACEOF 6335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6336# 6337# INIT-COMMANDS 6338# 6339AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6340 6341_ACEOF 6342 6343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6344 6345# Handling of arguments. 6346for ac_config_target in $ac_config_targets 6347do 6348 case $ac_config_target in 6349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6350 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6351 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6352 "ppa_protocol/Makefile") CONFIG_FILES="$CONFIG_FILES ppa_protocol/Makefile" ;; 6353 6354 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6355$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6356 { (exit 1); exit 1; }; };; 6357 esac 6358done 6359 6360 6361# If the user did not use the arguments to specify the items to instantiate, 6362# then the envvar interface is used. Set only those that are not. 6363# We use the long form for the default assignment because of an extremely 6364# bizarre bug on SunOS 4.1.3. 6365if $ac_need_defaults; then 6366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6369fi 6370 6371# Have a temporary directory for convenience. Make it in the build tree 6372# simply because there is no reason against having it here, and in addition, 6373# creating and moving files from /tmp can sometimes cause problems. 6374# Hook for its removal unless debugging. 6375# Note that there is a small window in which the directory will not be cleaned: 6376# after its creation but before its name has been assigned to `$tmp'. 6377$debug || 6378{ 6379 tmp= 6380 trap 'exit_status=$? 6381 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6382' 0 6383 trap '{ (exit 1); exit 1; }' 1 2 13 15 6384} 6385# Create a (secure) tmp directory for tmp files. 6386 6387{ 6388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6389 test -n "$tmp" && test -d "$tmp" 6390} || 6391{ 6392 tmp=./conf$$-$RANDOM 6393 (umask 077 && mkdir "$tmp") 6394} || 6395{ 6396 $as_echo "$as_me: cannot create a temporary directory in ." >&2 6397 { (exit 1); exit 1; } 6398} 6399 6400# Set up the scripts for CONFIG_FILES section. 6401# No need to generate them if there are no CONFIG_FILES. 6402# This happens for instance with `./config.status config.h'. 6403if test -n "$CONFIG_FILES"; then 6404 6405 6406ac_cr=' 6407' 6408ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6409if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6410 ac_cs_awk_cr='\\r' 6411else 6412 ac_cs_awk_cr=$ac_cr 6413fi 6414 6415echo 'BEGIN {' >"$tmp/subs1.awk" && 6416_ACEOF 6417 6418 6419{ 6420 echo "cat >conf$$subs.awk <<_ACEOF" && 6421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6422 echo "_ACEOF" 6423} >conf$$subs.sh || 6424 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6425$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6426 { (exit 1); exit 1; }; } 6427ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6428ac_delim='%!_!# ' 6429for ac_last_try in false false false false false :; do 6430 . ./conf$$subs.sh || 6431 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6432$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6433 { (exit 1); exit 1; }; } 6434 6435 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 6436 break 6437 elif $ac_last_try; then 6438 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6439$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6440 { (exit 1); exit 1; }; } 6441 else 6442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6443 fi 6444done 6445rm -f conf$$subs.sh 6446 6447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6448cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6449_ACEOF 6450sed -n ' 6451h 6452s/^/S["/; s/!.*/"]=/ 6453p 6454g 6455s/^[^!]*!// 6456:repl 6457t repl 6458s/'"$ac_delim"'$// 6459t delim 6460:nl 6461h 6462s/\(.\{148\}\).*/\1/ 6463t more1 6464s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6465p 6466n 6467b repl 6468:more1 6469s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6470p 6471g 6472s/.\{148\}// 6473t nl 6474:delim 6475h 6476s/\(.\{148\}\).*/\1/ 6477t more2 6478s/["\\]/\\&/g; s/^/"/; s/$/"/ 6479p 6480b 6481:more2 6482s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6483p 6484g 6485s/.\{148\}// 6486t delim 6487' <conf$$subs.awk | sed ' 6488/^[^""]/{ 6489 N 6490 s/\n// 6491} 6492' >>$CONFIG_STATUS || ac_write_fail=1 6493rm -f conf$$subs.awk 6494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6495_ACAWK 6496cat >>"\$tmp/subs1.awk" <<_ACAWK && 6497 for (key in S) S_is_set[key] = 1 6498 FS = "" 6499 6500} 6501{ 6502 line = $ 0 6503 nfields = split(line, field, "@") 6504 substed = 0 6505 len = length(field[1]) 6506 for (i = 2; i < nfields; i++) { 6507 key = field[i] 6508 keylen = length(key) 6509 if (S_is_set[key]) { 6510 value = S[key] 6511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6512 len += length(value) + length(field[++i]) 6513 substed = 1 6514 } else 6515 len += 1 + keylen 6516 } 6517 6518 print line 6519} 6520 6521_ACAWK 6522_ACEOF 6523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6524if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6525 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6526else 6527 cat 6528fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6529 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 6530$as_echo "$as_me: error: could not setup config files machinery" >&2;} 6531 { (exit 1); exit 1; }; } 6532_ACEOF 6533 6534# VPATH may cause trouble with some makes, so we remove $(srcdir), 6535# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6536# trailing colons and then remove the whole line if VPATH becomes empty 6537# (actually we leave an empty line to preserve line numbers). 6538if test "x$srcdir" = x.; then 6539 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6540s/:*\$(srcdir):*/:/ 6541s/:*\${srcdir}:*/:/ 6542s/:*@srcdir@:*/:/ 6543s/^\([^=]*=[ ]*\):*/\1/ 6544s/:*$// 6545s/^[^=]*=[ ]*$// 6546}' 6547fi 6548 6549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6550fi # test -n "$CONFIG_FILES" 6551 6552# Set up the scripts for CONFIG_HEADERS section. 6553# No need to generate them if there are no CONFIG_HEADERS. 6554# This happens for instance with `./config.status Makefile'. 6555if test -n "$CONFIG_HEADERS"; then 6556cat >"$tmp/defines.awk" <<\_ACAWK || 6557BEGIN { 6558_ACEOF 6559 6560# Transform confdefs.h into an awk script `defines.awk', embedded as 6561# here-document in config.status, that substitutes the proper values into 6562# config.h.in to produce config.h. 6563 6564# Create a delimiter string that does not exist in confdefs.h, to ease 6565# handling of long lines. 6566ac_delim='%!_!# ' 6567for ac_last_try in false false :; do 6568 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6569 if test -z "$ac_t"; then 6570 break 6571 elif $ac_last_try; then 6572 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 6573$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 6574 { (exit 1); exit 1; }; } 6575 else 6576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6577 fi 6578done 6579 6580# For the awk script, D is an array of macro values keyed by name, 6581# likewise P contains macro parameters if any. Preserve backslash 6582# newline sequences. 6583 6584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6585sed -n ' 6586s/.\{148\}/&'"$ac_delim"'/g 6587t rset 6588:rset 6589s/^[ ]*#[ ]*define[ ][ ]*/ / 6590t def 6591d 6592:def 6593s/\\$// 6594t bsnl 6595s/["\\]/\\&/g 6596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6597D["\1"]=" \3"/p 6598s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6599d 6600:bsnl 6601s/["\\]/\\&/g 6602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6603D["\1"]=" \3\\\\\\n"\\/p 6604t cont 6605s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6606t cont 6607d 6608:cont 6609n 6610s/.\{148\}/&'"$ac_delim"'/g 6611t clear 6612:clear 6613s/\\$// 6614t bsnlc 6615s/["\\]/\\&/g; s/^/"/; s/$/"/p 6616d 6617:bsnlc 6618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6619b cont 6620' <confdefs.h | sed ' 6621s/'"$ac_delim"'/"\\\ 6622"/g' >>$CONFIG_STATUS || ac_write_fail=1 6623 6624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6625 for (key in D) D_is_set[key] = 1 6626 FS = "" 6627} 6628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6629 line = \$ 0 6630 split(line, arg, " ") 6631 if (arg[1] == "#") { 6632 defundef = arg[2] 6633 mac1 = arg[3] 6634 } else { 6635 defundef = substr(arg[1], 2) 6636 mac1 = arg[2] 6637 } 6638 split(mac1, mac2, "(") #) 6639 macro = mac2[1] 6640 if (D_is_set[macro]) { 6641 # Preserve the white space surrounding the "#". 6642 prefix = substr(line, 1, index(line, defundef) - 1) 6643 print prefix "define", macro P[macro] D[macro] 6644 next 6645 } else { 6646 # Replace #undef with comments. This is necessary, for example, 6647 # in the case of _POSIX_SOURCE, which is predefined and required 6648 # on some systems where configure will not decide to define it. 6649 if (defundef == "undef") { 6650 print "/*", line, "*/" 6651 next 6652 } 6653 } 6654} 6655{ print } 6656_ACAWK 6657_ACEOF 6658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6659 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 6660$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 6661 { (exit 1); exit 1; }; } 6662fi # test -n "$CONFIG_HEADERS" 6663 6664 6665eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6666shift 6667for ac_tag 6668do 6669 case $ac_tag in 6670 :[FHLC]) ac_mode=$ac_tag; continue;; 6671 esac 6672 case $ac_mode$ac_tag in 6673 :[FHL]*:*);; 6674 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 6675$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 6676 { (exit 1); exit 1; }; };; 6677 :[FH]-) ac_tag=-:-;; 6678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6679 esac 6680 ac_save_IFS=$IFS 6681 IFS=: 6682 set x $ac_tag 6683 IFS=$ac_save_IFS 6684 shift 6685 ac_file=$1 6686 shift 6687 6688 case $ac_mode in 6689 :L) ac_source=$1;; 6690 :[FH]) 6691 ac_file_inputs= 6692 for ac_f 6693 do 6694 case $ac_f in 6695 -) ac_f="$tmp/stdin";; 6696 *) # Look for the file first in the build tree, then in the source tree 6697 # (if the path is not absolute). The absolute path cannot be DOS-style, 6698 # because $ac_f cannot contain `:'. 6699 test -f "$ac_f" || 6700 case $ac_f in 6701 [\\/$]*) false;; 6702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6703 esac || 6704 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 6705$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 6706 { (exit 1); exit 1; }; };; 6707 esac 6708 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6709 ac_file_inputs="$ac_file_inputs '$ac_f'" 6710 done 6711 6712 # Let's still pretend it is `configure' which instantiates (i.e., don't 6713 # use $as_me), people would be surprised to read: 6714 # /* config.h. Generated by config.status. */ 6715 configure_input='Generated from '` 6716 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6717 `' by configure.' 6718 if test x"$ac_file" != x-; then 6719 configure_input="$ac_file. $configure_input" 6720 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 6721$as_echo "$as_me: creating $ac_file" >&6;} 6722 fi 6723 # Neutralize special characters interpreted by sed in replacement strings. 6724 case $configure_input in #( 6725 *\&* | *\|* | *\\* ) 6726 ac_sed_conf_input=`$as_echo "$configure_input" | 6727 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6728 *) ac_sed_conf_input=$configure_input;; 6729 esac 6730 6731 case $ac_tag in 6732 *:-:* | *:-) cat >"$tmp/stdin" \ 6733 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6734$as_echo "$as_me: error: could not create $ac_file" >&2;} 6735 { (exit 1); exit 1; }; } ;; 6736 esac 6737 ;; 6738 esac 6739 6740 ac_dir=`$as_dirname -- "$ac_file" || 6741$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6742 X"$ac_file" : 'X\(//\)[^/]' \| \ 6743 X"$ac_file" : 'X\(//\)$' \| \ 6744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6745$as_echo X"$ac_file" | 6746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6747 s//\1/ 6748 q 6749 } 6750 /^X\(\/\/\)[^/].*/{ 6751 s//\1/ 6752 q 6753 } 6754 /^X\(\/\/\)$/{ 6755 s//\1/ 6756 q 6757 } 6758 /^X\(\/\).*/{ 6759 s//\1/ 6760 q 6761 } 6762 s/.*/./; q'` 6763 { as_dir="$ac_dir" 6764 case $as_dir in #( 6765 -*) as_dir=./$as_dir;; 6766 esac 6767 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6768 as_dirs= 6769 while :; do 6770 case $as_dir in #( 6771 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6772 *) as_qdir=$as_dir;; 6773 esac 6774 as_dirs="'$as_qdir' $as_dirs" 6775 as_dir=`$as_dirname -- "$as_dir" || 6776$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6777 X"$as_dir" : 'X\(//\)[^/]' \| \ 6778 X"$as_dir" : 'X\(//\)$' \| \ 6779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6780$as_echo X"$as_dir" | 6781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6782 s//\1/ 6783 q 6784 } 6785 /^X\(\/\/\)[^/].*/{ 6786 s//\1/ 6787 q 6788 } 6789 /^X\(\/\/\)$/{ 6790 s//\1/ 6791 q 6792 } 6793 /^X\(\/\).*/{ 6794 s//\1/ 6795 q 6796 } 6797 s/.*/./; q'` 6798 test -d "$as_dir" && break 6799 done 6800 test -z "$as_dirs" || eval "mkdir $as_dirs" 6801 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6802$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 6803 { (exit 1); exit 1; }; }; } 6804 ac_builddir=. 6805 6806case "$ac_dir" in 6807.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6808*) 6809 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6810 # A ".." for each directory in $ac_dir_suffix. 6811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6812 case $ac_top_builddir_sub in 6813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6815 esac ;; 6816esac 6817ac_abs_top_builddir=$ac_pwd 6818ac_abs_builddir=$ac_pwd$ac_dir_suffix 6819# for backward compatibility: 6820ac_top_builddir=$ac_top_build_prefix 6821 6822case $srcdir in 6823 .) # We are building in place. 6824 ac_srcdir=. 6825 ac_top_srcdir=$ac_top_builddir_sub 6826 ac_abs_top_srcdir=$ac_pwd ;; 6827 [\\/]* | ?:[\\/]* ) # Absolute name. 6828 ac_srcdir=$srcdir$ac_dir_suffix; 6829 ac_top_srcdir=$srcdir 6830 ac_abs_top_srcdir=$srcdir ;; 6831 *) # Relative name. 6832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6833 ac_top_srcdir=$ac_top_build_prefix$srcdir 6834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6835esac 6836ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6837 6838 6839 case $ac_mode in 6840 :F) 6841 # 6842 # CONFIG_FILE 6843 # 6844 6845 case $INSTALL in 6846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6847 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6848 esac 6849 ac_MKDIR_P=$MKDIR_P 6850 case $MKDIR_P in 6851 [\\/$]* | ?:[\\/]* ) ;; 6852 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6853 esac 6854_ACEOF 6855 6856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6857# If the template does not know about datarootdir, expand it. 6858# FIXME: This hack should be removed a few years after 2.60. 6859ac_datarootdir_hack=; ac_datarootdir_seen= 6860 6861ac_sed_dataroot=' 6862/datarootdir/ { 6863 p 6864 q 6865} 6866/@datadir@/p 6867/@docdir@/p 6868/@infodir@/p 6869/@localedir@/p 6870/@mandir@/p 6871' 6872case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6873*datarootdir*) ac_datarootdir_seen=yes;; 6874*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6875 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6876$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6877_ACEOF 6878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6879 ac_datarootdir_hack=' 6880 s&@datadir@&$datadir&g 6881 s&@docdir@&$docdir&g 6882 s&@infodir@&$infodir&g 6883 s&@localedir@&$localedir&g 6884 s&@mandir@&$mandir&g 6885 s&\\\${datarootdir}&$datarootdir&g' ;; 6886esac 6887_ACEOF 6888 6889# Neutralize VPATH when `$srcdir' = `.'. 6890# Shell code in configure.ac might set extrasub. 6891# FIXME: do we really want to maintain this feature? 6892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6893ac_sed_extra="$ac_vpsub 6894$extrasub 6895_ACEOF 6896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6897:t 6898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6899s|@configure_input@|$ac_sed_conf_input|;t t 6900s&@top_builddir@&$ac_top_builddir_sub&;t t 6901s&@top_build_prefix@&$ac_top_build_prefix&;t t 6902s&@srcdir@&$ac_srcdir&;t t 6903s&@abs_srcdir@&$ac_abs_srcdir&;t t 6904s&@top_srcdir@&$ac_top_srcdir&;t t 6905s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6906s&@builddir@&$ac_builddir&;t t 6907s&@abs_builddir@&$ac_abs_builddir&;t t 6908s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6909s&@INSTALL@&$ac_INSTALL&;t t 6910s&@MKDIR_P@&$ac_MKDIR_P&;t t 6911$ac_datarootdir_hack 6912" 6913eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6914 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6915$as_echo "$as_me: error: could not create $ac_file" >&2;} 6916 { (exit 1); exit 1; }; } 6917 6918test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6919 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6920 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6921 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6922which seems to be undefined. Please make sure it is defined." >&5 6923$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6924which seems to be undefined. Please make sure it is defined." >&2;} 6925 6926 rm -f "$tmp/stdin" 6927 case $ac_file in 6928 -) cat "$tmp/out" && rm -f "$tmp/out";; 6929 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6930 esac \ 6931 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6932$as_echo "$as_me: error: could not create $ac_file" >&2;} 6933 { (exit 1); exit 1; }; } 6934 ;; 6935 :H) 6936 # 6937 # CONFIG_HEADER 6938 # 6939 if test x"$ac_file" != x-; then 6940 { 6941 $as_echo "/* $configure_input */" \ 6942 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6943 } >"$tmp/config.h" \ 6944 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6945$as_echo "$as_me: error: could not create $ac_file" >&2;} 6946 { (exit 1); exit 1; }; } 6947 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6948 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6949$as_echo "$as_me: $ac_file is unchanged" >&6;} 6950 else 6951 rm -f "$ac_file" 6952 mv "$tmp/config.h" "$ac_file" \ 6953 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6954$as_echo "$as_me: error: could not create $ac_file" >&2;} 6955 { (exit 1); exit 1; }; } 6956 fi 6957 else 6958 $as_echo "/* $configure_input */" \ 6959 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6960 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 6961$as_echo "$as_me: error: could not create -" >&2;} 6962 { (exit 1); exit 1; }; } 6963 fi 6964# Compute "$ac_file"'s index in $config_headers. 6965_am_stamp_count=1 6966for _am_header in $config_headers :; do 6967 case $_am_header in 6968 "$ac_file" | "$ac_file":* ) 6969 break ;; 6970 * ) 6971 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6972 esac 6973done 6974echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 6975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6976 X"$ac_file" : 'X\(//\)[^/]' \| \ 6977 X"$ac_file" : 'X\(//\)$' \| \ 6978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6979$as_echo X"$ac_file" | 6980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6981 s//\1/ 6982 q 6983 } 6984 /^X\(\/\/\)[^/].*/{ 6985 s//\1/ 6986 q 6987 } 6988 /^X\(\/\/\)$/{ 6989 s//\1/ 6990 q 6991 } 6992 /^X\(\/\).*/{ 6993 s//\1/ 6994 q 6995 } 6996 s/.*/./; q'`/stamp-h$_am_stamp_count 6997 ;; 6998 6999 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 7000$as_echo "$as_me: executing $ac_file commands" >&6;} 7001 ;; 7002 esac 7003 7004 7005 case $ac_file$ac_mode in 7006 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 7007 # Strip MF so we end up with the name of the file. 7008 mf=`echo "$mf" | sed -e 's/:.*$//'` 7009 # Check whether this is an Automake generated Makefile or not. 7010 # We used to match only the files named `Makefile.in', but 7011 # some people rename them; so instead we look at the file content. 7012 # Grep'ing the first line is not enough: some people post-process 7013 # each Makefile.in and add a new line on top of each file to say so. 7014 # Grep'ing the whole file is not good either: AIX grep has a line 7015 # limit of 2048, but all sed's we know have understand at least 4000. 7016 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 7017 dirpart=`$as_dirname -- "$mf" || 7018$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7019 X"$mf" : 'X\(//\)[^/]' \| \ 7020 X"$mf" : 'X\(//\)$' \| \ 7021 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7022$as_echo X"$mf" | 7023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7024 s//\1/ 7025 q 7026 } 7027 /^X\(\/\/\)[^/].*/{ 7028 s//\1/ 7029 q 7030 } 7031 /^X\(\/\/\)$/{ 7032 s//\1/ 7033 q 7034 } 7035 /^X\(\/\).*/{ 7036 s//\1/ 7037 q 7038 } 7039 s/.*/./; q'` 7040 else 7041 continue 7042 fi 7043 # Extract the definition of DEPDIR, am__include, and am__quote 7044 # from the Makefile without running `make'. 7045 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7046 test -z "$DEPDIR" && continue 7047 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7048 test -z "am__include" && continue 7049 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7050 # When using ansi2knr, U may be empty or an underscore; expand it 7051 U=`sed -n 's/^U = //p' < "$mf"` 7052 # Find all dependency output files, they are included files with 7053 # $(DEPDIR) in their names. We invoke sed twice because it is the 7054 # simplest approach to changing $(DEPDIR) to its actual value in the 7055 # expansion. 7056 for file in `sed -n " 7057 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7058 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7059 # Make sure the directory exists. 7060 test -f "$dirpart/$file" && continue 7061 fdir=`$as_dirname -- "$file" || 7062$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7063 X"$file" : 'X\(//\)[^/]' \| \ 7064 X"$file" : 'X\(//\)$' \| \ 7065 X"$file" : 'X\(/\)' \| . 2>/dev/null || 7066$as_echo X"$file" | 7067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7068 s//\1/ 7069 q 7070 } 7071 /^X\(\/\/\)[^/].*/{ 7072 s//\1/ 7073 q 7074 } 7075 /^X\(\/\/\)$/{ 7076 s//\1/ 7077 q 7078 } 7079 /^X\(\/\).*/{ 7080 s//\1/ 7081 q 7082 } 7083 s/.*/./; q'` 7084 { as_dir=$dirpart/$fdir 7085 case $as_dir in #( 7086 -*) as_dir=./$as_dir;; 7087 esac 7088 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7089 as_dirs= 7090 while :; do 7091 case $as_dir in #( 7092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7093 *) as_qdir=$as_dir;; 7094 esac 7095 as_dirs="'$as_qdir' $as_dirs" 7096 as_dir=`$as_dirname -- "$as_dir" || 7097$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7098 X"$as_dir" : 'X\(//\)[^/]' \| \ 7099 X"$as_dir" : 'X\(//\)$' \| \ 7100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7101$as_echo X"$as_dir" | 7102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7103 s//\1/ 7104 q 7105 } 7106 /^X\(\/\/\)[^/].*/{ 7107 s//\1/ 7108 q 7109 } 7110 /^X\(\/\/\)$/{ 7111 s//\1/ 7112 q 7113 } 7114 /^X\(\/\).*/{ 7115 s//\1/ 7116 q 7117 } 7118 s/.*/./; q'` 7119 test -d "$as_dir" && break 7120 done 7121 test -z "$as_dirs" || eval "mkdir $as_dirs" 7122 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7123$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 7124 { (exit 1); exit 1; }; }; } 7125 # echo "creating $dirpart/$file" 7126 echo '# dummy' > "$dirpart/$file" 7127 done 7128done 7129 ;; 7130 7131 esac 7132done # for ac_tag 7133 7134 7135{ (exit 0); exit 0; } 7136_ACEOF 7137chmod +x $CONFIG_STATUS 7138ac_clean_files=$ac_clean_files_save 7139 7140test $ac_write_fail = 0 || 7141 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 7142$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 7143 { (exit 1); exit 1; }; } 7144 7145 7146# configure is writing to config.log, and then calls config.status. 7147# config.status does its own redirection, appending to config.log. 7148# Unfortunately, on DOS this fails, as config.log is still kept open 7149# by configure, so config.status won't be able to write to it; its 7150# output is simply discarded. So we exec the FD to /dev/null, 7151# effectively closing config.log, so it can be properly (re)opened and 7152# appended to by config.status. When coming back to configure, we 7153# need to make the FD available again. 7154if test "$no_create" != yes; then 7155 ac_cs_success=: 7156 ac_config_status_args= 7157 test "$silent" = yes && 7158 ac_config_status_args="$ac_config_status_args --quiet" 7159 exec 5>/dev/null 7160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7161 exec 5>>config.log 7162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7163 # would make configure fail if this is the last instruction. 7164 $ac_cs_success || { (exit 1); exit 1; } 7165fi 7166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7167 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 7168$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 7169fi 7170 7171